1 #ifndef BITMAP_PRIVATE_H
\r
2 #define BITMAP_PRIVATE_H
\r
4 /****************************************************************************************/
\r
7 /* Author: Charles Bloom */
\r
8 /* Description: Engine-Internal Bitmap Functions */
\r
10 /* The contents of this file are subject to the Genesis3D Public License */
\r
11 /* Version 1.01 (the "License"); you may not use this file except in */
\r
12 /* compliance with the License. You may obtain a copy of the License at */
\r
13 /* http://www.genesis3d.com */
\r
15 /* Software distributed under the License is distributed on an "AS IS" */
\r
16 /* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */
\r
17 /* the License for the specific language governing rights and limitations */
\r
18 /* under the License. */
\r
20 /* The Original Code is Genesis3D, released March 25, 1999. */
\r
21 /* Genesis3D Version 1.1 released November 15, 1999 */
\r
22 /* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */
\r
24 /****************************************************************************************/
\r
28 #include "dcommon.h"
\r
37 * These functions are intended for internal Genesis use only.
\r
39 * This can become public once Driver is exposed/formalized. !@@!
\r
41 * Only engine.c , and maybe world & bitmaplist should include this !
\r
43 * You MUST DetachDriver from a bitmap, before you change the Driver
\r
48 #define BITMAP_GENESIS_INTERNAL GENESISCC
\r
50 geBoolean GENESISCC geBitmap_AttachToDriver(geBitmap *Bmp, DRV_Driver * Driver, uint32 DriverFlags);
\r
51 // use Driverflags == 0 to use the flags from _SetDriverFlags
\r
53 geBoolean GENESISCC geBitmap_DetachDriver(geBitmap *Bmp, geBoolean DoUpdate);
\r
54 // You MUST Detach the Driver while it is identical to the way it was when attached!
\r
56 geBitmap_Palette * GENESISCC geBitmap_Palette_CreateFromDriver(DRV_Driver * Driver,gePixelFormat Format,int Size); /*<>*/
\r
58 geRDriver_THandle * GENESISCC geBitmap_GetTHandle(const geBitmap *Bmp);
\r
60 geBoolean GENESISCC geBitmap_SetDriverFlags(geBitmap *Bmp,uint32 flags);
\r
62 geBoolean GENESISCC geBitmap_SetGammaCorrection_DontChange(geBitmap *Bmp,geFloat Gamma);
\r
69 #endif // BITMAP_PRIVATE_H
\r