Remove CVS keywords.
[mesa.git] / src / mesa / drivers / svga / svgapix.h
1
2 /*
3 * Mesa 3-D graphics library
4 * Version: 5.0
5 * Copyright (C) 1995-2002 Brian Paul
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22
23 /*
24 * SVGA driver for Mesa.
25 * Original author: Brian Paul
26 * Additional authors: Slawomir Szczyrba <steev@hot.pl> (Mesa 3.2)
27 */
28
29
30 #ifndef SVGAPIX_H
31 #define SVGAPIX_H
32
33 #include "GL/gl.h"
34 #include "GL/svgamesa.h"
35 #include "main/context.h"
36 #include "main/colormac.h"
37 #include "vga.h"
38
39 struct svgamesa_context {
40 GLcontext *gl_ctx; /* the core Mesa context */
41 GLvisual *gl_vis; /* describes the color buffer */
42 GLframebuffer *gl_buffer; /* the ancillary buffers */
43 GLuint clear_index; /* current clear index */
44 GLint clear_red,
45 clear_green,
46 clear_blue; /* current clear rgb color */
47 GLuint clear_truecolor; /* current clear rgb color */
48 GLushort hicolor; /* current hicolor */
49 GLushort clear_hicolor; /* current clear hicolor */
50 GLint width, height; /* size of color buffer */
51 GLint depth; /* bits per pixel (8,16,24 or 32) */
52 };
53
54 typedef struct { GLubyte b,g,r; } _RGB;
55
56 struct svga_buffer {
57 GLint Depth;
58 GLint BufferSize;
59 GLubyte * FrontBuffer;
60 GLubyte * BackBuffer;
61 GLubyte * VideoRam;
62 GLubyte * DrawBuffer; /* == FrontBuffer or BackBuffer */
63 GLubyte * ReadBuffer; /* == FrontBuffer or BackBuffer */
64 };
65
66 extern struct svga_buffer SVGABuffer;
67 extern vga_modeinfo * SVGAInfo;
68 extern SVGAMesaContext SVGAMesa; /* the current context */
69
70 #endif /* SVGAPIX_H */