Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Graphics class that represents a background with a texture. More...
Public Member Functions | |
TextureBackground (TextureRef texture=TextureRef()) | |
Constructs a TextureBackground object with a texture. More... | |
void | Draw (const AbstractViewer *viewer) const override |
Draws this relatively to the viewer. More... | |
BackgroundType | GetBackgroundType () const override |
Gets the background type. More... | |
const TextureRef & | GetTexture () const |
Gets the texture of the background. More... | |
void | SetTexture (TextureRef texture) |
Sets the texture of the background. More... | |
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 TextureBackgroundRef | New (Args &&... args) |
Creates a new texture background from the arguments. More... | |
Graphics class that represents a background with a texture.
Nz::TextureBackground::TextureBackground | ( | TextureRef | texture = TextureRef() | ) |
Constructs a TextureBackground object with a texture.
texture | Texture |
|
overridevirtual |
Draws this relatively to the viewer.
viewer | Viewer for the background |
Implements Nz::AbstractBackground.
|
overridevirtual |
|
inline |
Gets the texture of the background.
|
static |
Creates a new texture background from the arguments.
args | Arguments for the texture background |
|
inline |
Sets the texture of the background.
texture | Texture of the background |