window_size_title_api #61

Merged
MartinFouilleul merged 8 commits from window_size_title_api into main 2023-08-25 13:29:28 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 9ed636e018 - Show all commits

View File

@ -20,7 +20,7 @@ f32 minf(f32 a, f32 b);
ORCA_EXPORT void oc_on_init(void)
{
oc_runtime_window_set_title(OC_STR8("clock"));
oc_runtime_window_set_size(400, 400);
oc_runtime_window_set_size((oc_vec2){ .x = 400, .y = 400 });
surface = oc_surface_canvas();
canvas = oc_canvas_create();

View File

@ -38,7 +38,6 @@ void compile_shader(GLuint shader, const char* source)
ORCA_EXPORT void oc_on_init(void)
{
oc_runtime_window_set_title(OC_STR8("triangle"));
oc_runtime_window_set_size(640, 480);
surface = oc_surface_gles();
oc_surface_select(surface);