22#ifndef INCLUDED_SKYMANAGER
23#define INCLUDED_SKYMANAGER
Definition: IDeviceCommandContext.h:42
Definition: ITexture.h:34
Class SkyManager: Maintain sky settings and textures, and render the sky.
Definition: SkyManager.h:38
VertexArray::Attribute m_AttributePosition
Definition: SkyManager.h:109
VertexArray m_VertexArray
Definition: SkyManager.h:108
bool m_SkyVisible
Definition: SkyManager.h:88
CTexturePtr m_SkyTexture[NUMBER_OF_TEXTURES]
Definition: SkyManager.h:105
@ LEFT
Definition: SkyManager.h:99
@ FRONT
Definition: SkyManager.h:96
@ TOP
Definition: SkyManager.h:100
@ BACK
Definition: SkyManager.h:97
@ RIGHT
Definition: SkyManager.h:98
@ NUMBER_OF_TEXTURES
Definition: SkyManager.h:101
void SetSkySet(const CStrW &name)
Set the sky set name.
Definition: SkyManager.cpp:179
void CreateSkyCube()
Definition: SkyManager.cpp:262
bool IsSkyVisible() const
Definition: SkyManager.h:69
Renderer::Backend::ITexture * GetSkyCube()
Definition: SkyManager.cpp:174
void LoadAndUploadSkyTexturesIfNeeded(Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
Load all sky textures from files and upload to GPU.
Definition: SkyManager.cpp:49
VertexArray::Attribute m_AttributeUV
Definition: SkyManager.h:110
void SetSkyVisible(bool value)
Definition: SkyManager.h:74
const CStrW & GetSkySet() const
Return the currently selected sky set name.
Definition: SkyManager.h:51
CTexturePtr m_SkyTextureCube
Definition: SkyManager.h:106
SkyManager()
Definition: SkyManager.cpp:42
void RenderSky(Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
Render the sky.
Definition: SkyManager.cpp:210
Renderer::Backend::IVertexInputLayout * m_VertexInputLayout
Definition: SkyManager.h:112
std::vector< CStrW > GetSkySets() const
Return a sorted list of available sky sets, in a form suitable for passing to SetSkySet.
Definition: SkyManager.cpp:189
CStrW m_SkySet
Name of current skyset (a directory within art/textures/skies)
Definition: SkyManager.h:91
Definition: VertexArray.h:138
std::shared_ptr< CTexture > CTexturePtr
Definition: Texture.h:23
Definition: VertexArray.h:141