What is the best way to debug OpenGL?

前端 未结 10 1612
半阙折子戏
半阙折子戏 2020-12-12 17:51

I find that a lot of the time, OpenGL will show you it failed by not drawing anything. I\'m trying to find ways to debug OpenGL programs, by inspecting the transformation ma

10条回答
  •  攒了一身酷
    2020-12-12 18:36

    Updating the window title dynamically is convenient for me.

    Example (use GLFW, C++11):

    glfwSetWindowTitle(window, ("Now Time is " + to_string(glfwGetTime())).c_str());
    

提交回复
热议问题