OPTPiX SpriteStudio SDK
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
ssplayer_render.h
1 #ifndef __SSPLAYER_RENDER__
2 #define __SSPLAYER_RENDER__
3 
4 struct SsPartState;
5 
6 
8 {
9 public:
10  virtual void initialize() = 0;
11  virtual void renderSetup() = 0;
12  virtual void renderPart(SsPartState* state) = 0;
13 };
14 
16 {
17 private:
18  static ISsRenderer* m_currentrender;
19 public:
22  {
23  SetCurrentRender(render);
24  }
25  virtual ~SsCurrentRenderer()
26  {
27  if ( m_currentrender ) delete m_currentrender;
28  }
29  static void SetCurrentRender( ISsRenderer* render )
30  {
31  render->initialize();
32  m_currentrender = render;
33  }
34  static ISsRenderer* getRender(){ return m_currentrender; }
35 };
36 
37 
38 
39 #endif