Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::Gui Class Reference
Inheritance diagram for brenta::Gui:
brenta::Subsystem

Data Structures

class  Builder
 

Public Member Functions

std::expected< void, Subsystem::Error > initialize () override
 
std::expected< void, Subsystem::Error > terminate () override
 
std::string name () override
 
bool is_initialized () override
 

Static Public Member Functions

static Guiinstance ()
 
static void new_frame (tenno::shared_ptr< FrameBuffer > fb, std::string name="Game")
 
static void render ()
 
static void load_font (const std::filesystem::path &path="examples/assets/fonts/Inconsolata-Regular.ttf", float size=25.0f)
 
static void push_font (ImFont *f=font)
 
static void pop_font ()
 
static void debug_stats ()
 

Static Public Attributes

static const std::string subsystem_name = "gui"
 

Additional Inherited Members

- Public Types inherited from brenta::Subsystem
using Error = std::string
 

Detailed Description

Definition at line 35 of file gui.hpp.

Member Function Documentation

◆ debug_stats()

void Gui::debug_stats ( )
static

Definition at line 296 of file gui.cpp.

◆ initialize()

std::expected< void, Subsystem::Error > Gui::initialize ( )
overridevirtual

Implements brenta::Subsystem.

Definition at line 182 of file gui.cpp.

◆ instance()

Gui & Gui::instance ( )
static

Definition at line 236 of file gui.cpp.

◆ is_initialized()

bool Gui::is_initialized ( )
overridevirtual

Implements brenta::Subsystem.

Definition at line 227 of file gui.cpp.

◆ load_font()

void Gui::load_font ( const std::filesystem::path &  path = "examples/assets/fonts/Inconsolata-Regular.ttf",
float  size = 25.0f 
)
static

Definition at line 242 of file gui.cpp.

◆ name()

std::string Gui::name ( )
overridevirtual

Implements brenta::Subsystem.

Definition at line 222 of file gui.cpp.

◆ new_frame()

void Gui::new_frame ( tenno::shared_ptr< FrameBuffer fb,
std::string  name = "Game" 
)
static

Definition at line 258 of file gui.cpp.

◆ pop_font()

void Gui::pop_font ( )
static

Definition at line 253 of file gui.cpp.

◆ push_font()

void Gui::push_font ( ImFont *  f = font)
static

Definition at line 248 of file gui.cpp.

◆ render()

void Gui::render ( )
static

Definition at line 287 of file gui.cpp.

◆ terminate()

std::expected< void, Subsystem::Error > Gui::terminate ( )
overridevirtual

Implements brenta::Subsystem.

Definition at line 207 of file gui.cpp.

Field Documentation

◆ subsystem_name

const std::string Gui::subsystem_name = "gui"
static

Definition at line 42 of file gui.hpp.


The documentation for this class was generated from the following files: