MaterialShader Class Reference

#include <imaterial.h>

Inheritance diagram for MaterialShader:
Inheritance graph
[legend]
Collaboration diagram for MaterialShader:
Collaboration graph
[legend]

Public Member Functions

 MaterialShader (const std::string &fileName)
virtual ~MaterialShader ()
void IncRef ()
void DecRef ()
std::size_t refcount ()
qtexture_tgetTexture () const
const char * getName () const
bool IsInUse () const
void SetInUse (bool inUse)
int getFlags () const
float getTrans () const
bool IsDefault () const
void getAlphaFunc (EAlphaFunc *func, float *ref)
BlendFunc getBlendFunc () const
ECull getCull ()
void realise ()
void unrealise ()

Private Attributes

std::size_t _refcount
std::string _fileName
BlendFunc _blendFunc
bool _inUse
qtexture_t_texture
qtexture_t_notfound

Detailed Description

Definition at line 39 of file imaterial.h.


Constructor & Destructor Documentation

MaterialShader::MaterialShader ( const std::string fileName  ) 
virtual MaterialShader::~MaterialShader (  )  [virtual]

Member Function Documentation

void MaterialShader::DecRef (  )  [virtual]

Decrement the reference count

Implements IShader.

void MaterialShader::getAlphaFunc ( EAlphaFunc func,
float *  ref 
) [virtual]

get the alphaFunc

Implements IShader.

BlendFunc MaterialShader::getBlendFunc (  )  const [virtual]

Implements IShader.

ECull MaterialShader::getCull (  )  [virtual]

get the cull type

Implements IShader.

int MaterialShader::getFlags (  )  const [virtual]

get the editor flags (QER_TRANS)

Implements IShader.

const char* MaterialShader::getName (  )  const [virtual]

get shader name

Implements IShader.

qtexture_t* MaterialShader::getTexture (  )  const [virtual]

get/set the qtexture_t* Radiant uses to represent this shader object

Implements IShader.

float MaterialShader::getTrans (  )  const [virtual]

get the transparency value

Implements IShader.

void MaterialShader::IncRef (  )  [virtual]

Increment the number of references to this object

Implements IShader.

bool MaterialShader::IsDefault (  )  const [virtual]

test if it's a true shader, or a default shader created to wrap around a texture

Implements IShader.

bool MaterialShader::IsInUse (  )  const [virtual]

Implements IShader.

void MaterialShader::realise (  ) 
std::size_t MaterialShader::refcount (  ) 
void MaterialShader::SetInUse ( bool  inUse  )  [virtual]

Implements IShader.

void MaterialShader::unrealise (  ) 

Field Documentation

Definition at line 45 of file imaterial.h.

Definition at line 43 of file imaterial.h.

bool MaterialShader::_inUse [private]

Definition at line 47 of file imaterial.h.

Definition at line 51 of file imaterial.h.

std::size_t MaterialShader::_refcount [private]

Definition at line 41 of file imaterial.h.

Definition at line 49 of file imaterial.h.


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

Generated by  doxygen 1.6.2