You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
748 B
35 lines
748 B
14 years ago
|
#ifndef PLATFORM_H
|
||
|
#define PLATFORM_H
|
||
|
|
||
|
namespace Platform
|
||
|
{
|
||
|
void init();
|
||
|
void terminate();
|
||
|
|
||
|
void poll();
|
||
|
|
||
|
unsigned long getTicks();
|
||
|
void sleep(unsigned long miliseconds);
|
||
|
|
||
|
bool createWindow(int width, int height, int minWidth, int minHeight);
|
||
|
void destroyWindow();
|
||
|
void showWindow();
|
||
|
void setWindowTitle(const char *title);
|
||
|
bool isWindowFocused();
|
||
|
bool isWindowVisible();
|
||
|
|
||
|
void *getExtensionProcAddress(const char *ext);
|
||
|
bool isExtensionSupported(const char *ext);
|
||
|
|
||
|
const char *getTextFromClipboard();
|
||
|
void copyToClipboard(const char *text);
|
||
|
|
||
|
void hideMouseCursor();
|
||
|
void showMouseCursor();
|
||
|
|
||
|
void setVsync(bool enable = true);
|
||
|
void swapBuffers();
|
||
|
};
|
||
|
|
||
|
#endif // PLATFORM_H
|