sokol test

This commit is contained in:
nesbox
2018-09-20 12:39:34 +03:00
parent 405d255e19
commit 20939a1bab
3 changed files with 85 additions and 0 deletions

38
sokol/main.c Normal file
View File

@@ -0,0 +1,38 @@
#include "sokol_app.h"
#include "sokol_gfx.h"
#include "sokol_time.h"
#include "sokol_audio.h"
static void app_init(void)
{
}
static void app_frame(void)
{
}
static void app_input(const sapp_event* event)
{
}
static void app_cleanup(void)
{
}
sapp_desc sokol_main(int argc, char* argv[]) {
// args_init(argc, argv);
return (sapp_desc) {
.init_cb = app_init,
.frame_cb = app_frame,
.event_cb = app_input,
.cleanup_cb = app_cleanup,
.width = 3 * 256,
.height = 3 * 144,
.window_title = "TIC-80",
.ios_keyboard_resizes_canvas = true
};
}

7
sokol/sokol.m Normal file
View File

@@ -0,0 +1,7 @@
#define SOKOL_IMPL
#define SOKOL_METAL
#include "sokol_app.h"
#include "sokol_gfx.h"
#include "sokol_time.h"
#include "sokol_audio.h"