Oxygine  1
2g game engine
Material.h
1 #pragma once
2 #include "oxygine-include.h"
3 
4 namespace oxygine
5 {
6  class Material
7  {
8  public:
9  static Material* currentMaterial;
10  static void setCurrent(Material*);
11 
12  virtual ~Material();
13  virtual void apply(Material* prev = 0) {}
14  virtual void finish() {}
15 
16  virtual void render(Actor*, const RenderState& rs);
17  virtual void render(ClipRectActor*, const RenderState& rs) {}
18  virtual void render(MaskedSprite*, const RenderState& rs) {}
19  virtual void doRender(Sprite*, const RenderState& rs) {}
20  virtual void doRender(TextField*, const RenderState& rs) {}
21  virtual void doRender(ColorRectSprite*, const RenderState& rs) {}
22  virtual void doRender(ProgressBar*, const RenderState& rs) {}
23  };
24 }
Definition: Sprite.h:14
Definition: Material.h:6
Definition: Actor.h:42
Definition: TextField.h:10
Definition: RenderState.h:27
Definition: MaskedSprite.h:8
Definition: ProgressBar.h:9
–oxgl-end–!
Definition: Actor.h:14
Definition: ColorRectSprite.h:9
Definition: ClipRectActor.h:11