Viewport stuff
This commit is contained in:
@@ -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