Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::CAPI::GL::ShaderSet Class Reference

#include "CAPI_GL_Util.h"

Inheritance diagram for OVR::CAPI::GL::ShaderSet:
Inheritance graph
Collaboration diagram for OVR::CAPI::GL::ShaderSet:
Collaboration graph

Data Structures

struct  Uniform
 

Public Member Functions

 ShaderSet ()
 
 ~ShaderSet ()
 
virtual void SetShader (Shader *s)
 
virtual void UnsetShader (int stage)
 
ShaderGetShader (int stage)
 
virtual void Set (PrimitiveType prim) const
 
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 SetUniform3f (const char *name, float x, float y, float z)
 
bool SetUniform4f (const char *name, float x, float y, float z, float w=1)
 
bool SetUniformv (const char *name, const Vector3f &v)
 
virtual bool SetUniform4x4f (const char *name, const Matrix4f &m)
 
- Public Member Functions inherited from OVR::RefCountBase< ShaderSet >
OVR_FORCE_INLINE RefCountBase ()
 
- Public Member Functions inherited from OVR::RefCountBaseStatImpl< RefCountImpl >
 RefCountBaseStatImpl ()
 
- Public Member Functions inherited from OVR::RefCountImpl
void AddRef ()
 
void Release ()
 
- Public Member Functions inherited from OVR::RefCountImplCore
OVR_FORCE_INLINE RefCountImplCore ()
 
virtual ~RefCountImplCore ()
 
int GetRefCount () const
 
void operator= (const RefCountImplCore &)
 

Data Fields

GLuint Prog
 
GLint ProjLoc
 
GLint ViewLoc
 
GLint TexLoc [8]
 
bool UsesLighting
 
int LightingVer
 

Protected Member Functions

GLint GetGLShader (Shader *s)
 
bool Link ()
 

Protected Attributes

Ptr< ShaderShaders [Shader_Count]
 
Array< UniformUniformInfo
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Additional Inherited Members

- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 

Detailed Description

Definition at line 307 of file CAPI_GL_Util.h.


Data Structure Documentation

struct OVR::CAPI::GL::ShaderSet::Uniform

Definition at line 312 of file CAPI_GL_Util.h.

Collaboration diagram for OVR::CAPI::GL::ShaderSet::Uniform:
Collaboration graph
Data Fields
int Location
String Name
int Size
int Type

Constructor & Destructor Documentation

OVR::CAPI::GL::ShaderSet::ShaderSet ( )

Definition at line 255 of file CAPI_GL_Util.cpp.

OVR::CAPI::GL::ShaderSet::~ShaderSet ( )

Definition at line 259 of file CAPI_GL_Util.cpp.

Member Function Documentation

GLint OVR::CAPI::GL::ShaderSet::GetGLShader ( Shader s)
protected

Definition at line 264 of file CAPI_GL_Util.cpp.

Shader* OVR::CAPI::GL::ShaderSet::GetShader ( int  stage)
inline

Definition at line 332 of file CAPI_GL_Util.h.

bool OVR::CAPI::GL::ShaderSet::Link ( )
protected

Definition at line 326 of file CAPI_GL_Util.cpp.

virtual void OVR::CAPI::GL::ShaderSet::Set ( PrimitiveType  prim) const
inlinevirtual

Definition at line 334 of file CAPI_GL_Util.h.

void OVR::CAPI::GL::ShaderSet::SetShader ( Shader s)
virtual

Definition at line 282 of file CAPI_GL_Util.cpp.

bool OVR::CAPI::GL::ShaderSet::SetUniform ( const char *  name,
int  n,
const float *  v 
)
virtual

Definition at line 302 of file CAPI_GL_Util.cpp.

bool OVR::CAPI::GL::ShaderSet::SetUniform1f ( const char *  name,
float  x 
)
inline

Definition at line 347 of file CAPI_GL_Util.h.

bool OVR::CAPI::GL::ShaderSet::SetUniform2f ( const char *  name,
float  x,
float  y 
)
inline

Definition at line 352 of file CAPI_GL_Util.h.

bool OVR::CAPI::GL::ShaderSet::SetUniform3f ( const char *  name,
float  x,
float  y,
float  z 
)
inline

Definition at line 357 of file CAPI_GL_Util.h.

bool OVR::CAPI::GL::ShaderSet::SetUniform4f ( const char *  name,
float  x,
float  y,
float  z,
float  w = 1 
)
inline

Definition at line 362 of file CAPI_GL_Util.h.

virtual bool OVR::CAPI::GL::ShaderSet::SetUniform4x4f ( const char *  name,
const Matrix4f m 
)
inlinevirtual

Definition at line 374 of file CAPI_GL_Util.h.

bool OVR::CAPI::GL::ShaderSet::SetUniformv ( const char *  name,
const Vector3f v 
)
inline

Definition at line 368 of file CAPI_GL_Util.h.

void OVR::CAPI::GL::ShaderSet::UnsetShader ( int  stage)
virtual

Definition at line 291 of file CAPI_GL_Util.cpp.

Field Documentation

int OVR::CAPI::GL::ShaderSet::LightingVer

Definition at line 325 of file CAPI_GL_Util.h.

GLuint OVR::CAPI::GL::ShaderSet::Prog

Definition at line 321 of file CAPI_GL_Util.h.

GLint OVR::CAPI::GL::ShaderSet::ProjLoc

Definition at line 322 of file CAPI_GL_Util.h.

Ptr<Shader> OVR::CAPI::GL::ShaderSet::Shaders[Shader_Count]
protected

Definition at line 310 of file CAPI_GL_Util.h.

GLint OVR::CAPI::GL::ShaderSet::TexLoc[8]

Definition at line 323 of file CAPI_GL_Util.h.

Array<Uniform> OVR::CAPI::GL::ShaderSet::UniformInfo
protected

Definition at line 318 of file CAPI_GL_Util.h.

bool OVR::CAPI::GL::ShaderSet::UsesLighting

Definition at line 324 of file CAPI_GL_Util.h.

GLint OVR::CAPI::GL::ShaderSet::ViewLoc

Definition at line 322 of file CAPI_GL_Util.h.


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