From 824579234685171f0ca78674c7c18dfe6b43fe6e Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Wed, 29 May 2024 14:10:55 +1000 Subject: start adding opengl backend --- examples/cube/ex_cube.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/cube/ex_cube.c') diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c index 68ce0d5..b87071f 100644 --- a/examples/cube/ex_cube.c +++ b/examples/cube/ex_cube.c @@ -125,8 +125,8 @@ int main() { .scale = 1.0 }; mat4 model = transform_to_mat(&transform); mat4 view, proj; - camera_view_projection(&cam, g_core.renderer.swapchain.extent.width, - g_core.renderer.swapchain.extent.height, &view, &proj); + camera_view_projection(&cam, g_core.renderer.swapchain.dimensions.x, + g_core.renderer.swapchain.dimensions.y, &view, &proj); mvp_uniforms mvp_data = { .model = model, .view = view, .projection = proj }; my_shader_bind_group shader_bind_data = { .mvp = mvp_data, .tex = texture }; mvp_uniforms_data.data = &shader_bind_data; -- cgit v1.2.3-70-g09d2