summaryrefslogtreecommitdiff
path: root/include/GL/osmesa.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-01-18 17:29:18 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-01-18 17:29:18 +0000
commit187bce0724fe0606614df3de57c2dc2b65623545 (patch)
treec4540b8fdfd973b4f975ecfbe01d480c62162d3f /include/GL/osmesa.h
parentc902f7d05ae854f4c0b520f2f8c37263c96995af (diff)
minor clean-up
Diffstat (limited to 'include/GL/osmesa.h')
-rw-r--r--include/GL/osmesa.h27
1 files changed, 15 insertions, 12 deletions
diff --git a/include/GL/osmesa.h b/include/GL/osmesa.h
index 15415a63f2..ac66e77e85 100644
--- a/include/GL/osmesa.h
+++ b/include/GL/osmesa.h
@@ -1,10 +1,10 @@
-/* $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"),
@@ -50,12 +50,10 @@
*/
-
#ifndef OSMESA_H
#define OSMESA_H
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -64,7 +62,6 @@ extern "C" {
#include "GL/gl.h"
-
#define OSMESA_MAJOR_VERSION 3
#define OSMESA_MINOR_VERSION 3
@@ -98,6 +95,7 @@ extern "C" {
#define OSMESA_FORMAT 0x22
#define OSMESA_TYPE 0x23
+
/*
* Accepted by OSMesaGetBooleanv:
* New in version 3.3
@@ -126,7 +124,7 @@ typedef struct osmesa_context *OSMesaContext;
* Return: an OSMesaContext or 0 if error
*/
GLAPI OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format,
- OSMesaContext sharelist );
+ OSMesaContext sharelist );
@@ -168,8 +166,8 @@ GLAPI void GLAPIENTRY OSMesaDestroyContext( OSMesaContext ctx );
* 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 );
@@ -199,7 +197,7 @@ GLAPI void GLAPIENTRY OSMesaPixelStore( GLint pname, GLint value );
/*
- * 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
@@ -211,14 +209,18 @@ GLAPI void GLAPIENTRY OSMesaPixelStore( GLint pname, GLint value );
*/
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
@@ -230,8 +232,9 @@ GLAPI void GLAPIENTRY OSMesaGetBooleanv( GLint pname, GLboolean *value );
* 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 );