Plutonium framework API
0.3.0
UI framework libraries for libnx
Loading...
Searching...
No Matches
sdl2_Types.hpp
Go to the documentation of this file.
1
2
#
pragma
once
3
#
include
<
SDL2
/
SDL
.
h
>
4
#
include
<
SDL2
/
SDL2_gfxPrimitives
.
h
>
5
#
include
<
SDL2
/
SDL_image
.
h
>
6
#
include
<
SDL2
/
SDL_mixer
.
h
>
7
#
include
<
pu
/
pu_Include
.
hpp
>
8
#
include
<
pu
/
sdl2
/
sdl2_CustomTtf
.
h
>
9
10
namespace
pu::
sdl2
{
11
12
using
Texture = SDL_Texture*;
13
using
Window = SDL_Window*;
14
using
Renderer = SDL_Renderer*;
15
using
Font =
TTF_Font
*;
16
using
Surface = SDL_Surface*;
17
18
class
TextureHandle
{
19
private
:
20
Texture tex;
21
22
public
:
23
constexpr
TextureHandle
() : tex(
nullptr
) {}
24
constexpr
TextureHandle
(Texture tex) : tex(tex) {}
25
PU_SMART_CTOR
(
TextureHandle
)
26
~
TextureHandle
();
27
28
inline
Texture
Get
() {
29
return
this
->tex;
30
}
31
};
32
33
}
pu::sdl2::TextureHandle
Definition
sdl2_Types.hpp:18
pu::sdl2::TextureHandle::TextureHandle
constexpr TextureHandle()
Definition
sdl2_Types.hpp:23
pu::sdl2::TextureHandle::Get
Texture Get()
Definition
sdl2_Types.hpp:28
pu::sdl2::TextureHandle::~TextureHandle
~TextureHandle()
pu::sdl2::TextureHandle::TextureHandle
constexpr TextureHandle(Texture tex)
Definition
sdl2_Types.hpp:24
pu::sdl2
Definition
sdl2_Types.hpp:10
PU_SMART_CTOR
#define PU_SMART_CTOR(type)
Definition
pu_Include.hpp:20
TTF_Font
struct _TTF_Font TTF_Font
Definition
sdl2_CustomTtf.h:79
Plutonium
include
pu
sdl2
sdl2_Types.hpp
Generated by
1.11.0