-
Notifications
You must be signed in to change notification settings - Fork 5
PEN_2_3
Francisco Zavala edited this page Sep 7, 2024
·
5 revisions
void printShaderLog(GLuint shader); This function prints the compilation log of a shader in OpenGL, which is useful for debugging issues during shader compilation.
-
shader:Is the identifier of the shader to be checked.
void printProgramLog(int prog); This function prints the compilation log of a program in OpenGL, which is useful for debugging issues during program linking.
-
prog:Is the identifier of the program to be checked.
bool checkOpenGLError(); This function checks if any errors have occurred in OpenGL operations, printing all errors found. It is useful for general debugging of OpenGL code.
bool: Returns true if at least one error was found, otherwise, returns false.