X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Dependencies%2FOpenGL%2FGL%2Fosmesa.h;h=56fa23ce81f812cfd956049050769647a3f1640e;hb=8c5a754da6e78011ecbf6a8d1ab4469070cc72b8;hp=8c5829ae55dcb44b9bea5ae7a17ea1b444bf29c0;hpb=2163fd10b63e70efc328faf09ff927cd24bdfad4;p=lugaru.git diff --git a/Dependencies/OpenGL/GL/osmesa.h b/Dependencies/OpenGL/GL/osmesa.h index 8c5829a..56fa23c 100644 --- a/Dependencies/OpenGL/GL/osmesa.h +++ b/Dependencies/OpenGL/GL/osmesa.h @@ -1,10 +1,8 @@ -/* $Id: osmesa.h,v 1.5 2000/03/28 16:59:39 rjfrank Exp $ */ - /* * Mesa 3-D graphics library - * Version: 3.3 + * Version: 6.5 * - * Copyright (C) 1999-2000 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"), @@ -59,11 +57,12 @@ extern "C" { #endif -#include "GL/gl.h" +#include -#define OSMESA_MAJOR_VERSION 3 -#define OSMESA_MINOR_VERSION 3 +#define OSMESA_MAJOR_VERSION 6 +#define OSMESA_MINOR_VERSION 5 +#define OSMESA_PATCH_VERSION 0 @@ -77,6 +76,7 @@ extern "C" { #define OSMESA_ARGB 0x2 #define OSMESA_RGB GL_RGB #define OSMESA_BGR 0x4 +#define OSMESA_RGB_565 0x5 /* @@ -94,6 +94,8 @@ extern "C" { #define OSMESA_HEIGHT 0x21 #define OSMESA_FORMAT 0x22 #define OSMESA_TYPE 0x23 +#define OSMESA_MAX_WIDTH 0x24 /* new in 4.0 */ +#define OSMESA_MAX_HEIGHT 0x25 /* new in 4.0 */ typedef struct osmesa_context *OSMesaContext; @@ -114,10 +116,22 @@ typedef struct osmesa_context *OSMesaContext; * display lists. NULL indicates no sharing. * Return: an OSMesaContext or 0 if error */ -GLAPI OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format, - OSMesaContext sharelist ); +GLAPI OSMesaContext GLAPIENTRY +OSMesaCreateContext( GLenum format, OSMesaContext sharelist ); + +/* + * Create an Off-Screen Mesa rendering context and specify desired + * size of depth buffer, stencil buffer and accumulation buffer. + * If you specify zero for depthBits, stencilBits, accumBits you + * can save some memory. + * + * New in Mesa 3.5 + */ +GLAPI OSMesaContext GLAPIENTRY +OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, + GLint accumBits, OSMesaContext sharelist); /* @@ -125,7 +139,8 @@ GLAPI OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format, * * Input: ctx - the context to destroy */ -GLAPI void GLAPIENTRY OSMesaDestroyContext( OSMesaContext ctx ); +GLAPI void GLAPIENTRY +OSMesaDestroyContext( OSMesaContext ctx ); @@ -156,9 +171,9 @@ GLAPI void GLAPIENTRY OSMesaDestroyContext( OSMesaContext ctx ); * invalid buffer address, type!=GL_UNSIGNED_BYTE, width<1, height<1, * width>internal limit or height>internal limit. */ -GLAPI GLboolean GLAPIENTRY OSMesaMakeCurrent( OSMesaContext ctx, - void *buffer, GLenum type, - GLsizei width, GLsizei height ); +GLAPI GLboolean GLAPIENTRY +OSMesaMakeCurrent( OSMesaContext ctx, void *buffer, GLenum type, + GLsizei width, GLsizei height ); @@ -166,7 +181,8 @@ GLAPI GLboolean GLAPIENTRY OSMesaMakeCurrent( OSMesaContext ctx, /* * Return the current Off-Screen Mesa rendering context handle. */ -GLAPI OSMesaContext GLAPIENTRY OSMesaGetCurrentContext( void ); +GLAPI OSMesaContext GLAPIENTRY +OSMesaGetCurrentContext( void ); @@ -183,7 +199,8 @@ GLAPI OSMesaContext GLAPIENTRY OSMesaGetCurrentContext( void ); * * New in version 2.0. */ -GLAPI void GLAPIENTRY OSMesaPixelStore( GLint pname, GLint value ); +GLAPI void GLAPIENTRY +OSMesaPixelStore( GLint pname, GLint value ); @@ -198,7 +215,8 @@ GLAPI void GLAPIENTRY OSMesaPixelStore( GLint pname, GLint value ); * OSMESA_Y_UP returns 1 or 0 to indicate Y axis direction * value - pointer to integer in which to return result. */ -GLAPI void GLAPIENTRY OSMesaGetIntegerv( GLint pname, GLint *value ); +GLAPI void GLAPIENTRY +OSMesaGetIntegerv( GLint pname, GLint *value ); @@ -212,10 +230,10 @@ GLAPI void GLAPIENTRY OSMesaGetIntegerv( GLint pname, GLint *value ); * * New in Mesa 2.4. */ -GLAPI GLboolean GLAPIENTRY OSMesaGetDepthBuffer( OSMesaContext c, - GLint *width, GLint *height, - GLint *bytesPerValue, - void **buffer ); +GLAPI GLboolean GLAPIENTRY +OSMesaGetDepthBuffer( OSMesaContext c, GLint *width, GLint *height, + GLint *bytesPerValue, void **buffer ); + /* @@ -228,10 +246,34 @@ GLAPI GLboolean GLAPIENTRY OSMesaGetDepthBuffer( OSMesaContext c, * * New in Mesa 3.3. */ -GLAPI GLboolean GLAPIENTRY OSMesaGetColorBuffer( OSMesaContext c, - GLint *width, GLint *height, - GLint *format, - void **buffer ); +GLAPI GLboolean GLAPIENTRY +OSMesaGetColorBuffer( OSMesaContext c, GLint *width, GLint *height, + GLint *format, void **buffer ); + + + +/** + * 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__) @@ -245,4 +287,3 @@ GLAPI GLboolean GLAPIENTRY OSMesaGetColorBuffer( OSMesaContext c, #endif -