-
Notifications
You must be signed in to change notification settings - Fork 0
/
typer.h
30 lines (26 loc) · 1.18 KB
/
typer.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
#ifndef TYPER_H
#define TYPER_H
#include "glship.h"
class GLShip;
class Typer {
public:
static void draw_lefted(float x, float y, int number, float size = 1, int time = 0);
static void draw(float x, float y, int number, float size = 1, int time = 0);
static void draw(float x, float y, const char *text, float size = 1, int time = 0);
static void draw_centered(float x, float y, int number, float size = 1, int time = 0);
static void draw_centered(float x, float y, const char *text, float size = 1, int time = 0);
static void draw_lives(float x, float y, const GLShip *ship, float size = 1, int time = 0);
static void draw(float x, float y, char character, float size = 1, int time = 0);
static void resize(int width, int height);
static const int original_window_width, original_window_height;
static float scaled_window_width, scaled_window_height;
static int window_width, window_height;
static float aspect_ratio;
static float window_x_scale, window_y_scale, scale;
private:
static float colour[3];
static void pre_draw(float x, float y, float size = 1);
static void post_draw();
static void draw_life(float x, float y, const GLShip *ship, float size = 1);
};
#endif