Plutonium framework API  0.3
Simple UI framework for libnx and SDL2
render_SDL2.hpp
Go to the documentation of this file.
1 
2 /*
3 
4  Plutonium library
5 
6  @file render_SDL2.hpp
7  @brief Wrapper code to simplify SDL2 usage
8  @author XorTroll
9 
10  @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
11 
12 */
13 
14 #pragma once
15 #include <string>
16 #include <switch.h>
17 #include <pu/pu_String.hpp>
18 #include <pu/ui/ui_Types.hpp>
19 #include <pu/sdl2/sdl2_Types.hpp>
20 
21 namespace pu::ui::render {
22 
23  enum class SharedFont
24  {
25  Standard,
29  Korean,
31  };
32 
34  sdl2::Texture LoadImage(std::string Path);
37  void SetAlphaValue(sdl2::Texture Texture, u8 Alpha);
38  void DeleteTexture(sdl2::Texture Texture);
39 }
void DeleteTexture(sdl2::Texture Texture)
SharedFont
Definition: render_SDL2.hpp:23
i32 GetTextureHeight(sdl2::Texture Texture)
Definition: render_Renderer.hpp:21
void SetAlphaValue(sdl2::Texture Texture, u8 Alpha)
SDL_Texture * Texture
Definition: sdl2_Types.hpp:11
s32 i32
Definition: pu_Macros.hpp:17
sdl2::Texture ConvertToTexture(sdl2::Surface Surface)
i32 GetTextureWidth(sdl2::Texture Texture)
SDL_Surface * Surface
Definition: sdl2_Types.hpp:15
sdl2::Texture LoadImage(std::string Path)