#include <GR_Material.h>
|
enum | AlphaMode { ALPHA_BLEND = 0,
ALPHA_CUTOUT,
ALPHA_IGNORE
} |
|
enum | MaterialType {
SIMPLE_SURFACE,
UNLIT_SURFACE,
FILM_SURFACE,
HAIR_CURVE,
HEIGHTFIELD_SURFACE,
MATX_SURFACE,
MATCAP_SURFACE
} |
|
enum | InputType {
IN_INT,
IN_FLOAT,
IN_VEC2,
IN_VEC3,
IN_VEC4
} |
|
|
MaterialType | type () const |
|
int | getNodeID () const |
|
void | setNodeID (int id) |
|
UT_StringHolder | getNodePath () const |
|
void | setTimeDependent (bool timedep, fpreal t=0.0) |
|
void | setOPTimeDependent (bool timedep, fpreal t=0.0) |
|
bool | isTimeDependent () const |
|
bool | isOPTimeDependent () const |
|
fpreal | getCurrentTime () const |
|
bool | isDirty (fpreal time) |
|
void | dirty (bool dirty=true) |
|
virtual void | dirtyTextures () |
|
bool | isTextured () const |
|
void | setTextured (bool has_tex) |
|
bool | hasUDIM () const |
|
void | setHasUDIM (bool has_udim) |
|
bool | hasDisplacement () const |
|
void | setHasDisplacement (bool has_disp) |
|
bool | needsUVs () const |
|
void | setNeedsUVs (bool uvs) |
|
bool | needsTangents () const |
|
void | setNeedsTangents (bool tan) |
|
bool | isTransparent () const |
|
void | setTransparent (bool has_tex) |
|
bool | texturesLoaded () const |
|
void | setTexturesLoaded (bool loaded) |
|
bool | bindWithoutUpdate (RV_Render *r, RV_ShaderProgram *shader, const GR_DisplayOption *opts, bool for_curve=false) |
|
bool | bind (RV_Render *r, RV_ShaderProgram *shader, const GR_DisplayOption *opts, bool for_curve=false) |
|
virtual void | update (const GR_MaterialParms &options)=0 |
|
virtual bool | initMaterialSetForRender (RV_Render *r, RV_ShaderProgram *shader, bool &created)=0 |
|
virtual bool | initBlocks (RV_Render *r, const GR_DisplayOption *opts)=0 |
|
bool | bindSets (RV_Render *r, RV_ShaderProgram *shader, bool for_curve) |
|
DEP_MicroNode & | dependencies () |
|
virtual RV_ShaderProgram * | getSurfaceShader () const |
|
virtual RV_ShaderProgram * | getCurveShader () const |
|
bool | opDependenciesDirty () const |
|
void | clearOpDependenciesDirty () |
|
const UT_Set< int > | opDependencies () const |
|
void | setOverrides (const UT_Options *overrides) |
|
const UT_Options * | getOverrides () const |
|
void | setFallbacks (const UT_Options *attrib_fallbacks) |
|
const UT_Options * | getFallbacks () const |
|
void | setExtraInputs (const UT_StringMap< InputType > &extra_inputs) |
|
const UT_StringMap< InputType > & | extraInputs () const |
|
const UT_StringHolder & | name () const |
|
exint | id () const |
|
int64 | getVersion () const |
|
void | setVersion (int64 v) |
|
void | incref () |
|
void | decref () |
|
void | setName (const UT_StringHolder &name) |
|
void | setID (int id) |
|
Definition at line 45 of file GR_Material.h.
Enumerator |
---|
ALPHA_BLEND |
|
ALPHA_CUTOUT |
|
ALPHA_IGNORE |
|
Definition at line 50 of file GR_Material.h.
Enumerator |
---|
IN_INT |
|
IN_FLOAT |
|
IN_VEC2 |
|
IN_VEC3 |
|
IN_VEC4 |
|
Definition at line 176 of file GR_Material.h.
Enumerator |
---|
SIMPLE_SURFACE |
|
UNLIT_SURFACE |
|
FILM_SURFACE |
|
HAIR_CURVE |
|
HEIGHTFIELD_SURFACE |
|
MATX_SURFACE |
|
MATCAP_SURFACE |
|
Definition at line 56 of file GR_Material.h.
GR_Material::~GR_Material |
( |
| ) |
|
|
overrideprotected |
void GR_Material::addOpID |
( |
int |
id | ) |
|
|
protected |
void GR_Material::clearOpDependenciesDirty |
( |
| ) |
|
|
inline |
void GR_Material::clearOpIDs |
( |
| ) |
|
|
inlineprotected |
void GR_Material::dirty |
( |
bool |
dirty = true | ) |
|
|
inline |
virtual void GR_Material::dirtyTextures |
( |
| ) |
|
|
inlinevirtual |
fpreal GR_Material::getCurrentTime |
( |
| ) |
const |
|
inline |
const UT_Options* GR_Material::getFallbacks |
( |
| ) |
const |
|
inline |
int GR_Material::getNodeID |
( |
| ) |
const |
|
inline |
const UT_Options* GR_Material::getOverrides |
( |
| ) |
const |
|
inline |
static exint GR_Material::getUniqueMaterialID |
( |
| ) |
|
|
static |
bool GR_Material::hasDisplacement |
( |
| ) |
const |
|
inline |
bool GR_Material::hasUDIM |
( |
| ) |
const |
|
inline |
bool GR_Material::isDirty |
( |
fpreal |
time | ) |
|
|
inline |
bool GR_Material::isOPTimeDependent |
( |
| ) |
const |
|
inline |
bool GR_Material::isTextured |
( |
| ) |
const |
|
inline |
bool GR_Material::isTimeDependent |
( |
| ) |
const |
|
inline |
bool GR_Material::isTransparent |
( |
| ) |
const |
|
inline |
bool GR_Material::needsTangents |
( |
| ) |
const |
|
inline |
bool GR_Material::needsUVs |
( |
| ) |
const |
|
inline |
const UT_Set<int> GR_Material::opDependencies |
( |
| ) |
const |
|
inline |
bool GR_Material::opDependenciesDirty |
( |
| ) |
const |
|
inline |
void GR_Material::setHasDisplacement |
( |
bool |
has_disp | ) |
|
|
inline |
void GR_Material::setHasUDIM |
( |
bool |
has_udim | ) |
|
|
inline |
void GR_Material::setNeedsTangents |
( |
bool |
tan | ) |
|
|
inline |
void GR_Material::setNeedsUVs |
( |
bool |
uvs | ) |
|
|
inline |
void GR_Material::setNodeID |
( |
int |
id | ) |
|
|
inline |
void GR_Material::setOPTimeDependent |
( |
bool |
timedep, |
|
|
fpreal |
t = 0.0 |
|
) |
| |
void GR_Material::setTextured |
( |
bool |
has_tex | ) |
|
|
inline |
void GR_Material::setTexturesLoaded |
( |
bool |
loaded | ) |
|
|
inline |
void GR_Material::setTimeDependent |
( |
bool |
timedep, |
|
|
fpreal |
t = 0.0 |
|
) |
| |
void GR_Material::setTransparent |
( |
bool |
has_tex | ) |
|
|
inline |
bool GR_Material::texturesLoaded |
( |
| ) |
const |
|
inline |
bool GR_Material::timeChangeCheck |
( |
| ) |
const |
|
protected |
bool GR_Material::myBlockDirtyFlag |
|
protected |
bool GR_Material::myDirtyFlag |
|
protected |
The documentation for this class was generated from the following file: