7 #include <SDL2/SDL_image.h> 8 #include <SDL2/SDL_ttf.h> 9 #include <SDL2/SDL2_gfxPrimitives.h>
u32 GetTextWidth(NativeFont Font, std::string Text)
u32 GetTextureHeight(NativeTexture Texture)
u32 GetTextureWidth(NativeTexture Texture)
SharedFont
Definition: SDL2.hpp:19
Font
Definition: Font.hpp:18
NativeFont LoadSharedFont(SharedFont Type, u32 Size)
Definition: Renderer.hpp:20
TTF_Font * NativeFont
Definition: SDL2.hpp:17
NativeFont LoadFont(std::string Path, u32 Size)
NativeTexture RenderText(NativeFont Font, std::string Text, draw::Color Color)
u32 GetTextHeight(NativeFont Font, std::string Text)
NativeTexture ConvertToTexture(NativeSurface Surface)
SDL_Renderer * NativeRenderer
Definition: SDL2.hpp:14
NativeTexture LoadImage(std::string Path)
void DeleteTexture(NativeTexture Texture)
void SetAlphaValue(NativeTexture Texture, u8 Alpha)
SDL_Texture * NativeTexture
Definition: SDL2.hpp:16
SDL_Window * NativeWindow
Definition: SDL2.hpp:13
void DeleteFont(NativeFont Font)
SDL_Surface * NativeSurface
Definition: SDL2.hpp:15