public static void DebugMessageCallbackAMD(Gl.DebugProc callback, IntPtr userParam)
 {
     Debug.Assert(Delegates.pglDebugMessageCallbackAMD != null, "pglDebugMessageCallbackAMD not implemented");
     Delegates.pglDebugMessageCallbackAMD(callback, userParam);
     LogCommand("glDebugMessageCallbackAMD", null, callback, userParam);
     DebugCheckErrors(null);
 }
 public static void DebugMessageCallbackAMD(Gl.DebugProc callback, IntPtr userParam)
 {
     Debug.Assert(Delegates.pglDebugMessageCallbackAMD != null, "pglDebugMessageCallbackAMD not implemented");
     Delegates.pglDebugMessageCallbackAMD(callback, userParam);
     LogFunction("glDebugMessageCallbackAMD({0}, 0x{1})", callback, userParam.ToString("X8"));
     DebugCheckErrors(null);
 }
Exemple #3
0
 private void ContextCreated(object sender, NativeWindowEventArgs e)
 {
     debugProc = GlDebugCallback;
     Gl.DebugMessageCallback(debugProc, null);
     Gl.Enable(EnableCap.DepthTest);
     Gl.Enable(EnableCap.Blend);
     Gl.Enable(EnableCap.CullFace);
     Gl.Enable(EnableCap.FramebufferSrgb);
     Gl.Enable((EnableCap)Gl.TEXTURE_CUBE_MAP_SEAMLESS);
     Gl.BlendFunc(BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha);
     // imgui = new QuincyImGui();
     scene = new Scene();
 }
Exemple #4
0
        public void CreateDisplay(GlControl glControl)
        {
            _debugProc = GLDebugMessageCallbackProc;

            if (Gl.CurrentExtensions != null && Gl.CurrentExtensions.DebugOutput_ARB)
            {
                Gl.DebugMessageCallback(_debugProc, IntPtr.Zero);
                Gl.DebugMessageControl(DebugSource.DontCare, DebugType.DontCare, DebugSeverity.DontCare, 0, null, true);
            }

            if (Gl.CurrentVersion != null && Gl.CurrentVersion.Api == KhronosVersion.ApiGl && glControl.MultisampleBits > 0)
            {
                Gl.Enable(EnableCap.Multisample);
            }

            this.lastFrameTime = GetCurrentTime();
        }
 internal extern static unsafe void glDebugMessageCallbackAMD(Gl.DebugProc callback, IntPtr userParam);
Exemple #6
0
 public MainForm()
 {
     InitializeComponent();
     _debugProc = GLDebugMessageCallbackProc;
 }