Fission FSN
Loading...
Searching...
No Matches
fsCScreenFadeComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCScreenFadeComponent.h
4*
5* Purpose: A component which renders an untextured sprite to the
6* whole of the display.
7*
8*********************************************************************/
9
10#ifndef fsCScreenFadeComponenthdr
11#define fsCScreenFadeComponenthdr
12
15
16class fsSColour;
17class fsCSprite;
18
20{
21 friend class fsCComponentFactory;
22
23public:
24
25 void spriteInitialise();
26
27 void colourSet(const fsSColour& pColour);
28
29 static const fsCUniqueId mTypeId;
30
31protected:
32
33 static fsIComponent* create(fsCEntity* pParent);
34
35 void initialiseFromVariableTableDo(const fsCVariableTable& pVars) override;
36 void renderDo() override;
37 void matrixApplyDo() override;
38
41
42
43private:
44
45 std::unique_ptr<fsCSprite> mSprite;
46};
47
48#endif
Definition fsCEntity.h:39
static fsIComponent * create(fsCEntity *pParent)
Definition fsCScreenFadeComponent.cpp:40
friend class fsCComponentFactory
Definition fsCScreenFadeComponent.h:21
void renderDo() override
Definition fsCScreenFadeComponent.cpp:45
void spriteInitialise()
Definition fsCScreenFadeComponent.cpp:13
void initialiseFromVariableTableDo(const fsCVariableTable &pVars) override
Definition fsCScreenFadeComponent.cpp:24
virtual ~fsCScreenFadeComponent()
Definition fsCScreenFadeComponent.cpp:61
void matrixApplyDo() override
Definition fsCScreenFadeComponent.cpp:50
void colourSet(const fsSColour &pColour)
Definition fsCScreenFadeComponent.cpp:19
static const fsCUniqueId mTypeId
Definition fsCScreenFadeComponent.h:29
fsCScreenFadeComponent(fsCEntity *pParent)
Definition fsCScreenFadeComponent.cpp:55
Definition fsCSprite.h:24
Definition fsCUniqueId.h:21
Definition fsCVariableTable.h:27
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
fsIRenderableComponent(fsCEntity *pParent)
Definition fsIRenderableComponent.cpp:4
Definition fsSColour.h:20