X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fversion_1_2.cpp;h=9fed2834bc304af70eaf3910524e30ca0710f7dc;hp=d7c2734d76f2a5849fd0bf2c86b18459920dd894;hb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;hpb=f17794d55923d4fb4f63e9d082d8d84a735a04e8 diff --git a/source/version_1_2.cpp b/source/version_1_2.cpp index d7c2734d..9fed2834 100644 --- a/source/version_1_2.cpp +++ b/source/version_1_2.cpp @@ -4,85 +4,85 @@ namespace Msp { namespace GL { -PFNGLBLENDCOLORPROC glBlendColor=0; -PFNGLBLENDEQUATIONPROC glBlendEquation=0; -PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements=0; -PFNGLCOLORTABLEPROC glColorTable=0; -PFNGLCOLORTABLEPARAMETERFVPROC glColorTableParameterfv=0; -PFNGLCOLORTABLEPARAMETERIVPROC glColorTableParameteriv=0; -PFNGLCOPYCOLORTABLEPROC glCopyColorTable=0; -PFNGLGETCOLORTABLEPROC glGetColorTable=0; -PFNGLGETCOLORTABLEPARAMETERFVPROC glGetColorTableParameterfv=0; -PFNGLGETCOLORTABLEPARAMETERIVPROC glGetColorTableParameteriv=0; -PFNGLCOLORSUBTABLEPROC glColorSubTable=0; -PFNGLCOPYCOLORSUBTABLEPROC glCopyColorSubTable=0; -PFNGLCONVOLUTIONFILTER1DPROC glConvolutionFilter1D=0; -PFNGLCONVOLUTIONFILTER2DPROC glConvolutionFilter2D=0; -PFNGLCONVOLUTIONPARAMETERFPROC glConvolutionParameterf=0; -PFNGLCONVOLUTIONPARAMETERFVPROC glConvolutionParameterfv=0; -PFNGLCONVOLUTIONPARAMETERIPROC glConvolutionParameteri=0; -PFNGLCONVOLUTIONPARAMETERIVPROC glConvolutionParameteriv=0; -PFNGLCOPYCONVOLUTIONFILTER1DPROC glCopyConvolutionFilter1D=0; -PFNGLCOPYCONVOLUTIONFILTER2DPROC glCopyConvolutionFilter2D=0; -PFNGLGETCONVOLUTIONFILTERPROC glGetConvolutionFilter=0; -PFNGLGETCONVOLUTIONPARAMETERFVPROC glGetConvolutionParameterfv=0; -PFNGLGETCONVOLUTIONPARAMETERIVPROC glGetConvolutionParameteriv=0; -PFNGLGETSEPARABLEFILTERPROC glGetSeparableFilter=0; -PFNGLSEPARABLEFILTER2DPROC glSeparableFilter2D=0; -PFNGLGETHISTOGRAMPROC glGetHistogram=0; -PFNGLGETHISTOGRAMPARAMETERFVPROC glGetHistogramParameterfv=0; -PFNGLGETHISTOGRAMPARAMETERIVPROC glGetHistogramParameteriv=0; -PFNGLGETMINMAXPROC glGetMinmax=0; -PFNGLGETMINMAXPARAMETERFVPROC glGetMinmaxParameterfv=0; -PFNGLGETMINMAXPARAMETERIVPROC glGetMinmaxParameteriv=0; -PFNGLHISTOGRAMPROC glHistogram=0; -PFNGLMINMAXPROC glMinmax=0; -PFNGLRESETHISTOGRAMPROC glResetHistogram=0; -PFNGLRESETMINMAXPROC glResetMinmax=0; -PFNGLTEXIMAGE3DPROC glTexImage3D=0; -PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D=0; -PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D=0; +PFNGLBLENDCOLORPROC glBlendColor = 0; +PFNGLBLENDEQUATIONPROC glBlendEquation = 0; +PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements = 0; +PFNGLCOLORTABLEPROC glColorTable = 0; +PFNGLCOLORTABLEPARAMETERFVPROC glColorTableParameterfv = 0; +PFNGLCOLORTABLEPARAMETERIVPROC glColorTableParameteriv = 0; +PFNGLCOPYCOLORTABLEPROC glCopyColorTable = 0; +PFNGLGETCOLORTABLEPROC glGetColorTable = 0; +PFNGLGETCOLORTABLEPARAMETERFVPROC glGetColorTableParameterfv = 0; +PFNGLGETCOLORTABLEPARAMETERIVPROC glGetColorTableParameteriv = 0; +PFNGLCOLORSUBTABLEPROC glColorSubTable = 0; +PFNGLCOPYCOLORSUBTABLEPROC glCopyColorSubTable = 0; +PFNGLCONVOLUTIONFILTER1DPROC glConvolutionFilter1D = 0; +PFNGLCONVOLUTIONFILTER2DPROC glConvolutionFilter2D = 0; +PFNGLCONVOLUTIONPARAMETERFPROC glConvolutionParameterf = 0; +PFNGLCONVOLUTIONPARAMETERFVPROC glConvolutionParameterfv = 0; +PFNGLCONVOLUTIONPARAMETERIPROC glConvolutionParameteri = 0; +PFNGLCONVOLUTIONPARAMETERIVPROC glConvolutionParameteriv = 0; +PFNGLCOPYCONVOLUTIONFILTER1DPROC glCopyConvolutionFilter1D = 0; +PFNGLCOPYCONVOLUTIONFILTER2DPROC glCopyConvolutionFilter2D = 0; +PFNGLGETCONVOLUTIONFILTERPROC glGetConvolutionFilter = 0; +PFNGLGETCONVOLUTIONPARAMETERFVPROC glGetConvolutionParameterfv = 0; +PFNGLGETCONVOLUTIONPARAMETERIVPROC glGetConvolutionParameteriv = 0; +PFNGLGETSEPARABLEFILTERPROC glGetSeparableFilter = 0; +PFNGLSEPARABLEFILTER2DPROC glSeparableFilter2D = 0; +PFNGLGETHISTOGRAMPROC glGetHistogram = 0; +PFNGLGETHISTOGRAMPARAMETERFVPROC glGetHistogramParameterfv = 0; +PFNGLGETHISTOGRAMPARAMETERIVPROC glGetHistogramParameteriv = 0; +PFNGLGETMINMAXPROC glGetMinmax = 0; +PFNGLGETMINMAXPARAMETERFVPROC glGetMinmaxParameterfv = 0; +PFNGLGETMINMAXPARAMETERIVPROC glGetMinmaxParameteriv = 0; +PFNGLHISTOGRAMPROC glHistogram = 0; +PFNGLMINMAXPROC glMinmax = 0; +PFNGLRESETHISTOGRAMPROC glResetHistogram = 0; +PFNGLRESETMINMAXPROC glResetMinmax = 0; +PFNGLTEXIMAGE3DPROC glTexImage3D = 0; +PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D = 0; +PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D = 0; void init_version_1_2() { - glBlendColor=reinterpret_cast(get_proc_address("glBlendColor")); - glBlendEquation=reinterpret_cast(get_proc_address("glBlendEquation")); - glDrawRangeElements=reinterpret_cast(get_proc_address("glDrawRangeElements")); - glColorTable=reinterpret_cast(get_proc_address("glColorTable")); - glColorTableParameterfv=reinterpret_cast(get_proc_address("glColorTableParameterfv")); - glColorTableParameteriv=reinterpret_cast(get_proc_address("glColorTableParameteriv")); - glCopyColorTable=reinterpret_cast(get_proc_address("glCopyColorTable")); - glGetColorTable=reinterpret_cast(get_proc_address("glGetColorTable")); - glGetColorTableParameterfv=reinterpret_cast(get_proc_address("glGetColorTableParameterfv")); - glGetColorTableParameteriv=reinterpret_cast(get_proc_address("glGetColorTableParameteriv")); - glColorSubTable=reinterpret_cast(get_proc_address("glColorSubTable")); - glCopyColorSubTable=reinterpret_cast(get_proc_address("glCopyColorSubTable")); - glConvolutionFilter1D=reinterpret_cast(get_proc_address("glConvolutionFilter1D")); - glConvolutionFilter2D=reinterpret_cast(get_proc_address("glConvolutionFilter2D")); - glConvolutionParameterf=reinterpret_cast(get_proc_address("glConvolutionParameterf")); - glConvolutionParameterfv=reinterpret_cast(get_proc_address("glConvolutionParameterfv")); - glConvolutionParameteri=reinterpret_cast(get_proc_address("glConvolutionParameteri")); - glConvolutionParameteriv=reinterpret_cast(get_proc_address("glConvolutionParameteriv")); - glCopyConvolutionFilter1D=reinterpret_cast(get_proc_address("glCopyConvolutionFilter1D")); - glCopyConvolutionFilter2D=reinterpret_cast(get_proc_address("glCopyConvolutionFilter2D")); - glGetConvolutionFilter=reinterpret_cast(get_proc_address("glGetConvolutionFilter")); - glGetConvolutionParameterfv=reinterpret_cast(get_proc_address("glGetConvolutionParameterfv")); - glGetConvolutionParameteriv=reinterpret_cast(get_proc_address("glGetConvolutionParameteriv")); - glGetSeparableFilter=reinterpret_cast(get_proc_address("glGetSeparableFilter")); - glSeparableFilter2D=reinterpret_cast(get_proc_address("glSeparableFilter2D")); - glGetHistogram=reinterpret_cast(get_proc_address("glGetHistogram")); - glGetHistogramParameterfv=reinterpret_cast(get_proc_address("glGetHistogramParameterfv")); - glGetHistogramParameteriv=reinterpret_cast(get_proc_address("glGetHistogramParameteriv")); - glGetMinmax=reinterpret_cast(get_proc_address("glGetMinmax")); - glGetMinmaxParameterfv=reinterpret_cast(get_proc_address("glGetMinmaxParameterfv")); - glGetMinmaxParameteriv=reinterpret_cast(get_proc_address("glGetMinmaxParameteriv")); - glHistogram=reinterpret_cast(get_proc_address("glHistogram")); - glMinmax=reinterpret_cast(get_proc_address("glMinmax")); - glResetHistogram=reinterpret_cast(get_proc_address("glResetHistogram")); - glResetMinmax=reinterpret_cast(get_proc_address("glResetMinmax")); - glTexImage3D=reinterpret_cast(get_proc_address("glTexImage3D")); - glTexSubImage3D=reinterpret_cast(get_proc_address("glTexSubImage3D")); - glCopyTexSubImage3D=reinterpret_cast(get_proc_address("glCopyTexSubImage3D")); + glBlendColor = reinterpret_cast(get_proc_address("glBlendColor")); + glBlendEquation = reinterpret_cast(get_proc_address("glBlendEquation")); + glDrawRangeElements = reinterpret_cast(get_proc_address("glDrawRangeElements")); + glColorTable = reinterpret_cast(get_proc_address("glColorTable")); + glColorTableParameterfv = reinterpret_cast(get_proc_address("glColorTableParameterfv")); + glColorTableParameteriv = reinterpret_cast(get_proc_address("glColorTableParameteriv")); + glCopyColorTable = reinterpret_cast(get_proc_address("glCopyColorTable")); + glGetColorTable = reinterpret_cast(get_proc_address("glGetColorTable")); + glGetColorTableParameterfv = reinterpret_cast(get_proc_address("glGetColorTableParameterfv")); + glGetColorTableParameteriv = reinterpret_cast(get_proc_address("glGetColorTableParameteriv")); + glColorSubTable = reinterpret_cast(get_proc_address("glColorSubTable")); + glCopyColorSubTable = reinterpret_cast(get_proc_address("glCopyColorSubTable")); + glConvolutionFilter1D = reinterpret_cast(get_proc_address("glConvolutionFilter1D")); + glConvolutionFilter2D = reinterpret_cast(get_proc_address("glConvolutionFilter2D")); + glConvolutionParameterf = reinterpret_cast(get_proc_address("glConvolutionParameterf")); + glConvolutionParameterfv = reinterpret_cast(get_proc_address("glConvolutionParameterfv")); + glConvolutionParameteri = reinterpret_cast(get_proc_address("glConvolutionParameteri")); + glConvolutionParameteriv = reinterpret_cast(get_proc_address("glConvolutionParameteriv")); + glCopyConvolutionFilter1D = reinterpret_cast(get_proc_address("glCopyConvolutionFilter1D")); + glCopyConvolutionFilter2D = reinterpret_cast(get_proc_address("glCopyConvolutionFilter2D")); + glGetConvolutionFilter = reinterpret_cast(get_proc_address("glGetConvolutionFilter")); + glGetConvolutionParameterfv = reinterpret_cast(get_proc_address("glGetConvolutionParameterfv")); + glGetConvolutionParameteriv = reinterpret_cast(get_proc_address("glGetConvolutionParameteriv")); + glGetSeparableFilter = reinterpret_cast(get_proc_address("glGetSeparableFilter")); + glSeparableFilter2D = reinterpret_cast(get_proc_address("glSeparableFilter2D")); + glGetHistogram = reinterpret_cast(get_proc_address("glGetHistogram")); + glGetHistogramParameterfv = reinterpret_cast(get_proc_address("glGetHistogramParameterfv")); + glGetHistogramParameteriv = reinterpret_cast(get_proc_address("glGetHistogramParameteriv")); + glGetMinmax = reinterpret_cast(get_proc_address("glGetMinmax")); + glGetMinmaxParameterfv = reinterpret_cast(get_proc_address("glGetMinmaxParameterfv")); + glGetMinmaxParameteriv = reinterpret_cast(get_proc_address("glGetMinmaxParameteriv")); + glHistogram = reinterpret_cast(get_proc_address("glHistogram")); + glMinmax = reinterpret_cast(get_proc_address("glMinmax")); + glResetHistogram = reinterpret_cast(get_proc_address("glResetHistogram")); + glResetMinmax = reinterpret_cast(get_proc_address("glResetMinmax")); + glTexImage3D = reinterpret_cast(get_proc_address("glTexImage3D")); + glTexSubImage3D = reinterpret_cast(get_proc_address("glTexSubImage3D")); + glCopyTexSubImage3D = reinterpret_cast(get_proc_address("glCopyTexSubImage3D")); } } // namespace GL