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

ModeList.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  ModeList.h                                                                          */
00003 /*                                                                                      */
00004 /*  Author: Mike Sandige                                                                */
00005 /*  Description:    Builds handy list of available modes                                */
00006 /*                                                                                      */
00007 /*  Copyright (c) 1997, 1999, Eclipse Entertainment; All rights reserved.               */
00008 /*                                                                                      */
00009 /*  See the accompanying file LICENSE.TXT for terms on the use of this library.         */
00010 /*  This library is distributed in the hope that it will be useful but WITHOUT          */
00011 /*  ANY WARRANTY OF ANY KIND and without any implied warranty of MERCHANTABILITY        */
00012 /*  or FITNESS FOR ANY PURPOSE.  Refer to LICENSE.TXT for more details.                 */
00013 /*                                                                                      */
00014 /****************************************************************************************/
00015 #ifndef MODELIST_H
00016 #define MODELIST_H
00017 
00018 #include        "genesis.h"
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 typedef enum ModeList_DriverType 
00025 {
00026         MODELIST_TYPE_GLIDE,
00027         MODELIST_TYPE_D3D_PRIMARY,
00028         MODELIST_TYPE_D3D_SECONDARY,
00029         MODELIST_TYPE_UNKNOWN,
00030         MODELIST_TYPE_D3D_3DFX,
00031         MODELIST_TYPE_SOFTWARE,
00032 } ModeList_DriverType;
00033 
00034 typedef enum ModeList_Evaluation
00035 {
00036         MODELIST_EVALUATED_OK,
00037         MODELIST_EVALUATED_UNDESIRABLE,
00038         MODELIST_EVALUATED_TRIED_FAILED,
00039 } ModeList_Evaluation;
00040 
00041 typedef struct  ModeList
00042 {
00043         geDriver *                              Driver;
00044         geDriver_Mode *                 Mode;
00045         const char *                    DriverNamePtr;
00046         const char *                    ModeNamePtr;
00047         ModeList_DriverType     DriverType;
00048         int                                             Width;
00049         int                                             Height;
00050         ModeList_Evaluation     Evaluation;
00051         geBoolean                               InAWindow;
00052 }       ModeList;
00053 
00054 
00055 void      ModeList_Destroy(ModeList *List);
00056 ModeList *ModeList_Create(geEngine *Engine,int *ListLength);
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00062 #endif
00063 

Generated on Tue Sep 30 12:36:01 2003 for GTestAndEngine by doxygen 1.3.2