LuaYard/Texture.h

20 lines
394 B
C++

#pragma once
#include "LuaVM.h"
#include "SDL2/include/SDL.h"
#include <memory>
class Texture
{
public:
std::shared_ptr<SDL_Renderer> rnd;
std::shared_ptr<SDL_Texture> text;
int w;
int h;
Texture(const std::shared_ptr<SDL_Renderer>& exrnd, SDL_Texture* t);
static int close(lua_State* L);
static int create(lua_State* L, const std::shared_ptr<SDL_Renderer>& rnd, SDL_Texture* t);
};