MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / PushImageInfo

Function PushImageInfo

src/lua/LuaCallOuts.cpp:982–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980//
981
982static int PushImageInfo(lua_State* L, PNGImageFile& image) {
983 if (!image.isOpen()) {
984 return luaL_pushnil(L);
985 }
986
987 lua_pushinteger(L, image.getWidth());
988 lua_pushinteger(L, image.getHeight());
989 lua_pushinteger(L, image.getNumChannels());
990
991 return 3;
992}
993
994
995static int PushImageData(lua_State* L, PNGImageFile& image) {

Callers 2

ReadImageDataMethod · 0.85
ReadImageFileMethod · 0.85

Calls 6

luaL_pushnilFunction · 0.85
lua_pushintegerFunction · 0.50
isOpenMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
getNumChannelsMethod · 0.45

Tested by

no test coverage detected