blob: 86b598d1781f242044c31db8db5591132c076142 [file] [log] [blame]
Jon Taylor6583efc1999-08-23 22:34:08 +00001/* $Id: ggimesa.h,v 1.2 1999/08/23 22:34:08 jtaylor Exp $ */
jtgafb833d1999-08-19 00:55:39 +00002
3/*
4 * Mesa 3-D graphics library
5 * Version: 3.1
6 * Copyright (C) 1995-1998 Brian Paul
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
25/*
26 * $Log: ggimesa.h,v $
Jon Taylor6583efc1999-08-23 22:34:08 +000027 * Revision 1.2 1999/08/23 22:34:08 jtaylor
28 * Misc small cleanups
29 *
30 * Revision 1.1.1.1 1999/08/19 00:55:40 jtg
31 * Imported sources
jtgafb833d1999-08-19 00:55:39 +000032 *
33 * Revision 1.2 1998/09/29 01:46:40 brianp
34 * applied Emmanuel Marty's patches for latest GGI
35 *
36 */
37
38
39#ifndef GGIMESA_H
40#define GGIMESA_H
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46#include "GL/gl.h"
47
48
49typedef struct ggi_mesa_context *GGIMesaContext;
50
51#include <ggi/ggi.h>
52
53extern GGIMesaContext GGIMesaCreateContext(void);
54
Jon Taylor6583efc1999-08-23 22:34:08 +000055extern void GGIMesaDestroyContext(GGIMesaContext ctx);
jtgafb833d1999-08-19 00:55:39 +000056
Jon Taylor6583efc1999-08-23 22:34:08 +000057extern void GGIMesaMakeCurrent(GGIMesaContext ctx);
jtgafb833d1999-08-19 00:55:39 +000058
Jon Taylor6583efc1999-08-23 22:34:08 +000059extern GGIMesaContext GGIMesaGetCurrentContext(void);
jtgafb833d1999-08-19 00:55:39 +000060
Jon Taylor6583efc1999-08-23 22:34:08 +000061extern void GGIMesaSwapBuffers(void);
jtgafb833d1999-08-19 00:55:39 +000062
Jon Taylor6583efc1999-08-23 22:34:08 +000063extern int GGIMesaSetVisual(GGIMesaContext ctx, ggi_visual_t vis,
64 GLboolean rgb_flag, GLboolean db_flag);
jtgafb833d1999-08-19 00:55:39 +000065
66#ifdef __cplusplus
67}
68#endif
69
70#endif