/OCC/opencascade-7.2.0/x64/debug/inc/OpenGl_GlCore30.hxx

https://github.com/Sunqia/FastCAE · C++ Header · 138 lines · 100 code · 17 blank · 21 comment · 0 complexity · 31909522fe1c8f6fe2b4dfc134d98b25 MD5 · raw file

  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. #ifndef _OpenGl_GlCore30_Header
  16. #define _OpenGl_GlCore30_Header
  17. #include <OpenGl_GlCore21.hxx>
  18. //! OpenGL 3.0 core.
  19. //! This is first version with deprecation model introduced
  20. //! - a lot of functionality regarding to fixed pipeline were marked deprecated.
  21. //! Notice that nothing were actually removed in this version (unless Forward context loaded)!
  22. template<typename theBaseClass_t>
  23. struct OpenGl_TmplCore30 : public theBaseClass_t
  24. {
  25. public: //! @name GL_ARB_framebuffer_object (added to OpenGL 3.0 core)
  26. #if !defined(GL_ES_VERSION_2_0)
  27. using theBaseClass_t::glIsRenderbuffer;
  28. using theBaseClass_t::glBindRenderbuffer;
  29. using theBaseClass_t::glDeleteRenderbuffers;
  30. using theBaseClass_t::glGenRenderbuffers;
  31. using theBaseClass_t::glRenderbufferStorage;
  32. using theBaseClass_t::glGetRenderbufferParameteriv;
  33. using theBaseClass_t::glIsFramebuffer;
  34. using theBaseClass_t::glBindFramebuffer;
  35. using theBaseClass_t::glDeleteFramebuffers;
  36. using theBaseClass_t::glGenFramebuffers;
  37. using theBaseClass_t::glCheckFramebufferStatus;
  38. using theBaseClass_t::glFramebufferTexture1D;
  39. using theBaseClass_t::glFramebufferTexture2D;
  40. using theBaseClass_t::glFramebufferTexture3D;
  41. using theBaseClass_t::glFramebufferRenderbuffer;
  42. using theBaseClass_t::glGetFramebufferAttachmentParameteriv;
  43. using theBaseClass_t::glGenerateMipmap;
  44. using theBaseClass_t::glBlitFramebuffer;
  45. using theBaseClass_t::glRenderbufferStorageMultisample;
  46. using theBaseClass_t::glFramebufferTextureLayer;
  47. public: //! @name GL_ARB_vertex_array_object (added to OpenGL 3.0 core)
  48. using theBaseClass_t::glBindVertexArray;
  49. using theBaseClass_t::glDeleteVertexArrays;
  50. using theBaseClass_t::glGenVertexArrays;
  51. using theBaseClass_t::glIsVertexArray;
  52. public: //! @name GL_ARB_map_buffer_range (added to OpenGL 3.0 core)
  53. using theBaseClass_t::glMapBufferRange;
  54. using theBaseClass_t::glFlushMappedBufferRange;
  55. public: //! @name OpenGL 3.0 additives to 2.1
  56. using theBaseClass_t::glColorMaski;
  57. using theBaseClass_t::glGetBooleani_v;
  58. using theBaseClass_t::glGetIntegeri_v;
  59. using theBaseClass_t::glEnablei;
  60. using theBaseClass_t::glDisablei;
  61. using theBaseClass_t::glIsEnabledi;
  62. using theBaseClass_t::glBeginTransformFeedback;
  63. using theBaseClass_t::glEndTransformFeedback;
  64. using theBaseClass_t::glBindBufferRange;
  65. using theBaseClass_t::glBindBufferBase;
  66. using theBaseClass_t::glTransformFeedbackVaryings;
  67. using theBaseClass_t::glGetTransformFeedbackVarying;
  68. using theBaseClass_t::glClampColor;
  69. using theBaseClass_t::glBeginConditionalRender;
  70. using theBaseClass_t::glEndConditionalRender;
  71. using theBaseClass_t::glVertexAttribIPointer;
  72. using theBaseClass_t::glGetVertexAttribIiv;
  73. using theBaseClass_t::glGetVertexAttribIuiv;
  74. using theBaseClass_t::glVertexAttribI1i;
  75. using theBaseClass_t::glVertexAttribI2i;
  76. using theBaseClass_t::glVertexAttribI3i;
  77. using theBaseClass_t::glVertexAttribI4i;
  78. using theBaseClass_t::glVertexAttribI1ui;
  79. using theBaseClass_t::glVertexAttribI2ui;
  80. using theBaseClass_t::glVertexAttribI3ui;
  81. using theBaseClass_t::glVertexAttribI4ui;
  82. using theBaseClass_t::glVertexAttribI1iv;
  83. using theBaseClass_t::glVertexAttribI2iv;
  84. using theBaseClass_t::glVertexAttribI3iv;
  85. using theBaseClass_t::glVertexAttribI4iv;
  86. using theBaseClass_t::glVertexAttribI1uiv;
  87. using theBaseClass_t::glVertexAttribI2uiv;
  88. using theBaseClass_t::glVertexAttribI3uiv;
  89. using theBaseClass_t::glVertexAttribI4uiv;
  90. using theBaseClass_t::glVertexAttribI4bv;
  91. using theBaseClass_t::glVertexAttribI4sv;
  92. using theBaseClass_t::glVertexAttribI4ubv;
  93. using theBaseClass_t::glVertexAttribI4usv;
  94. using theBaseClass_t::glGetUniformuiv;
  95. using theBaseClass_t::glBindFragDataLocation;
  96. using theBaseClass_t::glGetFragDataLocation;
  97. using theBaseClass_t::glUniform1ui;
  98. using theBaseClass_t::glUniform2ui;
  99. using theBaseClass_t::glUniform3ui;
  100. using theBaseClass_t::glUniform4ui;
  101. using theBaseClass_t::glUniform1uiv;
  102. using theBaseClass_t::glUniform2uiv;
  103. using theBaseClass_t::glUniform3uiv;
  104. using theBaseClass_t::glUniform4uiv;
  105. using theBaseClass_t::glTexParameterIiv;
  106. using theBaseClass_t::glTexParameterIuiv;
  107. using theBaseClass_t::glGetTexParameterIiv;
  108. using theBaseClass_t::glGetTexParameterIuiv;
  109. using theBaseClass_t::glClearBufferiv;
  110. using theBaseClass_t::glClearBufferuiv;
  111. using theBaseClass_t::glClearBufferfv;
  112. using theBaseClass_t::glClearBufferfi;
  113. using theBaseClass_t::glGetStringi;
  114. #endif
  115. };
  116. //! OpenGL 3.0 core based on 2.1 version.
  117. typedef OpenGl_TmplCore30<OpenGl_GlCore21> OpenGl_GlCore30;
  118. //! OpenGL 3.0 without deprecated entry points.
  119. //! Notice that this doesn't actually corresponds to GL3.0 forward profile!
  120. typedef OpenGl_TmplCore30<OpenGl_GlCore21Fwd> OpenGl_GlCore30Fwd;
  121. #endif // _OpenGl_GlCore30_Header