summaryrefslogtreecommitdiff
path: root/examples/cube/ex_cube.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-29 14:10:55 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-05-29 14:10:55 +1000
commit824579234685171f0ca78674c7c18dfe6b43fe6e (patch)
treeaf7d9de2d81fb0b16db26ee09ea9456aae248ec9 /examples/cube/ex_cube.c
parent8d116bd23d9441e33cb3377e90c08169109b438a (diff)
start adding opengl backend
Diffstat (limited to 'examples/cube/ex_cube.c')
-rw-r--r--examples/cube/ex_cube.c4
1 files changed, 2 insertions, 2 deletions
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;