Viewport stuff

This commit is contained in:
2014-05-19 00:51:40 +02:00
parent 44e376e815
commit 539196cd45
6 changed files with 48 additions and 1 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
#define Components_Camera_h__
#include "Component.h"
#include "Entity.h"
namespace Components
{
@@ -13,7 +14,7 @@ struct Camera : Component
, NearClip(0.1f)
, FarClip(100.f) { }
std::string Viewport;
EntityID Viewport;
float FOV;
float NearClip;
float FarClip;
+26
View File
@@ -0,0 +1,26 @@
#ifndef Components_Viewport_h__
#define Components_Viewport_h__
#include "Component.h"
namespace Components
{
struct Viewport : Component
{
Viewport()
: Left(0.f)
, Top(0.f)
, Right(1.f)
, Bottom(1.f) { }
float Left;
float Top;
float Right;
float Bottom;
virtual Viewport* Clone() const override { return new Viewport(*this); }
};
}
#endif // Components_Viewport_h__