- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGraphics.h
More file actions
Latest commit
30 lines (23 loc) · 584 Bytes
/
Copy pathGraphics.h
File metadata and controls
30 lines (23 loc) · 584 Bytes
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
#pragma once
classScreenBuffer;
#include<math.h>
#include"Point.h"
#include"Vector2.h"
#include"Font.h"
classString;
classGraphics
{
public:
Graphics(ScreenBuffer* buffer, Font* font);
~Graphics(void);
static Graphics* GetInstance();
voidDrawRectangle(Vector2 pos, int width, int height, bool fill);
voidDrawLine(Vector2 v1, Vector2 v2);
voidDrawString(const String& str, Point pos, int spacing);
voidDrawChar(char c, Point pos);
voidDrawFontChar(FontChar* c, Point pos);
private:
static Graphics* _instance;
ScreenBuffer* _screenBuffer;
Font* _font;
};