0025219: Visualization, TKOpenGl - disable code paths unavailable on OpenGL ES 2.0
[occt.git] / src / OpenGl / OpenGl_GlCore33.hxx
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 #if !defined(GL_ES_VERSION_2_0)
27
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
58   using theBaseClass_t::glVertexP2ui;
59   using theBaseClass_t::glVertexP2uiv;
60   using theBaseClass_t::glVertexP3ui;
61   using theBaseClass_t::glVertexP3uiv;
62   using theBaseClass_t::glVertexP4ui;
63   using theBaseClass_t::glVertexP4uiv;
64   using theBaseClass_t::glTexCoordP1ui;
65   using theBaseClass_t::glTexCoordP1uiv;
66   using theBaseClass_t::glTexCoordP2ui;
67   using theBaseClass_t::glTexCoordP2uiv;
68   using theBaseClass_t::glTexCoordP3ui;
69   using theBaseClass_t::glTexCoordP3uiv;
70   using theBaseClass_t::glTexCoordP4ui;
71   using theBaseClass_t::glTexCoordP4uiv;
72   using theBaseClass_t::glMultiTexCoordP1ui;
73   using theBaseClass_t::glMultiTexCoordP1uiv;
74   using theBaseClass_t::glMultiTexCoordP2ui;
75   using theBaseClass_t::glMultiTexCoordP2uiv;
76   using theBaseClass_t::glMultiTexCoordP3ui;
77   using theBaseClass_t::glMultiTexCoordP3uiv;
78   using theBaseClass_t::glMultiTexCoordP4ui;
79   using theBaseClass_t::glMultiTexCoordP4uiv;
80   using theBaseClass_t::glNormalP3ui;
81   using theBaseClass_t::glNormalP3uiv;
82   using theBaseClass_t::glColorP3ui;
83   using theBaseClass_t::glColorP3uiv;
84   using theBaseClass_t::glColorP4ui;
85   using theBaseClass_t::glColorP4uiv;
86   using theBaseClass_t::glSecondaryColorP3ui;
87   using theBaseClass_t::glSecondaryColorP3uiv;
88   using theBaseClass_t::glVertexAttribP1ui;
89   using theBaseClass_t::glVertexAttribP1uiv;
90   using theBaseClass_t::glVertexAttribP2ui;
91   using theBaseClass_t::glVertexAttribP2uiv;
92   using theBaseClass_t::glVertexAttribP3ui;
93   using theBaseClass_t::glVertexAttribP3uiv;
94   using theBaseClass_t::glVertexAttribP4ui;
95   using theBaseClass_t::glVertexAttribP4uiv;
96
97 public: //! @name OpenGL 3.3 additives to 3.2
98
99   using theBaseClass_t::glVertexAttribDivisor;
100
101 #endif
102
103 };
104
105 //! OpenGL 3.3 compatibility profile.
106 typedef OpenGl_TmplCore33<OpenGl_GlCore32Back> OpenGl_GlCore33Back;
107
108 //! OpenGL 3.3 core profile.
109 typedef OpenGl_TmplCore33<OpenGl_GlCore32>     OpenGl_GlCore33;
110
111 #endif // _OpenGl_GlCore33_Header