Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
MaterialEffectClass.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE__MATERIALEFFECTCLASS_H
13#define TT_INCLUDE__MATERIALEFFECTCLASS_H
14#include "engine_vector.h"
15class PhysClass;
16class RenderInfoClass;
17class MaterialPassClass;
18class MaterialEffectClass : public MultiListObjectClass, public RefCountClass
19{
20public:
21 MaterialEffectClass(void);
22 virtual ~MaterialEffectClass(void);
23 void Enable_Auto_Remove(bool onoff) { AutoRemoveEnabled = onoff; }
24 bool Is_Auto_Remove_Enabled(void) { return AutoRemoveEnabled; }
25 void Enable_Suppress_Shadows(bool onoff) { SuppressShadows = onoff; }
26 bool Are_Shadows_Suppressed(void) { return SuppressShadows; }
27 virtual void Timestep(float dt) { }
28 virtual void Render_Push(RenderInfoClass & rinfo,PhysClass * obj) = 0;
29 virtual void Render_Pop(RenderInfoClass & rinfo) = 0;
30 static void Timestep_All_Effects(float dt);
31private:
32 bool AutoRemoveEnabled;
33 bool SuppressShadows;
34#ifndef TTLE_EXPORTS
35#ifndef DDBEDIT
36 static MultiListClass<MaterialEffectClass> AllocatedEffects;
37#endif
38#endif
39}; // size: 20, RH7: 44
40
41#endif