15#ifndef VIEWPORT_H_6014714286
16#define VIEWPORT_H_6014714286
57 const std::unique_ptr< Details > pimpl;
Contains forward-declarations.
Represents an association.
Maintains a framebuffer object that supports up to 8 color components simultaneously.
Defines a rendering viewport. The viewport is a property of the current OpenGL context.
unsigned int parentWidth() const
Tells parent viewport's width.
unsigned int marginRight() const
Tells viewport's right margin.
Viewport(const Viewport &parent, unsigned int left, unsigned int top, unsigned int width, unsigned int height)
Derives viewport from parent.
unsigned int parentHeight() const
Tells parent viewport's height.
void done() const
Restores the previous viewport.
bool isActive() const
Tells whether this viewport is currently active.
void setHeight(unsigned int)
Sets viewport height.
void setMarginLeft(unsigned int)
Sets viewport left margin.
void makeActive() const
Makes this viewport the active one of the current OpenGL context.
unsigned int marginTop() const
Tells viewport's top margin.
void setWidth(unsigned int)
Sets viewport width.
Viewport(unsigned int rootWidth, unsigned int rootHeight, bool fitSquare)
Creates root viewport.
unsigned int height() const
Tells viewport height.
unsigned int marginLeft() const
Tells viewport's left margin.
Viewport(const Framebuffer &)
~Viewport()
Restores the parent viewport if this viewport is still active.
unsigned int marginBottom() const
Tells viewport's bottom margin.
unsigned int width() const
Tells viewport width.
void setMarginTop(unsigned int)
Sets viewport top margin.
Defines LibCarna::base::noncopyable and NON_COPYABLE.
#define NON_COPYABLE
Marks the class that it is placed in as non-copyable.