Crafter.Graphics/examples/HelloAnimation
2025-11-25 23:29:48 +01:00
..
main.cpp better timing 2025-11-25 23:29:48 +01:00
project.json better timing 2025-11-25 21:25:04 +01:00
README.md fixes 2025-11-24 06:08:35 +01:00

HelloWindow Example

Description

This example demonstrates how to draw pixels to a window.

Expected Result

A window with a green and blue colored square, when clicking on the square it logs the coordinates relative to the square.

Highlighted Code Snippet

UiElement& element = window.elements.emplace_back(
    0.5,
    0.5, 
    2,
    1,
    0.5f,
    0.5f,
    0.5,
    0.5,
    0,
    false 
);

How to Run

crafter-build build executable -r