Class GLProgram
Inherits from
-
GraphicsEffect
(base class)
Fields
Name | Type | Description |
---|---|---|
currentProgram
|
uint |
|
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 |
---|---|
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
|
getVertexElementLocation
|
get location for vertex attribute |
initLocations
|
override to init shader code locations |
setUniform
|
|
setUniform
|
|
setUniform
|
|
setUniform
|
|
unbind
|
unbinds program from current context
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0