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

Function BLUE_CLASS

trinity/Shader/Parameter/TriFloatArrayParameter.h:34–73  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------------------- float array parameter

Source from the content-addressed store, hash-verified

32// float array parameter
33//
34BLUE_CLASS( TriFloatArrayParameter ) :
35 public ITriEffectParameter,
36 public INotify,
37 public IInitialize
38{
39public:
40 EXPOSE_TO_BLUE();
41
42 TriFloatArrayParameter( IRoot* lockobj = NULL );
43 ~TriFloatArrayParameter();
44
45 using ITriEffectParameter::Lock;
46 using ITriEffectParameter::Unlock;
47
48 // data
49 PTriVector4Vector m_value;
50 BlueSharedString m_name;
51
52 bool m_isUsedByEffect;
53
54 /////////////////////////////////////////////////////////////////////////////////////
55 // ITriEffectParameter
56 void CopyValueToEffect( Tr2RenderContextEnum::ShaderType inputType,
57 unsigned char* destHandle,
58 size_t size,
59 Tr2RenderContext& renderContext ) const;
60 const char* GetParameterName() const;
61 void RebuildEffectHandles( Tr2Shader * effectRes );
62 unsigned GetHashValue( unsigned startingHash ) const;
63
64 /////////////////////////////////////////////////////////////////////////////////////
65 // INotify
66 bool OnModified( Be::Var * val );
67
68 /////////////////////////////////////////////////////////////////////////////////////
69 // IInitialize
70 bool Initialize()
71 {
72 return true;
73 };
74 // This is just here to prevent us from getting an "on modified" call while blue is still reading the member table
75
76private:

Callers

nothing calls this directly

Calls 2

CopyValueToEffectFunction · 0.85
InitializeFunction · 0.50

Tested by

no test coverage detected