GLUS
glus_log.h
Go to the documentation of this file.
1 /*
2  * GLUS - Modern OpenGL, OpenGL ES and OpenVG Utilities. Copyright (C) since 2010 Norbert Nopper
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef GLUS_LOG_H_
19 #define GLUS_LOG_H_
20 
27 
34 
42 GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrint(GLUSuint verbosity, const char* format, ...);
43 
51 GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrintError(GLUSuint verbosity, const char* format, ...);
52 
53 #endif /* GLUS_LOG_H_ */
GLUSAPI GLUSuint GLUSAPIENTRY glusLogGetLevel()
Gets the current log level.
Definition: glus_log.c:38
void GLUSvoid
Definition: glus_typedef.h:51
unsigned int GLUSuint
Definition: glus_typedef.h:28
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogSetLevel(const GLUSuint verbosity)
Sets the current log level.
Definition: glus_log.c:33
#define GLUSAPI
Definition: glus_function.h:38
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrintError(GLUSuint verbosity, const char *format,...)
Executes glGetError() and prints out the error code plus the given information to the log console...
Definition: glus_log.c:73
#define GLUSAPIENTRY
Definition: glus_function.h:31
GLUSAPI GLUSvoid GLUSAPIENTRY glusLogPrint(GLUSuint verbosity, const char *format,...)
Prints out the given information to the log console.
Definition: glus_log.c:43