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

DIBDisplay.h

Go to the documentation of this file.
00001 /****************************************************************************************/
00002 /*  DIBDisplay.H                                                                        */
00003 /*                                                                                      */
00004 /*  Author:  Mike Sandige                                                               */
00005 /*  Description:  display surface manager for windows with a DIB as the frame buffer    */
00006 /*                Code fragments contributed by John Miles                              */
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 
00025 #ifndef DIBDisplay_H
00026 #define DIBDisplay_H
00027 
00028 #include "basetype.h"
00029 #include "DisplayModeInfo.h"
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 typedef struct DIBDisplay DIBDisplay;
00036 
00037 geBoolean DIBDisplay_GetDisplayInfo(    char                    *DescriptionString, 
00038                                                                                 unsigned int     DescriptionStringMaxLength,
00039                                                                                 DisplayModeInfo *Info);
00040 
00041 void DIBDisplay_GetDisplayFormat(               const DIBDisplay *D,
00042                                                                                 int32   *Width, 
00043                                                                                 int32   *Height,
00044                                                                                 int32   *BitsPerPixel,
00045                                                                                 uint32  *Flags);
00046 
00047 geBoolean DIBDisplay_GetPixelFormat  (  const DIBDisplay *D,
00048                                                                                 //int32       *pixel_pitch,
00049                                                                                 int32       *bytes_per_pixel,
00050                                                                                 int32       *R_shift,
00051                                                                                 uint32      *R_mask,
00052                                                                                 int32       *R_width,
00053                                                                                 int32       *G_shift,
00054                                                                                 uint32      *G_mask,
00055                                                                                 int32       *G_width,
00056                                                                                 int32       *B_shift,
00057                                                                                 uint32      *B_mask,
00058                                                                                 int32       *B_width);
00059 
00060 
00061 geBoolean DIBDisplay_Blit               (       DIBDisplay *D);
00062 
00063 geBoolean DIBDisplay_Wipe               (       DIBDisplay *D,  
00064                                                                         uint32        color);
00065 
00066 geBoolean DIBDisplay_Lock               (       DIBDisplay *D,
00067                                                                         uint8       **ptr,
00068                                                                         int32       *pitch);
00069 
00070 geBoolean DIBDisplay_Unlock             (       DIBDisplay *D);
00071 
00072 void DIBDisplay_Destroy                 (       DIBDisplay **pDIBDisplay);
00073 
00074                          
00075                                                  
00076 #ifdef _INC_WINDOWS                                                                          
00077 DIBDisplay *DIBDisplay_Create   (       HWND hWindow,
00078                                                                         int  Width,
00079                                                                         int  Height,
00080                                                                         int  display_bpp,
00081                                                                         uint32 Flags);
00082 #endif
00083 
00084 
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088 
00089 #endif

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