update samples for oc_window_set_content_size oc_vec2 change
This commit is contained in:
		
							parent
							
								
									bfd4c2a450
								
							
						
					
					
						commit
						9ed636e018
					
				|  | @ -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(); | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue