3 * Mesa 3-D graphics library
5 * Copyright (C) 1995-2002 Brian Paul
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.
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.
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.
24 * SVGA driver for Mesa.
25 * Original author: Brian Paul
26 * Additional authors: Slawomir Szczyrba <steev@hot.pl> (Mesa 3.2)
34 #include "GL/svgamesa.h"
35 #include "main/context.h"
36 #include "main/colormac.h"
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 */
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) */
54 typedef struct { GLubyte b
,g
,r
; } _RGB
;
59 GLubyte
* FrontBuffer
;
62 GLubyte
* DrawBuffer
; /* == FrontBuffer or BackBuffer */
63 GLubyte
* ReadBuffer
; /* == FrontBuffer or BackBuffer */
66 extern struct svga_buffer SVGABuffer
;
67 extern vga_modeinfo
* SVGAInfo
;
68 extern SVGAMesaContext SVGAMesa
; /* the current context */
70 #endif /* SVGAPIX_H */