Fission FSN
Loading...
Searching...
No Matches
fsIRenderable.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsIRenderable.h
4*
5* Purpose: Interface to all that is renderable
6*
7*********************************************************************/
8
9#ifndef fsIRenderablehdr
10#define fsIRenderablehdr
11
13
14class fsIScene;
15struct fsSColour4B;
16
18{
19public:
20
22
23 void colourSet(const fsSColour4B& pColour);
24 void matrixApply(const fsAffineMtx2d& pRenderMatrix);
25 void render();
26
27protected:
28
29 virtual void colourSetDo(const fsSColour4B& pColour) {}
30 virtual void matrixApplyDo(const fsAffineMtx2d& pRenderMatrix) = 0;
31 virtual void renderDo() = 0;
32
33 fsIRenderable() = default;
34 virtual ~fsIRenderable() = default;
35
37
38private:
39
40};
41
42#endif
Definition fsAffineMtx2d.h:27
fsAffineMtx2d mRenderMtx
Definition fsIRenderable.h:36
virtual void colourSetDo(const fsSColour4B &pColour)
Definition fsIRenderable.h:29
virtual void matrixApplyDo(const fsAffineMtx2d &pRenderMatrix)=0
void colourSet(const fsSColour4B &pColour)
Definition fsIRenderable.cpp:9
virtual void renderDo()=0
const fsAffineMtx2d & renderMatrixGet()
Definition fsIRenderable.cpp:4
void render()
Definition fsIRenderable.cpp:20
fsIRenderable()=default
void matrixApply(const fsAffineMtx2d &pRenderMatrix)
Definition fsIRenderable.cpp:14
virtual ~fsIRenderable()=default
Definition fsIScene.h:18
Definition fsSColour.h:54