Euphoria
eu::window::Engine Struct Reference

#include <engine.h>

Public Member Functions

 Engine ()
 
 ~Engine ()
 
 Engine (const Engine &)=delete
 
 Engine (Engine &&)=delete
 
void operator= (const Engine &)=delete
 
void operator= (Engine &&)=delete
 
int setup (const core::argparse::NameAndArguments &args)
 
bool create_window (const std::string &title, int width, int height, bool blend_hack=false)
 
bool on_resize (SDL_Event e, int *width, int *height) const
 

Public Attributes

std::unique_ptr< SdlLibrarysdl
 
std::unique_ptr< io::FileSystemfile_system
 
std::shared_ptr< io::ReadRootCatalogcatalog
 
std::unique_ptr< SdlWindowwindow
 
unsigned int window_id
 
std::unique_ptr< SdlOpenglContextcontext
 
std::unique_ptr< render::Initinit
 
std::unique_ptr< imgui::Libraryimgui
 

Detailed Description

Definition at line 32 of file engine.h.

Constructor & Destructor Documentation

◆ Engine() [1/3]

eu::window::Engine::Engine ( )

Definition at line 24 of file engine.cc.

◆ ~Engine()

eu::window::Engine::~Engine ( )

Definition at line 30 of file engine.cc.

◆ Engine() [2/3]

eu::window::Engine::Engine ( const Engine )
delete

◆ Engine() [3/3]

eu::window::Engine::Engine ( Engine &&  )
delete

Member Function Documentation

◆ create_window()

bool eu::window::Engine::create_window ( const std::string &  title,
int  width,
int  height,
bool  blend_hack = false 
)

Definition at line 92 of file engine.cc.

◆ on_resize()

bool eu::window::Engine::on_resize ( SDL_Event  e,
int *  width,
int *  height 
) const

Definition at line 144 of file engine.cc.

◆ operator=() [1/2]

void eu::window::Engine::operator= ( const Engine )
delete

◆ operator=() [2/2]

void eu::window::Engine::operator= ( Engine &&  )
delete

◆ setup()

int eu::window::Engine::setup ( const core::argparse::NameAndArguments args)

Definition at line 43 of file engine.cc.

Member Data Documentation

◆ catalog

std::shared_ptr<io::ReadRootCatalog> eu::window::Engine::catalog

Definition at line 36 of file engine.h.

◆ context

std::unique_ptr<SdlOpenglContext> eu::window::Engine::context

Definition at line 39 of file engine.h.

◆ file_system

std::unique_ptr<io::FileSystem> eu::window::Engine::file_system

Definition at line 35 of file engine.h.

◆ imgui

std::unique_ptr<imgui::Library> eu::window::Engine::imgui

Definition at line 41 of file engine.h.

◆ init

std::unique_ptr<render::Init> eu::window::Engine::init

Definition at line 40 of file engine.h.

◆ sdl

std::unique_ptr<SdlLibrary> eu::window::Engine::sdl

Definition at line 34 of file engine.h.

◆ window

std::unique_ptr<SdlWindow> eu::window::Engine::window

Definition at line 37 of file engine.h.

◆ window_id

unsigned int eu::window::Engine::window_id

Definition at line 38 of file engine.h.


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