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 programto current context | 
| check | returns true if programis ready for use (compilesprogramif not yet compiled) | 
| compile | |
| draw | drawmeshusing thisprogram(programshould 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 programfrom current context | 
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0