]> git.tdb.fi Git - libs/gl.git/blob - source/version_1_3.cpp
Adapt exporter to Blender 2.63
[libs/gl.git] / source / version_1_3.cpp
1 #include "extension.h"
2 #include "version_1_3.h"
3
4 namespace Msp {
5 namespace GL {
6
7 PFNGLACTIVETEXTUREPROC glActiveTexture = 0;
8 PFNGLCLIENTACTIVETEXTUREPROC glClientActiveTexture = 0;
9 PFNGLMULTITEXCOORD1DPROC glMultiTexCoord1d = 0;
10 PFNGLMULTITEXCOORD1DVPROC glMultiTexCoord1dv = 0;
11 PFNGLMULTITEXCOORD1FPROC glMultiTexCoord1f = 0;
12 PFNGLMULTITEXCOORD1FVPROC glMultiTexCoord1fv = 0;
13 PFNGLMULTITEXCOORD1IPROC glMultiTexCoord1i = 0;
14 PFNGLMULTITEXCOORD1IVPROC glMultiTexCoord1iv = 0;
15 PFNGLMULTITEXCOORD1SPROC glMultiTexCoord1s = 0;
16 PFNGLMULTITEXCOORD1SVPROC glMultiTexCoord1sv = 0;
17 PFNGLMULTITEXCOORD2DPROC glMultiTexCoord2d = 0;
18 PFNGLMULTITEXCOORD2DVPROC glMultiTexCoord2dv = 0;
19 PFNGLMULTITEXCOORD2FPROC glMultiTexCoord2f = 0;
20 PFNGLMULTITEXCOORD2FVPROC glMultiTexCoord2fv = 0;
21 PFNGLMULTITEXCOORD2IPROC glMultiTexCoord2i = 0;
22 PFNGLMULTITEXCOORD2IVPROC glMultiTexCoord2iv = 0;
23 PFNGLMULTITEXCOORD2SPROC glMultiTexCoord2s = 0;
24 PFNGLMULTITEXCOORD2SVPROC glMultiTexCoord2sv = 0;
25 PFNGLMULTITEXCOORD3DPROC glMultiTexCoord3d = 0;
26 PFNGLMULTITEXCOORD3DVPROC glMultiTexCoord3dv = 0;
27 PFNGLMULTITEXCOORD3FPROC glMultiTexCoord3f = 0;
28 PFNGLMULTITEXCOORD3FVPROC glMultiTexCoord3fv = 0;
29 PFNGLMULTITEXCOORD3IPROC glMultiTexCoord3i = 0;
30 PFNGLMULTITEXCOORD3IVPROC glMultiTexCoord3iv = 0;
31 PFNGLMULTITEXCOORD3SPROC glMultiTexCoord3s = 0;
32 PFNGLMULTITEXCOORD3SVPROC glMultiTexCoord3sv = 0;
33 PFNGLMULTITEXCOORD4DPROC glMultiTexCoord4d = 0;
34 PFNGLMULTITEXCOORD4DVPROC glMultiTexCoord4dv = 0;
35 PFNGLMULTITEXCOORD4FPROC glMultiTexCoord4f = 0;
36 PFNGLMULTITEXCOORD4FVPROC glMultiTexCoord4fv = 0;
37 PFNGLMULTITEXCOORD4IPROC glMultiTexCoord4i = 0;
38 PFNGLMULTITEXCOORD4IVPROC glMultiTexCoord4iv = 0;
39 PFNGLMULTITEXCOORD4SPROC glMultiTexCoord4s = 0;
40 PFNGLMULTITEXCOORD4SVPROC glMultiTexCoord4sv = 0;
41 PFNGLLOADTRANSPOSEMATRIXFPROC glLoadTransposeMatrixf = 0;
42 PFNGLLOADTRANSPOSEMATRIXDPROC glLoadTransposeMatrixd = 0;
43 PFNGLMULTTRANSPOSEMATRIXFPROC glMultTransposeMatrixf = 0;
44 PFNGLMULTTRANSPOSEMATRIXDPROC glMultTransposeMatrixd = 0;
45 PFNGLSAMPLECOVERAGEPROC glSampleCoverage = 0;
46 PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D = 0;
47 PFNGLCOMPRESSEDTEXIMAGE2DPROC glCompressedTexImage2D = 0;
48 PFNGLCOMPRESSEDTEXIMAGE1DPROC glCompressedTexImage1D = 0;
49 PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D = 0;
50 PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glCompressedTexSubImage2D = 0;
51 PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glCompressedTexSubImage1D = 0;
52 PFNGLGETCOMPRESSEDTEXIMAGEPROC glGetCompressedTexImage = 0;
53
54 void init_version_1_3()
55 {
56         glActiveTexture = reinterpret_cast<PFNGLACTIVETEXTUREPROC>(get_proc_address("glActiveTexture"));
57         glClientActiveTexture = reinterpret_cast<PFNGLCLIENTACTIVETEXTUREPROC>(get_proc_address("glClientActiveTexture"));
58         glMultiTexCoord1d = reinterpret_cast<PFNGLMULTITEXCOORD1DPROC>(get_proc_address("glMultiTexCoord1d"));
59         glMultiTexCoord1dv = reinterpret_cast<PFNGLMULTITEXCOORD1DVPROC>(get_proc_address("glMultiTexCoord1dv"));
60         glMultiTexCoord1f = reinterpret_cast<PFNGLMULTITEXCOORD1FPROC>(get_proc_address("glMultiTexCoord1f"));
61         glMultiTexCoord1fv = reinterpret_cast<PFNGLMULTITEXCOORD1FVPROC>(get_proc_address("glMultiTexCoord1fv"));
62         glMultiTexCoord1i = reinterpret_cast<PFNGLMULTITEXCOORD1IPROC>(get_proc_address("glMultiTexCoord1i"));
63         glMultiTexCoord1iv = reinterpret_cast<PFNGLMULTITEXCOORD1IVPROC>(get_proc_address("glMultiTexCoord1iv"));
64         glMultiTexCoord1s = reinterpret_cast<PFNGLMULTITEXCOORD1SPROC>(get_proc_address("glMultiTexCoord1s"));
65         glMultiTexCoord1sv = reinterpret_cast<PFNGLMULTITEXCOORD1SVPROC>(get_proc_address("glMultiTexCoord1sv"));
66         glMultiTexCoord2d = reinterpret_cast<PFNGLMULTITEXCOORD2DPROC>(get_proc_address("glMultiTexCoord2d"));
67         glMultiTexCoord2dv = reinterpret_cast<PFNGLMULTITEXCOORD2DVPROC>(get_proc_address("glMultiTexCoord2dv"));
68         glMultiTexCoord2f = reinterpret_cast<PFNGLMULTITEXCOORD2FPROC>(get_proc_address("glMultiTexCoord2f"));
69         glMultiTexCoord2fv = reinterpret_cast<PFNGLMULTITEXCOORD2FVPROC>(get_proc_address("glMultiTexCoord2fv"));
70         glMultiTexCoord2i = reinterpret_cast<PFNGLMULTITEXCOORD2IPROC>(get_proc_address("glMultiTexCoord2i"));
71         glMultiTexCoord2iv = reinterpret_cast<PFNGLMULTITEXCOORD2IVPROC>(get_proc_address("glMultiTexCoord2iv"));
72         glMultiTexCoord2s = reinterpret_cast<PFNGLMULTITEXCOORD2SPROC>(get_proc_address("glMultiTexCoord2s"));
73         glMultiTexCoord2sv = reinterpret_cast<PFNGLMULTITEXCOORD2SVPROC>(get_proc_address("glMultiTexCoord2sv"));
74         glMultiTexCoord3d = reinterpret_cast<PFNGLMULTITEXCOORD3DPROC>(get_proc_address("glMultiTexCoord3d"));
75         glMultiTexCoord3dv = reinterpret_cast<PFNGLMULTITEXCOORD3DVPROC>(get_proc_address("glMultiTexCoord3dv"));
76         glMultiTexCoord3f = reinterpret_cast<PFNGLMULTITEXCOORD3FPROC>(get_proc_address("glMultiTexCoord3f"));
77         glMultiTexCoord3fv = reinterpret_cast<PFNGLMULTITEXCOORD3FVPROC>(get_proc_address("glMultiTexCoord3fv"));
78         glMultiTexCoord3i = reinterpret_cast<PFNGLMULTITEXCOORD3IPROC>(get_proc_address("glMultiTexCoord3i"));
79         glMultiTexCoord3iv = reinterpret_cast<PFNGLMULTITEXCOORD3IVPROC>(get_proc_address("glMultiTexCoord3iv"));
80         glMultiTexCoord3s = reinterpret_cast<PFNGLMULTITEXCOORD3SPROC>(get_proc_address("glMultiTexCoord3s"));
81         glMultiTexCoord3sv = reinterpret_cast<PFNGLMULTITEXCOORD3SVPROC>(get_proc_address("glMultiTexCoord3sv"));
82         glMultiTexCoord4d = reinterpret_cast<PFNGLMULTITEXCOORD4DPROC>(get_proc_address("glMultiTexCoord4d"));
83         glMultiTexCoord4dv = reinterpret_cast<PFNGLMULTITEXCOORD4DVPROC>(get_proc_address("glMultiTexCoord4dv"));
84         glMultiTexCoord4f = reinterpret_cast<PFNGLMULTITEXCOORD4FPROC>(get_proc_address("glMultiTexCoord4f"));
85         glMultiTexCoord4fv = reinterpret_cast<PFNGLMULTITEXCOORD4FVPROC>(get_proc_address("glMultiTexCoord4fv"));
86         glMultiTexCoord4i = reinterpret_cast<PFNGLMULTITEXCOORD4IPROC>(get_proc_address("glMultiTexCoord4i"));
87         glMultiTexCoord4iv = reinterpret_cast<PFNGLMULTITEXCOORD4IVPROC>(get_proc_address("glMultiTexCoord4iv"));
88         glMultiTexCoord4s = reinterpret_cast<PFNGLMULTITEXCOORD4SPROC>(get_proc_address("glMultiTexCoord4s"));
89         glMultiTexCoord4sv = reinterpret_cast<PFNGLMULTITEXCOORD4SVPROC>(get_proc_address("glMultiTexCoord4sv"));
90         glLoadTransposeMatrixf = reinterpret_cast<PFNGLLOADTRANSPOSEMATRIXFPROC>(get_proc_address("glLoadTransposeMatrixf"));
91         glLoadTransposeMatrixd = reinterpret_cast<PFNGLLOADTRANSPOSEMATRIXDPROC>(get_proc_address("glLoadTransposeMatrixd"));
92         glMultTransposeMatrixf = reinterpret_cast<PFNGLMULTTRANSPOSEMATRIXFPROC>(get_proc_address("glMultTransposeMatrixf"));
93         glMultTransposeMatrixd = reinterpret_cast<PFNGLMULTTRANSPOSEMATRIXDPROC>(get_proc_address("glMultTransposeMatrixd"));
94         glSampleCoverage = reinterpret_cast<PFNGLSAMPLECOVERAGEPROC>(get_proc_address("glSampleCoverage"));
95         glCompressedTexImage3D = reinterpret_cast<PFNGLCOMPRESSEDTEXIMAGE3DPROC>(get_proc_address("glCompressedTexImage3D"));
96         glCompressedTexImage2D = reinterpret_cast<PFNGLCOMPRESSEDTEXIMAGE2DPROC>(get_proc_address("glCompressedTexImage2D"));
97         glCompressedTexImage1D = reinterpret_cast<PFNGLCOMPRESSEDTEXIMAGE1DPROC>(get_proc_address("glCompressedTexImage1D"));
98         glCompressedTexSubImage3D = reinterpret_cast<PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC>(get_proc_address("glCompressedTexSubImage3D"));
99         glCompressedTexSubImage2D = reinterpret_cast<PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC>(get_proc_address("glCompressedTexSubImage2D"));
100         glCompressedTexSubImage1D = reinterpret_cast<PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC>(get_proc_address("glCompressedTexSubImage1D"));
101         glGetCompressedTexImage = reinterpret_cast<PFNGLGETCOMPRESSEDTEXIMAGEPROC>(get_proc_address("glGetCompressedTexImage"));
102 }
103
104 } // namespace GL
105 } // namespace Msp