Initial commit
This commit is contained in:
17
tests/01_platform.c
Normal file
17
tests/01_platform.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user