o
odinpkg.dev
packages / library / Odin-Vulkan-GLFW-Rainbow-Triangle

Odin-Vulkan-GLFW-Rainbow-Triangle

1ec4b53library

A "minimal" example of a Vulkan rainbow triangle in Odin with GLFW.

No license · updated 2 years ago

Vulkan Rainbow Triangle in Odin with GLFW

This is a "minimal" example of a Vulkan app in Odin which renders a rainbow triangle.

Screenshot

Build

The code in rainbow-triangle.odin can be compiled and ran from a terminal with the SINGLE command:

odin run rainbow-triangle.odin -file -o:speed

The code can be compiled and ran in debug mode with

odin run rainbow-triangle.odin -file -debug

which in particular (by default) prints out information throughout the setup process.

Summary of writing this program

Screenshot