phoenix::PhSolidBackground Class Reference

Solid background node. More...

#include <PhSolidBackground.h>

Inheritance diagram for phoenix::PhSolidBackground:

phoenix::PhSceneNode

List of all members.

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.
PhSceneManagersmgr
 Pointer to the scenemanager.


Detailed Description

Solid background node.

A simple background that consists of a solid color.

See also:
phoenix::PhBackground, phoenix::PhSceneNode

Constructor & Destructor Documentation

phoenix::PhSolidBackground::PhSolidBackground ( PhSceneManager s,
PhColor  c = PhColor(255, 255, 255),
float  d = -100.0f 
)

Constructor.

Builds the background.

Parameters:
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


Member Function Documentation

void phoenix::PhSolidBackground::setColor ( PhColor  c  ) 

Set color.

Sets the color of the background.

Parameters:
c The new color.
See also:
getColor(), color

PhColor phoenix::PhSolidBackground::getColor (  ) 

Get color.

Returns:
The color of the background.


The documentation for this class was generated from the following file:
Generated on Tue Nov 20 21:59:25 2007 for Phoenix by  doxygen 1.5.4