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 struct OpenGl_GlCore30 : public OpenGl_GlCore21
28 typedef OpenGl_GlCore21 theBaseClass_t;
30 public: //! @name GL_ARB_framebuffer_object (added to OpenGL 3.0 core)
32 using theBaseClass_t::glIsRenderbuffer;
33 using theBaseClass_t::glBindRenderbuffer;
34 using theBaseClass_t::glDeleteRenderbuffers;
35 using theBaseClass_t::glGenRenderbuffers;
36 using theBaseClass_t::glRenderbufferStorage;
37 using theBaseClass_t::glGetRenderbufferParameteriv;
38 using theBaseClass_t::glIsFramebuffer;
39 using theBaseClass_t::glBindFramebuffer;
40 using theBaseClass_t::glDeleteFramebuffers;
41 using theBaseClass_t::glGenFramebuffers;
42 using theBaseClass_t::glCheckFramebufferStatus;
43 using theBaseClass_t::glFramebufferTexture2D;
44 using theBaseClass_t::glFramebufferRenderbuffer;
45 using theBaseClass_t::glGetFramebufferAttachmentParameteriv;
46 using theBaseClass_t::glGenerateMipmap;
47 using theBaseClass_t::glBlitFramebuffer;
48 using theBaseClass_t::glRenderbufferStorageMultisample;
49 using theBaseClass_t::glFramebufferTextureLayer;
50 #if !defined(GL_ES_VERSION_2_0)
51 using theBaseClass_t::glFramebufferTexture1D;
52 using theBaseClass_t::glFramebufferTexture3D;
55 public: //! @name GL_ARB_vertex_array_object (added to OpenGL 3.0 core)
57 using theBaseClass_t::glBindVertexArray;
58 using theBaseClass_t::glDeleteVertexArrays;
59 using theBaseClass_t::glGenVertexArrays;
60 using theBaseClass_t::glIsVertexArray;
62 public: //! @name GL_ARB_map_buffer_range (added to OpenGL 3.0 core)
64 #ifndef __EMSCRIPTEN__
65 using theBaseClass_t::glMapBufferRange;
66 using theBaseClass_t::glFlushMappedBufferRange;
69 public: //! @name OpenGL 3.0 additives to 2.1
71 using theBaseClass_t::glGetBooleani_v;
72 using theBaseClass_t::glGetIntegeri_v;
73 using theBaseClass_t::glBeginTransformFeedback;
74 using theBaseClass_t::glEndTransformFeedback;
75 using theBaseClass_t::glBindBufferRange;
76 using theBaseClass_t::glBindBufferBase;
77 using theBaseClass_t::glTransformFeedbackVaryings;
78 using theBaseClass_t::glGetTransformFeedbackVarying;
79 using theBaseClass_t::glVertexAttribIPointer;
80 using theBaseClass_t::glGetVertexAttribIiv;
81 using theBaseClass_t::glGetVertexAttribIuiv;
82 using theBaseClass_t::glVertexAttribI4i;
83 using theBaseClass_t::glVertexAttribI4ui;
84 using theBaseClass_t::glVertexAttribI4iv;
85 using theBaseClass_t::glVertexAttribI4uiv;
86 using theBaseClass_t::glGetUniformuiv;
87 using theBaseClass_t::glGetFragDataLocation;
88 using theBaseClass_t::glUniform1ui;
89 using theBaseClass_t::glUniform2ui;
90 using theBaseClass_t::glUniform3ui;
91 using theBaseClass_t::glUniform4ui;
92 using theBaseClass_t::glUniform1uiv;
93 using theBaseClass_t::glUniform2uiv;
94 using theBaseClass_t::glUniform3uiv;
95 using theBaseClass_t::glUniform4uiv;
96 using theBaseClass_t::glClearBufferiv;
97 using theBaseClass_t::glClearBufferuiv;
98 using theBaseClass_t::glClearBufferfv;
99 using theBaseClass_t::glClearBufferfi;
100 using theBaseClass_t::glGetStringi;
102 #if !defined(GL_ES_VERSION_2_0)
103 // the following have been added only in OpenGL ES 3.2
104 using theBaseClass_t::glColorMaski;
105 using theBaseClass_t::glEnablei;
106 using theBaseClass_t::glDisablei;
107 using theBaseClass_t::glIsEnabledi;
109 using theBaseClass_t::glTexParameterIiv;
110 using theBaseClass_t::glTexParameterIuiv;
111 using theBaseClass_t::glGetTexParameterIiv;
112 using theBaseClass_t::glGetTexParameterIuiv;
115 #if !defined(GL_ES_VERSION_2_0)
116 // the following are defined only on desktop OpenGL
117 using theBaseClass_t::glClampColor;
118 using theBaseClass_t::glBeginConditionalRender;
119 using theBaseClass_t::glEndConditionalRender;
120 using theBaseClass_t::glBindFragDataLocation;
121 using theBaseClass_t::glVertexAttribI1i;
122 using theBaseClass_t::glVertexAttribI2i;
123 using theBaseClass_t::glVertexAttribI3i;
124 using theBaseClass_t::glVertexAttribI1ui;
125 using theBaseClass_t::glVertexAttribI2ui;
126 using theBaseClass_t::glVertexAttribI3ui;
127 using theBaseClass_t::glVertexAttribI1iv;
128 using theBaseClass_t::glVertexAttribI2iv;
129 using theBaseClass_t::glVertexAttribI3iv;
130 using theBaseClass_t::glVertexAttribI1uiv;
131 using theBaseClass_t::glVertexAttribI2uiv;
132 using theBaseClass_t::glVertexAttribI3uiv;
133 using theBaseClass_t::glVertexAttribI4bv;
134 using theBaseClass_t::glVertexAttribI4sv;
135 using theBaseClass_t::glVertexAttribI4ubv;
136 using theBaseClass_t::glVertexAttribI4usv;
139 #if defined(GL_ES_VERSION_2_0)
140 // the following functions from OpenGL 1.5 have been added only in OpenGL ES 3.0
141 using theBaseClass_t::glGenQueries;
142 using theBaseClass_t::glDeleteQueries;
143 using theBaseClass_t::glIsQuery;
144 using theBaseClass_t::glBeginQuery;
145 using theBaseClass_t::glEndQuery;
146 using theBaseClass_t::glGetQueryiv;
147 using theBaseClass_t::glGetQueryObjectuiv;
148 #ifndef __EMSCRIPTEN__
149 using theBaseClass_t::glUnmapBuffer;
154 #endif // _OpenGl_GlCore30_Header