![]() |
omegalib
13.1
|
#include <GpuProgram.h>
Public Types | |
| enum | ShaderType { VertexShader, FragmentShader, GeometryShader, ShaderTypes } |
Public Member Functions | |
| virtual void | dispose () |
| bool | build () |
| bool | setShader (ShaderType type, const String &filename) |
| void | setShaderSource (ShaderType type, const String &source) |
| unsigned int | getUniformLocation (const String &name) |
| unsigned int | getAttributeLocation (const String &name) |
| GLuint | getId () |
| bool | use () |
Public Member Functions inherited from omega::GpuResource | |
| GpuResource (GpuContext *ctx) | |
| GpuContext * | getContext () |
Public Member Functions inherited from omicron::ReferenceType | |
| ReferenceType () | |
| virtual | ~ReferenceType () |
| void | ref () |
| void | unref () |
| long | refCount () |
Protected Member Functions | |
| GpuProgram (GpuContext *context) | |
Friends | |
| class | GpuContext |
Additional Inherited Members | |
Static Public Member Functions inherited from omicron::ReferenceType | |
| static void | printObjCounts () |
Static Protected Attributes inherited from omicron::ReferenceType | |
| static List< ReferenceType * > | mysObjList |
Inheritance diagram for omega::GpuProgram:
|
protected |
| bool omega::GpuProgram::build | ( | ) |
|
virtual |
Implements omega::GpuResource.
| unsigned int omega::GpuProgram::getAttributeLocation | ( | const String & | name | ) |
|
inline |
| unsigned int omega::GpuProgram::getUniformLocation | ( | const String & | name | ) |
| bool omega::GpuProgram::setShader | ( | ShaderType | type, |
| const String & | filename | ||
| ) |
| void omega::GpuProgram::setShaderSource | ( | ShaderType | type, |
| const String & | source | ||
| ) |
| bool omega::GpuProgram::use | ( | ) |
|
friend |