blob: 9bb6242e87ff2969ab4e0b64393f5cfc28749f8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "Runtime/Graphics/Shader.h"
#include "Runtime/Graphics/Texture.h"
#include "Runtime/Graphics/ImageData.h"
static luaL_Reg funcs[] = {
{0, 0}
};
int luaopen_GameLab_Engine_Rendering(lua_State* L)
{
log_info("Scripting", "luaopen_GameLab_Engine_Rendering()");
LUA_BIND_STATE(L);
state.PushGlobalNamespace();
state.PushNamespace("GameLab");
state.PushNamespace("Engine");
state.PushNamespace("Rendering");
state.RegisterMethods(funcs);
state.RegisterNativeClass<Shader>();
state.RegisterNativeClass<ImageData>();
state.RegisterNativeClass<Texture>();
return 1;
}
|