Package org.khronos.webgl

Kotlin JavaScript wrappers for the WebGL API.

Types

JS
1.1

ArrayBuffer

Exposes the JavaScript ArrayBuffer to Kotlin

open class ArrayBuffer : BufferDataSource
JS
1.1

ArrayBufferView

Exposes the JavaScript ArrayBufferView to Kotlin

interface ArrayBufferView : BufferDataSource
JS
1.1

BufferDataSource

interface BufferDataSource
JS
1.1

DataView

Exposes the JavaScript DataView to Kotlin

open class DataView : ArrayBufferView
JS
1.1

Float32Array

Exposes the JavaScript Float32Array to Kotlin

open class Float32Array : ArrayBufferView
JS
1.1

Float64Array

Exposes the JavaScript Float64Array to Kotlin

open class Float64Array : ArrayBufferView
JS
1.1

Int16Array

Exposes the JavaScript Int16Array to Kotlin

open class Int16Array : ArrayBufferView
JS
1.1

Int32Array

Exposes the JavaScript Int32Array to Kotlin

open class Int32Array : ArrayBufferView
JS
1.1

Int8Array

Exposes the JavaScript Int8Array to Kotlin

open class Int8Array : ArrayBufferView
JS
1.1

TexImageSource

interface TexImageSource
JS
1.1

Uint16Array

Exposes the JavaScript Uint16Array to Kotlin

open class Uint16Array : ArrayBufferView
JS
1.1

Uint32Array

Exposes the JavaScript Uint32Array to Kotlin

open class Uint32Array : ArrayBufferView
JS
1.1

Uint8Array

Exposes the JavaScript Uint8Array to Kotlin

open class Uint8Array : ArrayBufferView
JS
1.1

Uint8ClampedArray

Exposes the JavaScript Uint8ClampedArray to Kotlin

open class Uint8ClampedArray : ArrayBufferView
JS
1.1

WebGLActiveInfo

Exposes the JavaScript WebGLActiveInfo to Kotlin

abstract class WebGLActiveInfo
JS
1.1

WebGLBuffer

Exposes the JavaScript WebGLBuffer to Kotlin

abstract class WebGLBuffer : WebGLObject
JS
1.1

WebGLContextAttributes

interface WebGLContextAttributes
JS
1.1

WebGLContextEvent

Exposes the JavaScript WebGLContextEvent to Kotlin

open class WebGLContextEvent : Event
JS
1.1

WebGLContextEventInit

interface WebGLContextEventInit : EventInit
JS
1.1

WebGLFramebuffer

Exposes the JavaScript WebGLFramebuffer to Kotlin

abstract class WebGLFramebuffer : WebGLObject
JS
1.1

WebGLObject

abstract class WebGLObject
JS
1.1

WebGLProgram

Exposes the JavaScript WebGLProgram to Kotlin

abstract class WebGLProgram : WebGLObject
JS
1.1

WebGLRenderbuffer

Exposes the JavaScript WebGLRenderbuffer to Kotlin

abstract class WebGLRenderbuffer : WebGLObject
JS
1.1

WebGLRenderingContext

Exposes the JavaScript WebGLRenderingContext to Kotlin

abstract class WebGLRenderingContext :
WebGLRenderingContextBase ,
RenderingContext
JS
1.1

WebGLRenderingContextBase

interface WebGLRenderingContextBase
JS
1.1

WebGLShader

Exposes the JavaScript WebGLShader to Kotlin

abstract class WebGLShader : WebGLObject
JS
1.1

WebGLShaderPrecisionFormat

Exposes the JavaScript WebGLShaderPrecisionFormat to Kotlin

abstract class WebGLShaderPrecisionFormat
JS
1.1

WebGLTexture

Exposes the JavaScript WebGLTexture to Kotlin

abstract class WebGLTexture : WebGLObject
JS
1.1

WebGLUniformLocation

Exposes the JavaScript WebGLUniformLocation to Kotlin

abstract class WebGLUniformLocation

Functions

JS
1.1

get

operator fun Int8Array . get ( index : Int ) : Byte
operator fun Uint8Array . get ( index : Int ) : Byte
operator fun Uint8ClampedArray . get ( index : Int ) : Byte
operator fun Int16Array . get ( index : Int ) : Short
operator fun Uint16Array . get ( index : Int ) : Short
operator fun Int32Array . get ( index : Int ) : Int
operator fun Uint32Array . get ( index : Int ) : Int
operator fun Float32Array . get ( index : Int ) : Float
operator fun Float64Array . get ( index : Int ) : Double
JS
1.1

set

operator fun Int8Array . set ( index : Int , value : Byte )
operator fun Uint8Array . set ( index : Int , value : Byte )
operator fun Uint8ClampedArray . set ( index : Int , value : Byte )
operator fun Int16Array . set ( index : Int , value : Short )
operator fun Uint16Array . set ( index : Int , value : Short )
operator fun Int32Array . set ( index : Int , value : Int )
operator fun Uint32Array . set ( index : Int , value : Int )
operator fun Float32Array . set ( index : Int , value : Float )
operator fun Float64Array . set ( index : Int , value : Double )
JS
1.1

WebGLContextAttributes

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
JS
1.1

WebGLContextEventInit

fun WebGLContextEventInit (
statusMessage : String ? = "" ,
bubbles : Boolean ? = false ,
cancelable : Boolean ? = false ,
composed : Boolean ? = false
) : WebGLContextEventInit