MCPcopy Create free account
hub / github.com/carbonengine/trinity / RegisterVariable

Method RegisterVariable

trinity/Tr2VariableStore.cpp:81–84  ·  view source on GitHub ↗

------------------------------------------------------------- Description: Registers a new variable. If the variable with that name is already registered in this store then if its type is the same the variable is reused otherwise the error is logged and the function returns NULL. Arguments: name - Name of the new variable value - Value for the new variable Return Value: New variable (or old with t

Source from the content-addressed store, hash-verified

79// fails).
80// -------------------------------------------------------------
81TriVariable* Tr2VariableStore::RegisterVariable( const char* name, float value )
82{
83 return RegisterVariableInternal( name, value );
84}
85
86// -------------------------------------------------------------
87// Description:

Callers 15

InitializeTrinityFunction · 0.80
RenderVolumetricsMethod · 0.80
UpdateVariableStoreMethod · 0.80
RegisterMethod · 0.80
Tr2LightManagerMethod · 0.80
ResetVariableStoreMethod · 0.80
Tr2ShadowMapMethod · 0.80
Tr2BlitterMethod · 0.80
RenderPickingMethod · 0.80
OnPrepareResourcesMethod · 0.80
Tr2RenderContextBaseMethod · 0.80

Calls 5

CreateInstanceMethod · 0.80
GetVariableMethod · 0.45
GetTypeMethod · 0.45
GetValueMethod · 0.45
GetTextureMethod · 0.45

Tested by

no test coverage detected