Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygensvgamesa.h
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 4.0 00004 * Copyright (C) 1995-2001 Brian Paul 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public 00017 * License along with this library; if not, write to the Free 00018 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 00022 /* 00023 * SVGA/Mesa interface for Linux. 00024 */ 00025 00026 00027 /* 00028 * Intro to using the VGA/Mesa interface 00029 * 00030 * 1. #include the <vga.h> file 00031 * 2. Call vga_init() to initialize the SVGA library. 00032 * 3. Call vga_setmode() to specify the screen size and color depth. 00033 * 4. Call SVGAMesaCreateContext() to setup a Mesa context. If using 8-bit 00034 * color Mesa assumes color index mode, if using 16-bit or deeper color 00035 * Mesa assumes RGB mode. 00036 * 5. Call SVGAMesaMakeCurrent() to activate the Mesa context. 00037 * 6. You can now use the Mesa API functions. 00038 * 7. Before exiting, call SVGAMesaDestroyContext() then vga_setmode(TEXT) 00039 * to restore the original text screen. 00040 * 00041 * Notes 00042 * 1. You must run your executable as root (or use the set UID-bit) because 00043 * the SVGA library requires it. 00044 * 2. The SVGA driver is not fully implemented yet. See svgamesa.c for what 00045 * has to be done yet. 00046 */ 00047 00048 00049 #ifndef SVGAMESA_H 00050 #define SVGAMESA_H 00051 00052 00053 #define SVGAMESA_MAJOR_VERSION 4 00054 #define SVGAMESA_MINOR_VERSION 0 00055 00056 00057 #ifdef __cplusplus 00058 extern "C" { 00059 #endif 00060 00061 00062 #include "GL/gl.h" 00063 00064 00065 00066 /* 00067 * This is the SVGAMesa context 'handle': 00068 */ 00069 typedef struct svgamesa_context *SVGAMesaContext; 00070 00071 00072 00073 /* 00074 * doubleBuffer flag new in version 2.4 00075 */ 00076 extern int SVGAMesaInit( int GraphMode ); 00077 00078 extern int SVGAMesaClose( void ); 00079 00080 extern SVGAMesaContext SVGAMesaCreateContext( GLboolean doubleBuffer ); 00081 00082 extern void SVGAMesaDestroyContext( SVGAMesaContext ctx ); 00083 00084 extern void SVGAMesaMakeCurrent( SVGAMesaContext ctx ); 00085 00086 extern void SVGAMesaSwapBuffers( void ); 00087 00088 extern void SVGAMesaSetCI(int ndx, GLubyte red, GLubyte green, GLubyte blue); 00089 00090 extern SVGAMesaContext SVGAMesaGetCurrentContext( void ); 00091 00092 #ifdef __cplusplus 00093 } 00094 #endif 00095 00096 00097 #endif Generated on Sun May 27 2012 04:19:56 for ReactOS by
1.7.6.1
|