/***************************************************************************** * Copyright (c) 2014-2022 OpenRCT2 developers * * For a complete list of all authors, please refer to contributors.md * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2 * * OpenRCT2 is licensed under the GNU General Public License version 3. *****************************************************************************/ #pragma once #ifdef ENABLE_SCRIPTING # include # include # include # include namespace OpenRCT2::Scripting { void InitialiseCustomImages(ScriptEngine& scriptEngine); std::optional AllocateCustomImages(const std::shared_ptr& plugin, uint32_t count); bool FreeCustomImages(const std::shared_ptr& plugin, ImageList range); bool DoesPluginOwnImage(const std::shared_ptr& plugin, ImageIndex index); DukValue DukGetImageInfo(duk_context* ctx, ImageIndex id); DukValue DukGetImagePixelData(duk_context* ctx, ImageIndex id); void DukSetPixelData(duk_context* ctx, ImageIndex id, const DukValue& dukPixelData); } // namespace OpenRCT2::Scripting #endif