Plutonium framework API  0.3
Simple UI framework for libnx and SDL2
render_Renderer.hpp File Reference
#include <pu/ui/ui_Types.hpp>
#include <pu/ui/render/render_SDL2.hpp>
#include <string>
#include <fstream>
#include <vector>

Go to the source code of this file.

Classes

struct  pu::ui::render::RendererInitOptions
 
struct  pu::ui::render::TextureRenderOptions
 
class  pu::ui::render::Renderer
 

Namespaces

 pu::ui::render
 

Functions

sdl2::Renderer pu::ui::render::GetMainRenderer ()
 
sdl2::Window pu::ui::render::GetMainWindow ()
 
sdl2::Surface pu::ui::render::GetMainSurface ()
 
std::pair< u32, u32 > pu::ui::render::GetDimensions ()
 
void pu::ui::render::AddSharedFont (String font_name, u32 font_size, PlSharedFontType type)
 
void pu::ui::render::AddAllSharedFonts (String font_name, u32 font_size)
 
void pu::ui::render::AddFontFile (String font_name, u32 font_size, String path)
 
void pu::ui::render::AddDefaultFontFromShared (u32 font_size)
 
void pu::ui::render::AddDefaultFontFromFile (u32 font_size, String path)
 
sdl2::Texture pu::ui::render::RenderText (String font_name, String Text, Color Color)
 
i32 pu::ui::render::GetTextWidth (String font_name, String Text)
 
i32 pu::ui::render::GetTextHeight (String font_name, String Text)
 

Variables

static constexpr u32 pu::ui::render::MixerAllFlags = (MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG)
 
static constexpr u32 pu::ui::render::IMGAllFlags = (IMG_INIT_PNG | IMG_INIT_JPG | IMG_INIT_TIF | IMG_INIT_WEBP)
 
static constexpr u32 pu::ui::render::RendererSoftwareFlags = SDL_RENDERER_SOFTWARE
 
static constexpr u32 pu::ui::render::RendererHardwareFlags = (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED)