1 // Created on: 2014-03-17
2 // Created by: Kirill GAVRILOV
3 // Copyright (c) 2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _OpenGl_GlCore30_Header
17 #define _OpenGl_GlCore30_Header
19 #include <OpenGl_GlCore21.hxx>
22 //! This is first version with deprecation model introduced
23 //! - a lot of functionality regarding to fixed pipeline were marked deprecated.
24 //! Notice that nothing were actually removed in this version (unless Forward context loaded)!
25 template<typename theBaseClass_t>
26 struct OpenGl_TmplCore30 : public theBaseClass_t
29 public: //! @name GL_ARB_framebuffer_object (added to OpenGL 3.0 core)
31 using theBaseClass_t::glIsRenderbuffer;
32 using theBaseClass_t::glBindRenderbuffer;
33 using theBaseClass_t::glDeleteRenderbuffers;
34 using theBaseClass_t::glGenRenderbuffers;
35 using theBaseClass_t::glRenderbufferStorage;
36 using theBaseClass_t::glGetRenderbufferParameteriv;
37 using theBaseClass_t::glIsFramebuffer;
38 using theBaseClass_t::glBindFramebuffer;
39 using theBaseClass_t::glDeleteFramebuffers;
40 using theBaseClass_t::glGenFramebuffers;
41 using theBaseClass_t::glCheckFramebufferStatus;
42 using theBaseClass_t::glFramebufferTexture2D;
43 using theBaseClass_t::glFramebufferRenderbuffer;
44 using theBaseClass_t::glGetFramebufferAttachmentParameteriv;
45 using theBaseClass_t::glGenerateMipmap;
46 using theBaseClass_t::glBlitFramebuffer;
47 using theBaseClass_t::glRenderbufferStorageMultisample;
48 using theBaseClass_t::glFramebufferTextureLayer;
49 #if !defined(GL_ES_VERSION_2_0)
50 using theBaseClass_t::glFramebufferTexture1D;
51 using theBaseClass_t::glFramebufferTexture3D;
54 public: //! @name GL_ARB_vertex_array_object (added to OpenGL 3.0 core)
56 using theBaseClass_t::glBindVertexArray;
57 using theBaseClass_t::glDeleteVertexArrays;
58 using theBaseClass_t::glGenVertexArrays;
59 using theBaseClass_t::glIsVertexArray;
61 public: //! @name GL_ARB_map_buffer_range (added to OpenGL 3.0 core)
63 using theBaseClass_t::glMapBufferRange;
64 using theBaseClass_t::glFlushMappedBufferRange;
66 public: //! @name OpenGL 3.0 additives to 2.1
68 using theBaseClass_t::glGetBooleani_v;
69 using theBaseClass_t::glGetIntegeri_v;
70 using theBaseClass_t::glBeginTransformFeedback;
71 using theBaseClass_t::glEndTransformFeedback;
72 using theBaseClass_t::glBindBufferRange;
73 using theBaseClass_t::glBindBufferBase;
74 using theBaseClass_t::glTransformFeedbackVaryings;
75 using theBaseClass_t::glGetTransformFeedbackVarying;
76 using theBaseClass_t::glVertexAttribIPointer;
77 using theBaseClass_t::glGetVertexAttribIiv;
78 using theBaseClass_t::glGetVertexAttribIuiv;
79 using theBaseClass_t::glVertexAttribI4i;
80 using theBaseClass_t::glVertexAttribI4ui;
81 using theBaseClass_t::glVertexAttribI4iv;
82 using theBaseClass_t::glVertexAttribI4uiv;
83 using theBaseClass_t::glGetUniformuiv;
84 using theBaseClass_t::glGetFragDataLocation;
85 using theBaseClass_t::glUniform1ui;
86 using theBaseClass_t::glUniform2ui;
87 using theBaseClass_t::glUniform3ui;
88 using theBaseClass_t::glUniform4ui;
89 using theBaseClass_t::glUniform1uiv;
90 using theBaseClass_t::glUniform2uiv;
91 using theBaseClass_t::glUniform3uiv;
92 using theBaseClass_t::glUniform4uiv;
93 using theBaseClass_t::glClearBufferiv;
94 using theBaseClass_t::glClearBufferuiv;
95 using theBaseClass_t::glClearBufferfv;
96 using theBaseClass_t::glClearBufferfi;
97 using theBaseClass_t::glGetStringi;
99 #if !defined(GL_ES_VERSION_2_0)
100 // the following have been added only in OpenGL ES 3.2
101 using theBaseClass_t::glColorMaski;
102 using theBaseClass_t::glEnablei;
103 using theBaseClass_t::glDisablei;
104 using theBaseClass_t::glIsEnabledi;
106 using theBaseClass_t::glTexParameterIiv;
107 using theBaseClass_t::glTexParameterIuiv;
108 using theBaseClass_t::glGetTexParameterIiv;
109 using theBaseClass_t::glGetTexParameterIuiv;
112 #if !defined(GL_ES_VERSION_2_0)
113 // the following are defined only on desktop OpenGL
114 using theBaseClass_t::glClampColor;
115 using theBaseClass_t::glBeginConditionalRender;
116 using theBaseClass_t::glEndConditionalRender;
117 using theBaseClass_t::glBindFragDataLocation;
118 using theBaseClass_t::glVertexAttribI1i;
119 using theBaseClass_t::glVertexAttribI2i;
120 using theBaseClass_t::glVertexAttribI3i;
121 using theBaseClass_t::glVertexAttribI1ui;
122 using theBaseClass_t::glVertexAttribI2ui;
123 using theBaseClass_t::glVertexAttribI3ui;
124 using theBaseClass_t::glVertexAttribI1iv;
125 using theBaseClass_t::glVertexAttribI2iv;
126 using theBaseClass_t::glVertexAttribI3iv;
127 using theBaseClass_t::glVertexAttribI1uiv;
128 using theBaseClass_t::glVertexAttribI2uiv;
129 using theBaseClass_t::glVertexAttribI3uiv;
130 using theBaseClass_t::glVertexAttribI4bv;
131 using theBaseClass_t::glVertexAttribI4sv;
132 using theBaseClass_t::glVertexAttribI4ubv;
133 using theBaseClass_t::glVertexAttribI4usv;
136 #if defined(GL_ES_VERSION_2_0)
137 // the following functions from OpenGL 1.5 have been added only in OpenGL ES 3.0
138 using theBaseClass_t::glGenQueries;
139 using theBaseClass_t::glDeleteQueries;
140 using theBaseClass_t::glIsQuery;
141 using theBaseClass_t::glBeginQuery;
142 using theBaseClass_t::glEndQuery;
143 using theBaseClass_t::glGetQueryiv;
144 using theBaseClass_t::glGetQueryObjectuiv;
145 using theBaseClass_t::glUnmapBuffer;
149 //! OpenGL 3.0 core based on 2.1 version.
150 typedef OpenGl_TmplCore30<OpenGl_GlCore21> OpenGl_GlCore30;
152 //! OpenGL 3.0 without deprecated entry points.
153 //! Notice that this doesn't actually corresponds to GL3.0 forward profile!
154 typedef OpenGl_TmplCore30<OpenGl_GlCore21Fwd> OpenGl_GlCore30Fwd;
156 #endif // _OpenGl_GlCore30_Header