OSDL::Video::OpenGL::OpenGLContext Class Reference

#include <OSDLOpenGL.h>

List of all members.


Detailed Description

An OpenGL context corresponds to the state of a running OpenGL screen.

It can be managed on a per-application basis, or a per-window basis.

OpenGL context objects have to store settings, so that they can be reloaded when required, see OpenGL::Reload flavour.

Note:
For the moment, direct access is used to the only one OpenGL context provided by the SDL back-end.

Definition at line 150 of file OSDLOpenGL.h.

Public Types

enum  ProjectionMode { Orthographic, Perspective }
 Describes a projection mode : More...
enum  ShadingModel { Flat, Smooth }
 Describes a shading model. More...
enum  CulledFacet { Front, Back, FrontAndBack }
 Describes which facets should be culled, i.e. More...
enum  FrontOrientation { Clockwise, CounterClockwise }
 Determines how front-facing polygons are defined, depending on their winding. More...

Public Member Functions

 OpenGLContext (OpenGL::Flavour flavour=OpenGL::None) throw ( OpenGLException)
 Creates a new blank OpenGL context, according to the specified flavour.
virtual ~OpenGLContext () throw ()
 Virtual destructor.
virtual void selectFlavour (OpenGL::Flavour flavour) throw ( OpenGLException )
 If OpenGL is to be used, allows to select a flavour, which provides convenient presets.
virtual void set2DFlavour () throw ( OpenGLException )
 Sets the OpenGL 2D flavour.
virtual void set3DFlavour () throw ( OpenGLException )
 Sets the OpenGL 3D flavour.
virtual void blank () throw ( OpenGLException )
 Blanks the current settings in the actual OpenGL state machine.
virtual void reload () throw ( OpenGLException )
 Requests the OpenGL context to reload the current settings in the actual OpenGL state machine.
virtual OSDL::Video::BitsPerPixel getColorDepth (OSDL::Video::BitsPerPixel &redSize, OSDL::Video::BitsPerPixel &greenSize, OSDL::Video::BitsPerPixel &blueSize) const throw ( OpenGLException )
 Gets the OpenGL color depth for each color component.
virtual void setColorDepth (OSDL::Video::BitsPerPixel plannedBpp) throw ( OpenGLException )
 Sets the OpenGL color depth.
virtual void setColorDepth (OSDL::Video::BitsPerPixel redSize, OSDL::Video::BitsPerPixel greenSize, OSDL::Video::BitsPerPixel blueSize) throw ( OpenGLException )
 Sets the OpenGL color depth.
virtual bool getDoubleBufferStatus () throw ( OpenGLException )
 Returns the current OpenGL double buffering status.
virtual bool setDoubleBufferStatus (bool newStatus) throw ( OpenGLException )
 Sets the OpenGL double buffering status (enabled or disabled).
virtual void setShadingModel (ShadingModel newShadingModel=Smooth) throw ( OpenGLException )
 Sets the shading technique to be used.
virtual void setCullingStatus (bool newStatus) throw ()
 Sets the cullings status, i.e.
virtual void setCulling (CulledFacet culledFacet=Back, FrontOrientation frontOrientation=CounterClockwise, bool autoEnable=true) throw ( OpenGLException )
 Sets the culling settings, and enables it if requested.
virtual void setFullScreenAntialiasingStatus (bool newStatus, Ceylan::Uint8 samplesPerPixelNumber=1) throw ( OpenGLException )
 Sets the OpenGL fullscreen antialiasing (FSAA) status (enabled or disabled).
virtual void setDepthBufferStatus (bool newStatus) throw ()
 Enables or disables the use of the depth buffer.
virtual void setDepthBufferSize (Ceylan::Uint8 bitsNumber=16, bool autoEnable=true) throw ( OpenGLException )
 Sets the size, in bits, of the OpenGL depth buffer, and enables it, if requested.
virtual void setViewPort (Length width, Length height, const TwoDimensional::Point2D &lowerLeftCorner=TwoDimensional::Point2D::Origin) throw ( OpenGLException )
 Sets the OpenGL viewport, i.e.determines the transformation of x and y from normalized device coordinates to window coordinates.
virtual void setOrthographicProjection (GLLength width, GLCoordinate near=-DefaultNearClippingPlaneFor3D, GLCoordinate far=-DefaultFarClippingPlaneFor3D) throw ( OpenGLException )
 Sets an orthographic projection, so that the viewing volume is a box, whose sides are parallel to the main axes.
virtual void clearViewport () throw ( OpenGLException )
 Clears the viewport with the current clear color.
virtual void clearDepthBuffer () throw ( OpenGLException )
 Clears the depth buffer within the viewport.
virtual const std::string toString (Ceylan::VerbosityLevels level=Ceylan::high) const throw ()
 Returns an user-friendly description of the state of this object.

Static Public Member Functions

static std::string ToString (OpenGL::Flavour flavour) throw ()
 Returns an user-friendly description of the specified OpenGL flavour.

Static Public Attributes

static const bool ContextCanBeLost
 Tells whether the OpenGL context can be lost (and therefore must be reloaded) under certain unexpected circumstances (ex : window resize, going to fullscreen, switching to another application, etc.
static const bool ContextIsLostOnResize
 Tells whether the OpenGL context is lost (and therefore must be reloaded) on resize.
static const bool ContextIsLostOnApplicationSwitch
 Tells whether the OpenGL context is lost (and therefore must be reloaded) when switching application.
static const bool ContextIsLostOnColorDepthChange
 Tells whether the OpenGL context is lost (and therefore must be reloaded) when changing the color depth.
static const GLLength DefaultOrthographicWidth
 Default width of the orthographic box is 1000 (1000.0f).
static const GLCoordinate DefaultNearClippingPlaneFor2D
 Coordinate, along the -z axis, of the default near clipping plane in 2D is -1 (-1.0f).
static const GLCoordinate DefaultFarClippingPlaneFor2D
 Coordinate, along the -z axis, of the default far clipping plane in 2D is 1 (1.0f).
static const GLCoordinate DefaultNearClippingPlaneFor3D
 Coordinate, along the -z axis, of the default near clipping plane in 3D is 1 (1.0f).
static const GLCoordinate DefaultFarClippingPlaneFor3D
 Coordinate, along the -z axis, of the default far clipping plane in 3D is 100000 (100000.0f).

Protected Member Functions

virtual void updateProjection () throw ( OpenGLException )
 Updates the current projection so that its aspect ratio matches the one of the viewport.

Protected Attributes

OpenGL::Flavour _flavour
 Stores the current OpenGL flavour.
OSDL::Video::BitsPerPixel _redSize
 Size in bits of the red component.
OSDL::Video::BitsPerPixel _greenSize
 Size in bits of the green component.
OSDL::Video::BitsPerPixel _blueSize
 Size in bits of the blue component.
Length _viewportWidth
 Width of the viewport, useful to ensure aspect ratio is well managed.
Length _viewportHeight
 Height of the viewport, useful to ensure aspect ratio is well managed.
ProjectionMode _projectionMode
 Stores the current projection mode.
GLLength _projectionWidth
 Width of the projection volume, so that projection can be automatically updated when the viewport area changes.
GLCoordinate _nearClippingPlane
 The current z axis coordinate of the near clipping plane.
GLCoordinate _farClippingPlane
 The current z axis coordinate of the far clipping plane.

Private Member Functions

 OpenGLContext (const OpenGLContext &source) throw ()
 Copy constructor made private to ensure that it will be never called.
OpenGLContextoperator= (const OpenGLContext &source) throw ()
 Assignment operator made private to ensure that it will be never called.


Member Enumeration Documentation

enum OSDL::Video::OpenGL::OpenGLContext::ProjectionMode

Describes a projection mode :

Enumerator:
Orthographic 
Perspective 

Definition at line 165 of file OSDLOpenGL.h.

enum OSDL::Video::OpenGL::OpenGLContext::ShadingModel

Describes a shading model.

Flat shading selects the computed color of just one vertex and assigns it to all the pixel fragments generated by rasterizing a single primitive.

Smooth shading, the default, causes the computed colors of vertices to be interpolated as the primitive is rasterized, typically assigning different colors to each resulting pixel fragment. Also known as Gouraud shading.

In either case, the computed color of a vertex is the result of lighting, if lighting is enabled, or it is the current color at the time the vertex was specified, if lighting is disabled.

Enumerator:
Flat 
Smooth 

Definition at line 187 of file OSDLOpenGL.h.

enum OSDL::Video::OpenGL::OpenGLContext::CulledFacet

Describes which facets should be culled, i.e.

specifies whether front-facing or back-facing facets are culled, when facet culling is enabled.

Facets include triangles, quadrilaterals, polygons, and rectangles.

Note:
If FrontAndBack is selected, then no facets are drawn, but other primitives such as points and lines are.
Front and back are defined according to the normal vector of a facet, which can be determined according to the dot product of ordered listed vertices.

See also:
FrontOrientation
Enumerator:
Front 
Back 
FrontAndBack 

Definition at line 209 of file OSDLOpenGL.h.

enum OSDL::Video::OpenGL::OpenGLContext::FrontOrientation

Determines how front-facing polygons are defined, depending on their winding.

The projection of a polygon to window coordinates is said to have clockwise winding if an imaginary object following the path from its first vertex, its second vertex, and so on, to its last vertex, and finally back to its first vertex, moves in a clockwise direction about the interior of the polygon.

On the contrary, the polygon's winding is said to be counterclockwise if the imaginary object following the same path moves in a counterclockwise direction about the interior of the polygon.

Enumerator:
Clockwise 
CounterClockwise 

Definition at line 230 of file OSDLOpenGL.h.


Constructor & Destructor Documentation

OpenGLContext::OpenGLContext ( OpenGL::Flavour  flavour = OpenGL::None  )  throw ( OpenGLException)

Creates a new blank OpenGL context, according to the specified flavour.

The default projection mode is orthographic.

Parameters:
flavour the flavour to set, if any.
Exceptions:
OpenGLException if the OpenGL state machine reports an error.

Definition at line 92 of file OSDLOpenGL.cc.

OpenGLContext::~OpenGLContext (  )  throw () [virtual]

Virtual destructor.

Definition at line 112 of file OSDLOpenGL.cc.

OSDL::Video::OpenGL::OpenGLContext::OpenGLContext ( const OpenGLContext source  )  throw () [private]

Copy constructor made private to ensure that it will be never called.

The compiler should complain whenever this undefined constructor is called, implicitly or not.


Member Function Documentation

void OpenGLContext::selectFlavour ( OpenGL::Flavour  flavour  )  throw ( OpenGLException ) [virtual]

If OpenGL is to be used, allows to select a flavour, which provides convenient presets.

Parameters:
flavour the selected flavour for OpenGL.
plannedBpp the planned color depth, in bits per pixel.
Exceptions:
OpenGLException if the OpenGL state machine reports an error.
This method must be called before setting the actual video mode, since the flavour will be taken into account only at this moment.

Note:
OpenGL support cannot be encapsulated into Video renderers, since they may not be used, and OpenGL must be specified during the setMode phase.
See also:
OpenGLFlavour

Definition at line 120 of file OSDLOpenGL.cc.

References OSDL::Video::VideoModule::IsDisplayInitialized(), OSDL::Video::OpenGL::None, OSDL::Video::OpenGL::OpenGLFor2D, and OSDL::Video::OpenGL::OpenGLFor3D.

void OpenGLContext::set2DFlavour (  )  throw ( OpenGLException ) [virtual]

Sets the OpenGL 2D flavour.

Definition at line 159 of file OSDLOpenGL.cc.

References DefaultFarClippingPlaneFor2D, DefaultNearClippingPlaneFor2D, DefaultOrthographicWidth, setDoubleBufferStatus(), setFullScreenAntialiasingStatus(), and setOrthographicProjection().

void OpenGLContext::set3DFlavour (  )  throw ( OpenGLException ) [virtual]

Sets the OpenGL 3D flavour.

Definition at line 176 of file OSDLOpenGL.cc.

References setDoubleBufferStatus(), and setFullScreenAntialiasingStatus().

void OpenGLContext::blank (  )  throw ( OpenGLException ) [virtual]

Blanks the current settings in the actual OpenGL state machine.

Note:
It is useful to reset the OpenGL state before applying a flavour.

Definition at line 199 of file OSDLOpenGL.cc.

void OpenGLContext::reload (  )  throw ( OpenGLException ) [virtual]

Requests the OpenGL context to reload the current settings in the actual OpenGL state machine.

It is notably useful for platforms that loose their OpenGL context under various circumstances, including resizing.

See also:
OpenGL::Reload

Definition at line 208 of file OSDLOpenGL.cc.

Ceylan::Uint8 OpenGLContext::getColorDepth ( OSDL::Video::BitsPerPixel redSize,
OSDL::Video::BitsPerPixel greenSize,
OSDL::Video::BitsPerPixel blueSize 
) const throw ( OpenGLException ) [virtual]

Gets the OpenGL color depth for each color component.

Parameters:
redSize the variable where the size in bits of the red component will be written.
greenSize the variable where the size in bits of the green component will be written.
blueSize the variable where the size in bits of the blue component will be written.
Returns:
the actual overall bits per pixel value.

Definition at line 217 of file OSDLOpenGL.cc.

void OpenGLContext::setColorDepth ( OSDL::Video::BitsPerPixel  plannedBpp  )  throw ( OpenGLException ) [virtual]

Sets the OpenGL color depth.

Parameters:
plannedBpp the planned color depth, in bits per pixel.

Definition at line 242 of file OSDLOpenGL.cc.

void OpenGLContext::setColorDepth ( OSDL::Video::BitsPerPixel  redSize,
OSDL::Video::BitsPerPixel  greenSize,
OSDL::Video::BitsPerPixel  blueSize 
) throw ( OpenGLException ) [virtual]

Sets the OpenGL color depth.

Parameters:
redSize the size of the red component, in bits per pixel.
greenSize the size of the green component, in bits per pixel.
blueSize the size of the blue component, in bits per pixel.
Note:
Maybe alpha should be added.

Definition at line 280 of file OSDLOpenGL.cc.

bool OpenGLContext::getDoubleBufferStatus (  )  throw ( OpenGLException ) [virtual]

Returns the current OpenGL double buffering status.

Returns:
true iff double buffering is used.
Exceptions:
OpenGLException should an error occur.

Definition at line 295 of file OSDLOpenGL.cc.

References OSDL::Utils::getBackendLastError().

bool OpenGLContext::setDoubleBufferStatus ( bool  newStatus  )  throw ( OpenGLException ) [virtual]

Sets the OpenGL double buffering status (enabled or disabled).

Parameters:
newStatus,double buffering will be enabled iff true.
Returns:
true iff double buffering was indeed obtained.
Exceptions:
OpenGLException should an error occur.

Definition at line 310 of file OSDLOpenGL.cc.

Referenced by set2DFlavour(), and set3DFlavour().

void OpenGLContext::setShadingModel ( ShadingModel  newShadingModel = Smooth  )  throw ( OpenGLException ) [virtual]

Sets the shading technique to be used.

Parameters:
newShadingModel the new shading technique that shall be used.
Exceptions:
OpenGLException should an error occur.

Definition at line 321 of file OSDLOpenGL.cc.

void OpenGLContext::setCullingStatus ( bool  newStatus  )  throw () [virtual]

Sets the cullings status, i.e.

enable or disable culling.

Parameters:
newStatus culling is activated iff true.

Definition at line 370 of file OSDLOpenGL.cc.

void OpenGLContext::setCulling ( CulledFacet  culledFacet = Back,
FrontOrientation  frontOrientation = CounterClockwise,
bool  autoEnable = true 
) throw ( OpenGLException ) [virtual]

Sets the culling settings, and enables it if requested.

Parameters:
culledFacet tells whether front, or back, or front and back facets should be culled.
frontOrientation defines what are front facing polygons, depending on their winding.
autoEnable will specifically enable the use of culling iff true (it will not be only set).

Definition at line 381 of file OSDLOpenGL.cc.

void OpenGLContext::setFullScreenAntialiasingStatus ( bool  newStatus,
Ceylan::Uint8  samplesPerPixelNumber = 1 
) throw ( OpenGLException ) [virtual]

Sets the OpenGL fullscreen antialiasing (FSAA) status (enabled or disabled).

Note:
Requires the GL_ARB_MULTISAMPLE extension.
Parameters:
newStatus,FSAA will be enabled iff true.
samplesPerPixelNumber number of samples per pixel when multisampling (FSAA) is enabled.

Definition at line 473 of file OSDLOpenGL.cc.

Referenced by set2DFlavour(), and set3DFlavour().

void OpenGLContext::setDepthBufferStatus ( bool  newStatus  )  throw () [virtual]

Enables or disables the use of the depth buffer.

Parameters:
newStatus if true, will enable the depth buffer, if false will disable it.

Definition at line 494 of file OSDLOpenGL.cc.

void OpenGLContext::setDepthBufferSize ( Ceylan::Uint8  bitsNumber = 16,
bool  autoEnable = true 
) throw ( OpenGLException ) [virtual]

Sets the size, in bits, of the OpenGL depth buffer, and enables it, if requested.

Parameters:
bitsNumber the new depth buffer size.
autoEnable will specifically enable the use of the depth buffer iff true (it will not be only set).

Definition at line 505 of file OSDLOpenGL.cc.

void OpenGLContext::setViewPort ( Length  width,
Length  height,
const TwoDimensional::Point2D lowerLeftCorner = TwoDimensional::Point2D::Origin 
) throw ( OpenGLException ) [virtual]

Sets the OpenGL viewport, i.e.determines the transformation of x and y from normalized device coordinates to window coordinates.

The recomputation of the projection is automatically triggered accordingly, to avoid distorted graphics : it ensures that the viewport aspect ratio is the same as the one of the viewing volume.

Parameters:
width the width of the viewport.
height the height of the viewport.
lowerLeftCorner the coordinates of the lower left corner of the viewport rectangle in pixels. The default is the origin, (0,0).
Exceptions:
OpenGLException if either width or height is negative, or if this method is called between the execution of glBegin and the corresponding execution of glEnd.

Definition at line 517 of file OSDLOpenGL.cc.

void OpenGLContext::setOrthographicProjection ( GLLength  width,
GLCoordinate  near = -DefaultNearClippingPlaneFor3D,
GLCoordinate  far = -DefaultFarClippingPlaneFor3D 
) throw ( OpenGLException ) [virtual]

Sets an orthographic projection, so that the viewing volume is a box, whose sides are parallel to the main axes.

The viewer is located at the origin, looking towards the negative z values, his up vector being (0;1;0).

The box will be set so that :

Therefore, for a box width of w, the box will range between -w/2 and w/2 on the x axis, and between -w*r/2 and w*r/2 on the y axis, where r is the viewport aspect ratio : r = (viewport height) / (viewport width).

Parameters:
width the length of the box edge which is parallel to the x axis.
near the z coordinate of the near clipping plane.
far the z coordinate of the far clipping plane.

Definition at line 557 of file OSDLOpenGL.cc.

Referenced by set2DFlavour(), and updateProjection().

void OpenGLContext::clearViewport (  )  throw ( OpenGLException ) [virtual]

Clears the viewport with the current clear color.

Exceptions:
OpenGLException if this method is called between the execution of glBegin and the corresponding execution of glEnd.

Definition at line 600 of file OSDLOpenGL.cc.

void OpenGLContext::clearDepthBuffer (  )  throw ( OpenGLException ) [virtual]

Clears the depth buffer within the viewport.

Exceptions:
OpenGLException if this method is called between the execution of glBegin and the corresponding execution of glEnd.

Definition at line 632 of file OSDLOpenGL.cc.

const string OpenGLContext::toString ( Ceylan::VerbosityLevels  level = Ceylan::high  )  const throw () [virtual]

Returns an user-friendly description of the state of this object.

Parameters:
level the requested verbosity level.
Note:
Text output format is determined from overall settings.
See also:
Ceylan::TextDisplayable

Definition at line 663 of file OSDLOpenGL.cc.

string OpenGLContext::ToString ( OpenGL::Flavour  flavour  )  throw () [static]

Returns an user-friendly description of the specified OpenGL flavour.

Parameters:
flavour the flavour to describe.

Definition at line 694 of file OSDLOpenGL.cc.

References OSDL::Video::OpenGL::None, OSDL::Video::OpenGL::OpenGLFor2D, OSDL::Video::OpenGL::OpenGLFor3D, OSDL::Video::OpenGL::Reload, and OSDL::Video::Pixels::toString().

void OpenGLContext::updateProjection (  )  throw ( OpenGLException ) [protected, virtual]

Updates the current projection so that its aspect ratio matches the one of the viewport.

Exceptions:
OpenGLException if the current projection mode cannot be handled.

Definition at line 727 of file OSDLOpenGL.cc.

References _farClippingPlane, _nearClippingPlane, _projectionMode, _projectionWidth, Orthographic, and setOrthographicProjection().

OpenGLContext& OSDL::Video::OpenGL::OpenGLContext::operator= ( const OpenGLContext source  )  throw () [private]

Assignment operator made private to ensure that it will be never called.

The compiler should complain whenever this undefined operator is called, implicitly or not.


Member Data Documentation

const bool OpenGLContext::ContextCanBeLost [static]

Tells whether the OpenGL context can be lost (and therefore must be reloaded) under certain unexpected circumstances (ex : window resize, going to fullscreen, switching to another application, etc.

).

See also:
OpenGL::Flavour, for Reload.

Definition at line 646 of file OSDLOpenGL.h.

const bool OpenGLContext::ContextIsLostOnResize [static]

Tells whether the OpenGL context is lost (and therefore must be reloaded) on resize.

See also:
OpenGL::Flavour, for Reload.

Definition at line 656 of file OSDLOpenGL.h.

const bool OpenGLContext::ContextIsLostOnApplicationSwitch [static]

Tells whether the OpenGL context is lost (and therefore must be reloaded) when switching application.

See also:
OpenGL::Flavour, for Reload.

Definition at line 667 of file OSDLOpenGL.h.

const bool OpenGLContext::ContextIsLostOnColorDepthChange [static]

Tells whether the OpenGL context is lost (and therefore must be reloaded) when changing the color depth.

See also:
OpenGL::Flavour, for Reload.

Definition at line 678 of file OSDLOpenGL.h.

const GLLength OpenGLContext::DefaultOrthographicWidth [static]

Default width of the orthographic box is 1000 (1000.0f).

Definition at line 688 of file OSDLOpenGL.h.

Referenced by set2DFlavour().

const GLCoordinate OpenGLContext::DefaultNearClippingPlaneFor2D [static]

Coordinate, along the -z axis, of the default near clipping plane in 2D is -1 (-1.0f).

Definition at line 696 of file OSDLOpenGL.h.

Referenced by set2DFlavour().

const GLCoordinate OpenGLContext::DefaultFarClippingPlaneFor2D [static]

Coordinate, along the -z axis, of the default far clipping plane in 2D is 1 (1.0f).

Definition at line 704 of file OSDLOpenGL.h.

Referenced by set2DFlavour().

const GLCoordinate OpenGLContext::DefaultNearClippingPlaneFor3D [static]

Coordinate, along the -z axis, of the default near clipping plane in 3D is 1 (1.0f).

Definition at line 712 of file OSDLOpenGL.h.

const GLCoordinate OpenGLContext::DefaultFarClippingPlaneFor3D [static]

Coordinate, along the -z axis, of the default far clipping plane in 3D is 100000 (100000.0f).

Definition at line 720 of file OSDLOpenGL.h.

OpenGL::Flavour OSDL::Video::OpenGL::OpenGLContext::_flavour [protected]

Stores the current OpenGL flavour.

Definition at line 745 of file OSDLOpenGL.h.

OSDL::Video::BitsPerPixel OSDL::Video::OpenGL::OpenGLContext::_redSize [protected]

Size in bits of the red component.

Definition at line 749 of file OSDLOpenGL.h.

OSDL::Video::BitsPerPixel OSDL::Video::OpenGL::OpenGLContext::_greenSize [protected]

Size in bits of the green component.

Definition at line 752 of file OSDLOpenGL.h.

OSDL::Video::BitsPerPixel OSDL::Video::OpenGL::OpenGLContext::_blueSize [protected]

Size in bits of the blue component.

Definition at line 755 of file OSDLOpenGL.h.

Length OSDL::Video::OpenGL::OpenGLContext::_viewportWidth [protected]

Width of the viewport, useful to ensure aspect ratio is well managed.

Definition at line 763 of file OSDLOpenGL.h.

Length OSDL::Video::OpenGL::OpenGLContext::_viewportHeight [protected]

Height of the viewport, useful to ensure aspect ratio is well managed.

Definition at line 771 of file OSDLOpenGL.h.

ProjectionMode OSDL::Video::OpenGL::OpenGLContext::_projectionMode [protected]

Stores the current projection mode.

Definition at line 775 of file OSDLOpenGL.h.

Referenced by updateProjection().

GLLength OSDL::Video::OpenGL::OpenGLContext::_projectionWidth [protected]

Width of the projection volume, so that projection can be automatically updated when the viewport area changes.

Definition at line 784 of file OSDLOpenGL.h.

Referenced by updateProjection().

GLCoordinate OSDL::Video::OpenGL::OpenGLContext::_nearClippingPlane [protected]

The current z axis coordinate of the near clipping plane.

Definition at line 792 of file OSDLOpenGL.h.

Referenced by updateProjection().

GLCoordinate OSDL::Video::OpenGL::OpenGLContext::_farClippingPlane [protected]

The current z axis coordinate of the far clipping plane.

Definition at line 796 of file OSDLOpenGL.h.

Referenced by updateProjection().


The documentation for this class was generated from the following files:
Generated on Fri Mar 30 14:47:32 2007 for OSDL by  doxygen 1.5.1