1.6 KiB
1.6 KiB
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 -c example -r
Hello Series
This series explains the absolute basics.
-
HelloWindow
Basic window creation using Crafter.Graphics. -
HelloInput
Handling keyboard and mouse input events. -
HelloDrawing
Introduction to drawing on a window. -
HelloUI
Creating and rendering user interface components.
Vulkan Series
This series explains the vulkan integration.
-
VulkanWindow
HelloWindow vulkan edition. -
VulkanTraingle
Introduction to drawing on a window. -
VulkanCube
Creating a custom shader. -
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