Patate Lib  0.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Vitelotte::VGMeshRendererResources Class Reference

Detailed Description

The VGMeshRendererResources encapsulate resources required by VGMeshRenderer for sharing.

Classes

struct  SolidUniforms
 
struct  WireframeUniforms
 

Public Types

enum  { VG_MESH_POSITION_ATTR_LOC, VG_MESH_NORMAL_ATTR_LOC }
 

Public Member Functions

bool initialize ()
 
void releaseGLResources ()
 
PatateCommon::ShadersolidLinearShader ()
 
PatateCommon::ShadersolidQuadraticShader ()
 
PatateCommon::ShaderwireframeShader ()
 
const SolidUniformssolidLinearUniforms () const
 
const SolidUniformssolidQuadraticUniforms () const
 
const WireframeUniformswireframeUniforms () const
 

Protected Member Functions

bool initSolidShader (PatateCommon::Shader &shader, SolidUniforms &unif, const char *fragCode)
 
bool initWireframeShader ()
 

Protected Attributes

bool m_initialized
 
PatateCommon::Shader m_solidLinearShader
 
PatateCommon::Shader m_solidQuadraticShader
 
PatateCommon::Shader m_wireframeShader
 
SolidUniforms m_solidLinearUniforms
 
SolidUniforms m_solidQuadraticUniforms
 
WireframeUniforms m_wireframeUniforms