Exemple #1
0
        private static void Load_VERSION_1_4()
        {
            BlendFuncSeparate  = GetAddress <BlendFuncSeparate>("glBlendFuncSeparate");
            MultiDrawArrays    = GetAddress <MultiDrawArrays>("glMultiDrawArrays");
            _MultiDrawElements = GetAddress <MultiDrawElements>("glMultiDrawElements");
            PointParameterf    = GetAddress <PointParameterf>("glPointParameterf");
            PointParameterfv   = GetAddress <PointParameterfv>("glPointParameterfv");
            _PointParameteri   = GetAddress <PointParameteri>("glPointParameteri");
            PointParameteriv   = GetAddress <PointParameteriv>("glPointParameteriv");
            BlendColor         = GetAddress <BlendColor>("glBlendColor");
            BlendEquation      = GetAddress <BlendEquation>("glBlendEquation");

            VERSION_1_4 = VERSION_1_3 && BlendFuncSeparate != null && MultiDrawArrays != null && _MultiDrawElements != null &&
                          PointParameterf != null && _PointParameteri != null && BlendColor != null && BlendEquation != null;
        }
Exemple #2
0
 public static void InitGL_1_4(OpenGLContext ctx)
 {
     glBlendFuncSeparate = ctx.GetProc<BlendFuncSeparate>("glBlendFuncSeparate");
     glMultiDrawArrays = ctx.GetProc<MultiDrawArrays>("glMultiDrawArrays");
     glMultiDrawElements = ctx.GetProc<MultiDrawElements>("glMultiDrawElements");
     glPointParameterf = ctx.GetProc<PointParameterf>("glPointParameterf");
     glPointParameterfv = ctx.GetProc<PointParameterfv>("glPointParameterfv");
     glPointParameteri = ctx.GetProc<PointParameteri>("glPointParameteri");
     glPointParameteriv = ctx.GetProc<PointParameteriv>("glPointParameteriv");
 }