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

DDRAWDisplay.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  DDRAWDisplay.H                                                                      */
00003 /*                                                                                      */
00004 /*  Author:  Mike Sandige                                                               */
00005 /*  Description:  display surface manager for full screen Direct Draw using a direct    */
00006 /*                draw surface for the the frame buffer                                 */
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 #ifndef DDRAWDISPLAY_H
00024 #define DDRAWDISPLAY_H
00025 
00026 
00027 #include "basetype.h"
00028 #include "DisplayModeInfo.h"
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 typedef struct DDRAWDisplay DDRAWDisplay;
00035 
00036 void     DDRAWDisplay_GetDisplayFormat(         const DDRAWDisplay *D,
00037                                                                                         int32   *Width, 
00038                                                                                         int32   *Height,
00039                                                                                         int32   *BitsPerPixel,
00040                                                                                         uint32  *Flags);
00041 
00042 geBoolean DDRAWDisplay_GetDisplayInfo(  char                    *DescriptionString, 
00043                                                                                 unsigned int     DescriptionStringMaxLength,
00044                                                                                 DisplayModeInfo *Info);
00045 
00046 geBoolean DDRAWDisplay_GetPixelFormat(  DDRAWDisplay *D,
00047                                                                                 //int32       *pixel_pitch,
00048                                                                                 int32       *bytes_per_pixel,
00049                                                                                 int32       *R_shift,
00050                                                                                 uint32      *R_mask,
00051                                                                                 int32       *R_width,
00052                                                                                 int32       *G_shift,
00053                                                                                 uint32      *G_mask,
00054                                                                                 int32       *G_width,
00055                                                                                 int32       *B_shift,
00056                                                                                 uint32      *B_mask,
00057                                                                                 int32       *B_width);
00058 
00059 geBoolean       DDRAWDisplay_Lock(              DDRAWDisplay *D,uint8 **Buffer, int32 *Pitch);
00060 geBoolean       DDRAWDisplay_Unlock(    DDRAWDisplay *D);
00061 geBoolean       DDRAWDisplay_Blit(              DDRAWDisplay *D);
00062 geBoolean       DDRAWDisplay_Wipe(              DDRAWDisplay *D,uint32 color);
00063 geBoolean       DDRAWDisplay_SetActive( DDRAWDisplay *D, geBoolean Active);
00064 void            DDRAWDisplay_Destroy(   DDRAWDisplay **D);
00065 
00066 #ifdef _INC_WINDOWS     
00067 DDRAWDisplay *DDRAWDisplay_Create( HWND hwnd, int Width, int Height, int BBP, uint32 Flags);
00068 #endif
00069 
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073 
00074 #endif
00075 

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