MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / addCursorImage

Method addCursorImage

src/Abyss/AbyssEngine.cpp:342–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void AbyssEngine::addCursorImage(const std::string_view name, const std::string_view path, const DataTypes::Palette &palette) {
343 _cursors.emplace(std::string(name), new DataTypes::DC6(path));
344 auto &cursorIcon = *_cursors[name.data()];
345 cursorIcon.setPalette(palette);
346 cursorIcon.setBlendMode(Enums::BlendMode::Blend);
347}
348
349FileSystem::InputStream AbyssEngine::loadFile(const std::string_view file_path) {
350 std::string path(file_path);

Callers 1

mainFunction · 0.80

Calls 2

setPaletteMethod · 0.45
setBlendModeMethod · 0.45

Tested by

no test coverage detected