feat: modules moved and engine moved to submodule

This commit is contained in:
Jan van der Weide 2025-04-12 18:40:44 +02:00
parent dfb5e645cd
commit c33d2130cc
5136 changed files with 225275 additions and 64485 deletions

View file

@ -139,7 +139,7 @@ if env["builtin_libwebp"]:
]
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
env_webp.Prepend(CPPPATH=[thirdparty_dir, thirdparty_dir + "src/"])
env_webp.Prepend(CPPEXTPATH=[thirdparty_dir, thirdparty_dir + "src/"])
env_thirdparty = env_webp.Clone()
env_thirdparty.disable_warnings()

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef IMAGE_LOADER_WEBP_H
#define IMAGE_LOADER_WEBP_H
#pragma once
#include "core/io/image_loader.h"
@ -39,5 +38,3 @@ public:
virtual void get_recognized_extensions(List<String> *p_extensions) const;
ImageLoaderWebP();
};
#endif // IMAGE_LOADER_WEBP_H

View file

@ -28,12 +28,9 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef WEBP_REGISTER_TYPES_H
#define WEBP_REGISTER_TYPES_H
#pragma once
#include "modules/register_module_types.h"
void initialize_webp_module(ModuleInitializationLevel p_level);
void uninitialize_webp_module(ModuleInitializationLevel p_level);
#endif // WEBP_REGISTER_TYPES_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef RESOURCE_SAVER_WEBP_H
#define RESOURCE_SAVER_WEBP_H
#pragma once
#include "core/io/image.h"
#include "core/io/resource_saver.h"
@ -45,5 +44,3 @@ public:
ResourceSaverWebP();
};
#endif // RESOURCE_SAVER_WEBP_H

View file

@ -28,8 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
#ifndef WEBP_COMMON_H
#define WEBP_COMMON_H
#pragma once
#include "core/io/image.h"
@ -43,5 +42,3 @@ Vector<uint8_t> _webp_packer(const Ref<Image> &p_image, float p_quality, bool p_
Ref<Image> _webp_unpack(const Vector<uint8_t> &p_buffer);
Error webp_load_image_from_buffer(Image *p_image, const uint8_t *p_buffer, int p_buffer_len);
} //namespace WebPCommon
#endif // WEBP_COMMON_H