Big 3D update (WIP)
Former-commit-id: 9f55dae0521bded91640a7ea2d223a49a378c97c
This commit is contained in:
53
include/Nazara/3D/Scene.hpp
Normal file
53
include/Nazara/3D/Scene.hpp
Normal file
@@ -0,0 +1,53 @@
|
||||
// Copyright (C) 2012 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - 3D Module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_SCENE_HPP
|
||||
#define NAZARA_SCENE_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/Color.hpp>
|
||||
#include <Nazara/Core/Updatable.hpp>
|
||||
|
||||
class NzCamera;
|
||||
class NzLight;
|
||||
class NzModel;
|
||||
class NzSceneNode;
|
||||
struct NzSceneImpl;
|
||||
|
||||
class NAZARA_API NzScene
|
||||
{
|
||||
friend NzCamera;
|
||||
|
||||
public:
|
||||
NzScene();
|
||||
~NzScene();
|
||||
|
||||
void Cull();
|
||||
void Draw();
|
||||
|
||||
NzSceneNode& GetRoot() const;
|
||||
float GetUpdateTime() const;
|
||||
unsigned int GetUpdatePerSecond() const;
|
||||
|
||||
void RegisterForUpdate(NzUpdatable* node);
|
||||
|
||||
void SetAmbientColor(const NzColor& color);
|
||||
void SetUpdatePerSecond(unsigned int updatePerSecond);
|
||||
|
||||
void UnregisterForUpdate(NzUpdatable* node);
|
||||
|
||||
void Update();
|
||||
void UpdateVisible();
|
||||
|
||||
operator const NzSceneNode&() const;
|
||||
|
||||
private:
|
||||
void SetActiveCamera(const NzCamera* camera);
|
||||
|
||||
NzSceneImpl* m_impl;
|
||||
};
|
||||
|
||||
#endif // NAZARA_SCENE_HPP
|
||||
Reference in New Issue
Block a user