OGLplus (0.52.0) a C++ wrapper for OpenGL

Wrapper for the viewport-related operations. More...

#include </home/chochlik/devel/oglplus/include/oglplus/context/viewport.hpp>

Inheritance diagram for oglplus::context::ViewportOps:

Static Public Member Functions

static void Viewport (GLint x, GLint y, GLsizei w, GLsizei h)
 Sets the extents of the current viewport. More...
 
static void Viewport (GLsizei w, GLsizei h)
 Sets the size of the current viewport starting at (0,0) More...
 
static ViewportExtents Viewport (void)
 Returns the extents of the current viewport. More...
 
static BoundsRange ViewportBoundsRange (void)
 Returns the implementation-dependent viewport bounds range. More...
 
static ViewportSize MaxViewportDims (void)
 Returns the implementation-dependent maximum viewport dimensions. More...
 
static void DepthRange (GLclampf near_val, GLclampf far_val)
 Sets the near_val / far_val depth range of the default viewport. More...
 
static void DepthRange (GLclampd near_val, GLclampd far_val)
 Sets the near_val / far_val depth range of the default viewport. More...
 
static GLuint MaxViewports (void)
 Returns the number of available viewports. More...
 
static void Viewport (GLuint viewport, GLfloat x, GLfloat y, GLfloat width, GLfloat height)
 Sets the extents of the specified viewport. More...
 
static void Viewport (GLuint viewport, const GLfloat *extents)
 Sets the extents of the specified viewport. More...
 
static void ViewportArray (GLuint first, GLsizei count, const GLfloat *extents)
 Sets extents of the viewports specified by first and count. More...
 
static ViewportExtents Viewport (GLuint viewport)
 Returns the extents of the specified viewport. More...
 
static void DepthRange (GLuint viewport, GLclampd near_val, GLclampd far_val)
 Sets the near_val / far_val depth range of a viewport. More...
 
static void DepthRangeArray (GLuint first, GLsizei count, const GLclampd *v)
 Sets depth ranges of viewports specified by first and count. More...
 
static oglplus::context::DepthRange ViewportDepthRange (GLuint viewport)
 Returns the depth range of the specified viewport. More...
 

Detailed Description

Wrapper for the viewport-related operations.

Member Function Documentation

static void oglplus::context::ViewportOps::DepthRange ( GLclampf  near_val,
GLclampf  far_val 
)
static

Sets the near_val / far_val depth range of the default viewport.

Exceptions
Error
Related OpenGL symbols:
glDepthRangef
static void oglplus::context::ViewportOps::DepthRange ( GLclampd  near_val,
GLclampd  far_val 
)
static

Sets the near_val / far_val depth range of the default viewport.

Exceptions
Error
Related OpenGL symbols:
glDepthRangef
static void oglplus::context::ViewportOps::DepthRange ( GLuint  viewport,
GLclampd  near_val,
GLclampd  far_val 
)
static

Sets the near_val / far_val depth range of a viewport.

Exceptions
Error
Related OpenGL symbols:
glDepthRangeIndexed
static void oglplus::context::ViewportOps::DepthRangeArray ( GLuint  first,
GLsizei  count,
const GLclampd *  v 
)
static

Sets depth ranges of viewports specified by first and count.

Exceptions
Error
Related OpenGL symbols:
glDepthRangeArrayv
static ViewportSize oglplus::context::ViewportOps::MaxViewportDims ( void  )
static

Returns the implementation-dependent maximum viewport dimensions.

Exceptions
Error
Related OpenGL symbols:
glGet GL_MAX_VIEWPORT_DIMS
static GLuint oglplus::context::ViewportOps::MaxViewports ( void  )
static

Returns the number of available viewports.

Exceptions
Error
Related OpenGL symbols:
glGet GL_MAX_VIEWPORTS
static void oglplus::context::ViewportOps::Viewport ( GLint  x,
GLint  y,
GLsizei  w,
GLsizei  h 
)
static

Sets the extents of the current viewport.

Exceptions
Error
Related OpenGL symbols:
glViewport

References Viewport().

static void oglplus::context::ViewportOps::Viewport ( GLsizei  w,
GLsizei  h 
)
static

Sets the size of the current viewport starting at (0,0)

Exceptions
Error
Related OpenGL symbols:
glViewport

References Viewport().

static ViewportExtents oglplus::context::ViewportOps::Viewport ( void  )
static

Returns the extents of the current viewport.

Exceptions
Error
Related OpenGL symbols:
glGet GL_VIEWPORT

Referenced by Viewport().

static void oglplus::context::ViewportOps::Viewport ( GLuint  viewport,
GLfloat  x,
GLfloat  y,
GLfloat  width,
GLfloat  height 
)
static

Sets the extents of the specified viewport.

Exceptions
Error
Related OpenGL symbols:
glViewportIndexedf
static void oglplus::context::ViewportOps::Viewport ( GLuint  viewport,
const GLfloat *  extents 
)
static

Sets the extents of the specified viewport.

Exceptions
Error
Related OpenGL symbols:
glViewportIndexedfv
static ViewportExtents oglplus::context::ViewportOps::Viewport ( GLuint  viewport)
static

Returns the extents of the specified viewport.

Exceptions
Error
Related OpenGL symbols:
glGet GL_VIEWPORT
static void oglplus::context::ViewportOps::ViewportArray ( GLuint  first,
GLsizei  count,
const GLfloat *  extents 
)
static

Sets extents of the viewports specified by first and count.

Exceptions
Error
Related OpenGL symbols:
glViewportIndexedfv
static BoundsRange oglplus::context::ViewportOps::ViewportBoundsRange ( void  )
static

Returns the implementation-dependent viewport bounds range.

Exceptions
Error
Related OpenGL symbols:
glGet GL_VIEWPORT_BOUNDS_RANGE
static oglplus::context::DepthRange oglplus::context::ViewportOps::ViewportDepthRange ( GLuint  viewport)
static

Returns the depth range of the specified viewport.

Exceptions
Error
Related OpenGL symbols:
glGet GL_DEPTH_RANGE

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/context/viewport.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).