12 #ifndef VIEWPORT_H_6014714286
13 #define VIEWPORT_H_6014714286
15 #include <Carna/Carna.h>
54 const std::unique_ptr< Details > pimpl;
61 Viewport(
unsigned int rootWidth,
unsigned int rootHeight,
bool fitSquare );
70 Viewport(
const Viewport& parent,
unsigned int left,
unsigned int top,
unsigned int width,
unsigned int height );
81 void makeActive()
const;
86 bool isActive()
const;
95 void setWidth (
unsigned int );
96 void setHeight(
unsigned int );
98 void setMarginLeft(
unsigned int );
99 void setMarginTop (
unsigned int );
101 unsigned int width()
const;
102 unsigned int height()
const;
104 unsigned int parentWidth ()
const;
105 unsigned int parentHeight()
const;
107 unsigned int marginLeft ()
const;
108 unsigned int marginTop ()
const;
109 unsigned int marginRight ()
const;
110 unsigned int marginBottom()
const;
120 #endif // VIEWPORT_H_6014714286
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
Maintains a framebuffer object that supports up to 8 color components simultaneously.
#define NON_COPYABLE
Features class it is placed in as non-copyable.