Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
BIAS::glfViewport Class Reference

class for setting viewports More...

#include <OpenGLFramework/Base/glfViewport.hh>

+ Inheritance diagram for BIAS::glfViewport:

Public Member Functions

virtual void Bind () const
 Binds the viewport. More...
 
int GetHeight () const
 
int GetWidth () const
 
 glfViewport ()
 
 glfViewport (int x, int y, int width, int height)
 
void SetOrigin (int x, int y)
 Sets the position of the upper-left corner of the viewport in pixel coordinates. More...
 
void SetSize (int width, int height)
 Sets the size of the viewport in pixel coordinates. More...
 
virtual ~glfViewport ()
 

Detailed Description

class for setting viewports

Author
jkollmann
Examples:
ExampleRenderingContext.cpp.

Definition at line 37 of file glfViewport.hh.

Constructor & Destructor Documentation

glfViewport::glfViewport ( )

Definition at line 29 of file glfViewport.cpp.

glfViewport::glfViewport ( int  x,
int  y,
int  width,
int  height 
)

Definition at line 37 of file glfViewport.cpp.

virtual BIAS::glfViewport::~glfViewport ( )
inlinevirtual

Definition at line 42 of file glfViewport.hh.

Member Function Documentation

void glfViewport::Bind ( ) const
virtual

Binds the viewport.

Reimplemented in BIAS::glfPassiveViewport.

Definition at line 57 of file glfViewport.cpp.

Referenced by BIAS::DistortionRendering::BeginRendering(), and BIAS::DistortionRendering::Bind().

int BIAS::glfViewport::GetHeight ( ) const
inline

Definition at line 56 of file glfViewport.hh.

Referenced by BIAS::PlainPerPixelProcessing::Init_().

int BIAS::glfViewport::GetWidth ( ) const
inline

Definition at line 55 of file glfViewport.hh.

Referenced by BIAS::PlainPerPixelProcessing::Init_().

void glfViewport::SetOrigin ( int  x,
int  y 
)

Sets the position of the upper-left corner of the viewport in pixel coordinates.

Examples:
ExampleRenderingContext.cpp.

Definition at line 45 of file glfViewport.cpp.

Referenced by BIAS::DistortionRendering::EndRendering(), BIAS::DistortionRendering::Init(), and BIAS::TemplateSpecializedBatch::SetViewport().

void glfViewport::SetSize ( int  width,
int  height 
)

The documentation for this class was generated from the following files: