5#include <entt/entity/fwd.hpp>
13 bool m_initialized =
false;
47 entt::entity
id,
bool &flag);
55 std::string &filename);
59 const char *prefix =
"cdw_screenshot",
const char *extension =
".png",
Definition CommandBuffer.h:17
GuiSystem(const Renderer &renderer, GuiBehavior behav)
std::vector< GuiBehavior > _callbacks
Definition GuiSystem.h:28
bool initialized() const
Definition GuiSystem.h:26
std::function< void(const Renderer &)> GuiBehavior
Definition GuiSystem.h:16
void render(CommandBuffer &cmdBuf)
void addCallback(GuiBehavior cb)
Definition GuiSystem.h:20
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:49
@ VIDEOS
Definition GuiSystem.h:49
@ IMAGES
Definition GuiSystem.h:49
void guiAddLightControls(DirectionalLight &light)
Adds a set of ImGui elements to control a DirectionalLight.
Definition LightUniforms.h:7
The Renderer class provides a rendering context for a graphical application.
Definition Renderer.h:20