13 #ifndef OGLPLUS_CONTEXT_RASTERIZATION_1201040722_HPP
14 #define OGLPLUS_CONTEXT_RASTERIZATION_1201040722_HPP
39 OGLPLUS_GLFUNC(
FrontFace)(GLenum(orientation));
43 EnumParam(orientation)
54 OGLPLUS_GLFUNC(
CullFace)(GLenum(mode));
71 OGLPLUS_GLFUNC(GetIntegerv)(GL_CULL_FACE_MODE, &result);
72 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
76 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_0
84 OGLPLUS_GLFUNC(
PolygonMode)(GLenum(face), GLenum(mode));
99 OGLPLUS_GLFUNC(
PolygonMode)(GL_FRONT_AND_BACK, GLenum(mode));
116 OGLPLUS_GLFUNC(GetIntegerv)(GL_POLYGON_MODE, result);
117 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
120 #endif // GL_VERSION_3_0
142 OGLPLUS_GLFUNC(GetFloatv)(GL_POLYGON_OFFSET_FACTOR, &result);
143 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
156 OGLPLUS_GLFUNC(GetFloatv)(GL_POLYGON_OFFSET_UNITS, &result);
157 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
181 OGLPLUS_GLFUNC(GetFloatv)(GL_LINE_WIDTH, &result);
182 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
186 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_0
207 OGLPLUS_GLFUNC(GetFloatv)(GL_POINT_SIZE, &result);
208 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
220 OGLPLUS_GLFUNC(PointParameterf)(
221 GL_POINT_FADE_THRESHOLD_SIZE,
224 OGLPLUS_VERIFY_SIMPLE(PointParameterf);
236 OGLPLUS_GLFUNC(GetFloatv)(GL_POINT_FADE_THRESHOLD_SIZE,&result);
237 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
240 #endif // GL_VERSION_3_0
242 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_2 || GL_ARB_provoking_vertex
265 OGLPLUS_GLFUNC(GetIntegerv)(GL_PROVOKING_VERTEX, &result);
266 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
279 OGLPLUS_GLFUNC(GetIntegerv)(GL_SAMPLE_BUFFERS, &result);
280 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
293 OGLPLUS_GLFUNC(GetIntegerv)(GL_SAMPLES, &result);
294 OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
298 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_2
309 OGLPLUS_GLFUNC(GetMultisamplefv)(
314 OGLPLUS_VERIFY_SIMPLE(GetMultisamplefv);
319 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_4_0
330 OGLPLUS_GLFUNC(GetFloatv)(GL_MIN_SAMPLE_SHADING_VALUE, &result);
331 OGLPLUS_VERIFY_SIMPLE(GetFloatv);
352 #endif // include guard
static Vec2f SamplePosition(GLuint index)
Returns the position of the specified multisampling sample.
Definition: rasterization.hpp:306
static GLfloat LineWidth(void)
Returns the line width.
Definition: rasterization.hpp:178
static GLfloat PointFadeThresholdSize(void)
Returns the point fade threshold size.
Definition: rasterization.hpp:233
static GLint SampleBuffers(void)
Returns the value of sample buffers.
Definition: rasterization.hpp:276
static void PolygonOffset(GLfloat factor, GLfloat units)
Sets the polygon depth offset.
Definition: rasterization.hpp:127
static void PolygonMode(oglplus::PolygonMode mode)
Sets the polygon rasterization mode.
Definition: rasterization.hpp:97
static void PolygonMode(Face face, oglplus::PolygonMode mode)
Sets the polygon rasterization mode.
Definition: rasterization.hpp:82
static void FrontFace(FaceOrientation orientation)
Sets the polygon facing mode.
Definition: rasterization.hpp:37
OpenGL provoking vertex mode enumeration.
static Face CullFaceMode(void)
Returns the face culling mode.
Definition: rasterization.hpp:68
static GLfloat PointSize(void)
Returns the point size.
Definition: rasterization.hpp:204
ProvokeMode
Provoking vertex selection mode (for flatshading) enumeration.
Definition: provoke_mode.hpp:27
static oglplus::PolygonMode PolygonMode(void)
Returns the face culling mode.
Definition: rasterization.hpp:113
Face
Polygon facing enumeration.
Definition: face_mode.hpp:34
FaceOrientation
Face orientation enumeration.
Definition: face_mode.hpp:62
OpenGL face type-related enumeration.
static GLint Samples(void)
Returns the number of multisampling samples.
Definition: rasterization.hpp:290
Helper macro for optional checking of availability of GL function.
static void ProvokingVertex(ProvokeMode mode)
Sets the provoking vertex selection mode for flatshading.
Definition: rasterization.hpp:249
static GLfloat MinSampleShading(void)
Returns the minimal sample shading value.
Definition: rasterization.hpp:327
friend const T * Data(const Vector &vector)
Returns a pointer to an array containing the vectors coordinates.
Definition: vector.hpp:356
PolygonMode
Polygon rasterization mode enumeration.
Definition: polygon_mode.hpp:27
static void CullFace(Face mode)
Sets the face culling mode.
Definition: rasterization.hpp:52
static void PointSize(GLfloat size)
Sets the point size.
Definition: rasterization.hpp:192
static ProvokeMode ProvokingVertex(void)
Returns the provoking vertex selection mode for flatshading.
Definition: rasterization.hpp:262
Exception class for general OpenGL errors.
Definition: basic.hpp:43
OpenGL polygon rasterization mode-related enumeration.
static GLfloat PolygonOffsetUnits(void)
Returns the polygon offset units.
Definition: rasterization.hpp:153
static void LineWidth(GLfloat width)
Sets the line width.
Definition: rasterization.hpp:166
Wrapper for the basic point, line and polygon rasterization operations.
Definition: rasterization.hpp:29
Basic template for vector types.
Definition: fwd.hpp:43
static void MinSampleShading(GLfloat value)
Sets the multisampling minimal sample shading value.
Definition: rasterization.hpp:341
static GLfloat PolygonOffsetFactor(void)
Returns the polygon offset factor.
Definition: rasterization.hpp:139
static void PointFadeThresholdSize(GLfloat size)
Sets the point fade threshold size.
Definition: rasterization.hpp:218