Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

DisplayModeInfo.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  DisplayModeInfo.H                                                                   */
00003 /*                                                                                      */
00004 /*  Author:  Mike Sandige                                                               */
00005 /*  Description:  This is a simple container to hold information about available display*/
00006 /*                modes for the software driver.                                        */
00007 /*                                                                                      */
00008 /*  The contents of this file are subject to the Genesis3D Public License               */
00009 /*  Version 1.01 (the "License"); you may not use this file except in                   */
00010 /*  compliance with the License. You may obtain a copy of the License at                */
00011 /*  http://www.genesis3d.com                                                            */
00012 /*                                                                                      */
00013 /*  Software distributed under the License is distributed on an "AS IS"                 */
00014 /*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
00015 /*  the License for the specific language governing rights and limitations              */
00016 /*  under the License.                                                                  */
00017 /*                                                                                      */
00018 /*  The Original Code is Genesis3D, released March 25, 1999.                            */
00019 /*  Genesis3D Version 1.1 released November 15, 1999                                 */
00020 /*  Copyright (C) 1999 WildTangent, Inc. All Rights Reserved           */
00021 /*                                                                                      */
00022 /****************************************************************************************/
00023 
00024 #ifndef DisplayModeInfo_H
00025 #define DisplayModeInfo_H
00026 
00027 #include "basetype.h"
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 
00033 
00034 enum    DisplayModeInfo_Flags
00035 {
00036         SYSTEM                          =1,     //store buffer in system
00037         VIDEO                           =2,     //or video ram
00038         HARDWARE                        =4,     //refresh choices
00039         DMABLT                          =8,
00040         FASTBLT                         =16,
00041         SAFEBLT                         =32,
00042         FLIP                            =64,
00043         DMAPAGELOCKREQUIRED     =128,//pagelock for dma req
00044         DMAASYNCH                       =256,//can do asynch dma
00045         STRETCHMODE                     =512,//stretch to fit
00046         MODEXMODE                       =1024
00047 };
00048 
00049 typedef struct DisplayModeInfo DisplayModeInfo;
00050 
00051 DisplayModeInfo *       DisplayModeInfo_Create(                 void );
00052 
00053 void                            DisplayModeInfo_Destroy(                DisplayModeInfo **Info );
00054 
00055 int                                     DisplayModeInfo_GetModeCount(   DisplayModeInfo *Info);
00056 
00057 geBoolean                       DisplayModeInfo_AddEntry(               DisplayModeInfo *Info, 
00058                                                                                                         int Width,
00059                                                                                                         int Height,
00060                                                                                                         int BitsPerPixel,
00061                                                                                                         uint32 Flags );
00062 
00063 geBoolean                       DisplayModeInfo_GetNth(                 DisplayModeInfo *Info, 
00064                                                                                                         int Nth,
00065                                                                                                         int *Width, 
00066                                                                                                         int *Height,
00067                                                                                                         int *BitsPerPixel,
00068                                                                                                         uint32 *Flags);
00069 
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073 
00074 
00075 #endif
00076 

Generated on Tue Sep 30 12:35:38 2003 for GTestAndEngine by doxygen 1.3.2