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
7namespace game::sdl {
8
9 enum class VAlign : std::uint8_t {
13 };
14
15 enum class HAlign : std::uint8_t {
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
return p * x
Definition catch_amalgamated.cpp:321
Definition color.h:6
VAlign
Definition text.h:9
@ Bottom
Definition text.h:12
@ Top
Definition text.h:10
@ Middle
Definition text.h:11
HAlign
Definition text.h:15
@ Center
Definition text.h:17
@ Right
Definition text.h:18
@ Left
Definition text.h:16
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