Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Graphics class that represents a background with a cubemap texture. More...
Public Member Functions | |
SkyboxBackground (TextureRef cubemapTexture=TextureRef()) | |
Constructs a SkyboxBackground object with a cubemap 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 Vector3f & | GetMovementOffset () const |
Gets the movement offset. More... | |
float | GetMovementScale () const |
Gets the movement scale. More... | |
const TextureRef & | GetTexture () const |
Gets the texture of the background. More... | |
TextureSampler & | GetTextureSampler () |
Gets the texture sampler of the background. More... | |
const TextureSampler & | GetTextureSampler () const |
Gets the texture sampler of the background. More... | |
void | SetMovementOffset (const Vector3f &offset) |
Sets the movement offset. More... | |
void | SetMovementScale (float scale) |
Sets the movement scale. More... | |
void | SetTexture (TextureRef cubemapTexture) |
Sets the texture of the background. More... | |
void | SetTextureSampler (const TextureSampler &sampler) |
Sets the texture sampler 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 SkyboxBackgroundRef | New (Args &&... args) |
Creates a new skybox background from the arguments. More... | |
Friends | |
class | Graphics |
Graphics class that represents a background with a cubemap texture.
Nz::SkyboxBackground::SkyboxBackground | ( | TextureRef | cubemapTexture = TextureRef() | ) |
Constructs a SkyboxBackground object with a cubemap texture.
cubemapTexture | Cubemap texture |
|
overridevirtual |
Draws this relatively to the viewer.
viewer | Viewer for the background |
Implements Nz::AbstractBackground.
|
overridevirtual |
|
inline |
Gets the movement offset.
|
inline |
Gets the movement scale.
|
inline |
Gets the texture of the background.
|
inline |
Gets the texture sampler of the background.
|
inline |
Gets the texture sampler of the background.
|
static |
Creates a new skybox background from the arguments.
args | Arguments for the skybox background |
|
inline |
Sets the movement offset.
offset | Offset of the movement |
|
inline |
Sets the movement scale.
scale | Scale of the movement |
|
inline |
Sets the texture of the background.
cubemapTexture | Texture of the background |
|
inline |
Sets the texture sampler of the background.
sampler | Texture sampler of the background |