Crafter.Graphics/example/VulkanCube
2025-06-14 01:51:35 +02:00
..
main.cpp documentation 2025-06-13 23:59:36 +02:00
project.json documentation 2025-06-13 23:59:36 +02:00
README.md md 2025-06-14 01:51:35 +02:00

HelloWindow Example

Description

This example showcases how to use the camera to get a rotating 3D cube.

Expected Result

A blue tinted vulkan window with a white rotating 3D cube.

Highlighted Code Snippet

Camera camera(ToRadian(90), 1280.0f / 720.0f, 0.01, 512);
camera.view = MatrixRowMajor<float, 4, 4, 1>::Translation(0, 0, -5);
camera.Update();

How to Run

crafter-build -c example -r

Relevant documentation