update samples for oc_window_set_content_size oc_vec2 change

This commit is contained in:
Reuben Dunnington 2023-08-23 13:15:46 -07:00
parent bfd4c2a450
commit 9ed636e018
Signed by: rdunnington
GPG Key ID: 3D57C8938EA08E90
2 changed files with 1 additions and 2 deletions

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);