ShaderProgram

class ShaderProgram<V : VertexShader, F : FragmentShader>(val vertexShader: V, val fragmentShader: F) : Preparable, Disposable

Constructors

Link copied to clipboard
fun <V : VertexShader, F : FragmentShader> ShaderProgram(vertexShader: V, fragmentShader: F)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun bind()
Link copied to clipboard
fun createAttrib(name: String)
Link copied to clipboard
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun getAttrib(name: String): Int
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun prepare(context: Context)

Prepares/builds this object to be used by GL. Do any generating, uploading, etc of data here Only needs to be called ONCE per object!!

Properties

Link copied to clipboard
Link copied to clipboard
var gl: GL? = null
Link copied to clipboard
open override val prepared: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard