-/* $Id: osmesa.h,v 1.8 2001/08/28 23:12:37 brianp Exp $ */
-
/*
* Mesa 3-D graphics library
- * Version: 3.5.1
+ * Version: 6.5
*
- * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2005 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"),
#include <GL/gl.h>
-#define OSMESA_MAJOR_VERSION 3
+#define OSMESA_MAJOR_VERSION 6
#define OSMESA_MINOR_VERSION 5
-#define OSMESA_PATCH_VERSION 1
+#define OSMESA_PATCH_VERSION 0
#define OSMESA_HEIGHT 0x21
#define OSMESA_FORMAT 0x22
#define OSMESA_TYPE 0x23
-#define OSMESA_MAX_WIDTH 0x24 /* new in 3.5.1 */
-#define OSMESA_MAX_HEIGHT 0x25 /* new in 3.5.1 */
+#define OSMESA_MAX_WIDTH 0x24 /* new in 4.0 */
+#define OSMESA_MAX_HEIGHT 0x25 /* new in 4.0 */
typedef struct osmesa_context *OSMesaContext;
+/**
+ * This typedef is new in Mesa 6.3.
+ */
+typedef void (*OSMESAproc)();
+
+
+/*
+ * Return pointer to the named function.
+ * New in Mesa 4.1
+ * Return OSMESAproc in 6.3.
+ */
+GLAPI OSMESAproc GLAPIENTRY
+OSMesaGetProcAddress( const char *funcName );
+
+
+
+/**
+ * Enable/disable color clamping, off by default.
+ * New in Mesa 6.4.2
+ */
+GLAPI void GLAPIENTRY
+OSMesaColorClamp(GLboolean enable);
+
+
#if defined(__BEOS__) || defined(__QUICKDRAW__)
#pragma export off
#endif