blob: 49cc5c5ee8b9f4a265f183d4ae7f64c2f2537b10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
using namespace std;
class ScreenBuffer{
int W,H;
char *prevscreen,*screen;
int curx=0,cury=0;
void printstr(const char *buf);
public:
ScreenBuffer(int W,int H);
~ScreenBuffer();
void moveto(int x,int y);
int printf(const char *format,...) __attribute__((format (printf, 2, 3)));
int mvprintf(int x,int y,const char *format,...) __attribute__((format (printf, 4, 5)));
void draw();
void emergencyDeinit();
};
|