Pioneer
Public Member Functions | Protected Attributes | Friends | List of all members
Graphics::OGL::Material Class Referenceabstract

#include <MaterialGL.h>

Inheritance diagram for Graphics::OGL::Material:
Inheritance graph
[legend]
Collaboration diagram for Graphics::OGL::Material:
Collaboration graph
[legend]

Public Member Functions

 Material ()
 
virtual Program * CreateProgram (const MaterialDescriptor &)=0
 
virtual void Apply () override
 
virtual void Unapply () override
 
virtual bool IsProgramLoaded () const override final
 
virtual void SetProgram (Program *p)
 
virtual void SetCommonUniforms (const matrix4x4f &mv, const matrix4x4f &proj) override
 
- Public Member Functions inherited from Graphics::Material
 Material ()
 
virtual ~Material ()
 
const MaterialDescriptor & GetDescriptor () const
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Protected Attributes

Program * m_program
 
RendererOGL * m_renderer
 
- Protected Attributes inherited from Graphics::Material
MaterialDescriptor m_descriptor
 

Friends

class Graphics::RendererOGL
 

Additional Inherited Members

- Public Attributes inherited from Graphics::Material
Texture * texture0
 
Texture * texture1
 
Texture * texture2
 
Texture * texture3
 
Texture * texture4
 
Texture * texture5
 
Texture * texture6
 
Texture * heatGradient
 
Color diffuse
 
Color specular
 
Color emissive
 
int shininess
 
void * specialParameter0
 

Constructor & Destructor Documentation

◆ Material()

Graphics::OGL::Material::Material ( )
inline

Member Function Documentation

◆ Apply()

void Graphics::OGL::Material::Apply ( )
overridevirtual

◆ CreateProgram()

virtual Program* Graphics::OGL::Material::CreateProgram ( const MaterialDescriptor &  )
pure virtual

◆ IsProgramLoaded()

bool Graphics::OGL::Material::IsProgramLoaded ( ) const
finaloverridevirtual

Implements Graphics::Material.

Here is the call graph for this function:

◆ SetCommonUniforms()

void Graphics::OGL::Material::SetCommonUniforms ( const matrix4x4f &  mv,
const matrix4x4f &  proj 
)
overridevirtual

Implements Graphics::Material.

Here is the call graph for this function:

◆ SetProgram()

virtual void Graphics::OGL::Material::SetProgram ( Program *  p)
inlinevirtual

◆ Unapply()

void Graphics::OGL::Material::Unapply ( )
overridevirtual

Friends And Related Function Documentation

◆ Graphics::RendererOGL

friend class Graphics::RendererOGL
friend

Member Data Documentation

◆ m_program

Program* Graphics::OGL::Material::m_program
protected

◆ m_renderer

RendererOGL* Graphics::OGL::Material::m_renderer
protected

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