-
Notifications
You must be signed in to change notification settings - Fork 0
/
Colors.h
25 lines (20 loc) · 700 Bytes
/
Colors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*************************************************************
Filename : Colors.h
Author : DJ Cool Killer
Purpose : Declarations for the color
calculation functions.
See Colors.cpp for detailed information.
*************************************************************/
#include <ddraw.h>
struct ColorValues
{
unsigned short ColorDepth;
unsigned short ShiftRed;
unsigned short ShiftGreen;
unsigned short ShiftBlue;
unsigned short PosRed;
unsigned short PosGreen;
unsigned short PosBlue;
};
extern void DeterminePixelFormat(LPDIRECTDRAWSURFACE7);
extern int CalcColor(unsigned int r, unsigned int g, unsigned int b);