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

#include "CAPI_GL_Util.h"

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

Data Structures

struct  Uniform
 

Public Types

enum  VarType { VARTYPE_FLOAT, VARTYPE_INT, VARTYPE_BOOL }
 

Public Member Functions

 ShaderBase (RenderParams *rp, ShaderStage stage)
 
 ~ShaderBase ()
 
void InitUniforms (const Uniform *refl, size_t reflSize)
 
bool SetUniform (const char *name, int n, const float *v)
 
bool SetUniformBool (const char *name, int n, const bool *v)
 
- Public Member Functions inherited from OVR::CAPI::GL::Shader
 Shader (ShaderStage s)
 
virtual ~Shader ()
 
ShaderStage GetStage () const
 
virtual void Set (PrimitiveType) const
 
virtual void SetUniformBuffer (class Buffer *buffers, int i=0)
 
- Public Member Functions inherited from OVR::RefCountBase< Shader >
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

RenderParamspParams
 
unsigned char * UniformData
 
int UniformsSize
 
const UniformUniformRefl
 
size_t UniformReflSize
 

Additional Inherited Members

- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 
- Protected Attributes inherited from OVR::CAPI::GL::Shader
ShaderStage Stage
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Detailed Description

Definition at line 442 of file CAPI_GL_Util.h.


Data Structure Documentation

struct OVR::CAPI::GL::ShaderBase::Uniform

Definition at line 456 of file CAPI_GL_Util.h.

Collaboration diagram for OVR::CAPI::GL::ShaderBase::Uniform:
Collaboration graph
Data Fields
const char * Name
int Offset
int Size
VarType Type

Member Enumeration Documentation

Enumerator
VARTYPE_FLOAT 
VARTYPE_INT 
VARTYPE_BOOL 

Definition at line 449 of file CAPI_GL_Util.h.

Constructor & Destructor Documentation

OVR::CAPI::GL::ShaderBase::ShaderBase ( RenderParams rp,
ShaderStage  stage 
)
inline

Definition at line 465 of file CAPI_GL_Util.h.

OVR::CAPI::GL::ShaderBase::~ShaderBase ( )
inline

Definition at line 466 of file CAPI_GL_Util.h.

Member Function Documentation

void OVR::CAPI::GL::ShaderBase::InitUniforms ( const Uniform refl,
size_t  reflSize 
)

Definition at line 434 of file CAPI_GL_Util.cpp.

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

Reimplemented from OVR::CAPI::GL::Shader.

Definition at line 407 of file CAPI_GL_Util.cpp.

bool OVR::CAPI::GL::ShaderBase::SetUniformBool ( const char *  name,
int  n,
const bool *  v 
)
virtual

Reimplemented from OVR::CAPI::GL::Shader.

Definition at line 420 of file CAPI_GL_Util.cpp.

Field Documentation

RenderParams* OVR::CAPI::GL::ShaderBase::pParams

Definition at line 445 of file CAPI_GL_Util.h.

unsigned char* OVR::CAPI::GL::ShaderBase::UniformData

Definition at line 446 of file CAPI_GL_Util.h.

const Uniform* OVR::CAPI::GL::ShaderBase::UniformRefl

Definition at line 462 of file CAPI_GL_Util.h.

size_t OVR::CAPI::GL::ShaderBase::UniformReflSize

Definition at line 463 of file CAPI_GL_Util.h.

int OVR::CAPI::GL::ShaderBase::UniformsSize

Definition at line 447 of file CAPI_GL_Util.h.


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