#include <Render_Device.h>
Public Member Functions | |
Shader * | GetShader (int stage) |
virtual void | Set (PrimitiveType prim) const |
virtual void | SetShader (Shader *s) |
virtual bool | SetUniform (const char *name, int n, const float *v) |
bool | SetUniform1f (const char *name, float x) |
bool | SetUniform2f (const char *name, float x, float y) |
bool | SetUniform4f (const char *name, float x, float y, float z, float w=1) |
bool | SetUniform4fv (const char *name, int n, const Vector4f *v) |
virtual bool | SetUniform4x4f (const char *name, const Matrix4f &m) |
bool | SetUniformv (const char *name, const Vector3f &v) |
ShaderSet () | |
virtual void | UnsetShader (int stage) |
~ShaderSet () | |
Protected Attributes | |
Ptr< Shader > | Shaders [Shader_Count] |
Definition at line 186 of file Render_Device.h.
OVR::Render::ShaderSet::ShaderSet | ( | ) | [inline] |
Reimplemented in OVR::Render::GL::ShaderSet.
Definition at line 192 of file Render_Device.h.
OVR::Render::ShaderSet::~ShaderSet | ( | ) | [inline] |
Reimplemented in OVR::Render::GL::ShaderSet.
Definition at line 193 of file Render_Device.h.
Shader* OVR::Render::ShaderSet::GetShader | ( | int | stage | ) | [inline] |
Definition at line 203 of file Render_Device.h.
virtual void OVR::Render::ShaderSet::Set | ( | PrimitiveType | prim | ) | const [inline, virtual] |
Reimplemented in OVR::Render::GL::ShaderSet.
Definition at line 205 of file Render_Device.h.
virtual void OVR::Render::ShaderSet::SetShader | ( | Shader * | s | ) | [inline, virtual] |
Reimplemented in OVR::Render::GL::ShaderSet.
Definition at line 195 of file Render_Device.h.
virtual bool OVR::Render::ShaderSet::SetUniform | ( | const char * | name, |
int | n, | ||
const float * | v | ||
) | [inline, virtual] |
Reimplemented in OVR::Render::GL::ShaderSet.
Definition at line 215 of file Render_Device.h.
bool OVR::Render::ShaderSet::SetUniform1f | ( | const char * | name, |
float | x | ||
) | [inline] |
Definition at line 224 of file Render_Device.h.
bool OVR::Render::ShaderSet::SetUniform2f | ( | const char * | name, |
float | x, | ||
float | y | ||
) | [inline] |
Definition at line 229 of file Render_Device.h.
bool OVR::Render::ShaderSet::SetUniform4f | ( | const char * | name, |
float | x, | ||
float | y, | ||
float | z, | ||
float | w = 1 |
||
) | [inline] |
Definition at line 234 of file Render_Device.h.
bool OVR::Render::ShaderSet::SetUniform4fv | ( | const char * | name, |
int | n, | ||
const Vector4f * | v | ||
) | [inline] |
Definition at line 244 of file Render_Device.h.
virtual bool OVR::Render::ShaderSet::SetUniform4x4f | ( | const char * | name, |
const Matrix4f & | m | ||
) | [inline, virtual] |
Reimplemented in OVR::Render::ShaderSetMatrixTranspose, and OVR::Render::GL::ShaderSet.
Definition at line 248 of file Render_Device.h.
bool OVR::Render::ShaderSet::SetUniformv | ( | const char * | name, |
const Vector3f & | v | ||
) | [inline] |
Definition at line 239 of file Render_Device.h.
virtual void OVR::Render::ShaderSet::UnsetShader | ( | int | stage | ) | [inline, virtual] |
Reimplemented in OVR::Render::GL::ShaderSet.
Definition at line 199 of file Render_Device.h.
Ptr<Shader> OVR::Render::ShaderSet::Shaders[Shader_Count] [protected] |
Definition at line 189 of file Render_Device.h.