Plutonium framework API
0.3
Simple UI framework for libnx and SDL2
|
Classes | |
class | Renderer |
struct | RendererInitOptions |
struct | TextureRenderOptions |
Functions | |
sdl2::Renderer | GetMainRenderer () |
sdl2::Window | GetMainWindow () |
sdl2::Surface | GetMainSurface () |
std::pair< u32, u32 > | GetDimensions () |
void | AddSharedFont (String font_name, u32 font_size, PlSharedFontType type) |
void | AddAllSharedFonts (String font_name, u32 font_size) |
void | AddFontFile (String font_name, u32 font_size, String path) |
void | AddDefaultFontFromShared (u32 font_size) |
void | AddDefaultFontFromFile (u32 font_size, String path) |
sdl2::Texture | RenderText (String font_name, String Text, Color Color) |
i32 | GetTextWidth (String font_name, String Text) |
i32 | GetTextHeight (String font_name, String Text) |
sdl2::Texture | ConvertToTexture (sdl2::Surface Surface) |
sdl2::Texture | LoadImage (std::string Path) |
i32 | GetTextureWidth (sdl2::Texture Texture) |
i32 | GetTextureHeight (sdl2::Texture Texture) |
void | SetAlphaValue (sdl2::Texture Texture, u8 Alpha) |
void | DeleteTexture (sdl2::Texture Texture) |
Variables | |
static constexpr u32 | MixerAllFlags = (MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG) |
static constexpr u32 | IMGAllFlags = (IMG_INIT_PNG | IMG_INIT_JPG | IMG_INIT_TIF | IMG_INIT_WEBP) |
static constexpr u32 | RendererSoftwareFlags = SDL_RENDERER_SOFTWARE |
static constexpr u32 | RendererHardwareFlags = (SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED) |
|
strong |
void pu::ui::render::AddAllSharedFonts | ( | String | font_name, |
u32 | font_size | ||
) |
|
inline |
|
inline |
void pu::ui::render::AddSharedFont | ( | String | font_name, |
u32 | font_size, | ||
PlSharedFontType | type | ||
) |
sdl2::Texture pu::ui::render::ConvertToTexture | ( | sdl2::Surface | Surface | ) |
void pu::ui::render::DeleteTexture | ( | sdl2::Texture | Texture | ) |
std::pair<u32, u32> pu::ui::render::GetDimensions | ( | ) |
sdl2::Renderer pu::ui::render::GetMainRenderer | ( | ) |
sdl2::Surface pu::ui::render::GetMainSurface | ( | ) |
sdl2::Window pu::ui::render::GetMainWindow | ( | ) |
i32 pu::ui::render::GetTextureHeight | ( | sdl2::Texture | Texture | ) |
i32 pu::ui::render::GetTextureWidth | ( | sdl2::Texture | Texture | ) |
sdl2::Texture pu::ui::render::LoadImage | ( | std::string | Path | ) |
sdl2::Texture pu::ui::render::RenderText | ( | String | font_name, |
String | Text, | ||
Color | Color | ||
) |
void pu::ui::render::SetAlphaValue | ( | sdl2::Texture | Texture, |
u8 | Alpha | ||
) |
|
static |
|
static |
|
static |
|
static |