Texture2dProgram

open class Texture2dProgram

GL program and supporting functions for textured 2D shapes.

Constructors

Link copied to clipboard
constructor(programType: Texture2dProgram.ProgramType)
Prepares the program in the current EGL context.

Types

Link copied to clipboard

Properties

Link copied to clipboard
val KERNEL_SIZE: Int = 9

Functions

Link copied to clipboard
Creates a texture object suitable for use with this program.
Link copied to clipboard
open fun draw(mvpMatrix: Array<Float>, vertexBuffer: FloatBuffer, firstVertex: Int, vertexCount: Int, coordsPerVertex: Int, vertexStride: Int, texMatrix: Array<Float>, texBuffer: FloatBuffer, textureId: Int, texStride: Int)
Issues the draw call.
Link copied to clipboard
Returns the program type.
Link copied to clipboard
open fun release()
Releases the program.
Link copied to clipboard
open fun setKernel(values: Array<Float>, colorAdj: Float)
Configures the convolution filter values.
Link copied to clipboard
open fun setTexSize(width: Int, height: Int)
Sets the size of the texture.