Pyrogenesis trunk
|
Class SkyManager: Maintain sky settings and textures, and render the sky. More...
#include <SkyManager.h>
Public Member Functions | |
SkyManager () | |
void | RenderSky (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
Render the sky. More... | |
const CStrW & | GetSkySet () const |
Return the currently selected sky set name. More... | |
Renderer::Backend::ITexture * | GetSkyCube () |
void | SetSkySet (const CStrW &name) |
Set the sky set name. More... | |
std::vector< CStrW > | GetSkySets () const |
Return a sorted list of available sky sets, in a form suitable for passing to SetSkySet. More... | |
bool | IsSkyVisible () const |
void | SetSkyVisible (bool value) |
void | LoadAndUploadSkyTexturesIfNeeded (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
Load all sky textures from files and upload to GPU. More... | |
Private Types | |
enum | { FRONT , BACK , RIGHT , LEFT , TOP , NUMBER_OF_TEXTURES } |
Private Member Functions | |
void | CreateSkyCube () |
Private Attributes | |
bool | m_SkyVisible = true |
CStrW | m_SkySet |
Name of current skyset (a directory within art/textures/skies) More... | |
CTexturePtr | m_SkyTexture [NUMBER_OF_TEXTURES] |
CTexturePtr | m_SkyTextureCube |
VertexArray | m_VertexArray |
VertexArray::Attribute | m_AttributePosition |
VertexArray::Attribute | m_AttributeUV |
Renderer::Backend::IVertexInputLayout * | m_VertexInputLayout = nullptr |
Class SkyManager: Maintain sky settings and textures, and render the sky.
SkyManager::SkyManager | ( | ) |
|
private |
Renderer::Backend::ITexture * SkyManager::GetSkyCube | ( | ) |
|
inline |
Return the currently selected sky set name.
std::vector< CStrW > SkyManager::GetSkySets | ( | ) | const |
Return a sorted list of available sky sets, in a form suitable for passing to SetSkySet.
|
inline |
void SkyManager::LoadAndUploadSkyTexturesIfNeeded | ( | Renderer::Backend::IDeviceCommandContext * | deviceCommandContext | ) |
Load all sky textures from files and upload to GPU.
void SkyManager::RenderSky | ( | Renderer::Backend::IDeviceCommandContext * | deviceCommandContext | ) |
Render the sky.
void SkyManager::SetSkySet | ( | const CStrW & | name | ) |
Set the sky set name.
|
inline |
|
private |
|
private |
|
private |
Name of current skyset (a directory within art/textures/skies)
|
private |
|
private |
|
private |
|
private |
|
private |