Plutonium framework API  0.1
Simple UI framework for libnx and SDL2
SDL2.hpp File Reference
#include <string>
#include <switch.h>
#include <pu/draw.hpp>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL2_gfxPrimitives.h>

Go to the source code of this file.

Namespaces

 pu
 
 pu::render
 

Typedefs

typedef SDL_Window * pu::render::NativeWindow
 
typedef SDL_Renderer * pu::render::NativeRenderer
 
typedef SDL_Surface * pu::render::NativeSurface
 
typedef SDL_Texture * pu::render::NativeTexture
 
typedef TTF_Font * pu::render::NativeFont
 

Enumerations

enum  pu::render::SharedFont {
  pu::render::SharedFont::Standard, pu::render::SharedFont::ChineseSimplified, pu::render::SharedFont::ExtendedChineseSimplified, pu::render::SharedFont::ChineseTraditional,
  pu::render::SharedFont::Korean, pu::render::SharedFont::NintendoExtended
}
 

Functions

NativeTexture pu::render::ConvertToTexture (NativeSurface Surface)
 
NativeTexture pu::render::RenderText (NativeFont Font, std::string Text, draw::Color Color)
 
NativeTexture pu::render::LoadImage (std::string Path)
 
NativeFont pu::render::LoadSharedFont (SharedFont Type, u32 Size)
 
NativeFont pu::render::LoadFont (std::string Path, u32 Size)
 
u32 pu::render::GetTextureWidth (NativeTexture Texture)
 
u32 pu::render::GetTextureHeight (NativeTexture Texture)
 
u32 pu::render::GetTextWidth (NativeFont Font, std::string Text)
 
u32 pu::render::GetTextHeight (NativeFont Font, std::string Text)
 
void pu::render::SetAlphaValue (NativeTexture Texture, u8 Alpha)
 
void pu::render::DeleteFont (NativeFont Font)
 
void pu::render::DeleteTexture (NativeTexture Texture)