Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmglmesa.h
Go to the documentation of this file.
00001 /**************************************************************************** 00002 * 00003 * Mesa bindings for SciTech MGL 00004 * 00005 * Copyright (C) 1996 SciTech Software. 00006 * All rights reserved. 00007 * 00008 * Filename: mglmesa.h 00009 * Version: Revision: 1.1.1.1 00010 * 00011 * Language: ANSI C 00012 * Environment: Any 00013 * 00014 * Description: Header file for the Mesa/OpenGL interface bindings for the 00015 * SciTech MGL graphics library. Uses the MGL internal 00016 * device context structures to get direct access to the 00017 * high performance MGL rasterization functions for maximum 00018 * performance. Utilizes the VESA VBE/AF Accelerator Functions 00019 * via the MGL's accelerated device driver functions, as well 00020 * as basic DirectDraw accelerated functions provided by the 00021 * MGL. 00022 * 00023 * This library is free software; you can redistribute it and/or 00024 * modify it under the terms of the GNU Library General Public 00025 * License as published by the Free Software Foundation; either 00026 * version 2 of the License, or (at your option) any later version. 00027 * 00028 * This library is distributed in the hope that it will be useful, 00029 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00030 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00031 * Library General Public License for more details. 00032 * 00033 * You should have received a copy of the GNU Library General Public 00034 * License along with this library; if not, write to the Free 00035 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00036 * 00037 * 00038 ****************************************************************************/ 00039 00040 #ifndef __MGLMESA_H 00041 #define __MGLMESA_H 00042 00043 #include "mgraph.h" 00044 00045 /*------------------------- Function Prototypes ---------------------------*/ 00046 00047 #ifdef __cplusplus 00048 extern "C" { /* Use "C" linkage when in C++ mode */ 00049 #endif 00050 00051 #ifndef __WINDOWS__ 00052 #define GLAPIENTRY 00053 #endif 00054 00055 #ifdef __WINDOWS__ 00056 bool GLAPIENTRY MGLMesaInitDLL(MGLCallbacks *cb,char *version); 00057 #endif 00058 void GLAPIENTRY MGLMesaChooseVisual(MGLDC *dc,MGLVisual *visual); 00059 bool GLAPIENTRY MGLMesaSetVisual(MGLDC *dc,MGLVisual *visual); 00060 bool GLAPIENTRY MGLMesaCreateContext(MGLDC *dc,bool forceMemDC); 00061 void GLAPIENTRY MGLMesaDestroyContext(MGLDC *dc); 00062 void GLAPIENTRY MGLMesaMakeCurrent(MGLDC *dc); 00063 void GLAPIENTRY MGLMesaSwapBuffers(MGLDC *dc,bool waitVRT); 00064 00065 /* Palette manipulation support. The reason we provide palette manipulation 00066 * routines is so that when rendering in double buffered modes with a 00067 * software backbuffer, the palette for the backbuffer is kept consistent 00068 * with the hardware front buffer. 00069 */ 00070 00071 void GLAPIENTRY MGLMesaSetPaletteEntry(MGLDC *dc,int entry,uchar red,uchar green,uchar blue); 00072 void GLAPIENTRY MGLMesaSetPalette(MGLDC *dc,palette_t *pal,int numColors,int startIndex); 00073 void GLAPIENTRY MGLMesaRealizePalette(MGLDC *dc,int numColors,int startIndex,int waitVRT); 00074 00075 #ifdef __cplusplus 00076 } /* End of "C" linkage for C++ */ 00077 #endif /* __cplusplus */ 00078 00079 #endif /* __MGLMESA_H */ Generated on Thu May 24 2012 04:20:10 for ReactOS by
1.7.6.1
|