1 /* $Id: ggimesa.h,v 1.3.6.1 2002/06/10 15:16:16 brianp Exp $ */
4 * Mesa 3-D graphics library GGI bindings (GGIGL [giggle])
6 * Copyright (C) 1995-2000 Brian Paul
7 * Copyright (C) 1998 Uwe Maurer
8 * Copyrigth (C) 2001 Filip Spacek
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #define GGIMESA_MAJOR_VERSION 4
30 #define GGIMESA_MINOR_VERSION 0
39 typedef struct ggi_mesa_context *ggi_mesa_context_t;
42 * Initialize Mesa GGI extension
44 int ggiMesaInit(void);
46 * Clean up Mesa GGI exension
48 int ggiMesaExit(void);
51 * Attach Mesa GGI extension to the visual 'vis'
53 int ggiMesaAttach(ggi_visual_t vis);
55 * Detach Mesa GGI extension from the visual 'vis'
57 int ggiMesaDetach(ggi_visual_t vis);
59 int ggiMesaExtendVisual(ggi_visual_t vis, GLboolean alpha_flag,
60 GLboolean stereo_flag, GLint depth_size,
61 GLint stencil_size, GLint accum_red_size,
62 GLint accum_green_size, GLint accum_blue_size,
63 GLint accum_alpha_size, GLint num_samples);
66 * Create a new context capable of displaying on the visual vis.
68 ggi_mesa_context_t ggiMesaCreateContext(ggi_visual_t vis);
70 * Destroy the context 'ctx'
72 void ggiMesaDestroyContext(ggi_mesa_context_t ctx);
75 * Make context 'ctx' the current context and bind it to visual 'vis'.
76 * Note that the context must have been created with respect to that visual.
78 void ggiMesaMakeCurrent(ggi_mesa_context_t ctx, ggi_visual_t vis);
80 void ggiMesaSwapBuffers(void);