mirror of
https://github.com/italicsjenga/portability.git
synced 2024-11-22 15:01:31 +11:00
25 lines
335 B
C++
25 lines
335 B
C++
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#if defined(_WIN32)
|
||
|
#include <windows.h>
|
||
|
#endif
|
||
|
|
||
|
struct Window {
|
||
|
#if defined(_WIN32)
|
||
|
HINSTANCE instance;
|
||
|
HWND window;
|
||
|
#endif
|
||
|
};
|
||
|
|
||
|
struct Config {
|
||
|
uint32_t x;
|
||
|
uint32_t y;
|
||
|
uint32_t width;
|
||
|
uint32_t height;
|
||
|
};
|
||
|
|
||
|
auto new_window(Config config) -> Window;
|
||
|
auto poll_events() -> bool;
|