candlewick 0.6.0
A tiny cross-platform renderer based on SDL3
Loading...
Searching...
No Matches
GuiSystem.h File Reference
#include "Core.h"
#include <functional>
#include <span>
#include <entt/entity/fwd.hpp>
#include <SDL3/SDL_stdinc.h>

Go to the source code of this file.

Classes

class  candlewick::GuiSystem
 

Namespaces

namespace  candlewick
 

Functions

std::string candlewick::generateMediaFilenameFromTimestamp (const char *prefix="cdw_screenshot", const char *extension=".png", DialogFileType file_type=DialogFileType::IMAGES)
 
enum class  candlewick::DialogFileType { candlewick::IMAGES , candlewick::VIDEOS }
 
void candlewick::showCandlewickAboutWindow (bool *p_open=NULL, float wrap_width=400.f)
 Show an about window providing information about Candlewick.
 
void candlewick::guiAddLightControls (DirectionalLight &light)
 Adds a set of ImGui elements to control a DirectionalLight.
 
void candlewick::guiAddLightControls (std::span< DirectionalLight > lights)
 Add controls for multiple lights.
 
void candlewick::guiAddLightControls (std::span< DirectionalLight > lights, Uint32 numLights, Uint32 start=0)
 
void candlewick::guiAddDisableCheckbox (const char *label, entt::registry &reg, entt::entity id, bool &flag)
 Adds an ImGui::Checkbox which toggles the Disable component on the entity.
 
void candlewick::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.