ZGLRenderingContext
41 items
constructorZGLRenderingContext
actual constructor(surfaceView: ZSurfaceView)
expect constructor(surfaceView: ZSurfaceView)
valsurfaceView
val surfaceView: ZSurfaceView
actual fun activeTexture()
expect fun activeTexture()
funattachShader
actual fun attachShader(program: GLWrap, shader: GLWrap)
expect fun attachShader(program: GLWrap, shader: GLWrap)
actual fun bindAttribLocation(program: GLWrap, index: Int, attrName: String)
expect fun bindAttribLocation(program: GLWrap, index: Int, attrName: String)
funbindBuffer
actual fun bindBuffer(targetType: BufferTargetType, buffer: GLWrap)
expect fun bindBuffer(targetType: BufferTargetType, buffer: GLWrap)
actual fun bindBufferBase(targetType: BufferTargetType, uniformBlockBinding: Int, uniformBufferObject: GLWrap)
expect fun bindBufferBase(targetType: BufferTargetType, uniformBlockBinding: Int, uniformBufferObject: GLWrap)
funbindTexture
actual fun bindTexture(texture: GLWrap)
expect fun bindTexture(texture: GLWrap)
actual fun bindVertexArray(vao: GLWrap)
expect fun bindVertexArray(vao: GLWrap)
funbufferData
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)
funclearColor
actual fun clearColor(r: Float, g: Float, b: Float, a: Float)
expect fun clearColor(r: Float, g: Float, b: Float, a: Float)
Viewport
actual fun compileShader(shader: GLWrap)
expect fun compileShader(shader: GLWrap)
actual fun createProgram(): GLWrap
expect fun createProgram(): GLWrap
ShaderProgram
funcreateShader
actual fun createShader(shaderType: Int): GLWrap
expect fun createShader(shaderType: Int): GLWrap
actual fun createVertexArray(): GLWrap
expect fun createVertexArray(): GLWrap
VAO
fundeleteShader
actual fun deleteShader(shader: GLWrap)
expect fun deleteShader(shader: GLWrap)
fundrawArrays
actual fun drawArrays(mode: Int, first: Int, count: Int)
expect fun drawArrays(mode: Int, first: Int, count: Int)
Draw
fundrawElements
actual fun drawElements(mode: Int, count: Int, type: Int, offset: Int)
expect fun drawElements(mode: Int, count: Int, type: Int, offset: Int)
actual fun enableVertexAttrib(index: Int)
expect fun enableVertexAttrib(index: Int)
actual fun enableVertexAttribArray(index: Int)
expect fun enableVertexAttribArray(index: Int)
actual fun getAttribLocation(program: GLWrap, attrName: String): Int
expect fun getAttribLocation(program: GLWrap, attrName: String): Int
actual fun getShaderInfoLog(shader: GLWrap): String
expect fun getShaderInfoLog(shader: GLWrap): String
actual fun getUniformBlockIndex(program: GLWrap, uniformBlockName: String): GLWrap
expect fun getUniformBlockIndex(program: GLWrap, uniformBlockName: String): GLWrap
actual fun getUniformLocation(program: GLWrap, uniformName: String): GLWrap
expect fun getUniformLocation(program: GLWrap, uniformName: String): GLWrap
UNIFORMS
actual open override fun initWithSurfaceView(surfaceView: ZSurfaceView)
expect open override fun initWithSurfaceView(surfaceView: ZSurfaceView)
funlinkProgram
actual fun linkProgram(program: GLWrap)
expect fun linkProgram(program: GLWrap)
funshaderSource
actual fun shaderSource(shader: GLWrap, source: String)
expect fun shaderSource(shader: GLWrap, source: String)
funtexImage2D
actual fun texImage2D(bitmap: ZBitmap)
expect fun texImage2D(bitmap: ZBitmap)
actual fun texParameterMag()
expect fun texParameterMag()
actual fun texParameterMin()
expect fun texParameterMin()
actual fun uniformBlockBinding(program: GLWrap, uniformBlockIndex: GLWrap, uniformBlockBinding: Int)
expect fun uniformBlockBinding(program: GLWrap, uniformBlockIndex: GLWrap, uniformBlockBinding: Int)
actual fun uniformMatrix4fv(uniform: GLWrap, count: Int, transpose: Boolean, values: FloatArray)
expect fun uniformMatrix4fv(uniform: GLWrap, count: Int, transpose: Boolean, values: FloatArray)
funuseProgram
actual fun useProgram(program: GLWrap)
expect fun useProgram(program: GLWrap)
actual fun vertexAttribPointer(index: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int)