forked from braindx/vbjin-ovr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdd.h
29 lines (21 loc) · 693 Bytes
/
dd.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
26
27
28
29
#if USE_DDRAW
#include <windows.h>
#include <ddraw.h>
#include "types.h"
#define _15BIT(r,g,b) (((r&248)<<7) + ((g&248)<<2) + (b>>3))
#define _16BIT(r,g,b) (((r&248)<<8) + ((g&252)<<3) + (b>>3))
typedef u16 ushort ;
void DirectDrawInit (void);
extern LPDIRECTDRAWSURFACE7 lpPrimary;
extern LPDIRECTDRAWSURFACE7 lpBack;
void LockSurface (LPDIRECTDRAWSURFACE7 surface);
void UnlockSurface (LPDIRECTDRAWSURFACE7 surface);
void Pixel (int x, int y, ushort color);
extern DDSURFACEDESC2 ddsd;
extern ushort *lpscreen;
extern LPDIRECTDRAWCLIPPER lpDDClipPrimary;
extern LPDIRECTDRAW7 lpdd7;
void ClearDirectDrawOutput();
int CreateDDrawBuffers();
void render();
#endif // #if USE_DDRAW