#include <RenderTiny_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 163 of file RenderTiny_Device.h.
OVR::RenderTiny::ShaderSet::ShaderSet | ( | ) | [inline] |
Reimplemented in OVR::RenderTiny::GL::ShaderSet.
Definition at line 169 of file RenderTiny_Device.h.
OVR::RenderTiny::ShaderSet::~ShaderSet | ( | ) | [inline] |
Reimplemented in OVR::RenderTiny::GL::ShaderSet.
Definition at line 170 of file RenderTiny_Device.h.
Shader* OVR::RenderTiny::ShaderSet::GetShader | ( | int | stage | ) | [inline] |
Definition at line 180 of file RenderTiny_Device.h.
virtual void OVR::RenderTiny::ShaderSet::Set | ( | PrimitiveType | prim | ) | const [inline, virtual] |
Reimplemented in OVR::RenderTiny::GL::ShaderSet.
Definition at line 182 of file RenderTiny_Device.h.
virtual void OVR::RenderTiny::ShaderSet::SetShader | ( | Shader * | s | ) | [inline, virtual] |
Reimplemented in OVR::RenderTiny::GL::ShaderSet.
Definition at line 172 of file RenderTiny_Device.h.
virtual bool OVR::RenderTiny::ShaderSet::SetUniform | ( | const char * | name, |
int | n, | ||
const float * | v | ||
) | [inline, virtual] |
Reimplemented in OVR::RenderTiny::GL::ShaderSet.
Definition at line 192 of file RenderTiny_Device.h.
bool OVR::RenderTiny::ShaderSet::SetUniform1f | ( | const char * | name, |
float | x | ||
) | [inline] |
Definition at line 201 of file RenderTiny_Device.h.
bool OVR::RenderTiny::ShaderSet::SetUniform2f | ( | const char * | name, |
float | x, | ||
float | y | ||
) | [inline] |
Definition at line 206 of file RenderTiny_Device.h.
bool OVR::RenderTiny::ShaderSet::SetUniform4f | ( | const char * | name, |
float | x, | ||
float | y, | ||
float | z, | ||
float | w = 1 |
||
) | [inline] |
Definition at line 211 of file RenderTiny_Device.h.
bool OVR::RenderTiny::ShaderSet::SetUniform4fv | ( | const char * | name, |
int | n, | ||
const Vector4f * | v | ||
) | [inline] |
Definition at line 221 of file RenderTiny_Device.h.
virtual bool OVR::RenderTiny::ShaderSet::SetUniform4x4f | ( | const char * | name, |
const Matrix4f & | m | ||
) | [inline, virtual] |
Reimplemented in OVR::RenderTiny::GL::ShaderSet.
Definition at line 225 of file RenderTiny_Device.h.
bool OVR::RenderTiny::ShaderSet::SetUniformv | ( | const char * | name, |
const Vector3f & | v | ||
) | [inline] |
Definition at line 216 of file RenderTiny_Device.h.
virtual void OVR::RenderTiny::ShaderSet::UnsetShader | ( | int | stage | ) | [inline, virtual] |
Reimplemented in OVR::RenderTiny::GL::ShaderSet.
Definition at line 176 of file RenderTiny_Device.h.
Ptr<Shader> OVR::RenderTiny::ShaderSet::Shaders[Shader_Count] [protected] |
Definition at line 166 of file RenderTiny_Device.h.