Fixed Graphics module build

Former-commit-id: 1dc70a30cd4ca68d2d7869d51eb01f81770b0e3b
This commit is contained in:
Lynix 2014-05-28 01:15:12 +02:00
parent 42f5b501f5
commit df803fd5f7
2 changed files with 12 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class NAZARA_API NzRenderer
static bool IsEnabled(nzRendererParameter parameter); static bool IsEnabled(nzRendererParameter parameter);
static bool IsInitialized(); static bool IsInitialized();
static bool IsVertexAttributeSupported(nzAttributeType attributeType);
static void SetBlendFunc(nzBlendFunc srcBlend, nzBlendFunc dstBlend); static void SetBlendFunc(nzBlendFunc srcBlend, nzBlendFunc dstBlend);
static void SetClearColor(const NzColor& color); static void SetClearColor(const NzColor& color);

View File

@ -32,6 +32,7 @@ struct NzSceneImpl
NzColor ambientColor = NzColor(25,25,25); NzColor ambientColor = NzColor(25,25,25);
NzSceneRoot root; NzSceneRoot root;
NzAbstractViewer* viewer = nullptr; NzAbstractViewer* viewer = nullptr;
bool backgroundEnabled = true;
bool update; bool update;
float frameTime; float frameTime;
float updateTime; float updateTime;
@ -104,6 +105,11 @@ void NzScene::Draw()
} }
} }
void NzScene::EnableBackground(bool enable)
{
m_impl->backgroundEnabled = enable;
}
NzColor NzScene::GetAmbientColor() const NzColor NzScene::GetAmbientColor() const
{ {
return m_impl->ambientColor; return m_impl->ambientColor;
@ -145,6 +151,11 @@ unsigned int NzScene::GetUpdatePerSecond() const
return m_impl->updatePerSecond; return m_impl->updatePerSecond;
} }
bool NzScene::IsBackgroundEnabled() const
{
return m_impl->backgroundEnabled;
}
void NzScene::RegisterForUpdate(NzUpdatable* object) void NzScene::RegisterForUpdate(NzUpdatable* object)
{ {
#if NAZARA_GRAPHICS_SAFE #if NAZARA_GRAPHICS_SAFE