Crafter.Graphics/examples
2025-11-26 18:48:58 +01:00
..
HelloAnimation selective clearing 2025-11-26 18:48:58 +01:00
HelloDrawing integer math 2025-11-23 04:04:53 +01:00
HelloInput wayland rewrite complete 2025-11-24 01:47:49 +01:00
HelloUI fixes 2025-11-26 02:56:38 +01:00
HelloWindow integer math 2025-11-23 04:04:53 +01:00
VulkanCube new structure complete 2025-11-16 18:52:52 +01:00
VulkanShader new structure complete 2025-11-16 18:52:52 +01:00
VulkanTriangle new structure complete 2025-11-16 18:52:52 +01:00
VulkanWindow new structure complete 2025-11-16 18:52:52 +01:00
README.md new structure complete 2025-11-16 18:52:52 +01:00

Crafter.Graphics Examples

Welcome to the Crafter.Graphics examples folder!
Here you'll find a variety of demos to help you learn and experiment with the features of the Crafter.Graphics library.

Getting Started

To run any example, navigate into its folder and use the following command:

crafter-build build executable -r

Hello Series

This series explains the absolute basics.

  1. HelloWindow
    Basic window creation using Crafter.Graphics.

  2. HelloInput
    Handling keyboard and mouse input events.

  3. HelloDrawing
    Introduction to drawing on a window.

  4. HelloUI
    Creating and rendering user interface components.

Vulkan Series

This series explains the vulkan integration.

  1. VulkanWindow
    HelloWindow vulkan edition.

  2. VulkanTraingle
    Introduction to drawing on a window.

  3. VulkanCube
    Creating a custom shader.

  4. VulkanShader
    Creating a custom shader.

Notes

  • Each example is self-contained and meant to be run individually.
  • Make sure your environment is correctly set up with all dependencies required by Crafter.Graphics.
  • A comaptible WSL envoirement can be set up by running these commands:
wsl --update --pre-release
wsl --install archlinux --name crafter --no-launch
wsl -d crafter pacman -Syu vulkan-devel mesa vulkan-dzn clang git base-devel code libpqxx onetbb boost lld glslang code --noconfirm
wsl -d crafter bash -c "echo  export GALLIUM_DRIVER=d3d12 > /etc/profile.d/wslg.sh"
wsl -d crafter ln -s /usr/lib/libedit.so /usr/lib/libedit.so.2
wsl --terminate crafter