ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

wmesa.h
Go to the documentation of this file.
00001 /*
00002  * Mesa 3-D graphics library
00003  * Version:  3.0
00004  * Copyright (C) 1995-1998  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 /*
00024  * Windows driver by: Mark E. Peterson (markp@ic.mankato.mn.us)
00025  * Updated by Li Wei (liwei@aiar.xjtu.edu.cn)
00026  *
00027  *
00028  ***************************************************************
00029  *                     WMesa                                   *
00030  *                     version 2.3                             *    
00031  *                                                             *
00032  *                        By                                   *
00033  *                      Li Wei                                 *
00034  *       Institute of Artificial Intelligence & Robotics       *
00035  *       Xi'an Jiaotong University                             *
00036  *       Email: liwei@aiar.xjtu.edu.cn                         * 
00037  *       Web page: http://sun.aiar.xjtu.edu.cn                 *
00038  *                                                             *
00039  *         July 7th, 1997                      *
00040  ***************************************************************
00041  */
00042 
00043 
00044 #ifndef WMESA_H
00045 #define WMESA_H
00046 
00047 
00048 #ifdef __cplusplus
00049 extern "C" {
00050 #endif
00051 
00052 
00053 #include "GL/gl.h"
00054 
00055 #if defined(_MSV_VER) && !defined(__GNUC__)
00056 #  pragma warning (disable:4273)
00057 #  pragma warning( disable : 4244 ) /* '=' : conversion from 'const double ' to 'float ', possible loss of data */
00058 #  pragma warning( disable : 4018 ) /* '<' : signed/unsigned mismatch */
00059 #  pragma warning( disable : 4305 ) /* '=' : truncation from 'const double ' to 'float ' */
00060 #  pragma warning( disable : 4013 ) /* 'function' undefined; assuming extern returning int */
00061 #  pragma warning( disable : 4761 ) /* integral size mismatch in argument; conversion supplied */
00062 #  pragma warning( disable : 4273 ) /* 'identifier' : inconsistent DLL linkage. dllexport assumed */
00063 #  if (MESA_WARNQUIET>1)
00064 #    pragma warning( disable : 4146 ) /* unary minus operator applied to unsigned type, result still unsigned */
00065 #  endif
00066 #endif
00067 
00068 /*
00069  * This is the WMesa context 'handle':
00070  */
00071 typedef struct wmesa_context *WMesaContext;
00072 
00073 
00074 
00075 /*
00076  * Create a new WMesaContext for rendering into a window.  You must
00077  * have already created the window of correct visual type and with an
00078  * appropriate colormap.
00079  *
00080  * Input:
00081  *         hDC - Windows device or memory context
00082  *         Pal  - Palette to use
00083  *         rgb_flag - GL_TRUE = RGB mode,
00084  *                    GL_FALSE = color index mode
00085  *         db_flag - GL_TRUE = double-buffered,
00086  *                   GL_FALSE = single buffered
00087  *         alpha_flag - GL_TRUE = create software alpha buffer,
00088  *                      GL_FALSE = no software alpha buffer
00089  *
00090  * Note: Indexed mode requires double buffering under Windows.
00091  *
00092  * Return:  a WMesa_context or NULL if error.
00093  */
00094 extern WMesaContext WMesaCreateContext(HDC hDC,HPALETTE* pPal,
00095                                        GLboolean rgb_flag,
00096                                        GLboolean db_flag,
00097                                        GLboolean alpha_flag);
00098 
00099 
00100 /*
00101  * Destroy a rendering context as returned by WMesaCreateContext()
00102  */
00103 extern void WMesaDestroyContext( WMesaContext ctx );
00104 
00105 
00106 
00107 /*
00108  * Make the specified context the current one.
00109  */
00110 extern void WMesaMakeCurrent( WMesaContext ctx, HDC hdc );
00111 
00112 
00113 /*
00114  * Return a handle to the current context.
00115  */
00116 extern WMesaContext WMesaGetCurrentContext( void );
00117 
00118 
00119 /*
00120  * Swap the front and back buffers for the current context.  No action
00121  * taken if the context is not double buffered.
00122  */
00123 extern void WMesaSwapBuffers(HDC hdc);
00124 
00125 
00126 /*
00127  * In indexed color mode we need to know when the palette changes.
00128  */
00129 extern void WMesaPaletteChange(HPALETTE Pal);
00130 
00131 extern void WMesaMove(void);
00132 
00133 void WMesaShareLists(WMesaContext ctx_to_share, WMesaContext ctx);
00134 
00135 #ifdef __cplusplus
00136 }
00137 #endif
00138 
00139 
00140 #endif
00141 

Generated on Sun May 27 2012 04:19:56 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.