101e04c3fSmrg/* 201e04c3fSmrg * Mesa 3-D graphics library 301e04c3fSmrg * 401e04c3fSmrg * Copyright (C) 1999-2016 Brian Paul, et al All Rights Reserved. 501e04c3fSmrg * 601e04c3fSmrg * Permission is hereby granted, free of charge, to any person obtaining a 701e04c3fSmrg * copy of this software and associated documentation files (the "Software"), 801e04c3fSmrg * to deal in the Software without restriction, including without limitation 901e04c3fSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1001e04c3fSmrg * and/or sell copies of the Software, and to permit persons to whom the 1101e04c3fSmrg * Software is furnished to do so, subject to the following conditions: 1201e04c3fSmrg * 1301e04c3fSmrg * The above copyright notice and this permission notice shall be included 1401e04c3fSmrg * in all copies or substantial portions of the Software. 1501e04c3fSmrg * 1601e04c3fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1701e04c3fSmrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1801e04c3fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1901e04c3fSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 2001e04c3fSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2101e04c3fSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2201e04c3fSmrg * OTHER DEALINGS IN THE SOFTWARE. 2301e04c3fSmrg */ 2401e04c3fSmrg 2501e04c3fSmrg 2601e04c3fSmrg#ifndef DEBUG_OUTPUT_H 2701e04c3fSmrg#define DEBUG_OUTPUT_H 2801e04c3fSmrg 2901e04c3fSmrg 3001e04c3fSmrg#include <stdio.h> 3101e04c3fSmrg#include <stdarg.h> 3201e04c3fSmrg#include "glheader.h" 3301e04c3fSmrg#include "menums.h" 3401e04c3fSmrg 3501e04c3fSmrg 3601e04c3fSmrg#ifdef __cplusplus 3701e04c3fSmrgextern "C" { 3801e04c3fSmrg#endif 3901e04c3fSmrg 4001e04c3fSmrgstruct gl_context; 4101e04c3fSmrg 4201e04c3fSmrgvoid 4301e04c3fSmrg_mesa_init_debug_output(struct gl_context *ctx); 4401e04c3fSmrg 4501e04c3fSmrgvoid 467ec681f3Smrg_mesa_destroy_debug_output(struct gl_context *ctx); 4701e04c3fSmrg 4801e04c3fSmrgvoid 4901e04c3fSmrg_mesa_debug_get_id(GLuint *id); 5001e04c3fSmrg 5101e04c3fSmrgbool 5201e04c3fSmrg_mesa_set_debug_state_int(struct gl_context *ctx, GLenum pname, GLint val); 5301e04c3fSmrg 5401e04c3fSmrgGLint 5501e04c3fSmrg_mesa_get_debug_state_int(struct gl_context *ctx, GLenum pname); 5601e04c3fSmrg 5701e04c3fSmrgvoid * 5801e04c3fSmrg_mesa_get_debug_state_ptr(struct gl_context *ctx, GLenum pname); 5901e04c3fSmrg 6001e04c3fSmrgvoid 6101e04c3fSmrg_mesa_log_msg(struct gl_context *ctx, enum mesa_debug_source source, 6201e04c3fSmrg enum mesa_debug_type type, GLuint id, 6301e04c3fSmrg enum mesa_debug_severity severity, GLint len, const char *buf); 6401e04c3fSmrg 6501e04c3fSmrgbool 6601e04c3fSmrg_mesa_debug_is_message_enabled(const struct gl_debug_state *debug, 6701e04c3fSmrg enum mesa_debug_source source, 6801e04c3fSmrg enum mesa_debug_type type, 6901e04c3fSmrg GLuint id, 7001e04c3fSmrg enum mesa_debug_severity severity); 7101e04c3fSmrg 7201e04c3fSmrgvoid GLAPIENTRY 7301e04c3fSmrg_mesa_DebugMessageInsert(GLenum source, GLenum type, GLuint id, 7401e04c3fSmrg GLenum severity, GLint length, 7501e04c3fSmrg const GLchar* buf); 7601e04c3fSmrg 7701e04c3fSmrgGLuint GLAPIENTRY 7801e04c3fSmrg_mesa_GetDebugMessageLog(GLuint count, GLsizei logSize, GLenum* sources, 7901e04c3fSmrg GLenum* types, GLenum* ids, GLenum* severities, 8001e04c3fSmrg GLsizei* lengths, GLchar* messageLog); 8101e04c3fSmrg 8201e04c3fSmrgvoid GLAPIENTRY 8301e04c3fSmrg_mesa_DebugMessageControl(GLenum source, GLenum type, GLenum severity, 8401e04c3fSmrg GLsizei count, const GLuint *ids, 8501e04c3fSmrg GLboolean enabled); 8601e04c3fSmrg 8701e04c3fSmrgvoid GLAPIENTRY 8801e04c3fSmrg_mesa_DebugMessageCallback(GLDEBUGPROC callback, 8901e04c3fSmrg const void *userParam); 9001e04c3fSmrg 9101e04c3fSmrgvoid GLAPIENTRY 9201e04c3fSmrg_mesa_PushDebugGroup(GLenum source, GLuint id, GLsizei length, 9301e04c3fSmrg const GLchar *message); 9401e04c3fSmrg 9501e04c3fSmrgvoid GLAPIENTRY 9601e04c3fSmrg_mesa_PopDebugGroup(void); 9701e04c3fSmrg 9801e04c3fSmrgvoid GLAPIENTRY 9901e04c3fSmrg_mesa_StringMarkerGREMEDY(GLsizei len, const GLvoid *string); 10001e04c3fSmrg 10101e04c3fSmrg 10201e04c3fSmrg#ifdef __cplusplus 10301e04c3fSmrg} 10401e04c3fSmrg#endif 10501e04c3fSmrg 10601e04c3fSmrg 10701e04c3fSmrg#endif /* DEBUG_OUTPUT_H */ 108