forked from alimb2/Ayyware-Full-Fixed-Updated-2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RenderManager.h
50 lines (38 loc) · 1.26 KB
/
RenderManager.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
47
48
49
/*
Syn's AyyWare Framework 2015
*/
#pragma once
#include "Interfaces.h"
#include "Vector2D.h"
void Quad();
namespace Render
{
void Initialise();
// Normal Drawing functions
void Clear(int x, int y, int w, int h, Color color);
void Outline(int x, int y, int w, int h, Color color);
void Line(int x, int y, int x2, int y2, Color color);
void PolyLine(int *x, int *y, int count, Color color);
void Polygon(int count, Vertex_t* Vertexs, Color color);
void PolygonOutline(int count, Vertex_t* Vertexs, Color color, Color colorLine);
void PolyLine(int count, Vertex_t* Vertexs, Color colorLine);
// Gradient Functions
void GradientV(int x, int y, int w, int h, Color c1, Color c2);
void GradientH(int x, int y, int w, int h, Color c1, Color c2);
// Text functions
namespace Fonts
{
extern DWORD Default;
extern DWORD Menu;
extern DWORD MenuBold;
extern DWORD ESP;
extern DWORD MenuText;
};
void Text(int x, int y, Color color, DWORD font, const char* text);
void Textf(int x, int y, Color color, DWORD font, const char* fmt, ...);
void Text(int x, int y, Color color, DWORD font, const wchar_t* text);
RECT GetTextSize(DWORD font, const char* text);
// Other rendering functions
bool WorldToScreen(Vector &in, Vector &out);
RECT GetViewport();
};