-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSurface.h
27 lines (24 loc) · 1.09 KB
/
Surface.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
#pragma once
#include <cstdbool>
typedef unsigned long Font_t;
typedef enum {
FONT_DRAW_DEFAULT = 0,
FONT_DRAW_NONADDITIVE,
FONT_DRAW_ADDITIVE
} FontDrawType_t;
void Surface_Initialize();
void Surface_DrawSetColor(int r, int g, int b, int a);
void Surface_DrawFilledRect(int x0, int y0, int x1, int y1);
void Surface_DrawOutlinedRect(int x0, int y0, int x1, int y1);
void Surface_DrawLine(int x0, int y0, int x1, int y1);
void Surface_DrawSetTextFont(Font_t font);
void Surface_DrawSetTextColor(int r, int g, int b, int a);
void Surface_DrawSetTextPos(int x, int y);
void Surface_DrawPrintText(const wchar_t *text, int textLen, FontDrawType_t drawType);
void Surface_GetScreenSize(int *wide, int *tall);
Font_t Surface_CreateFont();
bool Surface_SetFontGlyphSet(Font_t font, const char *windowsFontName, int tall, int weight, int blur, int scanlines, int flags, int rangeMin, int rangeMax);
void Surface_GetTextSize(Font_t font, const wchar_t *text, int *wide, int *tall);
void Surface_PlaySound(const char *fileName);
void Surface_GetCursorPos(int *x, int *y);
void Surface_SetCursorPos(int x, int y);