Package org.khronos.webgl
Kotlin JavaScript wrappers for the WebGL API.
Types
ArrayBuffer
Exposes the JavaScript ArrayBuffer to Kotlin
open class ArrayBuffer : BufferDataSource
ArrayBufferView
Exposes the JavaScript ArrayBufferView to Kotlin
interface ArrayBufferView : BufferDataSource
BufferDataSource
interface BufferDataSource
DataView
Exposes the JavaScript DataView to Kotlin
open class DataView : ArrayBufferView
Float32Array
Exposes the JavaScript Float32Array to Kotlin
open class Float32Array : ArrayBufferView
Float64Array
Exposes the JavaScript Float64Array to Kotlin
open class Float64Array : ArrayBufferView
Int16Array
Exposes the JavaScript Int16Array to Kotlin
open class Int16Array : ArrayBufferView
Int32Array
Exposes the JavaScript Int32Array to Kotlin
open class Int32Array : ArrayBufferView
Int8Array
Exposes the JavaScript Int8Array to Kotlin
open class Int8Array : ArrayBufferView
TexImageSource
interface TexImageSource
Uint16Array
Exposes the JavaScript Uint16Array to Kotlin
open class Uint16Array : ArrayBufferView
Uint32Array
Exposes the JavaScript Uint32Array to Kotlin
open class Uint32Array : ArrayBufferView
Uint8Array
Exposes the JavaScript Uint8Array to Kotlin
open class Uint8Array : ArrayBufferView
Uint8ClampedArray
Exposes the JavaScript Uint8ClampedArray to Kotlin
open class Uint8ClampedArray : ArrayBufferView
WebGLActiveInfo
Exposes the JavaScript WebGLActiveInfo to Kotlin
abstract class WebGLActiveInfo
WebGLBuffer
Exposes the JavaScript WebGLBuffer to Kotlin
abstract class WebGLBuffer : WebGLObject
WebGLContextAttributes
interface WebGLContextAttributes
WebGLContextEvent
Exposes the JavaScript WebGLContextEvent to Kotlin
open class WebGLContextEvent : Event
WebGLContextEventInit
interface WebGLContextEventInit : EventInit
WebGLFramebuffer
Exposes the JavaScript WebGLFramebuffer to Kotlin
abstract class WebGLFramebuffer : WebGLObject
WebGLObject
abstract class WebGLObject
WebGLProgram
Exposes the JavaScript WebGLProgram to Kotlin
abstract class WebGLProgram : WebGLObject
WebGLRenderbuffer
Exposes the JavaScript WebGLRenderbuffer to Kotlin
abstract class WebGLRenderbuffer : WebGLObject
WebGLRenderingContext
Exposes the JavaScript WebGLRenderingContext to Kotlin
abstract class WebGLRenderingContext :
WebGLRenderingContextBase,
RenderingContext
WebGLRenderingContextBase
interface WebGLRenderingContextBase
WebGLShader
Exposes the JavaScript WebGLShader to Kotlin
abstract class WebGLShader : WebGLObject
WebGLShaderPrecisionFormat
Exposes the JavaScript WebGLShaderPrecisionFormat to Kotlin
abstract class WebGLShaderPrecisionFormat
WebGLTexture
Exposes the JavaScript WebGLTexture to Kotlin
abstract class WebGLTexture : WebGLObject
WebGLUniformLocation
Exposes the JavaScript WebGLUniformLocation to Kotlin
abstract class WebGLUniformLocation
Functions
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
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)
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
WebGLContextEventInit
fun WebGLContextEventInit(
statusMessage: String? = "",
bubbles: Boolean? = false,
cancelable: Boolean? = false,
composed: Boolean? = false
): WebGLContextEventInit