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 | |
ca3c13d1 |
26 | #if !defined(GL_ES_VERSION_2_0) |
27 | |
01ca42b2 |
28 | public: //! @name GL_ARB_blend_func_extended (added to OpenGL 3.3 core) |
29 | |
30 | using theBaseClass_t::glBindFragDataLocationIndexed; |
31 | using theBaseClass_t::glGetFragDataIndex; |
32 | |
33 | public: //! @name GL_ARB_sampler_objects (added to OpenGL 3.3 core) |
34 | |
35 | using theBaseClass_t::glGenSamplers; |
36 | using theBaseClass_t::glDeleteSamplers; |
37 | using theBaseClass_t::glIsSampler; |
38 | using theBaseClass_t::glBindSampler; |
39 | using theBaseClass_t::glSamplerParameteri; |
40 | using theBaseClass_t::glSamplerParameteriv; |
41 | using theBaseClass_t::glSamplerParameterf; |
42 | using theBaseClass_t::glSamplerParameterfv; |
43 | using theBaseClass_t::glSamplerParameterIiv; |
44 | using theBaseClass_t::glSamplerParameterIuiv; |
45 | using theBaseClass_t::glGetSamplerParameteriv; |
46 | using theBaseClass_t::glGetSamplerParameterIiv; |
47 | using theBaseClass_t::glGetSamplerParameterfv; |
48 | using theBaseClass_t::glGetSamplerParameterIuiv; |
49 | |
50 | public: //! @name GL_ARB_timer_query (added to OpenGL 3.3 core) |
51 | |
52 | using theBaseClass_t::glQueryCounter; |
53 | using theBaseClass_t::glGetQueryObjecti64v; |
54 | using theBaseClass_t::glGetQueryObjectui64v; |
55 | |
56 | public: //! @name GL_ARB_vertex_type_2_10_10_10_rev (added to OpenGL 3.3 core) |
57 | |
01ca42b2 |
58 | using theBaseClass_t::glVertexAttribP1ui; |
59 | using theBaseClass_t::glVertexAttribP1uiv; |
60 | using theBaseClass_t::glVertexAttribP2ui; |
61 | using theBaseClass_t::glVertexAttribP2uiv; |
62 | using theBaseClass_t::glVertexAttribP3ui; |
63 | using theBaseClass_t::glVertexAttribP3uiv; |
64 | using theBaseClass_t::glVertexAttribP4ui; |
65 | using theBaseClass_t::glVertexAttribP4uiv; |
66 | |
67 | public: //! @name OpenGL 3.3 additives to 3.2 |
68 | |
69 | using theBaseClass_t::glVertexAttribDivisor; |
70 | |
ca3c13d1 |
71 | #endif |
72 | |
01ca42b2 |
73 | }; |
74 | |
75 | //! OpenGL 3.3 compatibility profile. |
76 | typedef OpenGl_TmplCore33<OpenGl_GlCore32Back> OpenGl_GlCore33Back; |
77 | |
78 | //! OpenGL 3.3 core profile. |
79 | typedef OpenGl_TmplCore33<OpenGl_GlCore32> OpenGl_GlCore33; |
80 | |
81 | #endif // _OpenGl_GlCore33_Header |