#include <PhSolidBackground.h>
Public Member Functions | |
PhSolidBackground (PhSceneManager *s, PhColor c=PhColor(255, 255, 255), float d=-100.0f) | |
Constructor. | |
~PhSolidBackground () | |
Destructor. | |
void | setColor (PhColor c) |
Set color. | |
PhColor | getColor () |
Get color. | |
void | onPreRender () |
Overloaded prerender. | |
void | onRender () |
Overloaded render. | |
void | onPostRender () |
Overloaded postrender. | |
Protected Attributes | |
PhColor | color |
Color of the background. | |
PhSceneManager * | smgr |
Pointer to the scenemanager. |
A simple background that consists of a solid color.
phoenix::PhSolidBackground::PhSolidBackground | ( | PhSceneManager * | s, | |
PhColor | c = PhColor(255, 255, 255) , |
|||
float | d = -100.0f | |||
) |
Constructor.
Builds the background.
s | The pointer to the scene manager used to handle this object. | |
c | The color you want this background to use. | |
d | The depth of the background, default -100.0f |
void phoenix::PhSolidBackground::setColor | ( | PhColor | c | ) |
Set color.
Sets the color of the background.
c | The new color. |
PhColor phoenix::PhSolidBackground::getColor | ( | ) |
Get color.