Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/OpenGl_GlCore30.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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   using theBaseClass_t::glBindFramebuffer;
0032   using theBaseClass_t::glBindRenderbuffer;
0033   using theBaseClass_t::glBlitFramebuffer;
0034   using theBaseClass_t::glCheckFramebufferStatus;
0035   using theBaseClass_t::glDeleteFramebuffers;
0036   using theBaseClass_t::glDeleteRenderbuffers;
0037   using theBaseClass_t::glFramebufferRenderbuffer;
0038   using theBaseClass_t::glFramebufferTexture2D;
0039   using theBaseClass_t::glFramebufferTextureLayer;
0040   using theBaseClass_t::glGenerateMipmap;
0041   using theBaseClass_t::glGenFramebuffers;
0042   using theBaseClass_t::glGenRenderbuffers;
0043   using theBaseClass_t::glGetFramebufferAttachmentParameteriv;
0044   using theBaseClass_t::glGetRenderbufferParameteriv;
0045   using theBaseClass_t::glIsFramebuffer;
0046   using theBaseClass_t::glIsRenderbuffer;
0047   using theBaseClass_t::glRenderbufferStorage;
0048   using theBaseClass_t::glRenderbufferStorageMultisample;
0049 #if !defined(GL_ES_VERSION_2_0)
0050   using theBaseClass_t::glFramebufferTexture1D;
0051   using theBaseClass_t::glFramebufferTexture3D;
0052 #endif
0053 
0054 public: //! @name GL_ARB_vertex_array_object (added to OpenGL 3.0 core)
0055   using theBaseClass_t::glBindVertexArray;
0056   using theBaseClass_t::glDeleteVertexArrays;
0057   using theBaseClass_t::glGenVertexArrays;
0058   using theBaseClass_t::glIsVertexArray;
0059 
0060 public: //! @name GL_ARB_map_buffer_range (added to OpenGL 3.0 core)
0061 #ifndef __EMSCRIPTEN__
0062   using theBaseClass_t::glFlushMappedBufferRange;
0063   using theBaseClass_t::glMapBufferRange;
0064 #endif
0065 
0066 public: //! @name OpenGL 3.0 additives to 2.1
0067   using theBaseClass_t::glBeginTransformFeedback;
0068   using theBaseClass_t::glBindBufferBase;
0069   using theBaseClass_t::glBindBufferRange;
0070   using theBaseClass_t::glClearBufferfi;
0071   using theBaseClass_t::glClearBufferfv;
0072   using theBaseClass_t::glClearBufferiv;
0073   using theBaseClass_t::glClearBufferuiv;
0074   using theBaseClass_t::glEndTransformFeedback;
0075   using theBaseClass_t::glGetBooleani_v;
0076   using theBaseClass_t::glGetFragDataLocation;
0077   using theBaseClass_t::glGetIntegeri_v;
0078   using theBaseClass_t::glGetStringi;
0079   using theBaseClass_t::glGetTransformFeedbackVarying;
0080   using theBaseClass_t::glGetUniformuiv;
0081   using theBaseClass_t::glGetVertexAttribIiv;
0082   using theBaseClass_t::glGetVertexAttribIuiv;
0083   using theBaseClass_t::glTransformFeedbackVaryings;
0084   using theBaseClass_t::glUniform1ui;
0085   using theBaseClass_t::glUniform1uiv;
0086   using theBaseClass_t::glUniform2ui;
0087   using theBaseClass_t::glUniform2uiv;
0088   using theBaseClass_t::glUniform3ui;
0089   using theBaseClass_t::glUniform3uiv;
0090   using theBaseClass_t::glUniform4ui;
0091   using theBaseClass_t::glUniform4uiv;
0092   using theBaseClass_t::glVertexAttribI4i;
0093   using theBaseClass_t::glVertexAttribI4iv;
0094   using theBaseClass_t::glVertexAttribI4ui;
0095   using theBaseClass_t::glVertexAttribI4uiv;
0096   using theBaseClass_t::glVertexAttribIPointer;
0097 
0098 #if !defined(GL_ES_VERSION_2_0)
0099   // the following have been added only in OpenGL ES 3.2
0100   using theBaseClass_t::glColorMaski;
0101   using theBaseClass_t::glDisablei;
0102   using theBaseClass_t::glEnablei;
0103   using theBaseClass_t::glIsEnabledi;
0104 
0105   using theBaseClass_t::glGetTexParameterIiv;
0106   using theBaseClass_t::glGetTexParameterIuiv;
0107   using theBaseClass_t::glTexParameterIiv;
0108   using theBaseClass_t::glTexParameterIuiv;
0109 #endif
0110 
0111 #if !defined(GL_ES_VERSION_2_0)
0112   // the following are defined only on desktop OpenGL
0113   using theBaseClass_t::glBeginConditionalRender;
0114   using theBaseClass_t::glBindFragDataLocation;
0115   using theBaseClass_t::glClampColor;
0116   using theBaseClass_t::glEndConditionalRender;
0117   using theBaseClass_t::glVertexAttribI1i;
0118   using theBaseClass_t::glVertexAttribI1iv;
0119   using theBaseClass_t::glVertexAttribI1ui;
0120   using theBaseClass_t::glVertexAttribI1uiv;
0121   using theBaseClass_t::glVertexAttribI2i;
0122   using theBaseClass_t::glVertexAttribI2iv;
0123   using theBaseClass_t::glVertexAttribI2ui;
0124   using theBaseClass_t::glVertexAttribI2uiv;
0125   using theBaseClass_t::glVertexAttribI3i;
0126   using theBaseClass_t::glVertexAttribI3iv;
0127   using theBaseClass_t::glVertexAttribI3ui;
0128   using theBaseClass_t::glVertexAttribI3uiv;
0129   using theBaseClass_t::glVertexAttribI4bv;
0130   using theBaseClass_t::glVertexAttribI4sv;
0131   using theBaseClass_t::glVertexAttribI4ubv;
0132   using theBaseClass_t::glVertexAttribI4usv;
0133 #endif
0134 
0135 #if defined(GL_ES_VERSION_2_0)
0136   // the following functions from OpenGL 1.5 have been added only in OpenGL ES 3.0
0137   using theBaseClass_t::glBeginQuery;
0138   using theBaseClass_t::glDeleteQueries;
0139   using theBaseClass_t::glEndQuery;
0140   using theBaseClass_t::glGenQueries;
0141   using theBaseClass_t::glGetQueryiv;
0142   using theBaseClass_t::glGetQueryObjectuiv;
0143   using theBaseClass_t::glIsQuery;
0144   #ifndef __EMSCRIPTEN__
0145   using theBaseClass_t::glUnmapBuffer;
0146   #endif
0147 #endif
0148 };
0149 
0150 #endif // _OpenGl_GlCore30_Header