Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Graphics class that represents a background with uniform color. More...
Public Member Functions | |
ColorBackground (const Color &color=Color::Black) | |
Constructs a ColorBackground object with a color. More... | |
ColorBackground (const ColorBackground &)=default | |
ColorBackground (ColorBackground &&)=delete | |
void | Draw (const AbstractViewer *viewer) const override |
Draws this relatively to the viewer. More... | |
BackgroundType | GetBackgroundType () const override |
Gets the background type. More... | |
Color | GetColor () const |
Gets the color of the background. More... | |
void | SetColor (const Color &color) |
Sets the color of the background. More... | |
ColorBackground & | operator= (ColorBackground &&)=delete |
Public Member Functions inherited from Nz::AbstractBackground | |
AbstractBackground (const AbstractBackground &)=default | |
AbstractBackground (AbstractBackground &&)=delete | |
AbstractBackground & | operator= (const AbstractBackground &)=default |
AbstractBackground & | operator= (AbstractBackground &&)=delete |
Public Member Functions inherited from Nz::RefCounted | |
RefCounted (bool persistent=true) | |
Constructs a RefCounted object with a persistance aspect. More... | |
RefCounted (const RefCounted &)=delete | |
RefCounted (RefCounted &&)=default | |
virtual | ~RefCounted () |
Destructs the object. More... | |
void | AddReference () const |
Adds a reference to the object. | |
unsigned int | GetReferenceCount () const |
Gets the number of references to the object. More... | |
bool | IsPersistent () const |
Checks whether the object is persistent. More... | |
bool | RemoveReference () const |
Removes a reference to the object. More... | |
bool | SetPersistent (bool persistent=true, bool checkReferenceCount=false) |
Sets the persistence of the object. More... | |
RefCounted & | operator= (const RefCounted &)=delete |
RefCounted & | operator= (RefCounted &&)=default |
Static Public Member Functions | |
template<typename... Args> | |
static ColorBackgroundRef | New (Args &&... args) |
Creates a new color background from the arguments. More... | |
Graphics class that represents a background with uniform color.
Nz::ColorBackground::ColorBackground | ( | const Color & | color = Color::Black | ) |
Constructs a ColorBackground object with a color.
color | Uniform color (by default Black) |
|
overridevirtual |
Draws this relatively to the viewer.
viewer | Viewer for the background |
Implements Nz::AbstractBackground.
|
overridevirtual |
Color Nz::ColorBackground::GetColor | ( | ) | const |
Gets the color of the background.
|
static |
Creates a new color background from the arguments.
args | Arguments for the color background |
void Nz::ColorBackground::SetColor | ( | const Color & | color | ) |
Sets the color of the background.
color | Background color |