NDK/RenderSystem: Begin to implement Update

Former-commit-id: 404b7998afffa79568c722677f9760c467e78166
This commit is contained in:
Lynix
2015-06-02 17:20:57 +02:00
parent 844062cfd0
commit 2d0cf1794e
3 changed files with 43 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
#include <Nazara/Math/Frustum.hpp>
#include <Nazara/Math/Matrix4.hpp>
#include <Nazara/Math/Vector3.hpp>
#include <Nazara/Graphics/AbstractViewer.hpp>
#include <Nazara/Renderer/RenderTarget.hpp>
#include <Nazara/Utility/Node.hpp>
#include <NDK/Component.hpp>
@@ -18,12 +19,14 @@ namespace Ndk
{
class Entity;
class NDK_API CameraComponent : public Component<CameraComponent>, NzNode::Listener, NzRenderTarget::Listener
class NDK_API CameraComponent : public Component<CameraComponent>, public NzAbstractViewer, NzNode::Listener, NzRenderTarget::Listener
{
public:
CameraComponent();
~CameraComponent();
void ApplyView() const override;
void EnsureFrustumUpdate() const;
void EnsureProjectionMatrixUpdate() const;
void EnsureViewMatrixUpdate() const;