Plutonium framework API  0.1
Simple UI framework for libnx and SDL2
pu::render Namespace Reference

Classes

class  Renderer
 

Typedefs

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

Enumerations

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

Functions

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

Typedef Documentation

◆ NativeFont

typedef TTF_Font* pu::render::NativeFont

◆ NativeRenderer

typedef SDL_Renderer* pu::render::NativeRenderer

◆ NativeSurface

typedef SDL_Surface* pu::render::NativeSurface

◆ NativeTexture

typedef SDL_Texture* pu::render::NativeTexture

◆ NativeWindow

typedef SDL_Window* pu::render::NativeWindow

Enumeration Type Documentation

◆ SharedFont

Enumerator
Standard 
ChineseSimplified 
ExtendedChineseSimplified 
ChineseTraditional 
Korean 
NintendoExtended 

Function Documentation

◆ ConvertToTexture()

NativeTexture pu::render::ConvertToTexture ( NativeSurface  Surface)

◆ DeleteFont()

void pu::render::DeleteFont ( NativeFont  Font)

◆ DeleteTexture()

void pu::render::DeleteTexture ( NativeTexture  Texture)

◆ GetMainRenderer()

NativeRenderer pu::render::GetMainRenderer ( )

◆ GetTextHeight()

u32 pu::render::GetTextHeight ( NativeFont  Font,
std::string  Text 
)

◆ GetTextureHeight()

u32 pu::render::GetTextureHeight ( NativeTexture  Texture)

◆ GetTextureWidth()

u32 pu::render::GetTextureWidth ( NativeTexture  Texture)

◆ GetTextWidth()

u32 pu::render::GetTextWidth ( NativeFont  Font,
std::string  Text 
)

◆ LoadFont()

NativeFont pu::render::LoadFont ( std::string  Path,
u32  Size 
)

◆ LoadImage()

NativeTexture pu::render::LoadImage ( std::string  Path)

◆ LoadSharedFont()

NativeFont pu::render::LoadSharedFont ( SharedFont  Type,
u32  Size 
)

◆ RenderText()

NativeTexture pu::render::RenderText ( NativeFont  Font,
std::string  Text,
draw::Color  Color 
)

◆ SetAlphaValue()

void pu::render::SetAlphaValue ( NativeTexture  Texture,
u8  Alpha 
)