blob: 25a5aa48a82c1e9ad5489b89a023a1d9ed14bfb5 [file] [log] [blame]
Brian Paul668ac872000-02-09 19:03:28 +00001/* $Id: amesa.h,v 1.2 2000/02/09 19:03:28 brianp Exp $ */
jtgafb833d1999-08-19 00:55:39 +00002
3/*
4 * Mesa 3-D graphics library
Brian Paul668ac872000-02-09 19:03:28 +00005 * Version: 3.3
jtgafb833d1999-08-19 00:55:39 +00006 *
Brian Paul668ac872000-02-09 19:03:28 +00007 * Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
jtgafb833d1999-08-19 00:55:39 +00008 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
jtgafb833d1999-08-19 00:55:39 +000028/* Allegro (DJGPP) driver by Bernhard Tschirren (bernie-t@geocities.com) */
29
30
jtgafb833d1999-08-19 00:55:39 +000031#ifndef AMESA_H
32#define AMESA_H
33
34
Brian Paul668ac872000-02-09 19:03:28 +000035#define AMESA_MAJOR_VERSION 3
36#define AMESA_MINOR_VERSION 3
37
38
jtgafb833d1999-08-19 00:55:39 +000039typedef struct amesa_visual *AMesaVisual;
40typedef struct amesa_buffer *AMesaBuffer;
41typedef struct amesa_context *AMesaContext;
42
43
44extern AMesaVisual AMesaCreateVisual(GLboolean dbFlag, GLint depth,
45 GLint depthSize,
46 GLint stencilSize,
47 GLint accumSize);
48
49extern void AMesaDestroyVisual(AMesaVisual visual);
50
51extern AMesaBuffer AMesaCreateBuffer(AMesaVisual visual,
52 GLint width, GLint height);
53
54extern void AMesaDestroyBuffer(AMesaBuffer buffer);
55
56
57extern AMesaContext AMesaCreateContext(AMesaVisual visual,
58 AMesaContext sharelist);
59
60extern void AMesaDestroyContext(AMesaContext context);
61
62extern GLboolean AMesaMakeCurrent(AMesaContext context, AMesaBuffer buffer);
63
64extern void AMesaSwapBuffers(AMesaBuffer buffer);
65
66
67#endif /* AMESA_H */