diff options
author | Brian Paul <[email protected]> | 2000-01-22 20:08:36 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-01-22 20:08:36 +0000 |
commit | 069965f1709d7bcaecca0db9baf6b18e6f20f598 (patch) | |
tree | 1752db29a97c8bc3d3a2afa3810b6ad19f957a1b /src/mesa/drivers/svga/svgapix.h | |
parent | 99dd0d4092b2a30546359e4513b9a0dbca2e9483 (diff) |
updated SVGA sources from Mesa 3.2
Diffstat (limited to 'src/mesa/drivers/svga/svgapix.h')
-rw-r--r-- | src/mesa/drivers/svga/svgapix.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/mesa/drivers/svga/svgapix.h b/src/mesa/drivers/svga/svgapix.h new file mode 100644 index 00000000000..151975a909c --- /dev/null +++ b/src/mesa/drivers/svga/svgapix.h @@ -0,0 +1,71 @@ +/* $Id: svgapix.h,v 1.2 2000/01/22 20:08:36 brianp Exp $ */ + +/* + * Mesa 3-D graphics library + * Version: 3.2 + * Copyright (C) 1995-2000 Brian Paul + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the Free + * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + + +/* + * SVGA driver for Mesa. + * Original author: Brian Paul + * Additional authors: Slawomir Szczyrba <[email protected]> (Mesa 3.2) + */ + + +#ifndef SVGAPIX_H +#define SVGAPIX_H + +#include "GL/gl.h" +#include "GL/svgamesa.h" +#include "context.h" +#include "vga.h" + +struct svgamesa_context { + GLcontext *gl_ctx; /* the core Mesa context */ + GLvisual *gl_vis; /* describes the color buffer */ + GLframebuffer *gl_buffer; /* the ancillary buffers */ + GLuint index; /* current color index */ + GLuint clear_index; /* current clear index */ + GLint red, green, blue; /* current rgb color */ + GLuint truecolor; /* current rgb color */ + GLint clear_red, + clear_green, + clear_blue; /* current clear rgb color */ + GLuint clear_truecolor; /* current clear rgb color */ + GLushort hicolor; /* current hicolor */ + GLushort clear_hicolor; /* current clear hicolor */ + GLint width, height; /* size of color buffer */ + GLint depth; /* bits per pixel (8,16,24 or 32) */ +}; + +typedef struct { GLubyte b,g,r; } _RGB; + +struct svga_buffer { + GLint Depth; + GLint BufferSize; + GLubyte * FrontBuffer; + GLubyte * BackBuffer; + GLubyte * VideoRam; +}; + +extern struct svga_buffer SVGABuffer; +extern vga_modeinfo * SVGAInfo; +extern SVGAMesaContext SVGAMesa; /* the current context */ + +#endif /* SVGAPIX_H */ |