Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:22

0001 // Created on: 2014-03-17
0002 // Created by: Kirill GAVRILOV
0003 // Copyright (c) 2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef OpenGl_GlCore30_HeaderFile
0017 #define OpenGl_GlCore30_HeaderFile
0018 
0019 #include <OpenGl_GlCore21.hxx>
0020 
0021 //! OpenGL 3.0 core.
0022 //! This is first version with deprecation model introduced
0023 //! - a lot of functionality regarding to fixed pipeline were marked deprecated.
0024 //! Notice that nothing were actually removed in this version (unless Forward context loaded)!
0025 struct OpenGl_GlCore30 : public OpenGl_GlCore21
0026 {
0027 private:
0028   typedef OpenGl_GlCore21 theBaseClass_t;
0029 
0030 public: //! @name GL_ARB_framebuffer_object (added to OpenGL 3.0 core)
0031 
0032   using theBaseClass_t::glIsRenderbuffer;
0033   using theBaseClass_t::glBindRenderbuffer;
0034   using theBaseClass_t::glDeleteRenderbuffers;
0035   using theBaseClass_t::glGenRenderbuffers;
0036   using theBaseClass_t::glRenderbufferStorage;
0037   using theBaseClass_t::glGetRenderbufferParameteriv;
0038   using theBaseClass_t::glIsFramebuffer;
0039   using theBaseClass_t::glBindFramebuffer;
0040   using theBaseClass_t::glDeleteFramebuffers;
0041   using theBaseClass_t::glGenFramebuffers;
0042   using theBaseClass_t::glCheckFramebufferStatus;
0043   using theBaseClass_t::glFramebufferTexture2D;
0044   using theBaseClass_t::glFramebufferRenderbuffer;
0045   using theBaseClass_t::glGetFramebufferAttachmentParameteriv;
0046   using theBaseClass_t::glGenerateMipmap;
0047   using theBaseClass_t::glBlitFramebuffer;
0048   using theBaseClass_t::glRenderbufferStorageMultisample;
0049   using theBaseClass_t::glFramebufferTextureLayer;
0050 #if !defined(GL_ES_VERSION_2_0)
0051   using theBaseClass_t::glFramebufferTexture1D;
0052   using theBaseClass_t::glFramebufferTexture3D;
0053 #endif
0054 
0055 public: //! @name GL_ARB_vertex_array_object (added to OpenGL 3.0 core)
0056 
0057   using theBaseClass_t::glBindVertexArray;
0058   using theBaseClass_t::glDeleteVertexArrays;
0059   using theBaseClass_t::glGenVertexArrays;
0060   using theBaseClass_t::glIsVertexArray;
0061 
0062 public: //! @name GL_ARB_map_buffer_range (added to OpenGL 3.0 core)
0063 
0064 #ifndef __EMSCRIPTEN__
0065   using theBaseClass_t::glMapBufferRange;
0066   using theBaseClass_t::glFlushMappedBufferRange;
0067 #endif
0068 
0069 public: //! @name OpenGL 3.0 additives to 2.1
0070 
0071   using theBaseClass_t::glGetBooleani_v;
0072   using theBaseClass_t::glGetIntegeri_v;
0073   using theBaseClass_t::glBeginTransformFeedback;
0074   using theBaseClass_t::glEndTransformFeedback;
0075   using theBaseClass_t::glBindBufferRange;
0076   using theBaseClass_t::glBindBufferBase;
0077   using theBaseClass_t::glTransformFeedbackVaryings;
0078   using theBaseClass_t::glGetTransformFeedbackVarying;
0079   using theBaseClass_t::glVertexAttribIPointer;
0080   using theBaseClass_t::glGetVertexAttribIiv;
0081   using theBaseClass_t::glGetVertexAttribIuiv;
0082   using theBaseClass_t::glVertexAttribI4i;
0083   using theBaseClass_t::glVertexAttribI4ui;
0084   using theBaseClass_t::glVertexAttribI4iv;
0085   using theBaseClass_t::glVertexAttribI4uiv;
0086   using theBaseClass_t::glGetUniformuiv;
0087   using theBaseClass_t::glGetFragDataLocation;
0088   using theBaseClass_t::glUniform1ui;
0089   using theBaseClass_t::glUniform2ui;
0090   using theBaseClass_t::glUniform3ui;
0091   using theBaseClass_t::glUniform4ui;
0092   using theBaseClass_t::glUniform1uiv;
0093   using theBaseClass_t::glUniform2uiv;
0094   using theBaseClass_t::glUniform3uiv;
0095   using theBaseClass_t::glUniform4uiv;
0096   using theBaseClass_t::glClearBufferiv;
0097   using theBaseClass_t::glClearBufferuiv;
0098   using theBaseClass_t::glClearBufferfv;
0099   using theBaseClass_t::glClearBufferfi;
0100   using theBaseClass_t::glGetStringi;
0101 
0102 #if !defined(GL_ES_VERSION_2_0)
0103   // the following have been added only in OpenGL ES 3.2
0104   using theBaseClass_t::glColorMaski;
0105   using theBaseClass_t::glEnablei;
0106   using theBaseClass_t::glDisablei;
0107   using theBaseClass_t::glIsEnabledi;
0108 
0109   using theBaseClass_t::glTexParameterIiv;
0110   using theBaseClass_t::glTexParameterIuiv;
0111   using theBaseClass_t::glGetTexParameterIiv;
0112   using theBaseClass_t::glGetTexParameterIuiv;
0113 #endif
0114 
0115 #if !defined(GL_ES_VERSION_2_0)
0116   // the following are defined only on desktop OpenGL
0117   using theBaseClass_t::glClampColor;
0118   using theBaseClass_t::glBeginConditionalRender;
0119   using theBaseClass_t::glEndConditionalRender;
0120   using theBaseClass_t::glBindFragDataLocation;
0121   using theBaseClass_t::glVertexAttribI1i;
0122   using theBaseClass_t::glVertexAttribI2i;
0123   using theBaseClass_t::glVertexAttribI3i;
0124   using theBaseClass_t::glVertexAttribI1ui;
0125   using theBaseClass_t::glVertexAttribI2ui;
0126   using theBaseClass_t::glVertexAttribI3ui;
0127   using theBaseClass_t::glVertexAttribI1iv;
0128   using theBaseClass_t::glVertexAttribI2iv;
0129   using theBaseClass_t::glVertexAttribI3iv;
0130   using theBaseClass_t::glVertexAttribI1uiv;
0131   using theBaseClass_t::glVertexAttribI2uiv;
0132   using theBaseClass_t::glVertexAttribI3uiv;
0133   using theBaseClass_t::glVertexAttribI4bv;
0134   using theBaseClass_t::glVertexAttribI4sv;
0135   using theBaseClass_t::glVertexAttribI4ubv;
0136   using theBaseClass_t::glVertexAttribI4usv;
0137 #endif
0138 
0139 #if defined(GL_ES_VERSION_2_0)
0140   // the following functions from OpenGL 1.5 have been added only in OpenGL ES 3.0
0141   using theBaseClass_t::glGenQueries;
0142   using theBaseClass_t::glDeleteQueries;
0143   using theBaseClass_t::glIsQuery;
0144   using theBaseClass_t::glBeginQuery;
0145   using theBaseClass_t::glEndQuery;
0146   using theBaseClass_t::glGetQueryiv;
0147   using theBaseClass_t::glGetQueryObjectuiv;
0148 #ifndef __EMSCRIPTEN__
0149   using theBaseClass_t::glUnmapBuffer;
0150 #endif
0151 #endif
0152 };
0153 
0154 #endif // _OpenGl_GlCore30_Header