# 読書メモ: "シェーダー料理本" ## Chapter 2 - Writing with GLSL Programs エラーメッセージを取得するには、glGetError以外にも4.3からコールバック形式のものが使える。 ```cpp glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GL_TRUE); glEnable(GL_DEBUG_OUTPUT); // デフォルト有効だが、明示的に有効にすることも可能 glDebugMessageCallback(...); glDebugMessageControl(...); ``` ## Chapter 3 - The Basics of GLSL Shaders > The data corresponding to the position of the vertex must be transformed into > **clip space coordinates** and assigned to shader can send other information > down the pipeline using shader output variables. (P79)