LuaYard/Font.h

17 lines
269 B
C++

#pragma once
#include "LuaVM.h"
#include "SDL2/include/SDL_ttf.h"
#include <memory>
class Font
{
public:
std::shared_ptr<TTF_Font> font;
Font(TTF_Font* f);
static int renderText(lua_State* L);
static int close(lua_State* L);
static int create(lua_State* L);
};