]> git.tdb.fi Git - libs/gl.git/blob - source/version_1_2.cpp
Style update: add spaces around assignment operators
[libs/gl.git] / source / version_1_2.cpp
1 #include "extension.h"
2 #include "version_1_2.h"
3
4 namespace Msp {
5 namespace GL {
6
7 PFNGLBLENDCOLORPROC glBlendColor = 0;
8 PFNGLBLENDEQUATIONPROC glBlendEquation = 0;
9 PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements = 0;
10 PFNGLCOLORTABLEPROC glColorTable = 0;
11 PFNGLCOLORTABLEPARAMETERFVPROC glColorTableParameterfv = 0;
12 PFNGLCOLORTABLEPARAMETERIVPROC glColorTableParameteriv = 0;
13 PFNGLCOPYCOLORTABLEPROC glCopyColorTable = 0;
14 PFNGLGETCOLORTABLEPROC glGetColorTable = 0;
15 PFNGLGETCOLORTABLEPARAMETERFVPROC glGetColorTableParameterfv = 0;
16 PFNGLGETCOLORTABLEPARAMETERIVPROC glGetColorTableParameteriv = 0;
17 PFNGLCOLORSUBTABLEPROC glColorSubTable = 0;
18 PFNGLCOPYCOLORSUBTABLEPROC glCopyColorSubTable = 0;
19 PFNGLCONVOLUTIONFILTER1DPROC glConvolutionFilter1D = 0;
20 PFNGLCONVOLUTIONFILTER2DPROC glConvolutionFilter2D = 0;
21 PFNGLCONVOLUTIONPARAMETERFPROC glConvolutionParameterf = 0;
22 PFNGLCONVOLUTIONPARAMETERFVPROC glConvolutionParameterfv = 0;
23 PFNGLCONVOLUTIONPARAMETERIPROC glConvolutionParameteri = 0;
24 PFNGLCONVOLUTIONPARAMETERIVPROC glConvolutionParameteriv = 0;
25 PFNGLCOPYCONVOLUTIONFILTER1DPROC glCopyConvolutionFilter1D = 0;
26 PFNGLCOPYCONVOLUTIONFILTER2DPROC glCopyConvolutionFilter2D = 0;
27 PFNGLGETCONVOLUTIONFILTERPROC glGetConvolutionFilter = 0;
28 PFNGLGETCONVOLUTIONPARAMETERFVPROC glGetConvolutionParameterfv = 0;
29 PFNGLGETCONVOLUTIONPARAMETERIVPROC glGetConvolutionParameteriv = 0;
30 PFNGLGETSEPARABLEFILTERPROC glGetSeparableFilter = 0;
31 PFNGLSEPARABLEFILTER2DPROC glSeparableFilter2D = 0;
32 PFNGLGETHISTOGRAMPROC glGetHistogram = 0;
33 PFNGLGETHISTOGRAMPARAMETERFVPROC glGetHistogramParameterfv = 0;
34 PFNGLGETHISTOGRAMPARAMETERIVPROC glGetHistogramParameteriv = 0;
35 PFNGLGETMINMAXPROC glGetMinmax = 0;
36 PFNGLGETMINMAXPARAMETERFVPROC glGetMinmaxParameterfv = 0;
37 PFNGLGETMINMAXPARAMETERIVPROC glGetMinmaxParameteriv = 0;
38 PFNGLHISTOGRAMPROC glHistogram = 0;
39 PFNGLMINMAXPROC glMinmax = 0;
40 PFNGLRESETHISTOGRAMPROC glResetHistogram = 0;
41 PFNGLRESETMINMAXPROC glResetMinmax = 0;
42 PFNGLTEXIMAGE3DPROC glTexImage3D = 0;
43 PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D = 0;
44 PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D = 0;
45
46 void init_version_1_2()
47 {
48         glBlendColor = reinterpret_cast<PFNGLBLENDCOLORPROC>(get_proc_address("glBlendColor"));
49         glBlendEquation = reinterpret_cast<PFNGLBLENDEQUATIONPROC>(get_proc_address("glBlendEquation"));
50         glDrawRangeElements = reinterpret_cast<PFNGLDRAWRANGEELEMENTSPROC>(get_proc_address("glDrawRangeElements"));
51         glColorTable = reinterpret_cast<PFNGLCOLORTABLEPROC>(get_proc_address("glColorTable"));
52         glColorTableParameterfv = reinterpret_cast<PFNGLCOLORTABLEPARAMETERFVPROC>(get_proc_address("glColorTableParameterfv"));
53         glColorTableParameteriv = reinterpret_cast<PFNGLCOLORTABLEPARAMETERIVPROC>(get_proc_address("glColorTableParameteriv"));
54         glCopyColorTable = reinterpret_cast<PFNGLCOPYCOLORTABLEPROC>(get_proc_address("glCopyColorTable"));
55         glGetColorTable = reinterpret_cast<PFNGLGETCOLORTABLEPROC>(get_proc_address("glGetColorTable"));
56         glGetColorTableParameterfv = reinterpret_cast<PFNGLGETCOLORTABLEPARAMETERFVPROC>(get_proc_address("glGetColorTableParameterfv"));
57         glGetColorTableParameteriv = reinterpret_cast<PFNGLGETCOLORTABLEPARAMETERIVPROC>(get_proc_address("glGetColorTableParameteriv"));
58         glColorSubTable = reinterpret_cast<PFNGLCOLORSUBTABLEPROC>(get_proc_address("glColorSubTable"));
59         glCopyColorSubTable = reinterpret_cast<PFNGLCOPYCOLORSUBTABLEPROC>(get_proc_address("glCopyColorSubTable"));
60         glConvolutionFilter1D = reinterpret_cast<PFNGLCONVOLUTIONFILTER1DPROC>(get_proc_address("glConvolutionFilter1D"));
61         glConvolutionFilter2D = reinterpret_cast<PFNGLCONVOLUTIONFILTER2DPROC>(get_proc_address("glConvolutionFilter2D"));
62         glConvolutionParameterf = reinterpret_cast<PFNGLCONVOLUTIONPARAMETERFPROC>(get_proc_address("glConvolutionParameterf"));
63         glConvolutionParameterfv = reinterpret_cast<PFNGLCONVOLUTIONPARAMETERFVPROC>(get_proc_address("glConvolutionParameterfv"));
64         glConvolutionParameteri = reinterpret_cast<PFNGLCONVOLUTIONPARAMETERIPROC>(get_proc_address("glConvolutionParameteri"));
65         glConvolutionParameteriv = reinterpret_cast<PFNGLCONVOLUTIONPARAMETERIVPROC>(get_proc_address("glConvolutionParameteriv"));
66         glCopyConvolutionFilter1D = reinterpret_cast<PFNGLCOPYCONVOLUTIONFILTER1DPROC>(get_proc_address("glCopyConvolutionFilter1D"));
67         glCopyConvolutionFilter2D = reinterpret_cast<PFNGLCOPYCONVOLUTIONFILTER2DPROC>(get_proc_address("glCopyConvolutionFilter2D"));
68         glGetConvolutionFilter = reinterpret_cast<PFNGLGETCONVOLUTIONFILTERPROC>(get_proc_address("glGetConvolutionFilter"));
69         glGetConvolutionParameterfv = reinterpret_cast<PFNGLGETCONVOLUTIONPARAMETERFVPROC>(get_proc_address("glGetConvolutionParameterfv"));
70         glGetConvolutionParameteriv = reinterpret_cast<PFNGLGETCONVOLUTIONPARAMETERIVPROC>(get_proc_address("glGetConvolutionParameteriv"));
71         glGetSeparableFilter = reinterpret_cast<PFNGLGETSEPARABLEFILTERPROC>(get_proc_address("glGetSeparableFilter"));
72         glSeparableFilter2D = reinterpret_cast<PFNGLSEPARABLEFILTER2DPROC>(get_proc_address("glSeparableFilter2D"));
73         glGetHistogram = reinterpret_cast<PFNGLGETHISTOGRAMPROC>(get_proc_address("glGetHistogram"));
74         glGetHistogramParameterfv = reinterpret_cast<PFNGLGETHISTOGRAMPARAMETERFVPROC>(get_proc_address("glGetHistogramParameterfv"));
75         glGetHistogramParameteriv = reinterpret_cast<PFNGLGETHISTOGRAMPARAMETERIVPROC>(get_proc_address("glGetHistogramParameteriv"));
76         glGetMinmax = reinterpret_cast<PFNGLGETMINMAXPROC>(get_proc_address("glGetMinmax"));
77         glGetMinmaxParameterfv = reinterpret_cast<PFNGLGETMINMAXPARAMETERFVPROC>(get_proc_address("glGetMinmaxParameterfv"));
78         glGetMinmaxParameteriv = reinterpret_cast<PFNGLGETMINMAXPARAMETERIVPROC>(get_proc_address("glGetMinmaxParameteriv"));
79         glHistogram = reinterpret_cast<PFNGLHISTOGRAMPROC>(get_proc_address("glHistogram"));
80         glMinmax = reinterpret_cast<PFNGLMINMAXPROC>(get_proc_address("glMinmax"));
81         glResetHistogram = reinterpret_cast<PFNGLRESETHISTOGRAMPROC>(get_proc_address("glResetHistogram"));
82         glResetMinmax = reinterpret_cast<PFNGLRESETMINMAXPROC>(get_proc_address("glResetMinmax"));
83         glTexImage3D = reinterpret_cast<PFNGLTEXIMAGE3DPROC>(get_proc_address("glTexImage3D"));
84         glTexSubImage3D = reinterpret_cast<PFNGLTEXSUBIMAGE3DPROC>(get_proc_address("glTexSubImage3D"));
85         glCopyTexSubImage3D = reinterpret_cast<PFNGLCOPYTEXSUBIMAGE3DPROC>(get_proc_address("glCopyTexSubImage3D"));
86 }
87
88 } // namespace GL
89 } // namespace Msp