OGLplus (0.52.0) a C++ wrapper for OpenGL

NV_path_rendering.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_EXT_NV_PATH_RENDERING_1203031902_HPP
14 #define OGLPLUS_EXT_NV_PATH_RENDERING_1203031902_HPP
15 
16 #if OGLPLUS_DOCUMENTATION_ONLY || GL_NV_path_rendering
17 
22 
23 #include <oglplus/texture_unit.hpp>
24 #include <oglplus/extension.hpp>
25 
26 namespace oglplus {
27 
29 
36 {
37 public:
38  OGLPLUS_EXTENSION_CLASS(NV, path_rendering)
39 
40 
41 
45  static void CoverDepthFunc(CompareFunction function)
46  {
47  OGLPLUS_GLFUNC(PathCoverDepthFuncNV)(GLenum(function));
48  OGLPLUS_CHECK_SIMPLE(PathCoverDepthFuncNV);
49  }
50 
52 
56  static void DepthOffset(GLfloat factor, GLint units)
57  {
58  OGLPLUS_GLFUNC(PathStencilDepthOffsetNV)(factor, units);
59  OGLPLUS_CHECK_SIMPLE(PathStencilDepthOffsetNV);
60  }
61 
63 
67  static void ColorGen(
68  PathNVColor color,
69  PathNVGenMode gen_mode,
70  PathNVColorFormat color_format,
71  const GLfloat* coeffs
72  )
73  {
74  OGLPLUS_GLFUNC(PathColorGenNV)(
75  GLenum(color),
76  GLenum(gen_mode),
77  GLenum(color_format),
78  coeffs
79  );
80  OGLPLUS_CHECK_SIMPLE(PathColorGenNV);
81  }
82 
84 
88  static void TexGen(
89  TextureUnitSelector tex_unit,
90  PathNVGenMode gen_mode,
91  GLint components,
92  const GLfloat* coeffs
93  )
94  {
95  OGLPLUS_GLFUNC(PathTexGenNV)(
96  GLenum(GL_TEXTURE0 + GLuint(tex_unit)),
97  GLenum(gen_mode),
98  components,
99  coeffs
100  );
101  OGLPLUS_CHECK_SIMPLE(PathTexGenNV);
102  }
103 };
104 
105 } // namespace oglplus
106 
107 #endif // NV_path_rendering
108 
109 #endif // include guard
static void CoverDepthFunc(CompareFunction function)
Sets the depth function to be used with path cover functions.
Definition: NV_path_rendering.hpp:45
Funcions and classes for handling and wrapping OpenGL extensions.
static void DepthOffset(GLfloat factor, GLint units)
Sets the depth offset for rendered paths.
Definition: NV_path_rendering.hpp:56
Wrapper for the NV_path_rendering generation mode enumeration.
PathNVColor
Path color mode enumeration.
Definition: color.hpp:27
Wrapper for the NV_path_rendering path array class.
Wrapper for the NV_path_rendering color enumeration.
static void ColorGen(PathNVColor color, PathNVGenMode gen_mode, PathNVColorFormat color_format, const GLfloat *coeffs)
Sets how colors are computed for path covering fragment operations.
Definition: NV_path_rendering.hpp:67
static void TexGen(TextureUnitSelector tex_unit, PathNVGenMode gen_mode, GLint components, const GLfloat *coeffs)
Sets how tex-coords are computed for path covering fragment operations.
Definition: NV_path_rendering.hpp:88
PathNVGenMode
Path color and tex-coord generation mode enumeration.
Definition: gen_mode.hpp:27
Wrapper for the NV_path_rendering extension.
Definition: NV_path_rendering.hpp:35
PathNVColorFormat
Path color format enumeration.
Definition: color_format.hpp:27
Type for the texture unit selector (implementation-dependent limited) number.
Definition: texture_unit.hpp:22
CompareFunction
Comparison function type enumeration.
Definition: compare_function.hpp:30
Texture and image unit selectors.
Wrapper for the NV_path_rendering color format enumeration.

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