From 069965f1709d7bcaecca0db9baf6b18e6f20f598 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 22 Jan 2000 20:08:36 +0000 Subject: updated SVGA sources from Mesa 3.2 --- src/mesa/drivers/svga/svgapix.h | 71 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/mesa/drivers/svga/svgapix.h (limited to 'src/mesa/drivers/svga/svgapix.h') diff --git a/src/mesa/drivers/svga/svgapix.h b/src/mesa/drivers/svga/svgapix.h new file mode 100644 index 0000000000..151975a909 --- /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 (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 */ -- cgit v1.2.3