8using namespace Brenta::Utils;
11using namespace Brenta::ECS;
14Engine::Engine(
bool uses_screen,
bool uses_audio,
bool uses_input,
15 bool uses_logger,
bool uses_text,
bool uses_ecs,
16 int screen_width,
int screen_height,
17 bool screen_is_mouse_captured,
bool screen_msaa,
18 bool screen_vsync,
const char *screen_title,
19 Types::LogLevel log_level, std::string log_file,
20 std::string text_font,
int text_size,
bool gl_blending,
21 bool gl_cull_face,
bool gl_multisample,
bool gl_depth_test)
25 Screen::Init(screen_width, screen_height, screen_is_mouse_captured,
26 screen_title, screen_msaa, screen_vsync);
88 this->uses_screen = uses_screen;
94 this->uses_audio = uses_audio;
100 this->uses_input = uses_input;
106 this->uses_logger = uses_logger;
112 this->uses_text = uses_text;
118 this->uses_ecs = uses_ecs;
124 this->screen_width = screen_width;
130 this->screen_height = screen_height;
135Engine::Builder::set_screen_is_mouse_captured(
bool screen_is_mouse_captured)
137 this->screen_is_mouse_captured = screen_is_mouse_captured;
141Engine::Builder &Engine::Builder::set_screen_title(
const char *screen_title)
143 this->screen_title = screen_title;
149 this->screen_msaa = screen_msaa;
155 this->screen_vsync = screen_vsync;
159Engine::Builder &Engine::Builder::set_log_level(Types::LogLevel log_level)
161 this->log_level = log_level;
167 this->log_file = log_file;
173 this->text_font = text_font;
179 this->text_size = text_size;
185 this->gl_blending = gl_blending;
191 this->gl_cull_face = gl_cull_face;
195Engine::Builder &Engine::Builder::set_gl_multisample(
bool gl_multisample)
197 this->gl_multisample = gl_multisample;
203 this->gl_depth_test = gl_depth_test;
207Engine Engine::Builder::build()
209 return Engine(uses_screen, uses_audio, uses_input, uses_logger, uses_text,
210 uses_ecs, screen_width, screen_height,
211 screen_is_mouse_captured, screen_msaa, screen_vsync,
212 screen_title, log_level, log_file, text_font, text_size,
213 gl_blending, gl_cull_face, gl_multisample, gl_depth_test);
static void Init()
Initialize the audio system.
static void Destroy()
Destroy the audio system.
static void LoadOpenGL(bool gl_blending=true, bool gl_cull_face=true, bool gl_multisample=true, bool gl_depth_test=true)
Load OpenGL.
static void Init(int SCR_WIDTH, int SCR_HEIGHT, bool isMouseCaptured=false, const char *title="OpenGL", bool msaa=false, bool vsync=false)
Initialize the window.
static void Terminate()
Terminate the window.
static void Load(std::string font_name, unsigned int fontSize)
Load a font.
static void Init()
Initialize the text subsystem.
static void SetLogFile(const std::string &file)
Set the log file.
static void Init()
Initialize the logger.
static void Close()
Close the logger.
static void SetLogLevel(Brenta::Types::LogLevel level)
Set the log level.