|
| GPUProgram (const std::string &name="default") |
| Create an empty program. More...
|
|
void | setName (const std::string &name) |
| Set the name of this program. More...
|
|
const std::string & | getName () const |
| Return the name of this program. More...
|
|
void | setSource (EType type, const std::string &source) |
| Set the source code of this program. More...
|
|
void | setSourceFile (EType type, const fs::path &path) |
| Set the source code of this program by filename. More...
|
|
const std::string & | getSource (EType type) const |
| Get the source code of this program. More...
|
|
virtual void | init ()=0 |
| Upload to the GPU. More...
|
|
virtual void | bind ()=0 |
| Bind the shader. More...
|
|
virtual void | unbind ()=0 |
| Set the default shader program. More...
|
|
virtual void | cleanup ()=0 |
| Remove all allocated handles. More...
|
|
virtual int | getParameterID (const std::string &name, bool failIfMissing=true) const =0 |
| Determine the ID number of a named parameter. More...
|
|
void | setParameter (const std::string &name, bool value, bool failIfMissing=true) |
| Set a boolean parameter by name. More...
|
|
void | setParameter (const std::string &name, int value, bool failIfMissing=true) |
| Set a integer parameter by name. More...
|
|
void | setParameter (const std::string &name, uint32_t value, bool failIfMissing=true) |
| Set an unsigned integer parameter by name. More...
|
|
void | setParameter (const std::string &name, Float value, bool failIfMissing=true) |
| Set a float parameter by name. More...
|
|
void | setParameter (const std::string &name, const Vector &value, bool failIfMissing=true) |
| Set a Vector parameter by name. More...
|
|
void | setParameter (const std::string &name, const Vector3i &value, bool failIfMissing=true) |
| Set a Vector3i parameter by name. More...
|
|
void | setParameter (const std::string &name, const Vector2 &value, bool failIfMissing=true) |
| Set a Vector2 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Vector2i &value, bool failIfMissing=true) |
| Set a Vector2i parameter by name. More...
|
|
void | setParameter (const std::string &name, const Vector4 &value, bool failIfMissing=true) |
| Set a Vector4 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Point &value, bool failIfMissing=true) |
| Set a Point parameter by name. More...
|
|
void | setParameter (const std::string &name, const Point3i &value, bool failIfMissing=true) |
| Set a Point3i parameter by name. More...
|
|
void | setParameter (const std::string &name, const Point2 &value, bool failIfMissing=true) |
| Set a Point2 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Point2i &value, bool failIfMissing=true) |
| Set a Point2i parameter by name. More...
|
|
void | setParameter (const std::string &name, const Point4 &value, bool failIfMissing=true) |
| Set a Point4 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Matrix2x2 &value, bool failIfMissing=true) |
| Set a Matrix2x2 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Matrix3x3 &value, bool failIfMissing=true) |
| Set a Matrix3x3 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Matrix4x4 &value, bool failIfMissing=true) |
| Set a Matrix4x4 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Transform &value, bool failIfMissing=true) |
| Set a Transform parameter by name. More...
|
|
void | setParameter (const std::string &name, const Color3 &value, bool failIfMissing=true) |
| Set a Color3 parameter by name. More...
|
|
void | setParameter (const std::string &name, const Spectrum &value, bool failIfMissing=true) |
| Set a Spectrum parameter (will be converted to linear RGB) by name. More...
|
|
void | setParameter (const std::string &name, const GPUTexture *value, bool failIfMissing=true) |
|
virtual void | setParameter (int id, bool value)=0 |
| Set a boolean parameter. More...
|
|
virtual void | setParameter (int id, Float value)=0 |
| Set a float parameter. More...
|
|
virtual void | setParameter (int id, int value)=0 |
| Set a int parameter. More...
|
|
virtual void | setParameter (int id, uint32_t value)=0 |
| Set a uint32_t parameter. More...
|
|
virtual void | setParameter (int id, const Vector &value)=0 |
| Set a Vector parameter. More...
|
|
virtual void | setParameter (int id, const Vector3i &value)=0 |
| Set a Vector3i parameter. More...
|
|
virtual void | setParameter (int id, const Vector2 &value)=0 |
| Set a Vector2 parameter. More...
|
|
virtual void | setParameter (int id, const Vector2i &value)=0 |
| Set a Vector2i parameter. More...
|
|
virtual void | setParameter (int id, const Vector4 &value)=0 |
| Set a Vector4 parameter. More...
|
|
virtual void | setParameter (int id, const Point &value)=0 |
| Set a Point parameter. More...
|
|
virtual void | setParameter (int id, const Point3i &value)=0 |
| Set a Point3i parameter. More...
|
|
virtual void | setParameter (int id, const Point2 &value)=0 |
| Set a Point2 parameter. More...
|
|
virtual void | setParameter (int id, const Point2i &value)=0 |
| Set a Point2i parameter. More...
|
|
virtual void | setParameter (int id, const Point4 &value)=0 |
| Set a Point4 parameter. More...
|
|
virtual void | setParameter (int id, const Matrix2x2 &value)=0 |
| Set a Matrix2x2 parameter. More...
|
|
virtual void | setParameter (int id, const Matrix3x3 &value)=0 |
| Set a Matrix3x3 parameter. More...
|
|
virtual void | setParameter (int id, const Matrix4x4 &value)=0 |
| Set a Matrix4x4 parameter. More...
|
|
void | setParameter (int id, const Transform &value) |
| Set a Transform parameter. More...
|
|
virtual void | setParameter (int id, const Color3 &value)=0 |
| Set a Color3 parameter. More...
|
|
virtual void | setParameter (int id, const Spectrum &value)=0 |
| Set a Spectrum parameter (will be converted to linear RGB) More...
|
|
virtual void | setParameter (int id, const GPUTexture *value)=0 |
|
std::string | toString () const |
| Return a string representation of this class. More...
|
|
int | getMaxVertices () const |
| Returns the max. number of vertices generated by the geometry shader. More...
|
|
void | setMaxVertices (int maxVertices) |
| Set the max. number of vertices generated by the geometry shader. More...
|
|
void | setInputGeometryType (EGeometryType type) |
| Set the input type of the geometry shader. More...
|
|
EGeometryType | getInputGeometryType () const |
| Return the input type of the geometry shader. More...
|
|
void | setOutputGeometryType (EGeometryType type) |
| Set the output type of the geometry shader. More...
|
|
EGeometryType | getOutputGeometryType () const |
| Return the output type of the geometry shader. More...
|
|
bool | isBound () const |
|
void | define (const std::string &key, const std::string &value="") |
| Create a preprocessor definition (must be used before 'init') More...
|
|
virtual const Class * | getClass () const |
| Retrieve this object's class. More...
|
|
| Object () |
| Construct a new object. More...
|
|
int | getRefCount () const |
| Return the current reference count. More...
|
|
void | incRef () const |
| Increase the reference count of the object by one. More...
|
|
void | decRef (bool autoDeallocate=true) const |
| Decrease the reference count of the object and possibly deallocate it. More...
|
|
Abstract shader program (for fragment/vertex shading)