Frame needs GameFrame, TextureFrame and Viewport to work.

This commit is contained in:
PlatinumSkink
2015-09-16 16:28:49 +02:00
parent 47ad5e31ea
commit dcb23bd199
4 changed files with 194 additions and 1 deletions
+11
View File
@@ -42,6 +42,8 @@
#include "Game/CBrick.h"
#include "Game/CPad.h"
#include "GUI/Frame.h"
#include "Physics/PhysicsSystem.h"
#include "Physics/CPhysics.h"
#include "Physics/CBoxShape.h"
@@ -96,6 +98,13 @@ public:
m_World->ComponentFactory.Register<Components::PointLight>();
m_World->Initialize();
//This is frame coding which might be stupid!
m_FrameStack = new dd::Frame(m_EventBroker, m_ResourceManager);
m_FrameStack->Width = 1920;
m_FrameStack->Height = 1080;
//TODO: Remove tobias light-test code.
/*{
@@ -421,6 +430,8 @@ private:
RenderQueueCollection m_RendererQueue;
std::shared_ptr<InputManager> m_InputManager;
std::shared_ptr<World> m_World;
dd::Frame* m_FrameStack;
double m_LastTime;
};