![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <camera.hpp>
Public Member Functions | |
Sky () | |
Sky (const Sky &sky)=default | |
Sky (Sky &&sky) noexcept=default | |
~Sky ()=default | |
Sky & | operator= (const Sky &sky) noexcept=default |
Sky & | operator= (Sky &&sky) noexcept=default |
TexturePtr | GetTexture () const noexcept |
ID3D11ShaderResourceView * | GetSRV () const noexcept |
void | SetTexture (TexturePtr texture) |
F32 | GetScaleZ () const noexcept |
void | SetScaleZ (F32 scale_z) noexcept |
Private Attributes | |
TexturePtr | m_texture |
F32 | m_scale_z |
A class of sky domes.
mage::rendering::Sky::Sky | ( | ) |
Constructs a sky.
|
default |
Constructs a sky from the given sky.
[in] | sky | A reference to the sky to copy. |
|
defaultnoexcept |
Constructs a sky by moving the given sky.
[in] | sky | A reference to the sky to move. |
|
default |
Destructs this sky.
|
noexcept |
Returns the scaling factor of the z component of the sky domes of this sky.
|
noexcept |
Returns the shader resource view of the texture of this sky.
nullptr
, if this sky has no texture.
|
noexcept |
Returns the texture of this sky.
Copies the given sky to this sky.
[in] | sky | A reference to the sky to copy. |
Moves the given sky to this sky.
[in] | sky | A reference to the sky to move. |
|
noexcept |
Sets scaling factor of the z component of the sky domes of this sky to the given value.
[in] | scale_z | The scaling factor. |
void mage::rendering::Sky::SetTexture | ( | TexturePtr | texture | ) |
Sets the texture of this sky to the given texture.
[in] | texture | The texture of this sky. |
|
private |
The scaling factor of the z component of the sky domes of this sky.
|
private |
The cube map texture of this sky.