Class SolidFillProgram

Inherits from

Fields

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

Properties

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

Methods

Name Description
destroyBuffers
execute
getVertexElementLocation get location for vertex attribute
initLocations override to init shader code locations
bind binds program to current context
check returns true if program is ready for use (compiles program if not yet compiled)
compile
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
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