Package org.khronos.webgl

Kotlin JavaScript wrappers for the WebGL API.

Types

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

Exposes the JavaScript ArrayBuffer to Kotlin

ArrayBufferView
Link copied to clipboard
external interface ArrayBufferView : BufferDataSource

Exposes the JavaScript ArrayBufferView to Kotlin

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

Exposes the JavaScript DataView to Kotlin

Float32Array
Link copied to clipboard
open external class Float32Array : ArrayBufferView

Exposes the JavaScript Float32Array to Kotlin

Float64Array
Link copied to clipboard
open external class Float64Array : ArrayBufferView

Exposes the JavaScript Float64Array to Kotlin

Int16Array
Link copied to clipboard
open external class Int16Array : ArrayBufferView

Exposes the JavaScript Int16Array to Kotlin

Int32Array
Link copied to clipboard
open external class Int32Array : ArrayBufferView

Exposes the JavaScript Int32Array to Kotlin

Int8Array
Link copied to clipboard
open external class Int8Array : ArrayBufferView

Exposes the JavaScript Int8Array to Kotlin

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

Exposes the JavaScript Uint16Array to Kotlin

Uint32Array
Link copied to clipboard
open external class Uint32Array : ArrayBufferView

Exposes the JavaScript Uint32Array to Kotlin

Uint8Array
Link copied to clipboard
open external class Uint8Array : ArrayBufferView

Exposes the JavaScript Uint8Array to Kotlin

Uint8ClampedArray
Link copied to clipboard
open external class Uint8ClampedArray : ArrayBufferView

Exposes the JavaScript Uint8ClampedArray to Kotlin

WebGLActiveInfo
Link copied to clipboard
abstract external class WebGLActiveInfo

Exposes the JavaScript WebGLActiveInfo to Kotlin

WebGLBuffer
Link copied to clipboard
abstract external class WebGLBuffer : WebGLObject

Exposes the JavaScript WebGLBuffer to Kotlin

WebGLContextAttributes
Link copied to clipboard
external interface WebGLContextAttributes
WebGLContextEvent
Link copied to clipboard
open external class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit) : Event

Exposes the JavaScript WebGLContextEvent to Kotlin

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

Exposes the JavaScript WebGLFramebuffer to Kotlin

WebGLObject
Link copied to clipboard
abstract external class WebGLObject
WebGLProgram
Link copied to clipboard
abstract external class WebGLProgram : WebGLObject

Exposes the JavaScript WebGLProgram to Kotlin

WebGLRenderbuffer
Link copied to clipboard
abstract external class WebGLRenderbuffer : WebGLObject

Exposes the JavaScript WebGLRenderbuffer to Kotlin

WebGLRenderingContext
Link copied to clipboard
abstract external class WebGLRenderingContext : WebGLRenderingContextBase, RenderingContext

Exposes the JavaScript WebGLRenderingContext to Kotlin

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

Exposes the JavaScript WebGLShader to Kotlin

WebGLShaderPrecisionFormat
Link copied to clipboard
abstract external class WebGLShaderPrecisionFormat

Exposes the JavaScript WebGLShaderPrecisionFormat to Kotlin

WebGLTexture
Link copied to clipboard
abstract external class WebGLTexture : WebGLObject

Exposes the JavaScript WebGLTexture to Kotlin

WebGLUniformLocation
Link copied to clipboard
abstract external class WebGLUniformLocation

Exposes the JavaScript WebGLUniformLocation to Kotlin

Functions

get
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
set
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)
WebGLContextAttributes
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
WebGLContextEventInit
Link copied to clipboard
inline fun WebGLContextEventInit(statusMessage: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WebGLContextEventInit