lxgui
Classes | Functions
lxgui::gui::sdl Namespace Reference

Classes

class  atlas_page
 A single texture holding multiple materials for efficient rendering This is an abstract class that must be implemented and created by the corresponding gui::renderer. More...
 
class  atlas
 A class that holds rendering data This implementation can contain either a plain color or a real SDL_Texture. It is also used by the gui::sdl::render_target class to store the output data. More...
 
class  font
 A texture containing characters This is the SDL implementation of the gui::font. It uses SDL_ttf to render glyphs and get character data. More...
 
class  material
 A class that holds rendering data This implementation can contain either a plain color or a real SDL_Texture. It is also used by the gui::sdl::render_target class to store the output data. More...
 
class  render_target
 A place to render things (the screen, a texture, ...) More...
 
class  renderer
 SDL implementation of rendering. More...
 

Functions

utils::owner_ptr< gui::managercreate_manager (SDL_Window *win, SDL_Renderer *rdr, bool initialise_sdl_image=true)
 Create a new gui::manager using a full SDL implementation. More...
 

Function Documentation

◆ create_manager()

utils::owner_ptr<gui::manager> lxgui::gui::sdl::create_manager ( SDL_Window *  win,
SDL_Renderer *  rdr,
bool  initialise_sdl_image = true 
)

Create a new gui::manager using a full SDL implementation.

Parameters
winThe SDL render window
rdrThe SDL renderer
initialise_sdl_imageSet to 'false' if SDL Image has already been initialised elsewhere
Returns
The new gui::manager instance