mirror of https://github.com/bjornbytes/lovr.git
18 lines
384 B
C
18 lines
384 B
C
|
#include "api.h"
|
||
|
#include "graphics/graphics.h"
|
||
|
#include "util.h"
|
||
|
#include <lua.h>
|
||
|
#include <lauxlib.h>
|
||
|
|
||
|
static int l_lovrPassGetType(lua_State* L) {
|
||
|
Pass* pass = luax_checktype(L, 1, Pass);
|
||
|
const PassInfo* info = lovrPassGetInfo(pass);
|
||
|
luax_pushenum(L, PassType, info->type);
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
const luaL_Reg lovrPass[] = {
|
||
|
{ "getType", l_lovrPassGetType },
|
||
|
{ NULL, NULL }
|
||
|
};
|