Oxygine  1
2g game engine
STDMaterial.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "STDRenderer.h"
4 #include "Material.h"
5 
6 namespace oxygine
7 {
8  DECLARE_SMART(STDMaterial, spSTDMaterial);
9  class STDMaterial : public Material
10  {
11  public:
12  static STDMaterial* instance;
13 
14  STDMaterial(STDRenderer* r): _renderer(r) {}
15 
16  void apply(Material* prev) override;
17  void finish() override;
18 
19  void render(ClipRectActor*, const RenderState& rs) override;
20  void render(MaskedSprite*, const RenderState& rs) override;
21  void doRender(Sprite*, const RenderState& rs) override;
22  void doRender(TextField*, const RenderState& rs) override;
23  void doRender(ColorRectSprite*, const RenderState& rs) override;
24  void doRender(ProgressBar*, const RenderState& rs) override;
25 
26  void setViewProj(const Matrix& vp);
27 
28  STDRenderer* getRenderer() { return _renderer; }
29 
30  protected:
31  STDRenderer* _renderer;
32  };
33 
34 }
Definition: Sprite.h:14
Definition: Material.h:6
Definition: TextField.h:10
Definition: STDMaterial.h:9
Definition: STDRenderer.h:7
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