01ca42b2 |
1 | // Created on: 2014-03-17 |
2 | // Created by: Kirill GAVRILOV |
3 | // Copyright (c) 2014 OPEN CASCADE SAS |
4 | // |
5 | // This file is part of Open CASCADE Technology software library. |
6 | // |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
12 | // |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
15 | |
16 | #ifndef _OpenGl_GlCore33_Header |
17 | #define _OpenGl_GlCore33_Header |
18 | |
19 | #include <OpenGl_GlCore32.hxx> |
20 | |
21 | //! OpenGL 3.3 definition. |
22 | template<typename theBaseClass_t> |
23 | struct OpenGl_TmplCore33 : public theBaseClass_t |
24 | { |
25 | |
26 | public: //! @name GL_ARB_blend_func_extended (added to OpenGL 3.3 core) |
27 | |
28 | using theBaseClass_t::glBindFragDataLocationIndexed; |
29 | using theBaseClass_t::glGetFragDataIndex; |
30 | |
31 | public: //! @name GL_ARB_sampler_objects (added to OpenGL 3.3 core) |
32 | |
33 | using theBaseClass_t::glGenSamplers; |
34 | using theBaseClass_t::glDeleteSamplers; |
35 | using theBaseClass_t::glIsSampler; |
36 | using theBaseClass_t::glBindSampler; |
37 | using theBaseClass_t::glSamplerParameteri; |
38 | using theBaseClass_t::glSamplerParameteriv; |
39 | using theBaseClass_t::glSamplerParameterf; |
40 | using theBaseClass_t::glSamplerParameterfv; |
41 | using theBaseClass_t::glSamplerParameterIiv; |
42 | using theBaseClass_t::glSamplerParameterIuiv; |
43 | using theBaseClass_t::glGetSamplerParameteriv; |
44 | using theBaseClass_t::glGetSamplerParameterIiv; |
45 | using theBaseClass_t::glGetSamplerParameterfv; |
46 | using theBaseClass_t::glGetSamplerParameterIuiv; |
47 | |
48 | public: //! @name GL_ARB_timer_query (added to OpenGL 3.3 core) |
49 | |
50 | using theBaseClass_t::glQueryCounter; |
51 | using theBaseClass_t::glGetQueryObjecti64v; |
52 | using theBaseClass_t::glGetQueryObjectui64v; |
53 | |
54 | public: //! @name GL_ARB_vertex_type_2_10_10_10_rev (added to OpenGL 3.3 core) |
55 | |
56 | using theBaseClass_t::glVertexP2ui; |
57 | using theBaseClass_t::glVertexP2uiv; |
58 | using theBaseClass_t::glVertexP3ui; |
59 | using theBaseClass_t::glVertexP3uiv; |
60 | using theBaseClass_t::glVertexP4ui; |
61 | using theBaseClass_t::glVertexP4uiv; |
62 | using theBaseClass_t::glTexCoordP1ui; |
63 | using theBaseClass_t::glTexCoordP1uiv; |
64 | using theBaseClass_t::glTexCoordP2ui; |
65 | using theBaseClass_t::glTexCoordP2uiv; |
66 | using theBaseClass_t::glTexCoordP3ui; |
67 | using theBaseClass_t::glTexCoordP3uiv; |
68 | using theBaseClass_t::glTexCoordP4ui; |
69 | using theBaseClass_t::glTexCoordP4uiv; |
70 | using theBaseClass_t::glMultiTexCoordP1ui; |
71 | using theBaseClass_t::glMultiTexCoordP1uiv; |
72 | using theBaseClass_t::glMultiTexCoordP2ui; |
73 | using theBaseClass_t::glMultiTexCoordP2uiv; |
74 | using theBaseClass_t::glMultiTexCoordP3ui; |
75 | using theBaseClass_t::glMultiTexCoordP3uiv; |
76 | using theBaseClass_t::glMultiTexCoordP4ui; |
77 | using theBaseClass_t::glMultiTexCoordP4uiv; |
78 | using theBaseClass_t::glNormalP3ui; |
79 | using theBaseClass_t::glNormalP3uiv; |
80 | using theBaseClass_t::glColorP3ui; |
81 | using theBaseClass_t::glColorP3uiv; |
82 | using theBaseClass_t::glColorP4ui; |
83 | using theBaseClass_t::glColorP4uiv; |
84 | using theBaseClass_t::glSecondaryColorP3ui; |
85 | using theBaseClass_t::glSecondaryColorP3uiv; |
86 | using theBaseClass_t::glVertexAttribP1ui; |
87 | using theBaseClass_t::glVertexAttribP1uiv; |
88 | using theBaseClass_t::glVertexAttribP2ui; |
89 | using theBaseClass_t::glVertexAttribP2uiv; |
90 | using theBaseClass_t::glVertexAttribP3ui; |
91 | using theBaseClass_t::glVertexAttribP3uiv; |
92 | using theBaseClass_t::glVertexAttribP4ui; |
93 | using theBaseClass_t::glVertexAttribP4uiv; |
94 | |
95 | public: //! @name OpenGL 3.3 additives to 3.2 |
96 | |
97 | using theBaseClass_t::glVertexAttribDivisor; |
98 | |
99 | }; |
100 | |
101 | //! OpenGL 3.3 compatibility profile. |
102 | typedef OpenGl_TmplCore33<OpenGl_GlCore32Back> OpenGl_GlCore33Back; |
103 | |
104 | //! OpenGL 3.3 core profile. |
105 | typedef OpenGl_TmplCore33<OpenGl_GlCore32> OpenGl_GlCore33; |
106 | |
107 | #endif // _OpenGl_GlCore33_Header |