Rename engine_texture_get_color to engine_texture_color_get

This commit is contained in:
Fierelier 2023-06-13 06:08:59 +02:00
parent 3f9f1276d7
commit 9135abefb8

View File

@ -18,7 +18,7 @@ int engine_luaf_lua_event_get_data(lua_State *L) {
return 1; return 1;
} }
int engine_luaf_texture_get_color(lua_State *L) { int engine_luaf_texture_color_get(lua_State *L) {
struct ENGINE_TEXTURE * texture = lua_touserdata(L,1); struct ENGINE_TEXTURE * texture = lua_touserdata(L,1);
int x = luaL_checkinteger(L,2); int x = luaL_checkinteger(L,2);
int y = luaL_checkinteger(L,3); int y = luaL_checkinteger(L,3);
@ -33,6 +33,6 @@ int engine_luaf_texture_get_color(lua_State *L) {
void engine_lua_init_manual() { void engine_lua_init_manual() {
lua_pushcfunction(engine_lua_state,engine_luaf_lua_event_get_data); lua_pushcfunction(engine_lua_state,engine_luaf_lua_event_get_data);
lua_setglobal (engine_lua_state,"engine_lua_event_get_data"); lua_setglobal (engine_lua_state,"engine_lua_event_get_data");
lua_pushcfunction(engine_lua_state,engine_luaf_texture_get_color); lua_pushcfunction(engine_lua_state,engine_luaf_texture_color_get);
lua_setglobal (engine_lua_state,"engine_texture_get_color"); lua_setglobal (engine_lua_state,"engine_texture_color_get");
} }