6#include <entt/entity/fwd.hpp>
7#include <SDL3/SDL_stdinc.h>
15 bool m_initialized =
false;
25 : m_renderer{other.m_renderer}
26 , m_initialized(other.m_initialized)
27 , m_callback(std::move(other.m_callback)) {
28 other.m_renderer =
nullptr;
29 other.m_initialized =
false;
44 const char *prefix, std::string &out,
const char *extension =
".png",
64 entt::entity
id,
bool &flag);
70 std::string &filename);
Definition CommandBuffer.h:16
bool initialized() const
Definition GuiSystem.h:36
GuiSystem(GuiSystem &&other) noexcept
Definition GuiSystem.h:24
GuiSystem(const RenderContext &renderer, GuiBehavior behav)
void render(CommandBuffer &cmdBuf)
std::function< void(const RenderContext &)> GuiBehavior
Definition GuiSystem.h:21
GUI utilities.
Definition DebugScene.h:148
void addDisableCheckbox(const char *label, entt::registry ®, entt::entity id, bool &flag)
Adds an ImGui::Checkbox which toggles the Disable component on the entity.
void addLightControls(DirectionalLight &light)
Adds a set of ImGui elements to control a DirectionalLight.
void showCandlewickAboutWindow(bool *p_open=NULL, float wrap_width=400.f)
Show an about window providing information about Candlewick.
void addFileDialog(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 generateMediaFilenameFromTimestamp(const char *prefix, std::string &out, const char *extension=".png", DialogFileType file_type=DialogFileType::IMAGES)
Set input/output string to a generated filename computed from a timestamp.
DialogFileType
Definition GuiSystem.h:39
@ VIDEOS
Definition GuiSystem.h:39
@ IMAGES
Definition GuiSystem.h:39
Definition LightUniforms.h:7
The RenderContext class provides a rendering context for a graphical application.
Definition RenderContext.h:36