Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Friends | List of all members
SceneShadingTable Class Reference

Public Member Functions

void clear ()
 
const SceneObjectShading * get_data () const
 
const unsigned int & get_count () const
 
const CoreBasicArray
< SceneObjectShading > & 
get_array () const
 
SceneObjectShading & operator[] (const unsigned int &index)
 
const SceneObjectShading & operator[] (const unsigned int &index) const
 
bool check_flag (const ModuleMaterial::Flags &flag, const unsigned int &scene_object_index, const ModuleSceneObject *module_scene_object) const
 Checks if the material graph under a scene object matches a flag.
 

Friends

class ModuleShadingLayer
 

Member Function Documentation

bool SceneShadingTable::check_flag ( const ModuleMaterial::Flags &  flag,
const unsigned int &  scene_object_index,
const ModuleSceneObject module_scene_object 
) const

Checks if the material graph under a scene object matches a flag.

Parameters
flagThe flag to check
scene_object_indexIndex of the scene object in the shading table
module_scene_objectModule of the scene object
Returns
true if the given flag matches the union of all the material flags of the scene object