6#include <entt/entity/fwd.hpp>
7#include <SDL3/SDL_stdinc.h>
15 bool m_initialized =
false;
55 entt::entity
id,
bool &flag);
63 std::string &filename);
67 const char *prefix =
"cdw_screenshot",
const char *extension =
".png",
Definition CommandBuffer.h:17
std::vector< GuiBehavior > _callbacks
Definition GuiSystem.h:30
bool initialized() const
Definition GuiSystem.h:28
GuiSystem(const RenderContext &renderer, GuiBehavior behav)
void render(CommandBuffer &cmdBuf)
void addCallback(GuiBehavior cb)
Definition GuiSystem.h:22
std::function< void(const RenderContext &)> GuiBehavior
Definition GuiSystem.h:18
void showCandlewickAboutWindow(bool *p_open=NULL, float wrap_width=400.f)
Show an about window providing information about Candlewick.
std::string generateMediaFilenameFromTimestamp(const char *prefix="cdw_screenshot", const char *extension=".png", DialogFileType file_type=DialogFileType::IMAGES)
void guiAddFileDialog(SDL_Window *window, DialogFileType dialog_file_type, std::string &filename)
Add a GUI button-text pair to select a file to save something to.
void guiAddDisableCheckbox(const char *label, entt::registry ®, entt::entity id, bool &flag)
Adds an ImGui::Checkbox which toggles the Disable component on the entity.
DialogFileType
Definition GuiSystem.h:57
@ VIDEOS
Definition GuiSystem.h:57
@ IMAGES
Definition GuiSystem.h:57
void guiAddLightControls(DirectionalLight &light)
Adds a set of ImGui elements to control a DirectionalLight.
Definition LightUniforms.h:7
The RenderContext class provides a rendering context for a graphical application.
Definition RenderContext.h:20