26 lines
604 B
C++
26 lines
604 B
C++
#include "application.h"
|
|
#include "dice_gui.h"
|
|
#include <ceramic/style.h>
|
|
#include <ceramic/elements.h>
|
|
#include <SDL3/SDL.h>
|
|
#include <clay/clay.h>
|
|
|
|
constexpr Clay_LayoutConfig centerContainer {
|
|
.sizing = {CLAY_SIZING_GROW(), CLAY_SIZING_GROW()},
|
|
.childAlignment = {CLAY_ALIGN_X_CENTER, CLAY_ALIGN_Y_CENTER},
|
|
};
|
|
|
|
namespace application {
|
|
Clay_RenderCommandArray RenderApplication() {
|
|
Clay_BeginLayout();
|
|
CLAY(CLAY_ID("Window"), cera::Window()) {
|
|
CLAY(CLAY_ID("Content"), {.layout = centerContainer}) {
|
|
DiceContainer();
|
|
}
|
|
}
|
|
return Clay_EndLayout();
|
|
}
|
|
|
|
void HandleEvent(SDL_Event event) {
|
|
}
|
|
}
|