|
|
d7d433 |
#ifndef HELI_WINDOW_H
|
|
|
d7d433 |
#define HELI_WINDOW_H
|
|
|
3f9996 |
|
|
|
3f9996 |
|
|
|
3f9996 |
#include "common.h"
|
|
|
3f9996 |
#include "sprite.h"
|
|
|
3f9996 |
|
|
|
3f9996 |
typedef void (*Callback)();
|
|
|
3f9996 |
|
|
|
1015c5 |
typedef enum _KeyEvent {
|
|
|
1015c5 |
KEYEVENT_KEY_DOWN,
|
|
|
1015c5 |
KEYEVENT_KEY_WENTDOWN,
|
|
|
1015c5 |
KEYEVENT_KEY_WENTUP,
|
|
|
1015c5 |
KEYEVENT_MOUSE_DOWN,
|
|
|
1015c5 |
KEYEVENT_MOUSE_WENTDOWN,
|
|
|
1015c5 |
KEYEVENT_MOUSE_WENTUP,
|
|
|
1015c5 |
} KeyEvent;
|
|
|
1015c5 |
|
|
|
3f9996 |
|
|
|
3f9996 |
void drawSprites();
|
|
|
3f9996 |
|
|
|
8535a3 |
int keyDown(const char *code);
|
|
|
8535a3 |
int keyWentDown(const char *code);
|
|
|
8535a3 |
int keyWentUp(const char *code);
|
|
|
3f9996 |
|
|
|
1015c5 |
int keyEventGetCount(KeyEvent mode);
|
|
|
1015c5 |
const char *keyEventGet(KeyEvent mode, int i);
|
|
|
1015c5 |
|
|
|
3f9996 |
int mouseDidMove();
|
|
|
8535a3 |
int mouseDown(const char *code);
|
|
|
8535a3 |
int mouseWentDown(const char *code);
|
|
|
8535a3 |
int mouseWentUp(const char *code);
|
|
|
aaf750 |
int mouseScrolledX();
|
|
|
aaf750 |
int mouseScrolledY();
|
|
|
3f9996 |
double mouseX();
|
|
|
3f9996 |
double mouseY();
|
|
|
3f9996 |
|
|
|
d7d433 |
double mouseTransformedX();
|
|
|
d7d433 |
double mouseTransformedY();
|
|
|
8bc1f1 |
|
|
|
546e3a |
void messageBox(const char *message);
|
|
|
f8dca4 |
int questionBox(const char *question, const char *answer0, const char *answer1);
|
|
|
f8dca4 |
int questionBox3(const char *question, const char *answer0, const char *answer1, const char *answer2);
|
|
|
dba3fc |
int askText(const char *question, char *answer, int maxAnswerSize);
|
|
|
dba3fc |
int askTextEx(const char *question, char *answer, int maxAnswerSize, int multiline, int password);
|
|
|
3f9996 |
|
|
|
d7d433 |
int windowGetWidth();
|
|
|
d7d433 |
void windowSetWidth(int width);
|
|
|
3f9996 |
|
|
|
d7d433 |
int windowGetHeight();
|
|
|
d7d433 |
void windowSetHeight(int height);
|
|
|
3f9996 |
|
|
|
d7d433 |
void windowSetSize(int width, int height);
|
|
|
ca6bde |
|
|
|
d7d433 |
int windowGetResizable();
|
|
|
d7d433 |
void windowSetResizable(int resizable);
|
|
|
8eb855 |
|
|
|
d7d433 |
const char* windowGetTitle();
|
|
|
d7d433 |
void windowSetTitle(const char *title);
|
|
|
8eb855 |
|
|
|
d7d433 |
double windowGetMinFrameRate();
|
|
|
d7d433 |
double windowGetMaxFrameRate();
|
|
|
d7d433 |
void windowSetFrameRateEx(double minFrameRate, double maxFrameRate);
|
|
|
d7d433 |
void windowSetFrameRate(double frameRate);
|
|
|
d7d433 |
void windowSetVariableFrameRate();
|
|
|
d7d433 |
double windowGetFrameTime();
|
|
|
981405 |
|
|
|
d7d433 |
int windowGetFrameCount();
|
|
|
d7d433 |
double windowGetSeconds();
|
|
|
df4105 |
double windowGetMonotonicSeconds();
|
|
|
df4105 |
unsigned long long windowGetMonotonicMilliseconds();
|
|
|
3f9996 |
|
|
|
d7d433 |
void windowSetInit(Callback init);
|
|
|
d7d433 |
void windowSetDraw(Callback draw);
|
|
|
d7d433 |
void windowSetDeinit(Callback deinit);
|
|
|
d7d433 |
void windowRun();
|
|
|
d7d433 |
void windowStop();
|
|
|
3f9996 |
|
|
|
3f9996 |
|
|
|
3f9996 |
#endif
|