Package-level declarations

Kotlin JavaScript wrappers for the WebGL API.

Types

Link copied to clipboard
open external class ArrayBuffer(length: Int) : BufferDataSource

Exposes the JavaScript ArrayBuffer to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface ArrayBufferView : BufferDataSource

Exposes the JavaScript ArrayBufferView to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface BufferDataSource
Since Kotlin 1.1
Link copied to clipboard
open external class DataView(buffer: ArrayBuffer, byteOffset: Int = definedExternally, byteLength: Int = definedExternally) : ArrayBufferView

Exposes the JavaScript DataView to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Float32Array : ArrayBufferView

Exposes the JavaScript Float32Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Float64Array : ArrayBufferView

Exposes the JavaScript Float64Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Int16Array : ArrayBufferView

Exposes the JavaScript Int16Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Int32Array : ArrayBufferView

Exposes the JavaScript Int32Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Int8Array : ArrayBufferView

Exposes the JavaScript Int8Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface TexImageSource
Since Kotlin 1.1
Link copied to clipboard
open external class Uint16Array : ArrayBufferView

Exposes the JavaScript Uint16Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Uint32Array : ArrayBufferView

Exposes the JavaScript Uint32Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Uint8Array : ArrayBufferView

Exposes the JavaScript Uint8Array to Kotlin

Since Kotlin 1.1
Link copied to clipboard
open external class Uint8ClampedArray : ArrayBufferView

Exposes the JavaScript Uint8ClampedArray to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLActiveInfo

Exposes the JavaScript WebGLActiveInfo to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLBuffer : WebGLObject

Exposes the JavaScript WebGLBuffer to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface WebGLContextAttributes
Since Kotlin 1.1
Link copied to clipboard
open external class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = definedExternally) : Event

Exposes the JavaScript WebGLContextEvent to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface WebGLContextEventInit : EventInit
Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLFramebuffer : WebGLObject

Exposes the JavaScript WebGLFramebuffer to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLObject
Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLProgram : WebGLObject

Exposes the JavaScript WebGLProgram to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLRenderbuffer : WebGLObject

Exposes the JavaScript WebGLRenderbuffer to Kotlin

Since Kotlin 1.1
Link copied to clipboard

Exposes the JavaScript WebGLRenderingContext to Kotlin

Since Kotlin 1.1
Link copied to clipboard
external interface WebGLRenderingContextBase
Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLShader : WebGLObject

Exposes the JavaScript WebGLShader to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLShaderPrecisionFormat

Exposes the JavaScript WebGLShaderPrecisionFormat to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLTexture : WebGLObject

Exposes the JavaScript WebGLTexture to Kotlin

Since Kotlin 1.1
Link copied to clipboard
abstract external class WebGLUniformLocation

Exposes the JavaScript WebGLUniformLocation to Kotlin

Since Kotlin 1.1

Functions

Link copied to clipboard
inline operator fun Float32Array.get(index: Int): Float
inline operator fun Float64Array.get(index: Int): Double
inline operator fun Int16Array.get(index: Int): Short
inline operator fun Int32Array.get(index: Int): Int
inline operator fun Int8Array.get(index: Int): Byte
inline operator fun Uint16Array.get(index: Int): Short
inline operator fun Uint32Array.get(index: Int): Int
inline operator fun Uint8Array.get(index: Int): Byte
inline operator fun Uint8ClampedArray.get(index: Int): Byte
Since Kotlin 1.1
Link copied to clipboard
inline operator fun Float32Array.set(index: Int, value: Float)
inline operator fun Float64Array.set(index: Int, value: Double)
inline operator fun Int16Array.set(index: Int, value: Short)
inline operator fun Int32Array.set(index: Int, value: Int)
inline operator fun Int8Array.set(index: Int, value: Byte)
inline operator fun Uint16Array.set(index: Int, value: Short)
inline operator fun Uint32Array.set(index: Int, value: Int)
inline operator fun Uint8Array.set(index: Int, value: Byte)
inline operator fun Uint8ClampedArray.set(index: Int, value: Byte)
Since Kotlin 1.1
Link copied to clipboard
inline fun WebGLContextAttributes(alpha: Boolean? = true, depth: Boolean? = true, stencil: Boolean? = false, antialias: Boolean? = true, premultipliedAlpha: Boolean? = true, preserveDrawingBuffer: Boolean? = false, preferLowPowerToHighPerformance: Boolean? = false, failIfMajorPerformanceCaveat: Boolean? = false): WebGLContextAttributes
Since Kotlin 1.1
Link copied to clipboard
inline fun WebGLContextEventInit(statusMessage: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WebGLContextEventInit
Since Kotlin 1.1