Clarisse 4.0 SP5b SDK  4.0.0.0.5.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
ShadingVariablesCtx Class Reference

Inherited by GeometryBuiltinCtx, GeometryDefaultCtx, and GeometryGlobalCtx.

Public Member Functions

 ShadingVariablesCtx (const bool &builtins_dependency=true, const bool &globals_dependency=true)
 
 ShadingVariablesCtx (const ShadingVariablesCtx &other)
 
bool add_variable (const CoreString &name, const CoreVariant &value)
 Set the value and returns true if the variable was really added (did not exist already).
 
bool add_variable (const CoreString &name, const CoreBasicArray< CoreVariant > &values)
 Set the values and returns true if the variable was really added (did not exist already).
 
void set_variable (const CoreString &name, const CoreVariant &value)
 
void set_variable (const CoreString &name, const CoreBasicArray< CoreVariant > &values)
 
void remove_variable (const CoreString &name)
 
void remove_all_variables ()
 
void add_variables (const CoreString &variable_text)
 
CORE_FORCE_INLINE
ShadingVariable::Variable
get_variable (const unsigned int &local_index) const
 
CORE_FORCE_INLINE const
unsigned int & 
get_variable_count () const
 
CORE_FORCE_INLINE const
ShadingVariableAccessor
get_accessor () const
 
void sync_with_dependencies ()
 
CoreString serialize () const
 

Static Public Member Functions

static unsigned int get_variable_global_index (const CoreString &variable_name)
 
static unsigned int get_variable_global_index (const CoreString &text, ShadingVariable::Operator &op, int &flags)
 
static const CoreStringget_variable_name (const unsigned int &global_index)
 
static const ShadingVariablesCtxget_builtin_ctx ()
 
static const ShadingVariablesCtxget_global_ctx ()
 
static const ShadingVariablesCtxget_default_ctx ()