Brian Paul | 668ac87 | 2000-02-09 19:03:28 +0000 | [diff] [blame] | 1 | /* $Id: ggimesa.h,v 1.3 2000/02/09 19:03:28 brianp Exp $ */ |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 2 | |
| 3 | /* |
| 4 | * Mesa 3-D graphics library |
Brian Paul | 668ac87 | 2000-02-09 19:03:28 +0000 | [diff] [blame] | 5 | * Version: 3.3 |
| 6 | * Copyright (C) 1995-2000 Brian Paul |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 7 | * Copyright (C) 1998 Uwe Maurer |
| 8 | * |
| 9 | * This library is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU Library General Public |
| 11 | * License as published by the Free Software Foundation; either |
| 12 | * version 2 of the License, or (at your option) any later version. |
| 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * Library General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU Library General Public |
| 20 | * License along with this library; if not, write to the Free |
| 21 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 22 | */ |
| 23 | |
| 24 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 25 | #ifndef GGIMESA_H |
| 26 | #define GGIMESA_H |
| 27 | |
Brian Paul | 668ac87 | 2000-02-09 19:03:28 +0000 | [diff] [blame] | 28 | |
| 29 | #define GGIMESA_MAJOR_VERSION 3 |
| 30 | #define GGIMESA_MINOR_VERSION 3 |
| 31 | |
| 32 | |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 33 | #ifdef __cplusplus |
| 34 | extern "C" { |
| 35 | #endif |
| 36 | |
| 37 | #include "GL/gl.h" |
| 38 | |
| 39 | |
| 40 | typedef struct ggi_mesa_context *GGIMesaContext; |
| 41 | |
| 42 | #include <ggi/ggi.h> |
| 43 | |
| 44 | extern GGIMesaContext GGIMesaCreateContext(void); |
| 45 | |
Jon Taylor | 6583efc | 1999-08-23 22:34:08 +0000 | [diff] [blame] | 46 | extern void GGIMesaDestroyContext(GGIMesaContext ctx); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 47 | |
Jon Taylor | 6583efc | 1999-08-23 22:34:08 +0000 | [diff] [blame] | 48 | extern void GGIMesaMakeCurrent(GGIMesaContext ctx); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 49 | |
Jon Taylor | 6583efc | 1999-08-23 22:34:08 +0000 | [diff] [blame] | 50 | extern GGIMesaContext GGIMesaGetCurrentContext(void); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 51 | |
Jon Taylor | 6583efc | 1999-08-23 22:34:08 +0000 | [diff] [blame] | 52 | extern void GGIMesaSwapBuffers(void); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 53 | |
Jon Taylor | 6583efc | 1999-08-23 22:34:08 +0000 | [diff] [blame] | 54 | extern int GGIMesaSetVisual(GGIMesaContext ctx, ggi_visual_t vis, |
| 55 | GLboolean rgb_flag, GLboolean db_flag); |
jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 56 | |
| 57 | #ifdef __cplusplus |
| 58 | } |
| 59 | #endif |
| 60 | |
| 61 | #endif |