Split screen working

This commit is contained in:
2014-05-19 17:20:43 +02:00
parent e07a0a2b1a
commit bd7ba73bca
7 changed files with 184 additions and 115 deletions
-1
View File
@@ -14,7 +14,6 @@ struct Camera : Component
, NearClip(0.1f)
, FarClip(100.f) { }
EntityID Viewport;
float FOV;
float NearClip;
float FarClip;
+4 -1
View File
@@ -12,13 +12,16 @@ struct Viewport : Component
: Left(0.f)
, Top(0.f)
, Right(1.f)
, Bottom(1.f) { }
, Bottom(1.f)
, Camera(0) { }
float Left;
float Top;
float Right;
float Bottom;
EntityID Camera;
virtual Viewport* Clone() const override { return new Viewport(*this); }
};