Ocular Engine
Viewport.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_GRAPHICS_VIEWPORT__H__
19 #define __H__OCULAR_GRAPHICS_VIEWPORT__H__
20 
21 #include <cstdint>
22 
23 //------------------------------------------------------------------------------------------
24 
29 namespace Ocular
30 {
35  namespace Graphics
36  {
40  class Viewport
41  {
42  public:
43 
44  Viewport(float x, float y, float width, float height, float minDepth = 0.0f, float maxDepth = 1.0f);
45  ~Viewport();
46 
47  virtual void bind();
48 
49  float getOriginX() const;
50  float getOriginY() const;
51  float getWidth() const;
52  float getHeight() const;
53  float getMinDepth() const;
54  float getMaxDepth() const;
55 
56  protected:
57 
58  float m_OriginX;
59  float m_OriginY;
60  float m_Width;
61  float m_Height;
62  float m_MinDepth;
63  float m_MaxDepth;
64 
65  private:
66  };
67  }
71 }
76 //------------------------------------------------------------------------------------------
77 
78 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: Viewport.hpp:40