Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::CAPI::GL::ShaderImpl< SStage, SType > Class Template Reference

#include "CAPI_GL_Util.h"

Inheritance diagram for OVR::CAPI::GL::ShaderImpl< SStage, SType >:
Inheritance graph
Collaboration diagram for OVR::CAPI::GL::ShaderImpl< SStage, SType >:
Collaboration graph

Public Member Functions

 ShaderImpl (RenderParams *rp, void *s, size_t size, const Uniform *refl, size_t reflSize)
 
 ~ShaderImpl ()
 
bool Compile (const char *src)
 
GLenum GLStage () const
 
- Public Member Functions inherited from OVR::CAPI::GL::ShaderBase
 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 &)
 

Private Attributes

GLuint GLShader
 

Friends

class ShaderSet
 

Additional Inherited Members

- Public Types inherited from OVR::CAPI::GL::ShaderBase
enum  VarType { VARTYPE_FLOAT, VARTYPE_INT, VARTYPE_BOOL }
 
- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 
- Data Fields inherited from OVR::CAPI::GL::ShaderBase
RenderParamspParams
 
unsigned char * UniformData
 
int UniformsSize
 
const UniformUniformRefl
 
size_t UniformReflSize
 
- Protected Attributes inherited from OVR::CAPI::GL::Shader
ShaderStage Stage
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Detailed Description

template<ShaderStage SStage, GLenum SType>
class OVR::CAPI::GL::ShaderImpl< SStage, SType >

Definition at line 479 of file CAPI_GL_Util.h.

Constructor & Destructor Documentation

template<ShaderStage SStage, GLenum SType>
OVR::CAPI::GL::ShaderImpl< SStage, SType >::ShaderImpl ( RenderParams rp,
void *  s,
size_t  size,
const Uniform refl,
size_t  reflSize 
)
inline

Definition at line 484 of file CAPI_GL_Util.h.

template<ShaderStage SStage, GLenum SType>
OVR::CAPI::GL::ShaderImpl< SStage, SType >::~ShaderImpl ( )
inline

Definition at line 494 of file CAPI_GL_Util.h.

Member Function Documentation

template<ShaderStage SStage, GLenum SType>
bool OVR::CAPI::GL::ShaderImpl< SStage, SType >::Compile ( const char *  src)
inline

Definition at line 502 of file CAPI_GL_Util.h.

template<ShaderStage SStage, GLenum SType>
GLenum OVR::CAPI::GL::ShaderImpl< SStage, SType >::GLStage ( ) const
inline

Definition at line 523 of file CAPI_GL_Util.h.

Friends And Related Function Documentation

template<ShaderStage SStage, GLenum SType>
friend class ShaderSet
friend

Definition at line 481 of file CAPI_GL_Util.h.

Field Documentation

template<ShaderStage SStage, GLenum SType>
GLuint OVR::CAPI::GL::ShaderImpl< SStage, SType >::GLShader
private

Definition at line 529 of file CAPI_GL_Util.h.


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