0030748: Visualization - Marker displayed in immediate layer ruins QT Quick view...
[occt.git] / src / OpenGl / OpenGl_GlCore40.hxx
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
16 #ifndef _OpenGl_GlCore40_Header
17 #define _OpenGl_GlCore40_Header
18
19 #include <OpenGl_GlCore33.hxx>
20
21 //! OpenGL 4.0 definition.
22 template<typename theBaseClass_t>
23 struct OpenGl_TmplCore40 : public theBaseClass_t
24 {
25
26 #if !defined(GL_ES_VERSION_2_0)
27
28 public: //! @name GL_ARB_draw_indirect (added to OpenGL 4.0 core)
29
30   using theBaseClass_t::glDrawArraysIndirect;
31   using theBaseClass_t::glDrawElementsIndirect;
32
33 public: //! @name GL_ARB_gpu_shader_fp64 (added to OpenGL 4.0 core)
34
35   using theBaseClass_t::glUniform1d;
36   using theBaseClass_t::glUniform2d;
37   using theBaseClass_t::glUniform3d;
38   using theBaseClass_t::glUniform4d;
39   using theBaseClass_t::glUniform1dv;
40   using theBaseClass_t::glUniform2dv;
41   using theBaseClass_t::glUniform3dv;
42   using theBaseClass_t::glUniform4dv;
43   using theBaseClass_t::glUniformMatrix2dv;
44   using theBaseClass_t::glUniformMatrix3dv;
45   using theBaseClass_t::glUniformMatrix4dv;
46   using theBaseClass_t::glUniformMatrix2x3dv;
47   using theBaseClass_t::glUniformMatrix2x4dv;
48   using theBaseClass_t::glUniformMatrix3x2dv;
49   using theBaseClass_t::glUniformMatrix3x4dv;
50   using theBaseClass_t::glUniformMatrix4x2dv;
51   using theBaseClass_t::glUniformMatrix4x3dv;
52   using theBaseClass_t::glGetUniformdv;
53
54 public: //! @name GL_ARB_shader_subroutine (added to OpenGL 4.0 core)
55
56   using theBaseClass_t::glGetSubroutineUniformLocation;
57   using theBaseClass_t::glGetSubroutineIndex;
58   using theBaseClass_t::glGetActiveSubroutineUniformiv;
59   using theBaseClass_t::glGetActiveSubroutineUniformName;
60   using theBaseClass_t::glGetActiveSubroutineName;
61   using theBaseClass_t::glUniformSubroutinesuiv;
62   using theBaseClass_t::glGetUniformSubroutineuiv;
63   using theBaseClass_t::glGetProgramStageiv;
64
65 public: //! @name GL_ARB_tessellation_shader (added to OpenGL 4.0 core)
66
67   using theBaseClass_t::glPatchParameteri;
68   using theBaseClass_t::glPatchParameterfv;
69
70 public: //! @name GL_ARB_transform_feedback2 (added to OpenGL 4.0 core)
71
72   using theBaseClass_t::glBindTransformFeedback;
73   using theBaseClass_t::glDeleteTransformFeedbacks;
74   using theBaseClass_t::glGenTransformFeedbacks;
75   using theBaseClass_t::glIsTransformFeedback;
76   using theBaseClass_t::glPauseTransformFeedback;
77   using theBaseClass_t::glResumeTransformFeedback;
78   using theBaseClass_t::glDrawTransformFeedback;
79
80 public: //! @name GL_ARB_transform_feedback3 (added to OpenGL 4.0 core)
81
82   using theBaseClass_t::glDrawTransformFeedbackStream;
83   using theBaseClass_t::glBeginQueryIndexed;
84   using theBaseClass_t::glEndQueryIndexed;
85   using theBaseClass_t::glGetQueryIndexediv;
86
87 public: //! @name OpenGL 4.0 additives to 3.3
88
89   using theBaseClass_t::glMinSampleShading;
90   using theBaseClass_t::glBlendEquationi;
91   using theBaseClass_t::glBlendEquationSeparatei;
92   using theBaseClass_t::glBlendFunci;
93   using theBaseClass_t::glBlendFuncSeparatei;
94
95 #endif
96
97 };
98
99 //! OpenGL 4.0 compatibility profile.
100 typedef OpenGl_TmplCore40<OpenGl_GlCore33Back> OpenGl_GlCore40Back;
101
102 //! OpenGL 4.0 core profile.
103 typedef OpenGl_TmplCore40<OpenGl_GlCore33>     OpenGl_GlCore40;
104
105 #endif // _OpenGl_GlCore40_Header