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
10namespace 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
19 private:
20 Texture tex;
21
22 public:
23 constexpr TextureHandle() : tex(nullptr) {}
24 constexpr TextureHandle(Texture tex) : tex(tex) {}
27
28 inline Texture Get() {
29 return this->tex;
30 }
31 };
32
33}
Definition sdl2_Types.hpp:18
constexpr TextureHandle()
Definition sdl2_Types.hpp:23
Texture Get()
Definition sdl2_Types.hpp:28
constexpr TextureHandle(Texture tex)
Definition sdl2_Types.hpp:24
Definition sdl2_Types.hpp:10
#define PU_SMART_CTOR(type)
Definition pu_Include.hpp:20
struct _TTF_Font TTF_Font
Definition sdl2_CustomTtf.h:79