#include <imaterial.h>
Public Member Functions | |
MaterialShader (const std::string &fileName) | |
virtual | ~MaterialShader () |
void | IncRef () |
void | DecRef () |
std::size_t | refcount () |
qtexture_t * | getTexture () 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 |
Definition at line 39 of file imaterial.h.
MaterialShader::MaterialShader | ( | const std::string & | fileName | ) |
virtual MaterialShader::~MaterialShader | ( | ) | [virtual] |
void MaterialShader::DecRef | ( | ) | [virtual] |
Decrement the reference count
Implements IShader.
void MaterialShader::getAlphaFunc | ( | EAlphaFunc * | func, | |
float * | ref | |||
) | [virtual] |
get the alphaFunc
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 | ( | ) |
BlendFunc MaterialShader::_blendFunc [private] |
Definition at line 45 of file imaterial.h.
std::string MaterialShader::_fileName [private] |
Definition at line 43 of file imaterial.h.
bool MaterialShader::_inUse [private] |
Definition at line 47 of file imaterial.h.
qtexture_t* MaterialShader::_notfound [private] |
Definition at line 51 of file imaterial.h.
std::size_t MaterialShader::_refcount [private] |
Definition at line 41 of file imaterial.h.
qtexture_t* MaterialShader::_texture [private] |
Definition at line 49 of file imaterial.h.