00001 #ifndef GE_BRANDO_PALETTIZE_H 00002 #define GE_BRANDO_PALETTIZE_H 00003 00004 /****************************************************************************************/ 00005 /* Palettize */ 00006 /* */ 00007 /* Author: Charles Bloom */ 00008 /* Description: Palettize-ing code */ 00009 /* */ 00010 /* The contents of this file are subject to the Genesis3D Public License */ 00011 /* Version 1.01 (the "License"); you may not use this file except in */ 00012 /* compliance with the License. You may obtain a copy of the License at */ 00013 /* http://www.genesis3d.com */ 00014 /* */ 00015 /* Software distributed under the License is distributed on an "AS IS" */ 00016 /* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */ 00017 /* the License for the specific language governing rights and limitations */ 00018 /* under the License. */ 00019 /* */ 00020 /* The Original Code is Genesis3D, released March 25, 1999. */ 00021 /* Genesis3D Version 1.1 released November 15, 1999 */ 00022 /* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */ 00023 /* */ 00024 /****************************************************************************************/ 00025 00026 #include "basetype.h" 00027 #include "bitmap.h" 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 geBoolean palettizePlane(const geBitmap_Info * SrcInfo,const void * SrcBits, 00034 geBitmap_Info * DstInfo, void * DstBits, 00035 int SizeX,int SizeY); 00036 00037 // you can create a palette with routines in "palcreate.h" 00038 00039 /******* if you want to do your own palettizing : ******/ 00040 00041 typedef struct palInfo palInfo; 00042 00043 extern palInfo * closestPalInit(uint8 * palette); 00044 extern void closestPalFree(palInfo *info); 00045 extern int closestPal(int R,int G,int B,palInfo *pi); 00046 00047 extern void Palettize_Start(void); 00048 extern void Palettize_Stop(void); 00049 00050 #ifdef __cplusplus 00051 } 00052 #endif 00053 00054 #endif
1.3.2