feat: started resource management & dice
This commit is contained in:
parent
3a5b55cc06
commit
451c71254c
6 changed files with 141 additions and 4 deletions
|
|
@ -1,14 +1,21 @@
|
|||
#include "application.h"
|
||||
#include "ceramic/style.h"
|
||||
#include "ceramic/elements.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("OuterContainer"), cera::Window()) {
|
||||
CLAY_AUTO_ID(cera::LeftPanelContainer()) {
|
||||
CLAY(CLAY_ID("Window"), cera::Window()) {
|
||||
CLAY(CLAY_ID("Content"), {.layout = centerContainer}) {
|
||||
DiceContainer();
|
||||
}
|
||||
}
|
||||
return Clay_EndLayout();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue