Exemplo n.º 1
0
        private static void Load_VERSION_1_3()
        {
            _ActiveTexture           = GetAddress <ActiveTexture>("glActiveTexture");
            SampleCoverage           = GetAddress <SampleCoverage>("glSampleCoverage");
            _CompressedTexImage1D    = GetAddress <CompressedTexImage1D>("glCompressedTexImage1D");
            _CompressedTexImage2D    = GetAddress <CompressedTexImage2D>("glCompressedTexImage2D");
            _CompressedTexImage3D    = GetAddress <CompressedTexImage3D>("glCompressedTexImage3D");
            _CompressedTexSubImage1D = GetAddress <CompressedTexSubImage1D>("glCompressedTexSubImage1D");
            _CompressedTexSubImage2D = GetAddress <CompressedTexSubImage2D>("glCompressedTexSubImage2D");
            _CompressedTexSubImage3D = GetAddress <CompressedTexSubImage3D>("glCompressedTexSubImage3D");
            _GetCompressedTexImage   = GetAddress <GetCompressedTexImage>("glGetCompressedTexImage");

            VERSION_1_3 = VERSION_1_2 && _ActiveTexture != null && SampleCoverage != null && _CompressedTexImage3D != null &&
                          _CompressedTexSubImage3D != null && _GetCompressedTexImage != null;
        }
Exemplo n.º 2
0
 public static void InitGL_1_3(OpenGLContext ctx)
 {
     glActiveTexture = ctx.GetProc<ActiveTexture>("glActiveTexture");
     glSampleCoverage = ctx.GetProc<SampleCoverage>("glSampleCoverage");
     glCompressedTexImage3D = ctx.GetProc<CompressedTexImage3D>("glCompressedTexImage3D");
     glCompressedTexImage2D = ctx.GetProc<CompressedTexImage2D>("glCompressedTexImage2D");
     glCompressedTexImage1D = ctx.GetProc<CompressedTexImage1D>("glCompressedTexImage1D");
     glCompressedTexSubImage3D = ctx.GetProc<CompressedTexSubImage3D>("glCompressedTexSubImage3D");
     glCompressedTexSubImage2D = ctx.GetProc<CompressedTexSubImage2D>("glCompressedTexSubImage2D");
     glCompressedTexSubImage1D = ctx.GetProc<CompressedTexSubImage1D>("glCompressedTexSubImage1D");
     glGetCompressedTexImage = ctx.GetProc<GetCompressedTexImage>("glGetCompressedTexImage");
 }