GlProgram(handle: Int)GlProgram(vertexShader: String, fragmentShader: String)GlProgram(vararg shaders: GlShader)
protected GlProgram(handle: Int, ownsHandle: Boolean, vararg shaders: GlShader)
Base class for a program that accepts a vertex and a fragment shader in the constructor. The program will be created automatically and released when release is called.
Subclasses are required to do two things - typically, during the onPreDraw callback: 1 Inspect the GlDrawable properties:
The vertex shader should then use the two to compute the gl_Position.