Proyecto Final - Turinmachin
Recreación del minijuego de matemáticas de Brain-Age usando redes neuronales
Loading...
Searching...
No Matches
text.h
Go to the documentation of this file.
1
#include <SDL3/SDL_pixels.h>
2
#include <SDL3/SDL_render.h>
3
#include <SDL3_ttf/SDL_ttf.h>
4
#include <cstdint>
5
#include <string>
6
7
namespace
game::sdl
{
8
9
enum class
VAlign
: std::uint8_t {
10
Top
,
11
Middle
,
12
Bottom
13
};
14
15
enum class
HAlign
: std::uint8_t {
16
Left
,
17
Center
,
18
Right
19
};
20
21
void
draw_text
(SDL_Renderer* renderer,
22
TTF_Font* font,
23
const
std::string& text,
24
float
x
,
25
float
y,
26
float
font_size,
27
HAlign
h_align,
28
VAlign
v_align,
29
SDL_Color color);
30
31
}
// namespace game::sdl
x
return p * x
Definition
catch_amalgamated.cpp:321
game::sdl
Definition
color.h:6
game::sdl::VAlign
VAlign
Definition
text.h:9
game::sdl::VAlign::Bottom
@ Bottom
Definition
text.h:12
game::sdl::VAlign::Top
@ Top
Definition
text.h:10
game::sdl::VAlign::Middle
@ Middle
Definition
text.h:11
game::sdl::HAlign
HAlign
Definition
text.h:15
game::sdl::HAlign::Center
@ Center
Definition
text.h:17
game::sdl::HAlign::Right
@ Right
Definition
text.h:18
game::sdl::HAlign::Left
@ Left
Definition
text.h:16
game::sdl::draw_text
void draw_text(SDL_Renderer *renderer, TTF_Font *font, const std::string &text, float x, float y, float font_size, HAlign h_align, VAlign v_align, SDL_Color color)
Definition
text.cpp:10
include
game
sdl
text.h
Generated by
1.14.0