diff options
author | Brian Paul <[email protected]> | 2000-09-26 20:53:53 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-09-26 20:53:53 +0000 |
commit | b1394fa92aaaf859ce9efc8b5fc194397921320c (patch) | |
tree | 48612380d5f16b24deacf643e127fc1b319fbc18 /src/mesa/main/context.h | |
parent | 3b18a36f210da9d66acd1228d24948cd77c2e81e (diff) |
First batch of OpenGL SI related changes:
Renamed struct gl_context to struct __GLcontextRec.
Include glcore.h, setup GL imports/exports.
Replaced gl_ prefix with _mesa_ prefix in context.[ch] functions.
GLcontext's Visual field is no longer a pointer.
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r-- | src/mesa/main/context.h | 58 |
1 files changed, 20 insertions, 38 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h index 284f15e078e..8345f9e70fc 100644 --- a/src/mesa/main/context.h +++ b/src/mesa/main/context.h @@ -1,4 +1,4 @@ -/* $Id: context.h,v 1.18 2000/05/24 15:04:45 brianp Exp $ */ +/* $Id: context.h,v 1.19 2000/09/26 20:53:53 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -92,27 +92,9 @@ _mesa_initialize_visual( GLvisual *v, GLint accumAlphaBits, GLint numSamples ); -/* this function is obsolete */ -extern GLvisual * -gl_create_visual( GLboolean rgbFlag, - GLboolean alphaFlag, - GLboolean dbFlag, - GLboolean stereoFlag, - GLint depthBits, - GLint stencilBits, - GLint accumBits, - GLint indexBits, - GLint redBits, - GLint greenBits, - GLint blueBits, - GLint alphaBits ); - - extern void _mesa_destroy_visual( GLvisual *vis ); -/*obsolete */ extern void gl_destroy_visual( GLvisual *vis ); - /* @@ -121,11 +103,11 @@ _mesa_destroy_visual( GLvisual *vis ); * single entity. */ extern GLframebuffer * -gl_create_framebuffer( GLvisual *visual, - GLboolean softwareDepth, - GLboolean softwareStencil, - GLboolean softwareAccum, - GLboolean softwareAlpha ); +_mesa_create_framebuffer( GLvisual *visual, + GLboolean softwareDepth, + GLboolean softwareStencil, + GLboolean softwareAccum, + GLboolean softwareAlpha ); extern void _mesa_initialize_framebuffer( GLframebuffer *fb, @@ -136,7 +118,7 @@ _mesa_initialize_framebuffer( GLframebuffer *fb, GLboolean softwareAlpha ); extern void -gl_destroy_framebuffer( GLframebuffer *buffer ); +_mesa_destroy_framebuffer( GLframebuffer *buffer ); @@ -145,10 +127,10 @@ gl_destroy_framebuffer( GLframebuffer *buffer ); * contains the rendering state. */ extern GLcontext * -gl_create_context( GLvisual *visual, - GLcontext *share_list, - void *driver_ctx, - GLboolean direct); +_mesa_create_context( GLvisual *visual, + GLcontext *share_list, + void *driver_ctx, + GLboolean direct); extern GLboolean _mesa_initialize_context( GLcontext *ctx, @@ -158,31 +140,31 @@ _mesa_initialize_context( GLcontext *ctx, GLboolean direct ); extern void -gl_free_context_data( GLcontext *ctx ); +_mesa_free_context_data( GLcontext *ctx ); extern void -gl_destroy_context( GLcontext *ctx ); +_mesa_destroy_context( GLcontext *ctx ); extern void -gl_context_initialize( GLcontext *ctx ); +_mesa_context_initialize( GLcontext *ctx ); extern void -gl_copy_context(const GLcontext *src, GLcontext *dst, GLuint mask); +_mesa_copy_context(const GLcontext *src, GLcontext *dst, GLuint mask); extern void -gl_make_current( GLcontext *ctx, GLframebuffer *buffer ); +_mesa_make_current( GLcontext *ctx, GLframebuffer *buffer ); extern void -gl_make_current2( GLcontext *ctx, GLframebuffer *drawBuffer, +_mesa_make_current2( GLcontext *ctx, GLframebuffer *drawBuffer, GLframebuffer *readBuffer ); extern GLcontext * -gl_get_current_context(void); +_mesa_get_current_context(void); @@ -235,13 +217,13 @@ extern void gl_problem( const GLcontext *ctx, const char *s ); extern void -gl_warning( const GLcontext *ctx, const char *s ); +_mesa_warning( const GLcontext *ctx, const char *s ); extern void gl_error( GLcontext *ctx, GLenum error, const char *s ); extern void -gl_compile_error( GLcontext *ctx, GLenum error, const char *s ); +_mesa_compile_error( GLcontext *ctx, GLenum error, const char *s ); |