-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgraphics.h
executable file
·46 lines (37 loc) · 1.27 KB
/
graphics.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/******************************************************
g-Matrix3D Neo Engine
Copyright (c)2003 Kim Seong Wan (kaswan, Â𻧱ͽÅ)
E-mail: kaswan@hitel.net
http://www.g-matrix.pe.kr
*******************************************************/
#ifndef GRAPHICS_H
#define GRAPHICS_H
#include "stdafx.h"
#include "dibsection.h"
#include "vector.h"
#include "Transform.h"
extern HDC hScreenDC, hMemoryDC;
extern UINT BytesPerScanline;
extern BYTE *pBits;
extern BYTE *pDepthBuffer;
extern CDIBSection FrameBuffer;
extern CTransform TF;
void InitGraphics(HWND hWnd, int width, int height);
void DeinitGraphics(HWND hWnd);
bool IsActive(void);
void UpdateFrame(void);
void DisplayFPS(void);
void PutNumber(int x, int y, int number);
void PutNumber(int x, int y, UINT number);
void PutNumber(int x, int y, float number);
void PutNumberHex(int x, int y, int number);
void PutNumber(int x, int y, char* text, int number);
void PutNumber(int x, int y, char* text, UINT number);
void PutNumber(int x, int y, char* text, float number);
void PutNumberHex(int x, int y, char* text, int number);
void ResetFrameCounter(void);
void OnPicking(int mx, int my);
void OnMouseLButtonDown(int mx, int my);
void OnMouseMove(int mx, int my);
void OnOpen(HWND hWnd);
#endif