Plutonium framework API 0.3.0
UI framework libraries for libnx
Loading...
Searching...
No Matches
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>
16#include <pu/sdl2/sdl2_Types.hpp>
17
18namespace pu::ui::render {
19
20 sdl2::Texture ConvertToTexture(sdl2::Surface surface);
21 sdl2::Texture LoadImage(const std::string &path);
22 i32 GetTextureWidth(sdl2::Texture texture);
23 i32 GetTextureHeight(sdl2::Texture texture);
24 void SetAlphaValue(sdl2::Texture texture, const u8 alpha);
25 void DeleteTexture(sdl2::Texture &texture);
26
27}
Definition sdl2_Types.hpp:10
Definition render_Renderer.hpp:20
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)