working heightmap shader?

This commit is contained in:
Jorijn van der Graaf 2025-05-25 23:04:56 +02:00
commit fe15d3e8ca
15 changed files with 331 additions and 76 deletions

View file

@ -22,12 +22,12 @@ module;
#include <cstdint>
#include <string>
#include <vector>
export module Crafter.Graphics:Window;
import Crafter.Event;
import :UiElement;
import :Types;
import Crafter.Component;
export namespace Crafter {
class Window {
@ -52,7 +52,7 @@ export namespace Crafter {
Event<void> onKeyDown[255];
Event<void> onKeyHold[255];
Event<void> onKeyUp[255];
ComponentRefVectorOwning<UiElement> elements;
std::vector<UiElement> elements;
std::string name;
std::uint32_t width;
std::uint32_t height;