Class TextureProgram
Inherits from
-
SolidFillProgram
(base class)
Fields
Name | Type | Description |
---|---|---|
texCoordLocation
|
int |
|
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
|
|
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
|
|
destroyBuffers
|
|
draw
|
draw mesh using this program (program should be bound by this time and all uniforms should be set)
|
execute
|
|
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
|
createVAO
|
|
beforeExecute
|
|
createVAO
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0