add debugging for compresssed textures
[mesa.git] / src / mesa / glapi / glapi.h
index 2a56c77cec02081edbf30dc8455844562c1acf73..41d7aaf0287e4f30c9bee3073c23cfd7f04f631d 100644 (file)
@@ -1,10 +1,9 @@
-/* $Id: glapi.h,v 1.15 2000/09/05 20:17:37 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
  * Version:  3.5
  *
- * Copyright (C) 1999-2000  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
 
 struct _glapi_table;
 
+typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
+
 
 extern void *_glapi_Context;
 
 extern struct _glapi_table *_glapi_Dispatch;
 
 
+extern void
+_glapi_noop_enable_warnings(GLboolean enable);
+
+extern void
+_glapi_set_warning_func(_glapi_warning_func func);
+
 extern void
 _glapi_check_multithread(void);
 
@@ -59,10 +66,16 @@ extern struct _glapi_table *
 _glapi_get_dispatch(void);
 
 
-#if defined(TRACE)
-extern struct _glapi_table *
-_glapi_get_true_dispatch(void);
-#endif
+extern int
+_glapi_begin_dispatch_override(struct _glapi_table *override);
+
+
+extern void
+_glapi_end_dispatch_override(int layer);
+
+
+struct _glapi_table *
+_glapi_get_override_dispatch(int layer);
 
 
 extern GLuint