Viewport stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user