# Plutonium framework API: Plutonium/include/pu/ui/render/render_SDL2.hpp Source File

render_SDL2.hpp
Go to the documentation of this file.
/*
Plutonium library
@file render_SDL2.hpp
@brief Wrapper code to simplify SDL2 usage
@author XorTroll
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
*/
#pragma once
#include <pu/ui/ui_Types.hpp>
#include <pu/sdl2/sdl2_Types.hpp>
namespace pu::ui::render {
sdl2::Texture ConvertToTexture(sdl2::Surface surface);
sdl2::Texture LoadImage(const std::string &path);
i32 GetTextureWidth(sdl2::Texture texture);
i32 GetTextureHeight(sdl2::Texture texture);
void SetAlphaValue(sdl2::Texture texture, const u8 alpha);
void DeleteTexture(sdl2::Texture &texture);
}
pu::sdl2::Surface
SDL_Surface * Surface
Definition: sdl2_Types.hpp:15
pu::sdl2::Texture
SDL_Texture * Texture
Definition: sdl2_Types.hpp:11
pu::ui::render
Definition: render_Renderer.hpp:19
pu::ui::render::GetTextureHeight
i32 GetTextureHeight(sdl2::Texture texture)
pu::ui::render::DeleteTexture
void DeleteTexture(sdl2::Texture &texture)
pu::ui::render::GetTextureWidth
i32 GetTextureWidth(sdl2::Texture texture)
pu::ui::render::SetAlphaValue
void SetAlphaValue(sdl2::Texture texture, const u8 alpha)
pu::ui::render::LoadImage
sdl2::Texture LoadImage(const std::string &path)
pu::ui::render::ConvertToTexture
sdl2::Texture ConvertToTexture(sdl2::Surface surface)
pu::i32
s32 i32
Definition: pu_Include.hpp:28
sdl2_Types.hpp
ui_Types.hpp