Package-level declarations

Types

Link copied to clipboard
object Kray

The Kray game engine.

Link copied to clipboard
interface Positionable2D

Represents an object that has a position in 2D space.

Link copied to clipboard
interface Positionable3D

Represents an object that has a position in 3D Space.

Link copied to clipboard
data class Quadruple<out A, out B, out C, out D>(val first: A, val second: B, val third: C, val fourth: D)

A data class that represents a quadruple of values.

Link copied to clipboard
interface Sizeable2D

Represents an object that has a size in 2D space.

Link copied to clipboard
interface Sizeable3D

Represent an object that has size in 3D space.

Functions

Link copied to clipboard
fun ERROR CLASS: Symbol not found for NativePlacement.allocArrayOf(vararg elements: ERROR CLASS: Symbol not found for UInt): ERROR CLASS: Symbol not found for CArrayPointer<ERROR CLASS: Symbol not found for IntVar>

Allocates an array of unsigned integers in the given NativePlacement and initializes it with the provided elements.

fun ERROR CLASS: Symbol not found for NativePlacement.allocArrayOf(vararg elements: Int): ERROR CLASS: Symbol not found for CArrayPointer<ERROR CLASS: Symbol not found for IntVar>

Allocates an array of integers in the given NativePlacement and initializes it with the provided elements.

Link copied to clipboard
suspend fun Kray(width: Int = 800, height: Int = 600, title: String = "Kray App", entrypoint: suspend Kray.() -> Unit)

The primary entrypoint of a Kray application

Link copied to clipboard
infix fun <A, B, C> ERROR CLASS: Symbol not found for Pair<A, B>.to(third: C): ERROR CLASS: Symbol not found for Triple<A, B, C>

Creates a triplet using the kotlin.to paradigm.

infix fun <A, B, C, D> ERROR CLASS: Symbol not found for Triple<A, B, C>.to(fourth: D): Quadruple<A, B, C, D>

Creates a quadruple using the kotlin.to paradigm.

Link copied to clipboard
fun Collection<Int>.toDynamicArray(): ERROR CLASS: Symbol not found for CPointer<ERROR CLASS: Symbol not found for IntVarOf<kotlin/Int>>

Converts a collection of integers to a dynamically allocated array.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for COpaquePointer.toIntArray(size: Int): IntArray

Converts a COpaquePointer (aka void *) to an integer array.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for COpaquePointer.toUByteArray(size: Int): ERROR CLASS: Symbol not found for UByteArray

Converts a COpaquePointer (aka void *) to an unsigned byte array.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for COpaquePointer.toUIntArray(size: Int): ERROR CLASS: Symbol not found for UIntArray

Converts a COpaquePointer (aka void *) to an unsigned integer array.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for Pair<kotlin/Float, kotlin/Float>.toVector2(): ERROR CLASS: Symbol not found for CValue<ERROR CLASS: Symbol not found for Vector2>

Converts a pair of floats to a raw Vector2.

fun ERROR CLASS: Symbol not found for Pair<kotlin/Int, kotlin/Int>.toVector2(): ERROR CLASS: Symbol not found for CValue<ERROR CLASS: Symbol not found for Vector2>

Converts a pair of integers to a raw Vector2.

Link copied to clipboard
fun ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>.toVector3(): ERROR CLASS: Symbol not found for CValue<ERROR CLASS: Symbol not found for Vector3>

Converts a triplet of floats to a raw Vector3.

fun ERROR CLASS: Symbol not found for Triple<kotlin/Int, kotlin/Int, kotlin/Int>.toVector3(): ERROR CLASS: Symbol not found for CValue<ERROR CLASS: Symbol not found for Vector3>

Converts a triplet of integers to a raw Vector3.