Pro Android with Kotlin by Peter Späth

Pro Android with Kotlin by Peter Späth

Author:Peter Späth
Language: eng
Format: epub
ISBN: 9781484238202
Publisher: Apress


val vertexBuffer: FloatBuffer

val drawListBuffer: ShortBuffer

val vertexShaderCode = """

attribute vec4 vPosition;

void main() {

gl_Position = vPosition;

}

""".trimIndent()

val fragmentShaderCode = """

precision mediump float;

uniform vec4 vColor;

void main() {

gl_FragColor = vColor;

}

""".trimIndent()

// The shader program

var program:Int? = 0

var color = floatArrayOf(0.94f, 0.67f, 0.22f, 1.0f)

val vbo = IntArray(1) // one vertex buffer

val ibo = IntArray(1) // one index buffer



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.