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::glfPassiveViewport Class Reference

This class allows to use the currently set viewport in the global opengl state! More...

#include <OpenGLFramework/Passive/glfPassiveViewport.hh>

+ Inheritance diagram for BIAS::glfPassiveViewport:
+ Collaboration diagram for BIAS::glfPassiveViewport:

Public Member Functions

virtual void Bind () const
 Binds the viewport. More...
 
int GetHeight () const
 
int GetWidth () const
 
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...
 

Detailed Description

This class allows to use the currently set viewport in the global opengl state!

It is not the intention of the OpenGLFramework to work on a global scope! Use this class with caution and seldom even if it is convenient! Your classes will develop difficult behavior and will not be transportable outside a well defined state context! Nevertheless it is usefull to use passive components for the integration of concepts from the OpenGLFramework into old software.

Author
bartczak 02/2008

Definition at line 47 of file glfPassiveViewport.hh.

Member Function Documentation

void BIAS::glfPassiveViewport::Bind ( ) const
virtual

Binds the viewport.

Reimplemented from BIAS::glfViewport.

Definition at line 28 of file glfPassiveViewport.cpp.

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

Definition at line 56 of file glfViewport.hh.

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

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

Definition at line 55 of file glfViewport.hh.

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

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

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 
)
inherited

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