00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
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