omegalib  13.1
omega::GpuProgram Class Reference

#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)
 
GpuContextgetContext ()
 
- 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:

Member Enumeration Documentation

Enumerator
VertexShader 
FragmentShader 
GeometryShader 
ShaderTypes 

Constructor & Destructor Documentation

omega::GpuProgram::GpuProgram ( GpuContext context)
protected

Member Function Documentation

bool omega::GpuProgram::build ( )
virtual void omega::GpuProgram::dispose ( )
virtual

Implements omega::GpuResource.

unsigned int omega::GpuProgram::getAttributeLocation ( const String name)
GLuint omega::GpuProgram::getId ( )
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 ( )

Friends And Related Function Documentation

friend class GpuContext
friend

The documentation for this class was generated from the following file: