GlimpseAdapter

actual class GlimpseAdapter

Glimpse OpenGL adapter.

expect class GlimpseAdapter

Glimpse OpenGL adapter.

actual class GlimpseAdapter

Glimpse OpenGL adapter for the given GL ES 2.0.

Constructors

Link copied to clipboard
fun GlimpseAdapter()
Link copied to clipboard
fun GlimpseAdapter(gles: GL2ES2)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
actual fun booleanOf(value: Int): Boolean

Returns a boolean value for the given integer value.

expect fun booleanOf(value: Int): Boolean

Returns a boolean value for the given integer value.

actual fun booleanOf(value: Int): Boolean

Returns a boolean value for the given integer value.

Link copied to clipboard
actual fun glActiveTexture(textureIndex: Int)

Selects active textureIndex starting with 0.

expect fun glActiveTexture(textureIndex: Int)

Selects active textureIndex starting with 0.

actual fun glActiveTexture(textureIndex: Int)

Selects active textureIndex starting with 0.

Link copied to clipboard
actual fun glAttachShader(programHandle: Int, shaderHandle: Int)

Attaches shader identified by a given shaderHandle to program identified by a given programHandle.

expect fun glAttachShader(programHandle: Int, shaderHandle: Int)

Attaches shader identified by a given shaderHandle to program identified by a given programHandle.

actual fun glAttachShader(programHandle: Int, shaderHandle: Int)

Attaches shader identified by a given shaderHandle to program identified by a given programHandle.

Link copied to clipboard
actual fun glBindBuffer(type: BufferType, bufferHandle: Int)

Binds a given bufferHandle to a given buffer type.

expect fun glBindBuffer(type: BufferType, bufferHandle: Int)

Binds a given bufferHandle to a given buffer type.

actual fun glBindBuffer(type: BufferType, bufferHandle: Int)

Binds a given bufferHandle to a given buffer type.

Link copied to clipboard
actual fun glBindFramebuffer(framebufferHandle: Int)

Binds a given framebufferHandle to a framebuffer target.

expect fun glBindFramebuffer(framebufferHandle: Int)

Binds a given framebufferHandle to a framebuffer target.

actual fun glBindFramebuffer(framebufferHandle: Int)

Binds a given framebufferHandle to a framebuffer target.

Link copied to clipboard
actual fun glBindRenderbuffer(renderbufferHandle: Int)

Binds a given renderbufferHandle to a renderbuffer target.

expect fun glBindRenderbuffer(renderbufferHandle: Int)

Binds a given renderbufferHandle to a renderbuffer target.

actual fun glBindRenderbuffer(renderbufferHandle: Int)

Binds a given renderbufferHandle to a renderbuffer target.

Link copied to clipboard
actual fun glBindTexture(type: TextureType, textureHandle: Int)

Binds a given textureHandle to a given texture type.

expect fun glBindTexture(type: TextureType, textureHandle: Int)

Binds a given textureHandle to a given texture type.

actual fun glBindTexture(type: TextureType, textureHandle: Int)

Binds a given textureHandle to a given texture type.

Link copied to clipboard
actual fun glBlendingFunction(sourceFactor: BlendingFactorFunction, destinationFactor: BlendingFactorFunction)

Sets functions for computing source and destination factors.

expect fun glBlendingFunction(sourceFactor: BlendingFactorFunction, destinationFactor: BlendingFactorFunction)

Sets functions for computing source and destination factors.

actual fun glBlendingFunction(sourceFactor: BlendingFactorFunction, destinationFactor: BlendingFactorFunction)

Sets functions for computing source and destination factors.

Link copied to clipboard
actual fun glBufferData(    type: BufferType,     data: FloatBufferData,     usage: BufferUsage)

Creates a buffer of floating point values and fills it with data.

actual fun glBufferData(    type: BufferType,     data: IntBufferData,     usage: BufferUsage)

Creates a buffer of integer values and fills it with data.

expect fun glBufferData(    type: BufferType,     data: FloatBufferData,     usage: BufferUsage)

Creates a buffer of floating point values and fills it with data.

expect fun glBufferData(    type: BufferType,     data: IntBufferData,     usage: BufferUsage)

Creates a buffer of integer values and fills it with data.

actual fun glBufferData(    type: BufferType,     data: FloatBufferData,     usage: BufferUsage)

Creates a buffer of floating point values and fills it with data.

actual fun glBufferData(    type: BufferType,     data: IntBufferData,     usage: BufferUsage)

Creates a buffer of integer values and fills it with data.

Link copied to clipboard
actual fun glCheckFramebufferStatus(): FramebufferStatus

Returns completeness status of a framebuffer.

expect fun glCheckFramebufferStatus(): FramebufferStatus

Returns completeness status of a framebuffer.

actual fun glCheckFramebufferStatus(): FramebufferStatus

Returns completeness status of a framebuffer.

Link copied to clipboard
actual fun glClear(vararg buffers: ClearableBufferType)

Clears given buffers to the predefined clear values.

expect fun glClear(vararg buffers: ClearableBufferType)

Clears given buffers to the predefined clear values.

actual fun glClear(vararg buffers: ClearableBufferType)

Clears given buffers to the predefined clear values.

Link copied to clipboard
actual fun glClearColor(color: Vec3)

Sets clear values for color buffers to color with alpha channel set to fully opaque.

actual fun glClearColor(color: Vec4)

Sets clear values for color buffers to color.

expect fun glClearColor(color: Vec3)

Sets clear values for color buffers to color with alpha channel set to fully opaque.

expect fun glClearColor(color: Vec4)

Sets clear values for color buffers to color.

actual fun glClearColor(color: Vec3)

Sets clear values for color buffers to color with alpha channel set to fully opaque.

actual fun glClearColor(color: Vec4)

Sets clear values for color buffers to color.

Link copied to clipboard
actual fun glClearDepth(depth: Float)

Sets clear value for the depth buffer to depth.

expect fun glClearDepth(depth: Float)

Sets clear value for the depth buffer to depth.

actual fun glClearDepth(depth: Float)

Sets clear value for the depth buffer to depth.

Link copied to clipboard
actual fun glCompileShader(shaderHandle: Int)

Compiles a shader identified by a given shaderHandle.

expect fun glCompileShader(shaderHandle: Int)

Compiles a shader identified by a given shaderHandle.

actual fun glCompileShader(shaderHandle: Int)

Compiles a shader identified by a given shaderHandle.

Link copied to clipboard
actual fun glCreateProgram(): Int

Creates a program and returns its handle.

expect fun glCreateProgram(): Int

Creates a program and returns its handle.

actual fun glCreateProgram(): Int

Creates a program and returns its handle.

Link copied to clipboard
actual fun glCreateShader(shaderType: ShaderType): Int

Creates a shader of a given shaderType and returns its handle.

expect fun glCreateShader(shaderType: ShaderType): Int

Creates a shader of a given shaderType and returns its handle.

actual fun glCreateShader(shaderType: ShaderType): Int

Creates a shader of a given shaderType and returns its handle.

Link copied to clipboard
actual fun glCullFace(faceCullingMode: FaceCullingMode)

Sets facets to be culled to faceCullingMode.

expect fun glCullFace(faceCullingMode: FaceCullingMode)

Sets facets to be culled to faceCullingMode.

actual fun glCullFace(faceCullingMode: FaceCullingMode)

Sets facets to be culled to faceCullingMode.

Link copied to clipboard
actual fun glDeleteBuffers(bufferHandles: IntArray)

Deletes buffers represented by given bufferHandles.

expect fun glDeleteBuffers(bufferHandles: IntArray)

Deletes buffers represented by given bufferHandles.

actual fun glDeleteBuffers(bufferHandles: IntArray)

Deletes buffers represented by given bufferHandles.

Link copied to clipboard
actual fun glDeleteFramebuffers(framebufferHandles: IntArray)

Deletes framebuffers represented by given framebufferHandles.

expect fun glDeleteFramebuffers(framebufferHandles: IntArray)

Deletes framebuffers represented by given framebufferHandles.

actual fun glDeleteFramebuffers(framebufferHandles: IntArray)

Deletes framebuffers represented by given framebufferHandles.

Link copied to clipboard
actual fun glDeleteProgram(programHandle: Int)

Deletes a program identified by a given programHandle.

expect fun glDeleteProgram(programHandle: Int)

Deletes a program identified by a given programHandle.

actual fun glDeleteProgram(programHandle: Int)

Deletes a program identified by a given programHandle.

Link copied to clipboard
actual fun glDeleteRenderbuffers(renderbufferHandles: IntArray)

Deletes renderbuffers represented by given renderbufferHandles.

expect fun glDeleteRenderbuffers(renderbufferHandles: IntArray)

Deletes renderbuffers represented by given renderbufferHandles.

actual fun glDeleteRenderbuffers(renderbufferHandles: IntArray)

Deletes renderbuffers represented by given renderbufferHandles.

Link copied to clipboard
actual fun glDeleteShader(shaderHandle: Int)

Deletes a shader identified by a given shaderHandle.

expect fun glDeleteShader(shaderHandle: Int)

Deletes a shader identified by a given shaderHandle.

actual fun glDeleteShader(shaderHandle: Int)

Deletes a shader identified by a given shaderHandle.

Link copied to clipboard
actual fun glDeleteTextures(textureHandles: IntArray)

Deletes textures represented by given textureHandles.

expect fun glDeleteTextures(textureHandles: IntArray)

Deletes textures represented by given textureHandles.

actual fun glDeleteTextures(textureHandles: IntArray)

Deletes textures represented by given textureHandles.

Link copied to clipboard
actual fun glDepthTest(depthTestFunction: DepthTestFunction)

Sets the given depthTestFunction.

expect fun glDepthTest(depthTestFunction: DepthTestFunction)

Sets the given depthTestFunction.

actual fun glDepthTest(depthTestFunction: DepthTestFunction)

Sets the given depthTestFunction.

Link copied to clipboard
actual fun glDisableBlending()

Disables blending.

expect fun glDisableBlending()

Disables blending.

actual fun glDisableBlending()

Disables blending.

Link copied to clipboard
actual fun glDisableLineSmooth()

Disables rasterized line anti-aliasing.

expect fun glDisableLineSmooth()

Disables rasterized line anti-aliasing.

actual fun glDisableLineSmooth()

Disables rasterized line anti-aliasing.

Link copied to clipboard
actual fun glDisableProgramPointSize()

Disables setting size of rasterized points in vertex shader.

expect fun glDisableProgramPointSize()

Disables setting size of rasterized points in vertex shader.

actual fun glDisableProgramPointSize()

Disables setting size of rasterized points in vertex shader.

Link copied to clipboard
actual fun glDisableVertexAttribArray(location: Int)

Disables vertex attributes array at a given location for current program.

expect fun glDisableVertexAttribArray(location: Int)

Disables vertex attributes array at a given location for current program.

actual fun glDisableVertexAttribArray(location: Int)

Disables vertex attributes array at a given location for current program.

Link copied to clipboard
actual fun glDrawArrays(    mode: DrawingMode,     count: Int,     offset: Int)

Draws a given number of primitives of type specified by mode, starting with offset.

expect fun glDrawArrays(    mode: DrawingMode,     count: Int,     offset: Int = 0)

Draws a given number of primitives of type specified by mode, starting with offset.

actual fun glDrawArrays(    mode: DrawingMode,     count: Int,     offset: Int)

Draws a given number of primitives of type specified by mode, starting with offset.

Link copied to clipboard
actual fun glDrawElements(    mode: DrawingMode,     count: Int,     offset: Int)

Draws a given number of primitives of type specified by mode, using a buffer of vertex array indices, starting with offset.

expect fun glDrawElements(    mode: DrawingMode,     count: Int,     offset: Int = 0)

Draws a given number of primitives of type specified by mode, using a buffer of vertex array indices, starting with offset.

actual fun glDrawElements(    mode: DrawingMode,     count: Int,     offset: Int)

Draws a given number of primitives of type specified by mode, using a buffer of vertex array indices, starting with offset.

Link copied to clipboard
actual fun glEnableBlending()

Enables blending.

expect fun glEnableBlending()

Enables blending.

actual fun glEnableBlending()

Enables blending.

Link copied to clipboard
actual fun glEnableLineSmooth()

Enables rasterized line anti-aliasing.

expect fun glEnableLineSmooth()

Enables rasterized line anti-aliasing.

actual fun glEnableLineSmooth()

Enables rasterized line anti-aliasing.

Link copied to clipboard
actual fun glEnableProgramPointSize()

Enables setting size of rasterized points in vertex shader.

expect fun glEnableProgramPointSize()

Enables setting size of rasterized points in vertex shader.

actual fun glEnableProgramPointSize()

Enables setting size of rasterized points in vertex shader.

Link copied to clipboard
actual fun glEnableVertexAttribArray(location: Int)

Enables vertex attributes array at a given location for current program.

expect fun glEnableVertexAttribArray(location: Int)

Enables vertex attributes array at a given location for current program.

actual fun glEnableVertexAttribArray(location: Int)

Enables vertex attributes array at a given location for current program.

Link copied to clipboard
actual fun glFramebufferRenderbuffer(attachmentType: FramebufferAttachmentType, renderbufferHandle: Int)

Attaches renderbuffer to a framebuffer.

expect fun glFramebufferRenderbuffer(attachmentType: FramebufferAttachmentType, renderbufferHandle: Int)

Attaches renderbuffer to a framebuffer.

actual fun glFramebufferRenderbuffer(attachmentType: FramebufferAttachmentType, renderbufferHandle: Int)

Attaches renderbuffer to a framebuffer.

Link copied to clipboard
actual fun glFramebufferTexture2D(    attachmentType: FramebufferAttachmentType,     textureType: TextureType,     textureHandle: Int)

Attaches texture image to a framebuffer.

expect fun glFramebufferTexture2D(    attachmentType: FramebufferAttachmentType,     textureType: TextureType,     textureHandle: Int)

Attaches texture image to a framebuffer.

actual fun glFramebufferTexture2D(    attachmentType: FramebufferAttachmentType,     textureType: TextureType,     textureHandle: Int)

Attaches texture image to a framebuffer.

Link copied to clipboard
actual fun glGenBuffers(bufferHandles: IntArray)

Generates buffer handles and writes them to a given bufferHandles array.

expect fun glGenBuffers(bufferHandles: IntArray)

Generates buffer handles and writes them to a given bufferHandles array.

actual fun glGenBuffers(bufferHandles: IntArray)

Generates buffer handles and writes them to a given bufferHandles array.

Link copied to clipboard
actual fun glGenerateMipmap(type: TextureType)

Generates mipmaps for the currently selected texture of a given type.

expect fun glGenerateMipmap(type: TextureType)

Generates mipmaps for the currently selected texture of a given type.

actual fun glGenerateMipmap(type: TextureType)

Generates mipmaps for the currently selected texture of a given type.

Link copied to clipboard
actual fun glGenFramebuffers(framebufferHandles: IntArray)

Generates framebuffer handles and writes them to a given framebufferHandles array.

expect fun glGenFramebuffers(framebufferHandles: IntArray)

Generates framebuffer handles and writes them to a given framebufferHandles array.

actual fun glGenFramebuffers(framebufferHandles: IntArray)

Generates framebuffer handles and writes them to a given framebufferHandles array.

Link copied to clipboard
actual fun glGenRenderbuffers(renderbufferHandles: IntArray)

Generates renderbuffer handles and writes them to a given renderbufferHandles array.

expect fun glGenRenderbuffers(renderbufferHandles: IntArray)

Generates renderbuffer handles and writes them to a given renderbufferHandles array.

actual fun glGenRenderbuffers(renderbufferHandles: IntArray)

Generates renderbuffer handles and writes them to a given renderbufferHandles array.

Link copied to clipboard
actual fun glGenTextures(textureHandles: IntArray)

Generates texture handles and writes them to a given textureHandles array.

expect fun glGenTextures(textureHandles: IntArray)

Generates texture handles and writes them to a given textureHandles array.

actual fun glGenTextures(textureHandles: IntArray)

Generates texture handles and writes them to a given textureHandles array.

Link copied to clipboard
actual fun glGetAttributeLocation(programHandle: Int, name: String): Int

Returns location of attribute variable with a given name from program identified by a given programHandle.

expect fun glGetAttributeLocation(programHandle: Int, name: String): Int

Returns location of attribute variable with a given name from program identified by a given programHandle.

actual fun glGetAttributeLocation(programHandle: Int, name: String): Int

Returns location of attribute variable with a given name from program identified by a given programHandle.

Link copied to clipboard
actual fun glGetProgramDeleteStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been marked for deletion.

expect fun glGetProgramDeleteStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been marked for deletion.

actual fun glGetProgramDeleteStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been marked for deletion.

Link copied to clipboard
actual fun glGetProgramInfoLog(programHandle: Int): String

Returns information log for the program identified by a given programHandle.

expect fun glGetProgramInfoLog(programHandle: Int): String

Returns information log for the program identified by a given programHandle.

actual fun glGetProgramInfoLog(programHandle: Int): String

Returns information log for the program identified by a given programHandle.

Link copied to clipboard
actual fun glGetProgramLinkStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been successfully linked.

expect fun glGetProgramLinkStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been successfully linked.

actual fun glGetProgramLinkStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been successfully linked.

Link copied to clipboard
actual fun glGetProgramValidateStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been successfully validated.

expect fun glGetProgramValidateStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been successfully validated.

actual fun glGetProgramValidateStatus(programHandle: Int): Boolean

Returns true if program identified by a given programHandle has been successfully validated.

Link copied to clipboard
actual fun glGetShaderCompileStatus(shaderHandle: Int): Boolean

Returns true if shader identified by a given shaderHandle has been successfully compiled.

expect fun glGetShaderCompileStatus(shaderHandle: Int): Boolean

Returns true if shader identified by a given shaderHandle has been successfully compiled.

actual fun glGetShaderCompileStatus(shaderHandle: Int): Boolean

Returns true if shader identified by a given shaderHandle has been successfully compiled.

Link copied to clipboard
actual fun glGetShaderDeleteStatus(shaderHandle: Int): Boolean

Returns true if shader identified by a given shaderHandle has been marked for deletion.

expect fun glGetShaderDeleteStatus(shaderHandle: Int): Boolean

Returns true if shader identified by a given shaderHandle has been marked for deletion.

actual fun glGetShaderDeleteStatus(shaderHandle: Int): Boolean

Returns true if shader identified by a given shaderHandle has been marked for deletion.

Link copied to clipboard
actual fun glGetShaderInfoLog(shaderHandle: Int): String

Returns information log for the shader identified by a given shaderHandle.

expect fun glGetShaderInfoLog(shaderHandle: Int): String

Returns information log for the shader identified by a given shaderHandle.

actual fun glGetShaderInfoLog(shaderHandle: Int): String

Returns information log for the shader identified by a given shaderHandle.

Link copied to clipboard
actual fun glGetUniformLocation(programHandle: Int, name: String): Int

Returns location of uniform variable with a given name from program identified by a given programHandle.

expect fun glGetUniformLocation(programHandle: Int, name: String): Int

Returns location of uniform variable with a given name from program identified by a given programHandle.

actual fun glGetUniformLocation(programHandle: Int, name: String): Int

Returns location of uniform variable with a given name from program identified by a given programHandle.

Link copied to clipboard
actual fun glLineWidth(lineWidth: Float)

Sets width of rasterized lines to a given lineWidth.

expect fun glLineWidth(lineWidth: Float)

Sets width of rasterized lines to a given lineWidth.

actual fun glLineWidth(lineWidth: Float)

Sets width of rasterized lines to a given lineWidth.

Link copied to clipboard
actual fun glLinkProgram(programHandle: Int)

Links program identified by a given programHandle.

expect fun glLinkProgram(programHandle: Int)

Links program identified by a given programHandle.

actual fun glLinkProgram(programHandle: Int)

Links program identified by a given programHandle.

Link copied to clipboard
actual fun glMaxTextureSize(type: TextureType): Int

Gets maximum size of a texture of a given type.

expect fun glMaxTextureSize(type: TextureType): Int

Gets maximum size of a texture of a given type.

actual fun glMaxTextureSize(type: TextureType): Int

Gets maximum size of a texture of a given type.

Link copied to clipboard
actual fun glReadPixels(    x: Int,     y: Int,     width: Int,     height: Int,     format: PixelFormat): ByteArray

Reads pixels from frame buffer.

expect fun glReadPixels(    x: Int = 0,     y: Int = 0,     width: Int,     height: Int,     format: PixelFormat = PixelFormat.RGBA): ByteArray

Reads pixels from frame buffer.

actual fun glReadPixels(    x: Int,     y: Int,     width: Int,     height: Int,     format: PixelFormat): ByteArray

Reads pixels from frame buffer.

Link copied to clipboard
actual fun glRenderbufferStorage(    internalFormat: TextureInternalFormat,     width: Int,     height: Int)

Specifies format and dimensions of the image in renderbuffer.

expect fun glRenderbufferStorage(    internalFormat: TextureInternalFormat,     width: Int,     height: Int)

Specifies format and dimensions of the image in renderbuffer.

actual fun glRenderbufferStorage(    internalFormat: TextureInternalFormat,     width: Int,     height: Int)

Specifies format and dimensions of the image in renderbuffer.

Link copied to clipboard
actual fun glShaderSource(shaderHandle: Int, source: String)

Sets source of the shader identified by a given shaderHandle.

expect fun glShaderSource(shaderHandle: Int, source: String)

Sets source of the shader identified by a given shaderHandle.

actual fun glShaderSource(shaderHandle: Int, source: String)

Sets source of the shader identified by a given shaderHandle.

Link copied to clipboard
actual fun glTexImage2D(    internalFormat: TextureInternalFormat,     width: Int,     height: Int,     pixelFormat: TexturePixelFormat,     pixelType: TexturePixelType,     pixelData: ByteArray?)

Specifies a 2D texture image.

expect fun glTexImage2D(    internalFormat: TextureInternalFormat,     width: Int,     height: Int,     pixelFormat: TexturePixelFormat,     pixelType: TexturePixelType,     pixelData: ByteArray?)

Specifies a 2D texture image.

actual fun glTexImage2D(    internalFormat: TextureInternalFormat,     width: Int,     height: Int,     pixelFormat: TexturePixelFormat,     pixelType: TexturePixelType,     pixelData: ByteArray?)

Specifies a 2D texture image.

Link copied to clipboard
actual fun glTexParameterFilter(    type: TextureType,     minFilter: TextureMinFilter,     magFilter: TextureMagFilter)

Sets texture minifying and magnifying filters for the currently selected texture of a given type.

expect fun glTexParameterFilter(    type: TextureType,     minFilter: TextureMinFilter,     magFilter: TextureMagFilter)

Sets texture minifying and magnifying filters for the currently selected texture of a given type.

actual fun glTexParameterFilter(    type: TextureType,     minFilter: TextureMinFilter,     magFilter: TextureMagFilter)

Sets texture minifying and magnifying filters for the currently selected texture of a given type.

Link copied to clipboard
actual fun glTexParameterWrap(    type: TextureType,     wrapS: TextureWrap,     wrapT: TextureWrap)

Sets wrap parameter for texture coordinates S and T for the currently selected texture of a given type.

expect fun glTexParameterWrap(    type: TextureType,     wrapS: TextureWrap,     wrapT: TextureWrap)

Sets wrap parameter for texture coordinates S and T for the currently selected texture of a given type.

actual fun glTexParameterWrap(    type: TextureType,     wrapS: TextureWrap,     wrapT: TextureWrap)

Sets wrap parameter for texture coordinates S and T for the currently selected texture of a given type.

Link copied to clipboard
actual fun glTextureIndices(): IntRange

Returns a range of indices supported by glActiveTexture.

expect fun glTextureIndices(): IntRange

Returns a range of indices supported by glActiveTexture.

actual fun glTextureIndices(): IntRange

Returns a range of indices supported by glActiveTexture.

Link copied to clipboard
actual fun glUniform(location: Int, value: Vec2)

Sets value of 2D vector uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Vec3)

Sets value of 3D vector uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Vec4)

Sets value of 4D vector uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Vec2)

Sets values of 2D vector array uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Vec3)

Sets values of 3D vector array uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Vec4)

Sets values of 4D vector array uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Boolean)

Sets value of boolean uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Float)

Sets value of floating point uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Float)

Sets values of floating point array uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Int)

Sets value of integer uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Int)

Sets values of integer array uniform variable at a given location for current program.

actual fun glUniform(    location: Int,     vararg values: Mat2,     transpose: Boolean)

Sets values of 2×2 matrix array uniform variable at a given location for current program.

actual fun glUniform(    location: Int,     vararg values: Mat3,     transpose: Boolean)

Sets values of 3×3 matrix array uniform variable at a given location for current program.

actual fun glUniform(    location: Int,     vararg values: Mat4,     transpose: Boolean)

Sets values of 4×4 matrix array uniform variable at a given location for current program.

expect fun glUniform(location: Int, value: Vec2)

Sets value of 2D vector uniform variable at a given location for current program.

expect fun glUniform(location: Int, value: Vec3)

Sets value of 3D vector uniform variable at a given location for current program.

expect fun glUniform(location: Int, value: Vec4)

Sets value of 4D vector uniform variable at a given location for current program.

expect fun glUniform(location: Int, vararg values: Vec2)

Sets values of 2D vector array uniform variable at a given location for current program.

expect fun glUniform(location: Int, vararg values: Vec3)

Sets values of 3D vector array uniform variable at a given location for current program.

expect fun glUniform(location: Int, vararg values: Vec4)

Sets values of 4D vector array uniform variable at a given location for current program.

expect fun glUniform(location: Int, value: Boolean)

Sets value of boolean uniform variable at a given location for current program.

expect fun glUniform(location: Int, value: Float)

Sets value of floating point uniform variable at a given location for current program.

expect fun glUniform(location: Int, vararg values: Float)

Sets values of floating point array uniform variable at a given location for current program.

expect fun glUniform(location: Int, value: Int)

Sets value of integer uniform variable at a given location for current program.

expect fun glUniform(location: Int, vararg values: Int)

Sets values of integer array uniform variable at a given location for current program.

expect fun glUniform(    location: Int,     vararg values: Mat2,     transpose: Boolean = false)

Sets values of 2×2 matrix array uniform variable at a given location for current program.

expect fun glUniform(    location: Int,     vararg values: Mat3,     transpose: Boolean = false)

Sets values of 3×3 matrix array uniform variable at a given location for current program.

expect fun glUniform(    location: Int,     vararg values: Mat4,     transpose: Boolean = false)

Sets values of 4×4 matrix array uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Vec2)

Sets value of 2D vector uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Vec3)

Sets value of 3D vector uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Vec4)

Sets value of 4D vector uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Vec2)

Sets values of 2D vector array uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Vec3)

Sets values of 3D vector array uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Vec4)

Sets values of 4D vector array uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Boolean)

Sets value of boolean uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Float)

Sets value of floating point uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Float)

Sets values of floating point array uniform variable at a given location for current program.

actual fun glUniform(location: Int, value: Int)

Sets value of integer uniform variable at a given location for current program.

actual fun glUniform(location: Int, vararg values: Int)

Sets values of integer array uniform variable at a given location for current program.

actual fun glUniform(    location: Int,     vararg values: Mat2,     transpose: Boolean)

Sets values of 2×2 matrix array uniform variable at a given location for current program.

actual fun glUniform(    location: Int,     vararg values: Mat3,     transpose: Boolean)

Sets values of 3×3 matrix array uniform variable at a given location for current program.

actual fun glUniform(    location: Int,     vararg values: Mat4,     transpose: Boolean)

Sets values of 4×4 matrix array uniform variable at a given location for current program.

Link copied to clipboard
actual fun glUseProgram(programHandle: Int)

Uses a program identified by a given programHandle.

expect fun glUseProgram(programHandle: Int)

Uses a program identified by a given programHandle.

actual fun glUseProgram(programHandle: Int)

Uses a program identified by a given programHandle.

Link copied to clipboard
actual fun glValidateProgram(programHandle: Int)

Validates program identified by a given programHandle.

expect fun glValidateProgram(programHandle: Int)

Validates program identified by a given programHandle.

actual fun glValidateProgram(programHandle: Int)

Validates program identified by a given programHandle.

Link copied to clipboard
actual fun glVertexAttribPointer(    location: Int,     vectorSize: Int,     normalized: Boolean,     stride: Int,     offset: Int)

Sets vertex attributes array at a given location for current program.

expect fun glVertexAttribPointer(    location: Int,     vectorSize: Int,     normalized: Boolean = false,     stride: Int = 0,     offset: Int = 0)

Sets vertex attributes array at a given location for current program.

actual fun glVertexAttribPointer(    location: Int,     vectorSize: Int,     normalized: Boolean,     stride: Int,     offset: Int)

Sets vertex attributes array at a given location for current program.

Link copied to clipboard
actual fun glViewport(    x: Int,     y: Int,     width: Int,     height: Int)

Sets the viewport to have its bottom-left corner at (x, y), and a given width and height.

expect fun glViewport(    x: Int = 0,     y: Int = 0,     width: Int,     height: Int)

Sets the viewport to have its bottom-left corner at (x, y), and a given width and height.

actual fun glViewport(    x: Int,     y: Int,     width: Int,     height: Int)

Sets the viewport to have its bottom-left corner at (x, y), and a given width and height.

Link copied to clipboard
actual fun glVSync(vSync: VSync): Boolean

Sets given vSync mode.

expect fun glVSync(vSync: VSync): Boolean

Sets given vSync mode.

actual fun glVSync(vSync: VSync): Boolean

Sets given vSync mode.

Extensions

Link copied to clipboard
fun GlimpseAdapter.createBitmap(    x: Int = 0,     y: Int = 0,     width: Int,     height: Int): Bitmap

Creates a new Bitmap from the rendered image.

Link copied to clipboard
fun GlimpseAdapter.createImage(    x: Int = 0,     y: Int = 0,     width: Int,     height: Int): Image

Creates a new Image from the rendered image.

Link copied to clipboard
inline fun GlimpseAdapter.withFramebuffer(framebuffer: Framebuffer, crossinline block: GlimpseAdapter.() -> Unit)

Runs block of instructions with given framebuffer bound.