Constructors

Link copied to clipboard
actual constructor(surfaceView: ZSurfaceView)
actual constructor(surfaceView: ZSurfaceView)
expect constructor(surfaceView: ZSurfaceView)

Properties

surfaceView
Link copied to clipboard

Functions

Link copied to clipboard
actual fun activeTexture()
actual fun activeTexture()
expect fun activeTexture()
Link copied to clipboard
actual fun attachShader(program: GLWrap, shader: GLWrap)
actual fun attachShader(program: GLWrap, shader: GLWrap)
expect fun attachShader(program: GLWrap, shader: GLWrap)
Link copied to clipboard
actual fun bindAttribLocation(program: GLWrap, index: Int, attrName: String)
actual fun bindAttribLocation(program: GLWrap, index: Int, attrName: String)
expect fun bindAttribLocation(program: GLWrap, index: Int, attrName: String)
Link copied to clipboard
actual fun bindBuffer(targetType: BufferTargetType, buffer: GLWrap)
actual fun bindBuffer(targetType: BufferTargetType, buffer: GLWrap)
expect fun bindBuffer(targetType: BufferTargetType, buffer: GLWrap)
Link copied to clipboard
actual fun bindBufferBase(targetType: BufferTargetType, uniformBlockIndex: GLWrap, uniformBufferObject: GLWrap)
actual fun bindBufferBase(targetType: BufferTargetType, uniformBlockIndex: GLWrap, uniformBufferObject: GLWrap)
expect fun bindBufferBase(targetType: BufferTargetType, uniformBlockIndex: GLWrap, uniformBufferObject: GLWrap)
Link copied to clipboard
actual fun bindTexture(texture: GLWrap)
actual fun bindTexture(texture: GLWrap)
expect fun bindTexture(texture: GLWrap)
Link copied to clipboard
actual fun bindVertexArray(vao: GLWrap)
actual fun bindVertexArray(vao: GLWrap)
expect fun bindVertexArray(vao: GLWrap)
Link copied to clipboard
actual fun bufferData(targetType: BufferTargetType, dataArray: ByteArray, usageType: BufferUsageType)
actual fun bufferData(targetType: BufferTargetType, byteSize: Int, usageType: BufferUsageType)
actual fun bufferData(targetType: BufferTargetType, dataArray: ByteArray, usageType: BufferUsageType)
actual fun bufferData(targetType: BufferTargetType, byteSize: Int, usageType: BufferUsageType)
expect fun bufferData(targetType: BufferTargetType, dataArray: ByteArray, usageType: BufferUsageType)
expect fun bufferData(targetType: BufferTargetType, byteSize: Int, usageType: BufferUsageType)
Link copied to clipboard
actual fun clear(buffer: Int)
actual fun clear(buffer: Int)
expect fun clear(buffer: Int)
Link copied to clipboard
actual fun clearColor(r: Float, g: Float, b: Float, a: Float)
actual fun clearColor(r: Float, g: Float, b: Float, a: Float)
expect fun clearColor(r: Float, g: Float, b: Float, a: Float)

Viewport

Link copied to clipboard
actual fun compileShader(shader: GLWrap)
actual fun compileShader(shader: GLWrap)
expect fun compileShader(shader: GLWrap)
Link copied to clipboard
actual fun createBuffer(): GLWrap
actual fun createBuffer(): GLWrap
expect fun createBuffer(): GLWrap

VBO

Link copied to clipboard
actual fun createProgram(): GLWrap
actual fun createProgram(): GLWrap
expect fun createProgram(): GLWrap

ShaderProgram

Link copied to clipboard
actual fun createShader(shaderType: Int): GLWrap
actual fun createShader(shaderType: Int): GLWrap
expect fun createShader(shaderType: Int): GLWrap
Link copied to clipboard

VAO

Link copied to clipboard
actual fun cullFace(mode: Int)
actual fun cullFace(mode: Int)
expect fun cullFace(mode: Int)
Link copied to clipboard
actual fun deleteShader(shader: GLWrap)
actual fun deleteShader(shader: GLWrap)
expect fun deleteShader(shader: GLWrap)
Link copied to clipboard
actual fun drawArrays(mode: Int, first: Int, count: Int)
actual fun drawArrays(mode: Int, first: Int, count: Int)
expect fun drawArrays(mode: Int, first: Int, count: Int)

Draw

Link copied to clipboard
actual fun drawElements(mode: Int, count: Int, type: Int, offset: Int)
actual fun drawElements(mode: Int, count: Int, type: Int, offset: Int)
expect fun drawElements(mode: Int, count: Int, type: Int, offset: Int)
Link copied to clipboard
actual fun enable(feat: Int)
actual fun enable(feat: Int)
expect fun enable(feat: Int)

Commons

Link copied to clipboard
actual fun enableVertexAttrib(index: Int)
actual fun enableVertexAttrib(index: Int)
expect fun enableVertexAttrib(index: Int)
Link copied to clipboard
actual fun enableVertexAttribArray(index: Int)
actual fun enableVertexAttribArray(index: Int)
expect fun enableVertexAttribArray(index: Int)
Link copied to clipboard
actual fun genTexture(): GLWrap

Textures

actual fun genTexture(): GLWrap

Textures

expect fun genTexture(): GLWrap

Textures

Link copied to clipboard
actual fun getAttribLocation(program: GLWrap, attrName: String): Int
actual fun getAttribLocation(program: GLWrap, attrName: String): Int
expect fun getAttribLocation(program: GLWrap, attrName: String): Int
Link copied to clipboard
actual fun getError(): Int
actual fun getError(): Int
expect fun getError(): Int
Link copied to clipboard
actual fun getShaderInfoLog(shader: GLWrap): String
actual fun getShaderInfoLog(shader: GLWrap): String
expect fun getShaderInfoLog(shader: GLWrap): String
Link copied to clipboard
actual fun getUniformBlockIndex(program: GLWrap, uniformBlockName: String): GLWrap
actual fun getUniformBlockIndex(program: GLWrap, uniformBlockName: String): GLWrap
expect fun getUniformBlockIndex(program: GLWrap, uniformBlockName: String): GLWrap
Link copied to clipboard
actual fun getUniformLocation(program: GLWrap, uniformName: String): GLWrap
actual fun getUniformLocation(program: GLWrap, uniformName: String): GLWrap
expect fun getUniformLocation(program: GLWrap, uniformName: String): GLWrap

UNIFORMS

Link copied to clipboard
actual open override fun initWithSurfaceView(surfaceView: ZSurfaceView)
actual open override fun initWithSurfaceView(surfaceView: ZSurfaceView)
expect open override fun initWithSurfaceView(surfaceView: ZSurfaceView)
Link copied to clipboard
actual fun linkProgram(program: GLWrap)
actual fun linkProgram(program: GLWrap)
expect fun linkProgram(program: GLWrap)
Link copied to clipboard
Link copied to clipboard
actual fun shaderSource(shader: GLWrap, source: String)
actual fun shaderSource(shader: GLWrap, source: String)
expect fun shaderSource(shader: GLWrap, source: String)
Link copied to clipboard
actual fun texImage2D(bitmap: ZBitmap)
actual fun texImage2D(bitmap: ZBitmap)
expect fun texImage2D(bitmap: ZBitmap)
Link copied to clipboard
actual fun texParameterMag()
actual fun texParameterMag()
expect fun texParameterMag()
Link copied to clipboard
actual fun texParameterMin()
actual fun texParameterMin()
expect fun texParameterMin()
Link copied to clipboard
actual fun uniformMatrix4fv(uniform: GLWrap, count: Int, transpose: Boolean, values: FloatArray)
actual fun uniformMatrix4fv(uniform: GLWrap, count: Int, transpose: Boolean, values: FloatArray)
expect fun uniformMatrix4fv(uniform: GLWrap, count: Int, transpose: Boolean, values: FloatArray)
Link copied to clipboard
actual fun useProgram(program: GLWrap)
actual fun useProgram(program: GLWrap)
expect fun useProgram(program: GLWrap)
Link copied to clipboard
actual fun vertexAttribPointer(index: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int)
actual fun vertexAttribPointer(index: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int)
expect fun vertexAttribPointer(index: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int)
Link copied to clipboard
actual fun viewport(top: Int, left: Int, width: Int, height: Int)
actual fun viewport(top: Int, left: Int, width: Int, height: Int)
expect fun viewport(top: Int, left: Int, width: Int, height: Int)