MOVES/BGI/OCTREE.H
2021-09-08 21:30:32 +02:00

20 lines
346 B
C

struct colorsum {
unsigned long r, g, b;
};
typedef struct node * OCTREE;
struct node {
unsigned char leaf;
unsigned char level;
unsigned char colorindex;
unsigned char children;
unsigned long colorcount;
struct colorsum rgbsum;
OCTREE nextreduceable;
OCTREE next[8];
};
extern OCTREE tree;
UINT calc_palette(UINT i, double Cfactor);