initial commit

This commit is contained in:
Jorijn van der Graaf 2025-04-16 00:43:33 +02:00
commit 41b72e6fdf
46 changed files with 9134 additions and 0 deletions

24
main.cpp Normal file
View file

@ -0,0 +1,24 @@
#include <iostream>
#include <exception>
import Crafter.Graphics;
using namespace Crafter;
int main() {
Window window("test", 128, 128);
UiElement test(
0.5, //anchorX
0.5, //anchorY
2, //bufferWidth
1, //bufferHeight
std::uint32_t(30), //absoluteSizeX
std::uint32_t(30), //absoluteSizeY
0.5, //anchorOffsetX
0.5, //anchorOffsetY
0, //z
false //ignoreScaling
);
window.scale = 1;
test.buffer = {{255, 0, 0 ,255}, {0, 255, 0 ,255}};
window.elements.AddComponent(&test);
window.Start();
}