LuaYard/Surface.h

17 lines
311 B
C++

#pragma once
#include "LuaVM.h"
#include "SDL2/include/SDL.h"
#include <memory>
class Surface
{
public:
std::shared_ptr<SDL_Surface> surf;
Surface(SDL_Surface* s);
static int close(lua_State* L);
// static int create(lua_State* L, SDL_Surface* surf);
static int create(lua_State* L, SDL_Surface* s);
};