EglUtil

object EglUtil

Created by sudamasayuki on 2017/11/14.

Functions

createBuffer
Link copied to clipboard
fun createBuffer(data: FloatBuffer): Int
fun createBuffer(data: FloatArray): Int
createProgram
Link copied to clipboard
fun createProgram(vertexShader: Int, pixelShader: Int): Int
loadShader
Link copied to clipboard
fun loadShader(strSource: String?, iType: Int): Int
loadTexture
Link copied to clipboard
fun loadTexture(img: Bitmap, usedTexId: Int, recycle: Boolean): Int
setupSampler
Link copied to clipboard
fun setupSampler(target: Int, mag: Int, min: Int)
toFloatBuffer
Link copied to clipboard
fun toFloatBuffer(data: FloatArray): FloatBuffer
updateBufferData
Link copied to clipboard
fun updateBufferData(bufferName: Int, data: FloatBuffer)

Properties

NO_TEXTURE
Link copied to clipboard
const val NO_TEXTURE: Int