-/* $Id: osmesa.h,v 1.3 2000/01/15 06:12:18 rjfrank Exp $ */
+/* $Id: osmesa.h,v 1.4 2000/01/18 17:29:18 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 3.3
*
- * Copyright (C) 1999 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2000 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"),
*/
-
#ifndef OSMESA_H
#define OSMESA_H
-
#ifdef __cplusplus
extern "C" {
#endif
#include "GL/gl.h"
-
#define OSMESA_MAJOR_VERSION 3
#define OSMESA_MINOR_VERSION 3
#define OSMESA_FORMAT 0x22
#define OSMESA_TYPE 0x23
+
/*
* Accepted by OSMesaGetBooleanv:
* New in version 3.3
* Return: an OSMesaContext or 0 if error
*/
GLAPI OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format,
- OSMesaContext sharelist );
+ OSMesaContext sharelist );
* width>internal limit or height>internal limit.
*/
GLAPI GLboolean GLAPIENTRY OSMesaMakeCurrent( OSMesaContext ctx,
- void *buffer, GLenum type,
- GLsizei width, GLsizei height );
+ void *buffer, GLenum type,
+ GLsizei width, GLsizei height );
/*
- * Return context info. This is like glGetIntegerv.
+ * Return an integer value like glGetIntegerv.
* Input: pname -
* OSMESA_WIDTH return current image width
* OSMESA_HEIGHT return current image height
*/
GLAPI void GLAPIENTRY OSMesaGetIntegerv( GLint pname, GLint *value );
+
+
/*
- * Return context info. This is like glGetBooleanv.
+ * Return a boolean value like glGetBooleanv.
* Input: pname -
* OSMESA_OCCLUSION_TEST_RESULT_HP return current test result
* value - pointer to boolean in which to return result.
*/
GLAPI void GLAPIENTRY OSMesaGetBooleanv( GLint pname, GLboolean *value );
+
+
/*
* Return the depth buffer associated with an OSMesa context.
* Input: c - the OSMesa context
* New in Mesa 2.4.
*/
GLAPI GLboolean GLAPIENTRY OSMesaGetDepthBuffer( OSMesaContext c,
- GLint *width, GLint *height,
- GLint *bytesPerValue, void **buffer );
+ GLint *width, GLint *height,
+ GLint *bytesPerValue,
+ void **buffer );