ZGLRenderingContext

actual class ZGLRenderingContext(val surfaceView: ZSurfaceView) : ZRenderingContext(source)

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
actual fun activeTexture()
expect fun activeTexture()
Link copied to clipboard
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)
expect fun bindAttribLocation(program: GLWrap, index: Int, attrName: String)
Link copied to clipboard
actual fun bindBuffer(targetType: BufferTargetType, buffer: GLWrap)
expect fun bindBuffer(targetType: BufferTargetType, buffer: GLWrap)
Link copied to clipboard
actual fun bindBufferBase(targetType: BufferTargetType, uniformBlockBinding: Int, uniformBufferObject: GLWrap)
expect fun bindBufferBase(targetType: BufferTargetType, uniformBlockBinding: Int, uniformBufferObject: GLWrap)
Link copied to clipboard
actual fun bindTexture(texture: GLWrap)
expect fun bindTexture(texture: GLWrap)
Link copied to clipboard
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)
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)
expect fun clear(buffer: Int)
Link copied to clipboard
actual fun clearColor(r: Float, g: Float, b: Float, a: Float)

Viewport

expect fun clearColor(r: Float, g: Float, b: Float, a: Float)

Viewport

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

VBO

expect fun createBuffer(): GLWrap

VBO

Link copied to clipboard
actual fun createProgram(): GLWrap

ShaderProgram

expect fun createProgram(): GLWrap

ShaderProgram

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

VAO

VAO

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

Draw

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)
expect fun drawElements(mode: Int, count: Int, type: Int, offset: Int)
Link copied to clipboard
actual fun enable(feat: Int)

Commons

expect fun enable(feat: Int)

Commons

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

Textures

expect fun genTexture(): GLWrap

Textures

Link copied to clipboard
actual fun getAttribLocation(program: GLWrap, attrName: String): Int
expect fun getAttribLocation(program: GLWrap, attrName: String): Int
Link copied to clipboard
actual fun getError(): Int
expect fun getError(): Int
Link copied to clipboard
actual fun getShaderInfoLog(shader: GLWrap): String
expect fun getShaderInfoLog(shader: GLWrap): String
Link copied to clipboard
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

UNIFORMS

expect fun getUniformLocation(program: GLWrap, uniformName: String): GLWrap

UNIFORMS

Link copied to clipboard
actual open override fun initWithSurfaceView(surfaceView: ZSurfaceView)
expect open override fun initWithSurfaceView(surfaceView: ZSurfaceView)
Link copied to clipboard
actual fun linkProgram(program: GLWrap)
expect fun linkProgram(program: GLWrap)
Link copied to clipboard
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(internalFormat: Int, width: Int, height: Int, format: Int, pixelType: Int, pixels: ByteArray)
expect fun texImage2D(bitmap: ZBitmap)
expect fun texImage2D(internalFormat: Int, width: Int, height: Int, format: Int, pixelType: Int, pixels: ByteArray)
Link copied to clipboard
actual fun texParameterMagFilter(filter: Int)
expect fun texParameterMagFilter(filter: Int)
Link copied to clipboard
actual fun texParameterMinFilter(filter: Int)
expect fun texParameterMinFilter(filter: Int)
Link copied to clipboard
actual fun texParameterWrapS(mode: Int)
expect fun texParameterWrapS(mode: Int)
Link copied to clipboard
actual fun texParameterWrapT(mode: Int)
expect fun texParameterWrapT(mode: Int)
Link copied to clipboard
actual fun uniform1i(uniform: GLWrap, value: Int)
expect fun uniform1i(uniform: GLWrap, value: Int)
Link copied to clipboard
actual fun uniformBlockBinding(program: GLWrap, uniformBlockIndex: GLWrap, uniformBlockBinding: Int)
expect fun uniformBlockBinding(program: GLWrap, uniformBlockIndex: GLWrap, uniformBlockBinding: Int)
Link copied to clipboard
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)
expect fun useProgram(program: GLWrap)
Link copied to clipboard
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)
expect fun viewport(top: Int, left: Int, width: Int, height: Int)