Plutonium framework API 0.3.0
UI framework libraries for libnx
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 <pu/ui/ui_Types.hpp>
17
18namespace pu::ui::render {
19
21 sdl2::Texture LoadImage(const std::string &path);
24 void SetAlphaValue(sdl2::Texture texture, const u8 alpha);
26
27}
SDL_Surface * Surface
Definition: sdl2_Types.hpp:15
SDL_Texture * Texture
Definition: sdl2_Types.hpp:11
Definition: render_Renderer.hpp:19
i32 GetTextureHeight(sdl2::Texture texture)
void DeleteTexture(sdl2::Texture &texture)
i32 GetTextureWidth(sdl2::Texture texture)
void SetAlphaValue(sdl2::Texture texture, const u8 alpha)
sdl2::Texture LoadImage(const std::string &path)
sdl2::Texture ConvertToTexture(sdl2::Surface surface)
s32 i32
Definition: pu_Include.hpp:28