-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathengine.h
More file actions
47 lines (32 loc) · 1.11 KB
/
engine.h
File metadata and controls
47 lines (32 loc) · 1.11 KB
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
47
#ifndef ENGINE_H
#define ENGINE_H
#include "assets.h"
#include "camera.h"
#include "buffer.h"
#include "mhandler.h"
extern ULONGLONG ENGINE_TIME;
extern BOOL compute_point(Vec pos, Vec screen);
extern BOOL compute_line(Vec pos1, Vec pos2, Vec screen1, Vec screen2);
void InitializeAssets();
void TerminateAssets();
Point MakePoint();
void FreePoint(Point p);
BOOL DeletePoint(const char* pname);
UINT ShowPoint(const char* pname, BOOL show);
Line MakeLine();
void FreeLine(Line l);
BOOL DeleteLine(const char* lname);
UINT ShowLine(const char* lname, BOOL show);
Surface MakeSurface();
void FreeSurface(Surface s);
BOOL DeleteSurface(const char* sname);
UINT ShowSurface(const char* sname, BOOL show);
BOOL DeleteAsset(const char* name);
UINT ShowAsset(const char* name, BOOL show);
UINT DeleteGroup(const char* gname);
UINT ShowGroup(const char* gname, BOOL show);
void RenderPoints();
void RenderLines();
void RenderSurfaces();
void Render(HWND hwnd, HDC hdc);
#endif