17 lines
382 B
C
17 lines
382 B
C
|
|
#include "../include/platform.h"
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
int main(void) {
|
||
|
|
if (!platform_init()) return 1;
|
||
|
|
|
||
|
|
PlatformWindow* window = platform_create_window("Hello", 800, 600);
|
||
|
|
if (!window) return 1;
|
||
|
|
|
||
|
|
while (platform_poll_events(window)) {
|
||
|
|
// Your rendering / game loop goes here
|
||
|
|
}
|
||
|
|
|
||
|
|
platform_destroy_window(window);
|
||
|
|
platform_shutdown();
|
||
|
|
return 0;
|
||
|
|
}
|