Class LineProgram

Inherits from

Fields

Name Type Description
currentProgram uint
needToCreateVAO bool
vao GLObject!(1,0)
vbo GLObject!(0,34962)
colAttrLocation int
error bool
initialized bool
matrixLocation int
program uint
vertexLocation int
_attribLocations int[string]
_uniformLocations int[string]

Properties

Name Type Description
fragmentSource [get] string
vertexSource [get] string

Methods

Name Description
execute
bind binds program to current context
check returns true if program is ready for use (compiles program if not yet compiled)
compile
destroyBuffers
draw draw mesh using this program (program should be bound by this time and all uniforms should be set)
getAttribLocation get attribute location from program, returns -1 if location is not found
getUniformLocation get uniform location from program, returns -1 if location is not found
getVertexElementLocation get location for vertex attribute
initLocations override to init shader code locations
setUniform
setUniform
setUniform
setUniform
unbind unbinds program from current context
beforeExecute
createVAO

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0