INNER CODE UNIT · C++

f

evanbowman/BPCore-Engine · source/BPCoreEngine.cpp:998

         auto f = platform->fs().get_file(filename);
         if (f.data_ == nullptr) {
             StringBuffer<60> str = "tilemap src file not found: ";
             str += filename;
             luaL_error(L, str.c_str());
             return 1;
         }

         if (auto err = fill_tilemap(
                 f, layer, width, height, dest_x, dest_y, src_x, src_y)) {
             luaL_error(L, err);
             return 1;
         }

         return 0;
     }},
    {"fill",
     [](lua_State* L) -> int {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…