13 #ifndef OGLPLUS_CONTEXT_VIEWPORT_1201040722_HPP
14 #define OGLPLUS_CONTEXT_VIEWPORT_1201040722_HPP
97 GLfloat
Min(
void)
const
142 static void Viewport(GLint x, GLint y, GLsizei w, GLsizei h)
144 OGLPLUS_GLFUNC(
Viewport)(x, y, w, h);
157 OGLPLUS_GLFUNC(
Viewport)(0, 0, w, h);
172 OGLPLUS_GLFUNC(GetFloatv)(GL_VIEWPORT, result._v);
173 OGLPLUS_CHECK_SIMPLE(GetFloatv);
177 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_1 || GL_ARB_viewport_array
189 OGLPLUS_GLFUNC(GetFloatv)(
190 GL_VIEWPORT_BOUNDS_RANGE,
193 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
209 OGLPLUS_GLFUNC(GetFloatv)(
210 GL_MAX_VIEWPORT_DIMS,
213 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
218 #if OGLPLUS_DOCUMENTATION_ONLY || \
219 GL_ES_VERSION_3_0 || \
221 GL_ARB_ES2_compatibility
231 OGLPLUS_GLFUNC(DepthRangef)(near_val, far_val);
232 OGLPLUS_CHECK_SIMPLE(DepthRangef);
236 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_0
246 OGLPLUS_GLFUNC(
DepthRange)(near_val, far_val);
251 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_1 || GL_ARB_viewport_array
263 OGLPLUS_GLFUNC(GetIntegerv)(GL_MAX_VIEWPORTS, &result);
264 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
265 return GLuint(result);
283 OGLPLUS_GLFUNC(ViewportIndexedf)(viewport, x, y, width, height);
298 static void Viewport(GLuint viewport,
const GLfloat* extents)
300 OGLPLUS_GLFUNC(ViewportIndexedfv)(viewport, extents);
318 const GLfloat* extents
321 OGLPLUS_GLFUNC(ViewportArrayv)(first, count, extents);
322 OGLPLUS_CHECK_SIMPLE(ViewportArrayv);
336 OGLPLUS_GLFUNC(GetFloati_v)(GL_VIEWPORT, viewport, result._v);
337 OGLPLUS_CHECK_SIMPLE(GetFloati_v);
349 static void DepthRange(GLuint viewport, GLclampd near_val, GLclampd far_val)
351 OGLPLUS_GLFUNC(DepthRangeIndexed)(viewport, near_val, far_val);
372 OGLPLUS_GLFUNC(DepthRangeArrayv)(first, count, v);
373 OGLPLUS_CHECK_SIMPLE(DepthRangeArrayv);
387 OGLPLUS_GLFUNC(GetFloati_v)(GL_DEPTH_RANGE, viewport,result._v);
401 #endif // include guard
GLfloat Height(void) const
The height of the viewport.
Definition: viewport.hpp:84
static void DepthRangeArray(GLuint first, GLsizei count, const GLclampd *v)
Sets depth ranges of viewports specified by first and count.
Definition: viewport.hpp:366
static BoundsRange ViewportBoundsRange(void)
Returns the implementation-dependent viewport bounds range.
Definition: viewport.hpp:186
static void Viewport(GLuint viewport, const GLfloat *extents)
Sets the extents of the specified viewport.
Definition: viewport.hpp:298
GLfloat Y(void) const
The y-coordinate.
Definition: viewport.hpp:34
GLfloat Height(void) const
The height of the viewport.
Definition: viewport.hpp:53
static ViewportSize MaxViewportDims(void)
Returns the implementation-dependent maximum viewport dimensions.
Definition: viewport.hpp:206
Helper structure storing position in a 2D viewport.
Definition: viewport.hpp:22
static void DepthRange(GLclampf near_val, GLclampf far_val)
Sets the near_val / far_val depth range of the default viewport.
Definition: viewport.hpp:229
static void Viewport(GLuint viewport, GLfloat x, GLfloat y, GLfloat width, GLfloat height)
Sets the extents of the specified viewport.
Definition: viewport.hpp:275
GLfloat Far(void) const
The far limit.
Definition: viewport.hpp:122
GLfloat Width(void) const
The width of the viewport.
Definition: viewport.hpp:78
GLfloat Y(void) const
The y-coordinate.
Definition: viewport.hpp:72
static void Viewport(GLsizei w, GLsizei h)
Sets the size of the current viewport starting at (0,0)
Definition: viewport.hpp:155
Helper structure storing the min/max bounds range.
Definition: viewport.hpp:91
GLfloat Max(void) const
The max limit.
Definition: viewport.hpp:103
static ViewportExtents Viewport(void)
Returns the extents of the current viewport.
Definition: viewport.hpp:169
GLfloat X(void) const
The x-coordinate.
Definition: viewport.hpp:28
Helper macro for optional checking of availability of GL function.
static GLuint MaxViewports(void)
Returns the number of available viewports.
Definition: viewport.hpp:260
GLfloat Near(void) const
The near limit.
Definition: viewport.hpp:116
Helper structure storing the dimensions of a 2D viewport.
Definition: viewport.hpp:41
static void DepthRange(GLclampd near_val, GLclampd far_val)
Sets the near_val / far_val depth range of the default viewport.
Definition: viewport.hpp:244
Wrapper for the viewport-related operations.
Definition: viewport.hpp:132
static oglplus::context::DepthRange ViewportDepthRange(GLuint viewport)
Returns the depth range of the specified viewport.
Definition: viewport.hpp:384
Helper structure storing the extents of a 2D viewport.
Definition: viewport.hpp:60
static void Viewport(GLint x, GLint y, GLsizei w, GLsizei h)
Sets the extents of the current viewport.
Definition: viewport.hpp:142
Exception class for general OpenGL errors.
Definition: basic.hpp:43
Helper structure storing the near/far depth range.
Definition: viewport.hpp:110
GLfloat Min(void) const
The min limit.
Definition: viewport.hpp:97
static void DepthRange(GLuint viewport, GLclampd near_val, GLclampd far_val)
Sets the near_val / far_val depth range of a viewport.
Definition: viewport.hpp:349
static ViewportExtents Viewport(GLuint viewport)
Returns the extents of the specified viewport.
Definition: viewport.hpp:333
GLfloat X(void) const
The x-coordinate.
Definition: viewport.hpp:66
static void ViewportArray(GLuint first, GLsizei count, const GLfloat *extents)
Sets extents of the viewports specified by first and count.
Definition: viewport.hpp:315
GLfloat Width(void) const
The width of the viewport.
Definition: viewport.hpp:47