diff --git a/native/cocos/application/ApplicationManager.cpp b/native/cocos/application/ApplicationManager.cpp index c5a3425453..b8a20cf715 100644 --- a/native/cocos/application/ApplicationManager.cpp +++ b/native/cocos/application/ApplicationManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/application/ApplicationManager.h b/native/cocos/application/ApplicationManager.h index 6946e31f74..56ddf9740d 100644 --- a/native/cocos/application/ApplicationManager.h +++ b/native/cocos/application/ApplicationManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/application/BaseApplication.h b/native/cocos/application/BaseApplication.h index 8cbb2f1da8..09e6739d61 100644 --- a/native/cocos/application/BaseApplication.h +++ b/native/cocos/application/BaseApplication.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/application/CocosApplication.cpp b/native/cocos/application/CocosApplication.cpp index 75c41ef9fe..e2d8ec0e22 100644 --- a/native/cocos/application/CocosApplication.cpp +++ b/native/cocos/application/CocosApplication.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -60,7 +60,7 @@ int CocosApplication::init() { jsb_init_file_operation_delegate(); se->setExceptionCallback( - std::bind(&CocosApplication::handleException, this, // NOLINT(modernize-avoid-bind) + std::bind(&CocosApplication::handleException, this, // NOLINT(modernize-avoid-bind) std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); jsb_register_all_modules(); diff --git a/native/cocos/application/CocosApplication.h b/native/cocos/application/CocosApplication.h index a70f46a2a2..ec953ca6ac 100644 --- a/native/cocos/application/CocosApplication.h +++ b/native/cocos/application/CocosApplication.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/AudioEngine.cpp b/native/cocos/audio/AudioEngine.cpp index e67c6a9efc..35d8a12334 100644 --- a/native/cocos/audio/AudioEngine.cpp +++ b/native/cocos/audio/AudioEngine.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -88,8 +88,8 @@ class AudioEngine::AudioEngineThreadPool { public: explicit AudioEngineThreadPool(int threads = 4) { for (int index = 0; index < threads; ++index) { - _workers.emplace_back(std::thread([this](){ - threadFunc(); + _workers.emplace_back(std::thread([this]() { + threadFunc(); })); } } @@ -204,7 +204,7 @@ int AudioEngine::play2d(const std::string &filePath, bool loop, float volume, co break; } - auto* profileHelper = sDefaultProfileHelper; + auto *profileHelper = sDefaultProfileHelper; if (profile && profile != &profileHelper->profile) { CC_ASSERT(!profile->name.empty()); profileHelper = &sAudioPathProfileHelperMap[profile->name]; diff --git a/native/cocos/audio/apple/AudioCache.h b/native/cocos/audio/apple/AudioCache.h index 29135e5937..ea4617a7f7 100644 --- a/native/cocos/audio/apple/AudioCache.h +++ b/native/cocos/audio/apple/AudioCache.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,12 +28,12 @@ #import -#include #include +#include #include -#include "base/Macros.h" #include "audio/apple/AudioMacros.h" +#include "base/Macros.h" namespace cc { class AudioEngineImpl; @@ -64,9 +64,9 @@ protected: void invokingLoadCallbacks(); //pcm data related stuff - ALenum _format; - ALsizei _sampleRate; - float _duration; + ALenum _format; + ALsizei _sampleRate; + float _duration; uint32_t _totalFrames; uint32_t _framesRead; @@ -74,16 +74,16 @@ protected: * Cache pcm data when sizeInBytes less than PCMDATA_CACHEMAXSIZE */ ALuint _alBufferId; - char *_pcmData; + char * _pcmData; /*Queue buffer related stuff * Streaming in openal when sizeInBytes greater then PCMDATA_CACHEMAXSIZE */ - char *_queBuffers[QUEUEBUFFER_NUM]; - ALsizei _queBufferSize[QUEUEBUFFER_NUM]; + char * _queBuffers[QUEUEBUFFER_NUM]; + ALsizei _queBufferSize[QUEUEBUFFER_NUM]; uint32_t _queBufferFrames; - std::mutex _playCallbackMutex; + std::mutex _playCallbackMutex; std::vector> _playCallbacks; // loadCallbacks doesn't need mutex since it's invoked only in Cocos thread. @@ -94,10 +94,10 @@ protected: State _state; std::shared_ptr _isDestroyed; - std::string _fileFullPath; - unsigned int _id; - bool _isLoadingFinished; - bool _isSkipReadDataTask; + std::string _fileFullPath; + unsigned int _id; + bool _isLoadingFinished; + bool _isSkipReadDataTask; friend class AudioEngineImpl; friend class AudioPlayer; diff --git a/native/cocos/audio/apple/AudioCache.mm b/native/cocos/audio/apple/AudioCache.mm index a6aebd3579..c33eab4f46 100644 --- a/native/cocos/audio/apple/AudioCache.mm +++ b/native/cocos/audio/apple/AudioCache.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioDecoder.h b/native/cocos/audio/apple/AudioDecoder.h index d543d5e515..5c1f866160 100644 --- a/native/cocos/audio/apple/AudioDecoder.h +++ b/native/cocos/audio/apple/AudioDecoder.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,8 +26,8 @@ #pragma once -#include #import +#include namespace cc { @@ -107,12 +107,12 @@ public: uint32_t getChannelCount() const; private: - bool _isOpened; + bool _isOpened; ExtAudioFileRef _extRef; - uint32_t _totalFrames; - uint32_t _bytesPerFrame; - uint32_t _sampleRate; - uint32_t _channelCount; + uint32_t _totalFrames; + uint32_t _bytesPerFrame; + uint32_t _sampleRate; + uint32_t _channelCount; AudioStreamBasicDescription _outputFormat; }; diff --git a/native/cocos/audio/apple/AudioDecoder.mm b/native/cocos/audio/apple/AudioDecoder.mm index 583f0ed41f..815194fec9 100644 --- a/native/cocos/audio/apple/AudioDecoder.mm +++ b/native/cocos/audio/apple/AudioDecoder.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioEngine-inl.h b/native/cocos/audio/apple/AudioEngine-inl.h index 7570236dbe..a5d5cb5e8c 100644 --- a/native/cocos/audio/apple/AudioEngine-inl.h +++ b/native/cocos/audio/apple/AudioEngine-inl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioEngine-inl.mm b/native/cocos/audio/apple/AudioEngine-inl.mm index 57d5c57f15..76d80914fc 100644 --- a/native/cocos/audio/apple/AudioEngine-inl.mm +++ b/native/cocos/audio/apple/AudioEngine-inl.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioMacros.h b/native/cocos/audio/apple/AudioMacros.h index 7833fcc329..21e05b8d12 100644 --- a/native/cocos/audio/apple/AudioMacros.h +++ b/native/cocos/audio/apple/AudioMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/apple/AudioPlayer.h b/native/cocos/audio/apple/AudioPlayer.h index e0646e59bf..1cc55b8212 100644 --- a/native/cocos/audio/apple/AudioPlayer.h +++ b/native/cocos/audio/apple/AudioPlayer.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,14 +26,14 @@ #pragma once -#include "base/Macros.h" #include "audio/apple/AudioMacros.h" +#include "base/Macros.h" +#include #include #include #include #include -#include namespace cc { class AudioCache; @@ -47,9 +47,9 @@ public: void destroy(); //queue buffer related stuff - bool setTime(float time); + bool setTime(float time); float getTime() { return _currTime; } - bool setLoop(bool loop); + bool setLoop(bool loop); protected: void setCache(AudioCache *cache); @@ -59,25 +59,25 @@ protected: AudioCache *_audioCache; - float _volume; - bool _loop; + float _volume; + bool _loop; std::function _finishCallbak; - bool _isDestroyed; - bool _removeByAudioEngine; - bool _ready; + bool _isDestroyed; + bool _removeByAudioEngine; + bool _ready; ALuint _alSource; //play by circular buffer - float _currTime; - bool _streamingSource; - ALuint _bufferIds[QUEUEBUFFER_NUM]; - std::thread *_rotateBufferThread; + float _currTime; + bool _streamingSource; + ALuint _bufferIds[QUEUEBUFFER_NUM]; + std::thread * _rotateBufferThread; std::condition_variable _sleepCondition; - std::mutex _sleepMutex; - bool _timeDirty; - bool _isRotateThreadExited; - std::atomic_bool _needWakeupRotateThread; + std::mutex _sleepMutex; + bool _timeDirty; + bool _isRotateThreadExited; + std::atomic_bool _needWakeupRotateThread; std::mutex _play2dMutex; diff --git a/native/cocos/audio/apple/AudioPlayer.mm b/native/cocos/audio/apple/AudioPlayer.mm index ccab825788..fe91eb8b0f 100644 --- a/native/cocos/audio/apple/AudioPlayer.mm +++ b/native/cocos/audio/apple/AudioPlayer.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/include/AudioEngine.h b/native/cocos/audio/include/AudioEngine.h index 049eeb9a59..530107a223 100644 --- a/native/cocos/audio/include/AudioEngine.h +++ b/native/cocos/audio/include/AudioEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/include/Export.h b/native/cocos/audio/include/Export.h index a76ced08da..a3819ee2d1 100644 --- a/native/cocos/audio/include/Export.h +++ b/native/cocos/audio/include/Export.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioCache.cpp b/native/cocos/audio/oalsoft/AudioCache.cpp index d94852b24f..d0d61a9aa2 100644 --- a/native/cocos/audio/oalsoft/AudioCache.cpp +++ b/native/cocos/audio/oalsoft/AudioCache.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioCache.h b/native/cocos/audio/oalsoft/AudioCache.h index e71be0bd5f..145773c2cc 100644 --- a/native/cocos/audio/oalsoft/AudioCache.h +++ b/native/cocos/audio/oalsoft/AudioCache.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -72,9 +72,9 @@ protected: void invokingLoadCallbacks(); //pcm data related stuff - ALenum _format; - ALsizei _sampleRate; - float _duration; + ALenum _format; + ALsizei _sampleRate; + float _duration; uint32_t _totalFrames; uint32_t _framesRead; @@ -82,16 +82,16 @@ protected: * Cache pcm data when sizeInBytes less than PCMDATA_CACHEMAXSIZE */ ALuint _alBufferId; - char *_pcmData; + char * _pcmData; /*Queue buffer related stuff * Streaming in OpenAL when sizeInBytes greater then PCMDATA_CACHEMAXSIZE */ - char *_queBuffers[QUEUEBUFFER_NUM]; - ALsizei _queBufferSize[QUEUEBUFFER_NUM]; + char * _queBuffers[QUEUEBUFFER_NUM]; + ALsizei _queBufferSize[QUEUEBUFFER_NUM]; uint32_t _queBufferFrames; - std::mutex _playCallbackMutex; + std::mutex _playCallbackMutex; std::vector> _playCallbacks; // loadCallbacks doesn't need mutex since it's invoked only in Cocos thread. @@ -102,10 +102,10 @@ protected: State _state; std::shared_ptr _isDestroyed; - std::string _fileFullPath; - unsigned int _id; - bool _isLoadingFinished; - bool _isSkipReadDataTask; + std::string _fileFullPath; + unsigned int _id; + bool _isLoadingFinished; + bool _isSkipReadDataTask; friend class AudioEngineImpl; friend class AudioPlayer; diff --git a/native/cocos/audio/oalsoft/AudioDecoder.cpp b/native/cocos/audio/oalsoft/AudioDecoder.cpp index 6a9ff8754a..033c4e0d66 100644 --- a/native/cocos/audio/oalsoft/AudioDecoder.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoder.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,11 +22,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "audio/oalsoft/AudioDecoder.h" +#include #include "audio/oalsoft/AudioMacros.h" #include "platform/FileUtils.h" -#include #ifdef LOG_TAG #undef LOG_TAG diff --git a/native/cocos/audio/oalsoft/AudioDecoder.h b/native/cocos/audio/oalsoft/AudioDecoder.h index 9a7d1fcf68..f757f0d8af 100644 --- a/native/cocos/audio/oalsoft/AudioDecoder.h +++ b/native/cocos/audio/oalsoft/AudioDecoder.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoderManager.cpp b/native/cocos/audio/oalsoft/AudioDecoderManager.cpp index a58bd7b415..6280efc4a1 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderManager.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoderManager.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoderManager.h b/native/cocos/audio/oalsoft/AudioDecoderManager.h index f14ceaeea0..08dcb726c8 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderManager.h +++ b/native/cocos/audio/oalsoft/AudioDecoderManager.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -32,10 +32,10 @@ class AudioDecoder; class AudioDecoderManager { public: - static bool init(); - static void destroy(); + static bool init(); + static void destroy(); static AudioDecoder *createDecoder(const char *path); - static void destroyDecoder(AudioDecoder *decoder); + static void destroyDecoder(AudioDecoder *decoder); }; } // namespace cc diff --git a/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp b/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp index c3356485ee..d7d99a4a06 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,7 +22,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "audio/oalsoft/AudioDecoderMp3.h" #include "audio/oalsoft/AudioMacros.h" #include "platform/FileUtils.h" @@ -30,9 +31,9 @@ #if CC_PLATFORM == CC_PLATFORM_WINDOWS || CC_PLATFORM == CC_PLATFORM_LINUX || CC_PLATFORM == CC_PLATFORM_QNX #include "mpg123/mpg123.h" #elif CC_PLATFORM == CC_PLATFORM_OHOS + #include #include "cocos/platform/ohos/FileUtils-ohos.h" #include "mpg123.h" - #include #endif #include diff --git a/native/cocos/audio/oalsoft/AudioDecoderMp3.h b/native/cocos/audio/oalsoft/AudioDecoderMp3.h index 992ff3eab3..c7c3de2ab6 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderMp3.h +++ b/native/cocos/audio/oalsoft/AudioDecoderMp3.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp b/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp index cdccdcd864..1df53302a3 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoderOgg.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,7 +22,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "audio/oalsoft/AudioDecoderOgg.h" #include "audio/oalsoft/AudioMacros.h" #include "platform/FileUtils.h" diff --git a/native/cocos/audio/oalsoft/AudioDecoderOgg.h b/native/cocos/audio/oalsoft/AudioDecoderOgg.h index 2db4fbda2b..1e763ca07f 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderOgg.h +++ b/native/cocos/audio/oalsoft/AudioDecoderOgg.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioEngine-soft.cpp b/native/cocos/audio/oalsoft/AudioEngine-soft.cpp index 65b015cc97..28f9a0d9f9 100644 --- a/native/cocos/audio/oalsoft/AudioEngine-soft.cpp +++ b/native/cocos/audio/oalsoft/AudioEngine-soft.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,7 +22,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #define LOG_TAG "AudioEngine-OALSOFT" #include "audio/oalsoft/AudioEngine-soft.h" @@ -40,10 +41,10 @@ #include "AL/alc.h" #include "AL/alext.h" #endif +#include "application/ApplicationManager.h" #include "audio/include/AudioEngine.h" #include "audio/oalsoft/AudioDecoderManager.h" #include "base/Scheduler.h" -#include "application/ApplicationManager.h" #include "platform/FileUtils.h" #if CC_PLATFORM == CC_PLATFORM_WINDOWS diff --git a/native/cocos/audio/oalsoft/AudioEngine-soft.h b/native/cocos/audio/oalsoft/AudioEngine-soft.h index d3b52eca92..4ade4b8624 100644 --- a/native/cocos/audio/oalsoft/AudioEngine-soft.h +++ b/native/cocos/audio/oalsoft/AudioEngine-soft.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/audio/oalsoft/AudioMacros.h b/native/cocos/audio/oalsoft/AudioMacros.h index 97ad88c7dc..37d3c21303 100644 --- a/native/cocos/audio/oalsoft/AudioMacros.h +++ b/native/cocos/audio/oalsoft/AudioMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -70,8 +70,8 @@ break; \ } -#define BREAK_IF_ERR_LOG(condition, fmt, ...) \ - if (!!(condition)) { \ +#define BREAK_IF_ERR_LOG(condition, fmt, ...) \ + if (!!(condition)) { \ CC_LOG_DEBUG("(" QUOTEME(condition) ") failed, message: " fmt, ##__VA_ARGS__); \ - break; \ + break; \ } diff --git a/native/cocos/audio/oalsoft/AudioPlayer.cpp b/native/cocos/audio/oalsoft/AudioPlayer.cpp index ea735fedf2..e330ae19fb 100644 --- a/native/cocos/audio/oalsoft/AudioPlayer.cpp +++ b/native/cocos/audio/oalsoft/AudioPlayer.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -33,8 +33,8 @@ #include "base/Log.h" -#include #include +#include using namespace cc; //NOLINT diff --git a/native/cocos/audio/oalsoft/AudioPlayer.h b/native/cocos/audio/oalsoft/AudioPlayer.h index c01d5b06f0..472e69fe34 100644 --- a/native/cocos/audio/oalsoft/AudioPlayer.h +++ b/native/cocos/audio/oalsoft/AudioPlayer.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -55,9 +55,9 @@ public: void destroy(); //queue buffer related stuff - bool setTime(float time); + bool setTime(float time); float getTime() { return _currTime; } - bool setLoop(bool loop); + bool setLoop(bool loop); protected: void setCache(AudioCache *cache); @@ -66,24 +66,24 @@ protected: AudioCache *_audioCache; - float _volume; - bool _loop; + float _volume; + bool _loop; std::function _finishCallbak; - bool _isDestroyed; - bool _removeByAudioEngine; - bool _ready; + bool _isDestroyed; + bool _removeByAudioEngine; + bool _ready; ALuint _alSource; //play by circular buffer - float _currTime; - bool _streamingSource; - ALuint _bufferIds[3]; - std::thread *_rotateBufferThread; + float _currTime; + bool _streamingSource; + ALuint _bufferIds[3]; + std::thread * _rotateBufferThread; std::condition_variable _sleepCondition; - std::mutex _sleepMutex; - bool _timeDirty; - bool _isRotateThreadExited; + std::mutex _sleepMutex; + bool _timeDirty; + bool _isRotateThreadExited; std::mutex _play2dMutex; diff --git a/native/cocos/audio/ohos/AudioDecoderWav.cpp b/native/cocos/audio/ohos/AudioDecoderWav.cpp index 0d39b981ed..94f20d35b8 100644 --- a/native/cocos/audio/ohos/AudioDecoderWav.cpp +++ b/native/cocos/audio/ohos/AudioDecoderWav.cpp @@ -1,26 +1,27 @@ /**************************************************************************** -Copyright (c) 2016 Chukong Technologies Inc. -Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016 Chukong Technologies Inc. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ #define LOG_TAG "AudioDecoderWav" diff --git a/native/cocos/audio/ohos/AudioDecoderWav.h b/native/cocos/audio/ohos/AudioDecoderWav.h index 0492b508d2..4102f32d46 100644 --- a/native/cocos/audio/ohos/AudioDecoderWav.h +++ b/native/cocos/audio/ohos/AudioDecoderWav.h @@ -1,26 +1,27 @@ /**************************************************************************** -Copyright (c) 2016 Chukong Technologies Inc. -Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016 Chukong Technologies Inc. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ #pragma once @@ -35,14 +36,14 @@ public: AudioDecoderWav(); ~AudioDecoderWav() override; - bool open(const char *path) override; - void close() override; + bool open(const char *path) override; + void close() override; uint32_t read(uint32_t framesToRead, char *pcmBuf) override; - bool seek(uint32_t frameOffset) override; + bool seek(uint32_t frameOffset) override; uint32_t tell() const override; private: - SF_INFO _sndInfo; + SF_INFO _sndInfo; SNDFILE *_sndHandle{}; }; diff --git a/native/cocos/audio/ohos/FsCallback.cpp b/native/cocos/audio/ohos/FsCallback.cpp index b6759bc120..950ce7b37b 100644 --- a/native/cocos/audio/ohos/FsCallback.cpp +++ b/native/cocos/audio/ohos/FsCallback.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/audio/ohos/FsCallback.h" #include diff --git a/native/cocos/audio/ohos/FsCallback.h b/native/cocos/audio/ohos/FsCallback.h index f0d8a9ec6c..ca859183d0 100644 --- a/native/cocos/audio/ohos/FsCallback.h +++ b/native/cocos/audio/ohos/FsCallback.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include diff --git a/native/cocos/base/Agent.h b/native/cocos/base/Agent.h index 062a8ba194..8afe77b53a 100644 --- a/native/cocos/base/Agent.h +++ b/native/cocos/base/Agent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,8 +25,8 @@ #pragma once -#include "Macros.h" #include +#include "Macros.h" namespace cc { diff --git a/native/cocos/base/AutoreleasePool.cpp b/native/cocos/base/AutoreleasePool.cpp index bfd20de611..fac9c64027 100644 --- a/native/cocos/base/AutoreleasePool.cpp +++ b/native/cocos/base/AutoreleasePool.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/AutoreleasePool.h b/native/cocos/base/AutoreleasePool.h index 2ac1a8aed5..ec6335af7b 100644 --- a/native/cocos/base/AutoreleasePool.h +++ b/native/cocos/base/AutoreleasePool.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,8 +27,8 @@ #pragma once -#include #include +#include #include "base/Ref.h" namespace cc { @@ -107,7 +107,7 @@ private: * is in the pool. */ std::vector _managedObjectArray; - std::string _name; + std::string _name; #if defined(CC_DEBUG) && (CC_DEBUG > 0) /** diff --git a/native/cocos/base/CachedArray.h b/native/cocos/base/CachedArray.h old mode 100755 new mode 100644 index 94b0e43abd..b9cc65f924 --- a/native/cocos/base/CachedArray.h +++ b/native/cocos/base/CachedArray.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,10 +25,10 @@ #pragma once +#include +#include #include "base/Object.h" #include "base/TypeDef.h" -#include -#include namespace cc { diff --git a/native/cocos/base/Config.h b/native/cocos/base/Config.h index e8241653e2..5ed0959cab 100644 --- a/native/cocos/base/Config.h +++ b/native/cocos/base/Config.h @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/CoreStd.h b/native/cocos/base/CoreStd.h index d6ac48dcef..fc7fbde76b 100644 --- a/native/cocos/base/CoreStd.h +++ b/native/cocos/base/CoreStd.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Data.cpp b/native/cocos/base/Data.cpp index 9c2a78ed8b..f219ced3dc 100644 --- a/native/cocos/base/Data.cpp +++ b/native/cocos/base/Data.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,8 +26,8 @@ ****************************************************************************/ #include "base/Data.h" -#include "base/Log.h" #include +#include "base/Log.h" namespace cc { diff --git a/native/cocos/base/Data.h b/native/cocos/base/Data.h index e345e62939..09b7c9386f 100644 --- a/native/cocos/base/Data.h +++ b/native/cocos/base/Data.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/IndexHandle.h b/native/cocos/base/IndexHandle.h index 682b20bad8..f03336a7a8 100644 --- a/native/cocos/base/IndexHandle.h +++ b/native/cocos/base/IndexHandle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Locked.h b/native/cocos/base/Locked.h index d15b906720..a5f4c74eb5 100644 --- a/native/cocos/base/Locked.h +++ b/native/cocos/base/Locked.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Log.cpp b/native/cocos/base/Log.cpp old mode 100755 new mode 100644 index fbe0e55d7d..215a210952 --- a/native/cocos/base/Log.cpp +++ b/native/cocos/base/Log.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,10 +25,10 @@ #include "Log.h" -#include -#include #include #include +#include +#include #if (CC_PLATFORM == CC_PLATFORM_WINDOWS) #ifndef WIN32_LEAN_AND_MEAN @@ -78,15 +78,15 @@ void Log::setLogFile(const std::string &filename) { struct tm *tm_time; time_t ct_time; time(&ct_time); - tm_time = localtime(&ct_time); - char dateBuffer[256] = { 0 }; + tm_time = localtime(&ct_time); + char dateBuffer[256] = {0}; snprintf(dateBuffer, sizeof(dateBuffer), "LOG DATE: %04d-%02d-%02d %02d:%02d:%02d\n", - tm_time->tm_year + 1900, - tm_time->tm_mon + 1, - tm_time->tm_mday, - tm_time->tm_hour, - tm_time->tm_min, - tm_time->tm_sec); + tm_time->tm_year + 1900, + tm_time->tm_mon + 1, + tm_time->tm_mday, + tm_time->tm_hour, + tm_time->tm_min, + tm_time->tm_sec); msg += dateBuffer; @@ -126,7 +126,7 @@ void Log::logMessage(LogType type, LogLevel level, const char *formats, ...) { // p += StringUtil::vprintf(p, last, formats, args); std::ptrdiff_t count = (last - p); - int ret = vsnprintf(p, count, formats, args); + int ret = vsnprintf(p, count, formats, args); if (ret >= count - 1) { p += (count - 1); } else if (ret >= 0) { diff --git a/native/cocos/base/Log.h b/native/cocos/base/Log.h old mode 100755 new mode 100644 index 4d6296592d..6108896331 --- a/native/cocos/base/Log.h +++ b/native/cocos/base/Log.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -49,11 +49,11 @@ class CC_DLL Log { public: static LogLevel slogLevel; // for read only - static inline void setLogLevel(LogLevel level) { slogLevel = level; } - static inline FILE *getLogFile() { return slogFile; } - static void setLogFile(const std::string &filename); - static void close(); - static void logMessage(LogType type, LogLevel level, const char *formats, ...); + static inline void setLogLevel(LogLevel level) { slogLevel = level; } + static inline FILE *getLogFile() { return slogFile; } + static void setLogFile(const std::string &filename); + static void close(); + static void logMessage(LogType type, LogLevel level, const char *formats, ...); private: static FILE *slogFile; diff --git a/native/cocos/base/Macros.h b/native/cocos/base/Macros.h index 360c62fbdc..caf624c975 100644 --- a/native/cocos/base/Macros.h +++ b/native/cocos/base/Macros.h @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -301,9 +301,9 @@ It should work same as apples CFSwapInt32LittleToHost(..) #include #else #if !defined(__QNX__) - #include + #include #else - #define CC_ENDIAN CC_ENDIAN_LITTLE + #define CC_ENDIAN CC_ENDIAN_LITTLE #endif #endif // (CC_PLATFORM == CC_PLATFORM_MAC_OSX) # @@ -407,24 +407,24 @@ It should work same as apples CFSwapInt32LittleToHost(..) #endif #define CC_ENABLE_COPY_SEMANTICS(cls) \ - cls(const cls &) = default; \ + cls(const cls &) = default; \ cls &operator=(const cls &) = default; #define CC_DISABLE_COPY_SEMANTICS(cls) \ - cls(const cls &) = delete; \ + cls(const cls &) = delete; \ cls &operator=(const cls &) = delete; #define CC_ENABLE_MOVE_SEMANTICS(cls) \ - cls(cls &&) noexcept = default; \ + cls(cls &&) noexcept = default; \ cls &operator=(cls &&) noexcept = default; #define CC_DISABLE_MOVE_SEMANTICS(cls) \ - cls(cls &&) noexcept = delete; \ + cls(cls &&) noexcept = delete; \ cls &operator=(cls &&) noexcept = delete; #define CC_DISABLE_COPY_AND_MOVE_SEMANTICS(cls) \ - CC_DISABLE_COPY_SEMANTICS(cls) \ - CC_DISABLE_MOVE_SEMANTICS(cls) + CC_DISABLE_COPY_SEMANTICS(cls) \ + CC_DISABLE_MOVE_SEMANTICS(cls) #if (CC_COMPILER == CC_COMPILER_MSVC) #define CC_ALIGN(N) __declspec(align(N)) diff --git a/native/cocos/base/Map.h b/native/cocos/base/Map.h index 492336c441..f8053307ed 100644 --- a/native/cocos/base/Map.h +++ b/native/cocos/base/Map.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -301,7 +301,7 @@ public: */ V getRandomObject() const { if (!_data.empty()) { - auto randIdx = RandomHelper::randomInt(0, static_cast(_data.size()) - 1); + auto randIdx = RandomHelper::randomInt(0, static_cast(_data.size()) - 1); const_iterator randIter = _data.begin(); std::advance(randIter, randIdx); return randIter->second; diff --git a/native/cocos/base/Object.h b/native/cocos/base/Object.h index bef6411e1e..a6dcdf2153 100755 --- a/native/cocos/base/Object.h +++ b/native/cocos/base/Object.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Random.h b/native/cocos/base/Random.h index 5019bdcaa5..a039373787 100644 --- a/native/cocos/base/Random.h +++ b/native/cocos/base/Random.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,8 +27,8 @@ #pragma once -#include #include +#include #include "base/Macros.h" @@ -43,21 +43,21 @@ public: template static inline T randomReal(T min, T max) { std::uniform_real_distribution dist(min, max); - auto &mt = RandomHelper::getEngine(); + auto & mt = RandomHelper::getEngine(); return dist(mt); } template static inline T randomInt(T min, T max) { std::uniform_int_distribution dist(min, max); - auto &mt = RandomHelper::getEngine(); + auto & mt = RandomHelper::getEngine(); return dist(mt); } private: static inline std::mt19937 &getEngine() { static std::random_device seedGen; - static std::mt19937 engine(seedGen()); + static std::mt19937 engine(seedGen()); return engine; } }; diff --git a/native/cocos/base/Ref.cpp b/native/cocos/base/Ref.cpp index ca2c715b73..19619b6c65 100644 --- a/native/cocos/base/Ref.cpp +++ b/native/cocos/base/Ref.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Ref.h b/native/cocos/base/Ref.h index d8b023e5d6..b760579ea2 100644 --- a/native/cocos/base/Ref.h +++ b/native/cocos/base/Ref.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,8 +27,8 @@ #pragma once -#include "base/Macros.h" #include "base/Config.h" +#include "base/Macros.h" #define CC_REF_LEAK_DETECTION 0 diff --git a/native/cocos/base/Scheduler.cpp b/native/cocos/base/Scheduler.cpp index 1d945ca0be..2c79360918 100644 --- a/native/cocos/base/Scheduler.cpp +++ b/native/cocos/base/Scheduler.cpp @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,12 +29,12 @@ #include "base/Scheduler.h" -#include #include +#include -#include "base/Macros.h" -#include "base/Log.h" #include +#include "base/Log.h" +#include "base/Macros.h" namespace { constexpr unsigned CC_REPEAT_FOREVER{UINT_MAX - 1}; diff --git a/native/cocos/base/Scheduler.h b/native/cocos/base/Scheduler.h index 9da227abb4..a5327156b5 100644 --- a/native/cocos/base/Scheduler.h +++ b/native/cocos/base/Scheduler.h @@ -3,7 +3,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringHandle.cpp b/native/cocos/base/StringHandle.cpp index 109f2d0d67..cf419731a3 100644 --- a/native/cocos/base/StringHandle.cpp +++ b/native/cocos/base/StringHandle.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringHandle.h b/native/cocos/base/StringHandle.h index 7cb3caeb40..b7485373ea 100644 --- a/native/cocos/base/StringHandle.h +++ b/native/cocos/base/StringHandle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringPool.h b/native/cocos/base/StringPool.h index 8f47c74674..5af16d7f32 100644 --- a/native/cocos/base/StringPool.h +++ b/native/cocos/base/StringPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/StringUtil.cpp b/native/cocos/base/StringUtil.cpp old mode 100755 new mode 100644 index c7bd037224..b5f156c9c1 --- a/native/cocos/base/StringUtil.cpp +++ b/native/cocos/base/StringUtil.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,9 +24,9 @@ ****************************************************************************/ #include "StringUtil.h" -#include "memory/Memory.h" -#include #include +#include +#include "memory/Memory.h" #if (CC_PLATFORM == CC_PLATFORM_WINDOWS) #ifndef WIN32_LEAN_AND_MEAN diff --git a/native/cocos/base/StringUtil.h b/native/cocos/base/StringUtil.h old mode 100755 new mode 100644 index b4d356452e..5e40b502f4 --- a/native/cocos/base/StringUtil.h +++ b/native/cocos/base/StringUtil.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,10 +25,10 @@ #pragma once +#include #include "Macros.h" #include "TypeDef.h" #include "memory/Memory.h" -#include namespace cc { diff --git a/native/cocos/base/ThreadPool.cpp b/native/cocos/base/ThreadPool.cpp index ce482673b6..5ece758c81 100644 --- a/native/cocos/base/ThreadPool.cpp +++ b/native/cocos/base/ThreadPool.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016-2017 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,9 +25,9 @@ ****************************************************************************/ #include "base/ThreadPool.h" -#include "platform/StdC.h" #include #include +#include "platform/StdC.h" #ifdef __ANDROID__ #include diff --git a/native/cocos/base/ThreadPool.h b/native/cocos/base/ThreadPool.h index 9a929a0c0f..356fbb09f5 100644 --- a/native/cocos/base/ThreadPool.h +++ b/native/cocos/base/ThreadPool.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016-2017 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Timer.cpp b/native/cocos/base/Timer.cpp index d4429c8899..cd3dd3ac31 100644 --- a/native/cocos/base/Timer.cpp +++ b/native/cocos/base/Timer.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "Timer.h" diff --git a/native/cocos/base/Timer.h b/native/cocos/base/Timer.h index 94e8014150..6c3a56357b 100644 --- a/native/cocos/base/Timer.h +++ b/native/cocos/base/Timer.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once @@ -29,7 +29,6 @@ #include #include "base/Macros.h" - namespace cc { namespace utils { diff --git a/native/cocos/base/TypeDef.h b/native/cocos/base/TypeDef.h old mode 100755 new mode 100644 index 59a6c8b9c9..33627fcf4a --- a/native/cocos/base/TypeDef.h +++ b/native/cocos/base/TypeDef.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,12 +27,11 @@ #include - -using uint = std::uint32_t; -using ushort = std::uint16_t; +using uint = std::uint32_t; +using ushort = std::uint16_t; #if (CC_PLATFORM != CC_PLATFORM_LINUX && CC_PLATFORM != CC_PLATFORM_QNX) // linux has typedef ulong -using ulong = std::uint32_t; +using ulong = std::uint32_t; #endif using FlagBits = std::uint32_t; diff --git a/native/cocos/base/UTF8.cpp b/native/cocos/base/UTF8.cpp index 7a22549b01..71ca2459ab 100644 --- a/native/cocos/base/UTF8.cpp +++ b/native/cocos/base/UTF8.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2014 cocos2d-x.org Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/UTF8.h b/native/cocos/base/UTF8.h index 38fe82ddea..b9cecb5ff3 100644 --- a/native/cocos/base/UTF8.h +++ b/native/cocos/base/UTF8.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2014 cocos2d-x.org Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Utils.cpp b/native/cocos/base/Utils.cpp index b8c1753664..a2891c2efd 100644 --- a/native/cocos/base/Utils.cpp +++ b/native/cocos/base/Utils.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/Utils.h b/native/cocos/base/Utils.h index c3beda253a..fafa139800 100644 --- a/native/cocos/base/Utils.h +++ b/native/cocos/base/Utils.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,10 +28,10 @@ #pragma once #include -#include -#include #include #include +#include +#include #include "base/Macros.h" #include "base/TypeDef.h" /** @file ccUtils.h @@ -69,7 +69,7 @@ T alignTo(T size, T alignment) { return ((size - 1) / alignment + 1) * alignment; } -template +template constexpr uint ALIGN_TO = ((size - 1) / alignment + 1) * alignment; template diff --git a/native/cocos/base/Value.cpp b/native/cocos/base/Value.cpp index e0182f410b..59e2fb79ed 100644 --- a/native/cocos/base/Value.cpp +++ b/native/cocos/base/Value.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,20 +26,20 @@ #include "base/Value.h" +#include +#include #include #include #include #include -#include #include -#include #include "base/Utils.h" namespace cc { const ValueVector VALUE_VECTOR_NULL; -const ValueMap VALUE_MAP_NULL = {}; +const ValueMap VALUE_MAP_NULL = {}; const ValueMapIntKey VALUE_MAP_INT_KEY_NULL = {}; const Value Value::VALUE_NULL; diff --git a/native/cocos/base/Value.h b/native/cocos/base/Value.h index a43ad953fb..499df588d4 100644 --- a/native/cocos/base/Value.h +++ b/native/cocos/base/Value.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -33,12 +33,12 @@ namespace cc { class Value; -using ValueVector = vector; -using ValueMap = unordered_map; +using ValueVector = vector; +using ValueMap = unordered_map; using ValueMapIntKey = unordered_map; -CC_DLL extern const ValueVector VALUE_VECTOR_NULL; -CC_DLL extern const ValueMap VALUE_MAP_NULL; +CC_DLL extern const ValueVector VALUE_VECTOR_NULL; +CC_DLL extern const ValueMap VALUE_MAP_NULL; CC_DLL extern const ValueMapIntKey VALUE_MAP_INT_KEY_NULL; /* @@ -219,15 +219,15 @@ private: union { unsigned char byteVal; - int intVal; - unsigned int unsignedVal; - float floatVal; - double doubleVal; - bool boolVal; + int intVal; + unsigned int unsignedVal; + float floatVal; + double doubleVal; + bool boolVal; - String *strVal; - ValueVector *vectorVal; - ValueMap *mapVal; + String * strVal; + ValueVector * vectorVal; + ValueMap * mapVal; ValueMapIntKey *intKeyMapVal; } _field; diff --git a/native/cocos/base/Vector.h b/native/cocos/base/Vector.h index 9924482f13..930275f358 100644 --- a/native/cocos/base/Vector.h +++ b/native/cocos/base/Vector.h @@ -2,7 +2,7 @@ Copyright (c) 2010 ForzeField Studios S.L. http://forzefield.com Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/ZipUtils.cpp b/native/cocos/base/ZipUtils.cpp index b949e78f15..b852ffc3fc 100644 --- a/native/cocos/base/ZipUtils.cpp +++ b/native/cocos/base/ZipUtils.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/ZipUtils.h b/native/cocos/base/ZipUtils.h index e705470473..eb6860aabc 100644 --- a/native/cocos/base/ZipUtils.h +++ b/native/cocos/base/ZipUtils.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/astc.cpp b/native/cocos/base/astc.cpp index c278c388a0..833b7453a7 100644 --- a/native/cocos/base/astc.cpp +++ b/native/cocos/base/astc.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,9 +28,9 @@ #include "base/astc.h" #include "platform/Image.h" -static const unsigned int MAGIC = 0x5CA1AB13; -static const astc_byte ASTC_HEADER_SIZE_X_BEGIN = 7; -static const astc_byte ASTC_HEADER_SIZE_Y_BEGIN = 10; +static const unsigned int MAGIC = 0x5CA1AB13; +static const astc_byte ASTC_HEADER_SIZE_X_BEGIN = 7; +static const astc_byte ASTC_HEADER_SIZE_Y_BEGIN = 10; bool astcIsValid(const astc_byte *pHeader) { uint32_t magicval = static_cast(pHeader[0]) + @@ -46,8 +46,8 @@ bool astcIsValid(const astc_byte *pHeader) { int ydim = pHeader[ASTC_HEADER_MAGIC + 1]; int zdim = pHeader[ASTC_HEADER_MAGIC + 2]; return !((xdim < 3 || xdim > 6 || ydim < 3 || ydim > 6 || zdim < 3 || zdim > 6) && - (xdim < 4 || xdim == 7 || xdim == 9 || xdim == 11 || xdim > 12 || - ydim < 4 || ydim == 7 || ydim == 9 || ydim == 11 || ydim > 12 || zdim != 1)); + (xdim < 4 || xdim == 7 || xdim == 9 || xdim == 11 || xdim > 12 || + ydim < 4 || ydim == 7 || ydim == 9 || ydim == 11 || ydim > 12 || zdim != 1)); } int astcGetWidth(const astc_byte *pHeader) { diff --git a/native/cocos/base/astc.h b/native/cocos/base/astc.h index c14a1e1a06..7fd9ab1c48 100644 --- a/native/cocos/base/astc.h +++ b/native/cocos/base/astc.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,14 +29,14 @@ #pragma once -using astc_byte = unsigned char; +using astc_byte = unsigned char; using astc_uint32 = unsigned int; // Size of a ASTC header - #define ASTC_HEADER_SIZE 16 +#define ASTC_HEADER_SIZE 16 - #define ASTC_HEADER_MAGIC 4 +#define ASTC_HEADER_MAGIC 4 // Check if a ASTC header is correctly formatted diff --git a/native/cocos/base/base64.cpp b/native/cocos/base/base64.cpp index d1b4ac21c6..c99c5a2689 100644 --- a/native/cocos/base/base64.cpp +++ b/native/cocos/base/base64.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/base64.h b/native/cocos/base/base64.h index 205af09a83..234d172457 100644 --- a/native/cocos/base/base64.h +++ b/native/cocos/base/base64.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/csscolorparser.cpp b/native/cocos/base/csscolorparser.cpp index 4a5cddd8f6..b9d17c3a6c 100644 --- a/native/cocos/base/csscolorparser.cpp +++ b/native/cocos/base/csscolorparser.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -49,18 +49,18 @@ #include "csscolorparser.h" -#include -#include -#include #include #include +#include +#include +#include namespace CSSColorParser { // http://www.w3.org/TR/css3-color/ struct NamedColor { - const char * name; - Color color; + const char *name; + Color color; }; const std::vector NAMED_COLORS = { @@ -214,14 +214,16 @@ const std::vector NAMED_COLORS = { {"yellowgreen", {154, 205, 50, 1}}}; template -uint8_t clampCssByte(T i) { // Clamp to integer 0 .. 255. - i = static_cast(::round(i)); // Seems to be what Chrome does (vs truncation). - return static_cast(i < 0 ? 0 : i > 255 ? 255 : i); +uint8_t clampCssByte(T i) { // Clamp to integer 0 .. 255. + i = static_cast(::round(i)); // Seems to be what Chrome does (vs truncation). + return static_cast(i < 0 ? 0 : i > 255 ? 255 + : i); } template float clampCssFloat(T f) { // Clamp to float 0.0 .. 1.0. - return f < 0 ? 0 : f > 1 ? 1 : float(f); + return f < 0 ? 0 : f > 1 ? 1 + : float(f); } float parseFloat(const std::string &str) { @@ -237,7 +239,7 @@ uint8_t parseCssInt(const std::string &str) { // int or percentage. return clampCssByte(parseFloat(str) / 100.0f * 255.0f); } return clampCssByte(parseInt(str)); - } +} float parseCssFloat(const std::string &str) { // float or percentage. if (str.length() && str.back() == '%') { @@ -267,8 +269,8 @@ float cssHueToRgb(float m1, float m2, float h) { std::vector split(const std::string &s, char delim) { std::vector elems; - std::stringstream ss(s); - std::string item; + std::stringstream ss(s); + std::string item; while (std::getline(ss, item, delim)) { elems.push_back(item); } @@ -297,13 +299,13 @@ Color parse(const std::string &cssStr) { parseInt(str.substr(1), 16); // REFINE(deanm): Stricter parsing. if (!(iv >= 0 && iv <= 0xfff)) { return {}; - } - + } + return Color( static_cast(((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8)), static_cast((iv & 0xf0) | ((iv & 0xf0) >> 4)), static_cast((iv & 0xf) | ((iv & 0xf) << 4)), 1); - } + } if (str.length() == 7) { int64_t iv = parseInt(str.substr(1), 16); // REFINE(deanm): Stricter parsing. @@ -312,8 +314,8 @@ Color parse(const std::string &cssStr) { } return Color(static_cast((iv & 0xff0000) >> 16), - static_cast((iv & 0xff00) >> 8), - static_cast(iv & 0xff), 1); + static_cast((iv & 0xff00) >> 8), + static_cast(iv & 0xff), 1); } return Color(); @@ -322,7 +324,7 @@ Color parse(const std::string &cssStr) { size_t op = str.find_first_of('('); size_t ep = str.find_first_of(')'); if (op != std::string::npos && ep + 1 == str.length()) { - const std::string fname = str.substr(0, op); + const std::string fname = str.substr(0, op); const std::vector params = split(str.substr(op + 1, ep - (op + 1)), ','); @@ -342,8 +344,7 @@ Color parse(const std::string &cssStr) { return Color(parseCssInt(params[0]), parseCssInt(params[1]), parseCssInt(params[2]), alpha); - - } + } if (fname == "hsla" || fname == "hsl") { if (fname == "hsla") { diff --git a/native/cocos/base/csscolorparser.h b/native/cocos/base/csscolorparser.h index a129578849..4f1bfe4ff1 100644 --- a/native/cocos/base/csscolorparser.h +++ b/native/cocos/base/csscolorparser.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -49,18 +49,19 @@ #pragma once -#include #include +#include namespace CSSColorParser { struct Color { inline Color() = default; inline Color(unsigned char red, unsigned char green, unsigned char blue, float alpha) - : r(red), g(green), b(blue), a(alpha > 1 ? 1 : alpha < 0 ? 0 : alpha) { + : r(red), g(green), b(blue), a(alpha > 1 ? 1 : alpha < 0 ? 0 + : alpha) { } unsigned char r = 0, g = 0, b = 0; - float a = 1.0f; + float a = 1.0f; }; inline bool operator==(const Color &lhs, const Color &rhs) { diff --git a/native/cocos/base/etc1.cpp b/native/cocos/base/etc1.cpp index b2dc807ab6..16af2b5af8 100644 --- a/native/cocos/base/etc1.cpp +++ b/native/cocos/base/etc1.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -43,11 +43,11 @@ static const char kMagic[] = {'P', 'K', 'M', ' ', '1', '0'}; -static const etc1_uint32 ETC1_PKM_FORMAT_OFFSET = 6; -static const etc1_uint32 ETC1_PKM_ENCODED_WIDTH_OFFSET = 8; +static const etc1_uint32 ETC1_PKM_FORMAT_OFFSET = 6; +static const etc1_uint32 ETC1_PKM_ENCODED_WIDTH_OFFSET = 8; static const etc1_uint32 ETC1_PKM_ENCODED_HEIGHT_OFFSET = 10; -static const etc1_uint32 ETC1_PKM_WIDTH_OFFSET = 12; -static const etc1_uint32 ETC1_PKM_HEIGHT_OFFSET = 14; +static const etc1_uint32 ETC1_PKM_WIDTH_OFFSET = 12; +static const etc1_uint32 ETC1_PKM_HEIGHT_OFFSET = 14; static const etc1_uint32 ETC1_RGB_NO_MIPMAPS = 0; @@ -61,11 +61,11 @@ etc1_bool etc1_pkm_is_valid(const etc1_byte *pHeader) { if (memcmp(pHeader, kMagic, sizeof(kMagic))) { return false; } - etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); - etc1_uint32 encodedWidth = readBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET); + etc1_uint32 format = readBEUint16(pHeader + ETC1_PKM_FORMAT_OFFSET); + etc1_uint32 encodedWidth = readBEUint16(pHeader + ETC1_PKM_ENCODED_WIDTH_OFFSET); etc1_uint32 encodedHeight = readBEUint16(pHeader + ETC1_PKM_ENCODED_HEIGHT_OFFSET); - etc1_uint32 width = readBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET); - etc1_uint32 height = readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET); + etc1_uint32 width = readBEUint16(pHeader + ETC1_PKM_WIDTH_OFFSET); + etc1_uint32 height = readBEUint16(pHeader + ETC1_PKM_HEIGHT_OFFSET); return format == ETC1_RGB_NO_MIPMAPS && encodedWidth >= width && encodedWidth - width < 4 && encodedHeight >= height && encodedHeight - height < 4; diff --git a/native/cocos/base/etc1.h b/native/cocos/base/etc1.h index a96a6b245a..a18a7986f4 100644 --- a/native/cocos/base/etc1.h +++ b/native/cocos/base/etc1.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -49,8 +49,8 @@ #endif typedef unsigned char etc1_byte; -typedef int etc1_bool; -typedef unsigned int etc1_uint32; +typedef int etc1_bool; +typedef unsigned int etc1_uint32; #ifdef __cplusplus extern "C" { diff --git a/native/cocos/base/etc2.cpp b/native/cocos/base/etc2.cpp index f1a43fb63b..27cdafd768 100644 --- a/native/cocos/base/etc2.cpp +++ b/native/cocos/base/etc2.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -31,11 +31,11 @@ static const char kMagic[] = {'P', 'K', 'M', ' ', '2', '0'}; -static const etc2_uint32 ETC2_PKM_FORMAT_OFFSET = 6; -static const etc2_uint32 ETC2_PKM_ENCODED_WIDTH_OFFSET = 8; +static const etc2_uint32 ETC2_PKM_FORMAT_OFFSET = 6; +static const etc2_uint32 ETC2_PKM_ENCODED_WIDTH_OFFSET = 8; static const etc2_uint32 ETC2_PKM_ENCODED_HEIGHT_OFFSET = 10; -static const etc2_uint32 ETC2_PKM_WIDTH_OFFSET = 12; -static const etc2_uint32 ETC2_PKM_HEIGHT_OFFSET = 14; +static const etc2_uint32 ETC2_PKM_WIDTH_OFFSET = 12; +static const etc2_uint32 ETC2_PKM_HEIGHT_OFFSET = 14; static etc2_uint32 readBEUint16(const etc2_byte *pIn) { return (pIn[0] << 8) | pIn[1]; @@ -47,11 +47,11 @@ etc2_bool etc2_pkm_is_valid(const etc2_byte *pHeader) { if (memcmp(pHeader, kMagic, sizeof(kMagic))) { return false; } - etc2_uint32 format = readBEUint16(pHeader + ETC2_PKM_FORMAT_OFFSET); - etc2_uint32 encodedWidth = readBEUint16(pHeader + ETC2_PKM_ENCODED_WIDTH_OFFSET); + etc2_uint32 format = readBEUint16(pHeader + ETC2_PKM_FORMAT_OFFSET); + etc2_uint32 encodedWidth = readBEUint16(pHeader + ETC2_PKM_ENCODED_WIDTH_OFFSET); etc2_uint32 encodedHeight = readBEUint16(pHeader + ETC2_PKM_ENCODED_HEIGHT_OFFSET); - etc2_uint32 width = readBEUint16(pHeader + ETC2_PKM_WIDTH_OFFSET); - etc2_uint32 height = readBEUint16(pHeader + ETC2_PKM_HEIGHT_OFFSET); + etc2_uint32 width = readBEUint16(pHeader + ETC2_PKM_WIDTH_OFFSET); + etc2_uint32 height = readBEUint16(pHeader + ETC2_PKM_HEIGHT_OFFSET); return (format == ETC2_RGB_NO_MIPMAPS || format == ETC2_RGBA_NO_MIPMAPS) && encodedWidth >= width && encodedWidth - width < 4 && encodedHeight >= height && encodedHeight - height < 4; diff --git a/native/cocos/base/etc2.h b/native/cocos/base/etc2.h index 30597bc446..6b388dce76 100644 --- a/native/cocos/base/etc2.h +++ b/native/cocos/base/etc2.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,8 +30,8 @@ /// @cond DO_NOT_SHOW typedef unsigned char etc2_byte; -typedef int etc2_bool; -typedef unsigned int etc2_uint32; +typedef int etc2_bool; +typedef unsigned int etc2_uint32; #ifndef GL_COMPRESSED_RGB8_ETC2 #define GL_COMPRESSED_RGB8_ETC2 0x9274 diff --git a/native/cocos/base/job-system/JobSystem.h b/native/cocos/base/job-system/JobSystem.h index a66c172ed0..2cc98531a8 100644 --- a/native/cocos/base/job-system/JobSystem.h +++ b/native/cocos/base/job-system/JobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp index 26f1db1fb7..2c6f4515fd 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h index a62b494a34..754656123e 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp index d4e594ba59..b85bef2c1a 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h index 85fc5fd46e..107178d08d 100644 --- a/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h +++ b/native/cocos/base/job-system/job-system-dummy/DummyJobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp index 01e933700f..d14b27c916 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h index e3c9a0b181..35b64b85c7 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp index 90dad4c950..b79703f3ad 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h index 39e7fe0445..859cfa3c40 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,9 +25,9 @@ #pragma once -#include "taskflow/taskflow.hpp" #include #include +#include "taskflow/taskflow.hpp" namespace cc { diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp index 294b5aa0c7..f2a4250782 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h index c92ad7a7e6..e2aeab1c15 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp index ac2a2a0b19..b36f1d3c0c 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h index 2f97218f31..70af8494c3 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,9 +25,9 @@ #pragma once -#include "tbb/global_control.h" #include #include +#include "tbb/global_control.h" namespace cc { diff --git a/native/cocos/base/memory/CallStack.cpp b/native/cocos/base/memory/CallStack.cpp index ba5086478f..108c7090fa 100644 --- a/native/cocos/base/memory/CallStack.cpp +++ b/native/cocos/base/memory/CallStack.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -241,7 +241,7 @@ std::vector CallStack::backtraceSymbols(const std::vector& ca StackFrame frame; PTR_DWORD address = reinterpret_cast(callstack[i]); - char moduelName[MAX_PATH]; + char moduelName[MAX_PATH]; #if _WIN64 PTR_DWORD moduleBase = SymGetModuleBase64(_process, address); #else diff --git a/native/cocos/base/memory/CallStack.h b/native/cocos/base/memory/CallStack.h index 31d6d35def..24e8049886 100644 --- a/native/cocos/base/memory/CallStack.h +++ b/native/cocos/base/memory/CallStack.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -36,7 +36,6 @@ #include #include "../Macros.h" - namespace cc { #define MAX_STACK_FRAMES 32 diff --git a/native/cocos/base/memory/Memory.cpp b/native/cocos/base/memory/Memory.cpp index d5cafdbe3d..a0120155ed 100755 --- a/native/cocos/base/memory/Memory.cpp +++ b/native/cocos/base/memory/Memory.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/memory/Memory.h b/native/cocos/base/memory/Memory.h old mode 100755 new mode 100644 index dcc5a03e18..d538254dcb --- a/native/cocos/base/memory/Memory.h +++ b/native/cocos/base/memory/Memory.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,7 +30,7 @@ #include "MemTracker.h" #include "StlAlloc.h" #if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) -#include + #include #endif // Global Interface Definitions @@ -150,7 +150,7 @@ inline void operator delete(void *ptr) throw() { free(ptr); } #endif #if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_11_0) -#define ALIGNAS(x) + #define ALIGNAS(x) #else -#define ALIGNAS(x) alignas(x) + #define ALIGNAS(x) alignas(x) #endif diff --git a/native/cocos/base/memory/MemoryHook.cpp b/native/cocos/base/memory/MemoryHook.cpp index d95b2b5f28..e408f3f839 100644 --- a/native/cocos/base/memory/MemoryHook.cpp +++ b/native/cocos/base/memory/MemoryHook.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -270,9 +270,9 @@ void MemoryHook::unRegisterAll() { g_new_hooker = nullptr; g_delete_hooker = nullptr; #elif CC_PLATFORM == CC_PLATFORM_MAC_IOS || CC_PLATFORM == CC_PLATFORM_MAC_OSX - malloc_logger = g_system_malloc_logger; - g_new_hooker = nullptr; - g_delete_hooker = nullptr; + malloc_logger = g_system_malloc_logger; + g_new_hooker = nullptr; + g_delete_hooker = nullptr; #elif CC_PLATFORM == CC_PLATFORM_WINDOWS MallocHook_RemoveNewHook(&newHook); MallocHook_RemoveDeleteHook(&deleteHook); diff --git a/native/cocos/base/memory/MemoryHook.h b/native/cocos/base/memory/MemoryHook.h index 6037b67ee8..4e449eacf1 100644 --- a/native/cocos/base/memory/MemoryHook.h +++ b/native/cocos/base/memory/MemoryHook.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,7 +35,6 @@ #include #include - typedef void* (*MallocType)(size_t size); typedef void (*FreeType)(void* ptr); diff --git a/native/cocos/base/threading/AutoReleasePool-apple.mm b/native/cocos/base/threading/AutoReleasePool-apple.mm index 23216c9a9a..f909684a41 100644 --- a/native/cocos/base/threading/AutoReleasePool-apple.mm +++ b/native/cocos/base/threading/AutoReleasePool-apple.mm @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "AutoReleasePool.h" #import diff --git a/native/cocos/base/threading/AutoReleasePool.cpp b/native/cocos/base/threading/AutoReleasePool.cpp index eb8f0f7016..051a6de7de 100644 --- a/native/cocos/base/threading/AutoReleasePool.cpp +++ b/native/cocos/base/threading/AutoReleasePool.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,13 +21,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "AutoReleasePool.h" namespace cc { -AutoReleasePool::AutoReleasePool() = default; +AutoReleasePool::AutoReleasePool() = default; AutoReleasePool::~AutoReleasePool() = default; void AutoReleasePool::drain() { diff --git a/native/cocos/base/threading/AutoReleasePool.h b/native/cocos/base/threading/AutoReleasePool.h index 8494d37243..383bc603d9 100644 --- a/native/cocos/base/threading/AutoReleasePool.h +++ b/native/cocos/base/threading/AutoReleasePool.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/base/threading/ConditionVariable.cpp b/native/cocos/base/threading/ConditionVariable.cpp index 6d5058f80f..b1ae710148 100644 --- a/native/cocos/base/threading/ConditionVariable.cpp +++ b/native/cocos/base/threading/ConditionVariable.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ConditionVariable.h b/native/cocos/base/threading/ConditionVariable.h index 133a16d1b0..7e49363597 100644 --- a/native/cocos/base/threading/ConditionVariable.h +++ b/native/cocos/base/threading/ConditionVariable.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,9 +26,9 @@ #pragma once #include +#include #include #include -#include namespace cc { @@ -36,7 +36,7 @@ class ConditionVariable final { public: void wait() noexcept; template - void wait(Function func, Args &&... args) noexcept; + void wait(Function func, Args &&...args) noexcept; void signal() noexcept; void signalAll() noexcept; @@ -47,7 +47,7 @@ private: // DO NOT MANIPULATE ANY SYCHRONIZATION PRIMITIVES INSIDE THE CALLBACK template -void ConditionVariable::wait(Function func, Args &&... args) noexcept { +void ConditionVariable::wait(Function func, Args &&...args) noexcept { std::unique_lock lock(_mutex); _condVar.wait(lock, std::bind(std::forward(func), std::forward(args)...)); } diff --git a/native/cocos/base/threading/Event.h b/native/cocos/base/threading/Event.h index c77ebeb524..0f41c935cc 100644 --- a/native/cocos/base/threading/Event.h +++ b/native/cocos/base/threading/Event.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/MessageQueue.cpp b/native/cocos/base/threading/MessageQueue.cpp index 07b90035c6..70fe0db469 100644 --- a/native/cocos/base/threading/MessageQueue.cpp +++ b/native/cocos/base/threading/MessageQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/MessageQueue.h b/native/cocos/base/threading/MessageQueue.h index b186c77257..50144466df 100644 --- a/native/cocos/base/threading/MessageQueue.h +++ b/native/cocos/base/threading/MessageQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ReadWriteLock.h b/native/cocos/base/threading/ReadWriteLock.h index 3ae1e1b0c3..6bc58d9120 100644 --- a/native/cocos/base/threading/ReadWriteLock.h +++ b/native/cocos/base/threading/ReadWriteLock.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,8 +29,8 @@ #include "base/Macros.h" // clang-format on -#include #include +#include namespace cc { diff --git a/native/cocos/base/threading/Semaphore.cpp b/native/cocos/base/threading/Semaphore.cpp index a8bba9a375..749d55dd62 100644 --- a/native/cocos/base/threading/Semaphore.cpp +++ b/native/cocos/base/threading/Semaphore.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/Semaphore.h b/native/cocos/base/threading/Semaphore.h index 2e68e950ec..ba4a049fa2 100644 --- a/native/cocos/base/threading/Semaphore.h +++ b/native/cocos/base/threading/Semaphore.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,9 +25,9 @@ #pragma once +#include "base/Macros.h" #include "concurrentqueue/concurrentqueue.h" #include "concurrentqueue/lightweightsemaphore.h" -#include "base/Macros.h" namespace cc { class Semaphore final { diff --git a/native/cocos/base/threading/ThreadPool.cpp b/native/cocos/base/threading/ThreadPool.cpp index 3faa6facb5..2e33939fe4 100644 --- a/native/cocos/base/threading/ThreadPool.cpp +++ b/native/cocos/base/threading/ThreadPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadPool.h b/native/cocos/base/threading/ThreadPool.h index 4dc9dc2134..bae735ee79 100644 --- a/native/cocos/base/threading/ThreadPool.h +++ b/native/cocos/base/threading/ThreadPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadSafeCounter.h b/native/cocos/base/threading/ThreadSafeCounter.h index 0e94a901f4..4179882f35 100644 --- a/native/cocos/base/threading/ThreadSafeCounter.h +++ b/native/cocos/base/threading/ThreadSafeCounter.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp b/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp index 456ccaee73..9bf33b4afe 100644 --- a/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp +++ b/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -31,7 +31,7 @@ namespace cc { ThreadSafeLinearAllocator::ThreadSafeLinearAllocator(size_t size, size_t alignment) noexcept : _capacity(size), _alignment(alignment) { - if(alignment == 1) { + if (alignment == 1) { _buffer = _CC_MALLOC(size); } else { _buffer = _CC_MALLOC_ALIGN(size, alignment); @@ -40,7 +40,7 @@ ThreadSafeLinearAllocator::ThreadSafeLinearAllocator(size_t size, size_t alignme } ThreadSafeLinearAllocator::~ThreadSafeLinearAllocator() { - if(_alignment == 1) { + if (_alignment == 1) { _CC_FREE(_buffer); } else { _CC_FREE_ALIGN(_buffer); diff --git a/native/cocos/base/threading/ThreadSafeLinearAllocator.h b/native/cocos/base/threading/ThreadSafeLinearAllocator.h index 3ea5fc6cca..2f2c074f7f 100644 --- a/native/cocos/base/threading/ThreadSafeLinearAllocator.h +++ b/native/cocos/base/threading/ThreadSafeLinearAllocator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/auto/jsb_audio_auto.cpp b/native/cocos/bindings/auto/jsb_audio_auto.cpp index 1788b4d570..2c62ffb7fb 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.cpp +++ b/native/cocos/bindings/auto/jsb_audio_auto.cpp @@ -1,18 +1,43 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_audio_auto.h" #if (USE_AUDIO > 0) -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/bindings/manual/jsb_global.h" -#include "audio/include/AudioEngine.h" + #include "audio/include/AudioEngine.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/bindings/manual/jsb_global.h" -#ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) -#endif + #ifndef JSB_ALLOC + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #endif -#ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr -#endif + #ifndef JSB_FREE + #define JSB_FREE(ptr) delete ptr + #endif se::Object* __jsb_cc_AudioProfile_proto = nullptr; -se::Class* __jsb_cc_AudioProfile_class = nullptr; +se::Class* __jsb_cc_AudioProfile_class = nullptr; static bool js_audio_AudioProfile_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -20,7 +45,7 @@ static bool js_audio_AudioProfile_get_name(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -31,7 +56,7 @@ SE_BIND_PROP_GET(js_audio_AudioProfile_get_name) static bool js_audio_AudioProfile_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -47,7 +72,7 @@ static bool js_audio_AudioProfile_get_maxInstances(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_get_maxInstances : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxInstances, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxInstances, s.thisObject(), s.rval()); @@ -58,7 +83,7 @@ SE_BIND_PROP_GET(js_audio_AudioProfile_get_maxInstances) static bool js_audio_AudioProfile_set_maxInstances(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_set_maxInstances : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -74,7 +99,7 @@ static bool js_audio_AudioProfile_get_minDelay(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_get_minDelay : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minDelay, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minDelay, s.thisObject(), s.rval()); @@ -85,7 +110,7 @@ SE_BIND_PROP_GET(js_audio_AudioProfile_get_minDelay) static bool js_audio_AudioProfile_set_minDelay(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_audio_AudioProfile_set_minDelay : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -106,13 +131,10 @@ static bool js_audio_AudioProfile_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_audio_AudioProfile_constructor, __jsb_cc_AudioProfile_class, js_cc_AudioProfile_finalize) - - static bool js_cc_AudioProfile_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -139,13 +161,13 @@ bool js_register_audio_AudioProfile(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_AudioEngine_proto = nullptr; -se::Class* __jsb_cc_AudioEngine_class = nullptr; +se::Class* __jsb_cc_AudioEngine_class = nullptr; static bool js_audio_AudioEngine_lazyInit(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cc::AudioEngine::lazyInit(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -161,7 +183,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_lazyInit) static bool js_audio_AudioEngine_end(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::end(); return true; @@ -173,9 +195,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_end) static bool js_audio_AudioEngine_getDefaultProfile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::AudioProfile* result = cc::AudioEngine::getDefaultProfile(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -190,9 +212,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getDefaultProfile) static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -205,7 +227,7 @@ static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-iden } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_play2d : Error processing arguments"); @@ -217,8 +239,8 @@ static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-iden } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); ok &= sevalue_to_native(args[2], &arg2, nullptr); @@ -230,9 +252,9 @@ static bool js_audio_AudioEngine_play2d(se::State& s) // NOLINT(readability-iden return true; } if (argc == 4) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -252,11 +274,11 @@ SE_BIND_FUNC(js_audio_AudioEngine_play2d) static bool js_audio_AudioEngine_setLoop(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -271,9 +293,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setLoop) static bool js_audio_AudioEngine_isLoop(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -291,11 +313,11 @@ SE_BIND_FUNC(js_audio_AudioEngine_isLoop) static bool js_audio_AudioEngine_setVolume(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -310,9 +332,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setVolume) static bool js_audio_AudioEngine_getVolume(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -330,9 +352,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getVolume) static bool js_audio_AudioEngine_pause(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -348,7 +370,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_pause) static bool js_audio_AudioEngine_pauseAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::pauseAll(); return true; @@ -360,9 +382,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_pauseAll) static bool js_audio_AudioEngine_resume(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -378,7 +400,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_resume) static bool js_audio_AudioEngine_resumeAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::resumeAll(); return true; @@ -390,9 +412,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_resumeAll) static bool js_audio_AudioEngine_stop(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -408,7 +430,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_stop) static bool js_audio_AudioEngine_stopAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::stopAll(); return true; @@ -420,11 +442,11 @@ SE_BIND_FUNC(js_audio_AudioEngine_stopAll) static bool js_audio_AudioEngine_setCurrentTime(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -442,9 +464,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setCurrentTime) static bool js_audio_AudioEngine_getCurrentTime(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -462,9 +484,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getCurrentTime) static bool js_audio_AudioEngine_getDuration(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -482,9 +504,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getDuration) static bool js_audio_AudioEngine_getDurationFromFile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -502,9 +524,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getDurationFromFile) static bool js_audio_AudioEngine_getState(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -522,44 +544,40 @@ SE_BIND_FUNC(js_audio_AudioEngine_getState) static bool js_audio_AudioEngine_setFinishCallback(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsFunc.toObject()->root(); auto lambda = [=](int larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_setFinishCallback : Error processing arguments"); cc::AudioEngine::setFinishCallback(arg0.value(), arg1.value()); return true; @@ -571,9 +589,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setFinishCallback) static bool js_audio_AudioEngine_getMaxAudioInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cc::AudioEngine::getMaxAudioInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -588,9 +606,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getMaxAudioInstance) static bool js_audio_AudioEngine_setMaxAudioInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -608,9 +626,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setMaxAudioInstance) static bool js_audio_AudioEngine_uncache(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -626,7 +644,7 @@ SE_BIND_FUNC(js_audio_AudioEngine_uncache) static bool js_audio_AudioEngine_uncacheAll(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::AudioEngine::uncacheAll(); return true; @@ -638,14 +656,17 @@ SE_BIND_FUNC(js_audio_AudioEngine_uncacheAll) static bool js_audio_AudioEngine_getProfile(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::AudioProfile* result = cc::AudioEngine::getProfile(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_getProfile : Error processing arguments"); @@ -657,7 +678,10 @@ static bool js_audio_AudioEngine_getProfile(se::State& s) // NOLINT(readability- if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::AudioProfile* result = cc::AudioEngine::getProfile(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_audio_AudioEngine_getProfile : Error processing arguments"); @@ -672,46 +696,48 @@ SE_BIND_FUNC(js_audio_AudioEngine_getProfile) static bool js_audio_AudioEngine_preload(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } - HolderType, true> arg1 = {}; + if (!ok) { + ok = true; + break; + } + HolderType, true> arg1 = {}; do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsFunc.toObject()->root(); auto lambda = [=](bool larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; - if (!ok) { ok = true; break; } + } while (false); + if (!ok) { + ok = true; + break; + } cc::AudioEngine::preload(arg0.value(), arg1.value()); return true; } @@ -720,7 +746,10 @@ static bool js_audio_AudioEngine_preload(se::State& s) // NOLINT(readability-ide if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::AudioEngine::preload(arg0.value()); return true; } @@ -732,9 +761,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_preload) static bool js_audio_AudioEngine_getPlayingAudioCount(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cc::AudioEngine::getPlayingAudioCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -749,9 +778,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_getPlayingAudioCount) static bool js_audio_AudioEngine_setEnabled(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -766,9 +795,9 @@ SE_BIND_FUNC(js_audio_AudioEngine_setEnabled) static bool js_audio_AudioEngine_isEnabled(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cc::AudioEngine::isEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -781,8 +810,6 @@ static bool js_audio_AudioEngine_isEnabled(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_audio_AudioEngine_isEnabled) - - bool js_register_audio_AudioEngine(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AudioEngine", obj, nullptr, nullptr); @@ -825,12 +852,10 @@ bool js_register_audio_AudioEngine(se::Object* obj) // NOLINT(readability-identi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_audio(se::Object* obj) -{ +bool register_all_audio(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) - { + if (!obj->getProperty("jsb", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); diff --git a/native/cocos/bindings/auto/jsb_audio_auto.h b/native/cocos/bindings/auto/jsb_audio_auto.h index f4a1eb72dd..32d313db38 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.h +++ b/native/cocos/bindings/auto/jsb_audio_auto.h @@ -1,13 +1,38 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if (USE_AUDIO > 0) -#include -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/audio/include/AudioEngine.h" + #include + #include "cocos/audio/include/AudioEngine.h" + #include "cocos/bindings/jswrapper/SeApi.h" + #include "cocos/bindings/manual/jsb_conversions.h" extern se::Object* __jsb_cc_AudioProfile_proto; -extern se::Class* __jsb_cc_AudioProfile_class; +extern se::Class* __jsb_cc_AudioProfile_class; bool js_register_cc_AudioProfile(se::Object* obj); bool register_all_audio(se::Object* obj); @@ -16,7 +41,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::AudioProfile); SE_DECLARE_FUNC(js_audio_AudioProfile_AudioProfile); extern se::Object* __jsb_cc_AudioEngine_proto; -extern se::Class* __jsb_cc_AudioEngine_class; +extern se::Class* __jsb_cc_AudioEngine_class; bool js_register_cc_AudioEngine(se::Object* obj); bool register_all_audio(se::Object* obj); diff --git a/native/cocos/bindings/auto/jsb_cocos_auto.cpp b/native/cocos/bindings/auto/jsb_cocos_auto.cpp index 70ee0c6736..33789fb6ef 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.cpp +++ b/native/cocos/bindings/auto/jsb_cocos_auto.cpp @@ -1,29 +1,54 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_cocos_auto.h" +#include "bindings/event/EventDispatcher.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" #include "platform/FileUtils.h" -#include "bindings/event/EventDispatcher.h" -#include "platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" -#include "platform/interfaces/modules/Device.h" #include "platform/SAXParser.h" +#include "platform/interfaces/modules/Device.h" +#include "platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_FileUtils_proto = nullptr; -se::Class* __jsb_cc_FileUtils_class = nullptr; +se::Class* __jsb_cc_FileUtils_class = nullptr; static bool js_engine_FileUtils_addSearchPath(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_addSearchPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -33,7 +58,7 @@ static bool js_engine_FileUtils_addSearchPath(se::State& s) // NOLINT(readabilit } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_addSearchPath : Error processing arguments"); @@ -49,9 +74,9 @@ static bool js_engine_FileUtils_createDirectory(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_createDirectory : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -71,9 +96,9 @@ static bool js_engine_FileUtils_fullPathForFilename(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_fullPathForFilename : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -93,9 +118,9 @@ static bool js_engine_FileUtils_fullPathFromRelativeFile(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_fullPathFromRelativeFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -117,9 +142,9 @@ static bool js_engine_FileUtils_getDataFromFile(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getDataFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -139,9 +164,9 @@ static bool js_engine_FileUtils_getDefaultResourceRootPath(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getDefaultResourceRootPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getDefaultResourceRootPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -158,9 +183,9 @@ static bool js_engine_FileUtils_getFileExtension(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getFileExtension : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -180,9 +205,9 @@ static bool js_engine_FileUtils_getFileSize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getFileSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -202,9 +227,9 @@ static bool js_engine_FileUtils_getOriginalSearchPaths(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getOriginalSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getOriginalSearchPaths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -221,9 +246,9 @@ static bool js_engine_FileUtils_getSearchPaths(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSearchPaths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -240,9 +265,9 @@ static bool js_engine_FileUtils_getStringFromFile(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getStringFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -262,9 +287,9 @@ static bool js_engine_FileUtils_getSuitableFOpen(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getSuitableFOpen : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -284,12 +309,12 @@ static bool js_engine_FileUtils_getValueMapFromData(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getValueMapFromData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_getValueMapFromData : Error processing arguments"); @@ -308,9 +333,9 @@ static bool js_engine_FileUtils_getValueMapFromFile(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getValueMapFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -330,9 +355,9 @@ static bool js_engine_FileUtils_getValueVectorFromFile(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getValueVectorFromFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -352,9 +377,9 @@ static bool js_engine_FileUtils_getWritablePath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_getWritablePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cobj->getWritablePath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -371,9 +396,9 @@ static bool js_engine_FileUtils_isAbsolutePath(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_isAbsolutePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -393,9 +418,9 @@ static bool js_engine_FileUtils_isDirectoryExist(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_isDirectoryExist : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -415,9 +440,9 @@ static bool js_engine_FileUtils_isFileExist(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_isFileExist : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -437,9 +462,9 @@ static bool js_engine_FileUtils_listFiles(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_listFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -460,7 +485,7 @@ static bool js_engine_FileUtils_purgeCachedEntries(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_purgeCachedEntries : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->purgeCachedEntries(); return true; @@ -474,9 +499,9 @@ static bool js_engine_FileUtils_removeDirectory(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_removeDirectory : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -496,9 +521,9 @@ static bool js_engine_FileUtils_removeFile(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_removeFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -516,27 +541,33 @@ SE_BIND_FUNC(js_engine_FileUtils_removeFile) static bool js_engine_FileUtils_renameFile(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_engine_FileUtils_renameFile : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_renameFile : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->renameFile(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_renameFile : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 3) { @@ -545,18 +576,27 @@ static bool js_engine_FileUtils_renameFile(se::State& s) // NOLINT(readability-i HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->renameFile(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_renameFile : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -567,9 +607,9 @@ static bool js_engine_FileUtils_setDefaultResourceRootPath(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_setDefaultResourceRootPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -586,9 +626,9 @@ static bool js_engine_FileUtils_setSearchPaths(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_setSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -605,9 +645,9 @@ static bool js_engine_FileUtils_setWritablePath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_setWritablePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -624,11 +664,11 @@ static bool js_engine_FileUtils_writeDataToFile(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeDataToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -648,9 +688,9 @@ static bool js_engine_FileUtils_writeStringToFile(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeStringToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -672,12 +712,12 @@ static bool js_engine_FileUtils_writeToFile(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType, true> arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_writeToFile : Error processing arguments"); @@ -696,12 +736,12 @@ static bool js_engine_FileUtils_writeValueMapToFile(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeValueMapToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType, true> arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_writeValueMapToFile : Error processing arguments"); @@ -720,12 +760,12 @@ static bool js_engine_FileUtils_writeValueVectorToFile(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_FileUtils_writeValueVectorToFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType, true> arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_FileUtils_writeValueVectorToFile : Error processing arguments"); @@ -742,9 +782,9 @@ SE_BIND_FUNC(js_engine_FileUtils_writeValueVectorToFile) static bool js_engine_FileUtils_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::FileUtils* result = cc::FileUtils::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -759,9 +799,9 @@ SE_BIND_FUNC(js_engine_FileUtils_getInstance) static bool js_engine_FileUtils_setDelegate(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -776,9 +816,9 @@ SE_BIND_FUNC(js_engine_FileUtils_setDelegate) static bool js_engine_FileUtils_normalizePath(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -796,9 +836,9 @@ SE_BIND_FUNC(js_engine_FileUtils_normalizePath) static bool js_engine_FileUtils_getFileDir(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -814,12 +854,10 @@ static bool js_engine_FileUtils_getFileDir(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_engine_FileUtils_getFileDir) - static bool js_cc_FileUtils_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -879,9 +917,7 @@ bool js_register_engine_FileUtils(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_OSInterface_proto = nullptr; -se::Class* __jsb_cc_OSInterface_class = nullptr; - - +se::Class* __jsb_cc_OSInterface_class = nullptr; bool js_register_engine_OSInterface(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -897,17 +933,17 @@ bool js_register_engine_OSInterface(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_ICanvasGradient_proto = nullptr; -se::Class* __jsb_cc_ICanvasGradient_class = nullptr; +se::Class* __jsb_cc_ICanvasGradient_class = nullptr; static bool js_engine_ICanvasGradient_addColorStop(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasGradient_addColorStop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -920,8 +956,6 @@ static bool js_engine_ICanvasGradient_addColorStop(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_engine_ICanvasGradient_addColorStop) - - bool js_register_engine_ICanvasGradient(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ICanvasGradient", obj, nullptr, nullptr); @@ -937,14 +971,14 @@ bool js_register_engine_ICanvasGradient(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_ICanvasRenderingContext2D_proto = nullptr; -se::Class* __jsb_cc_ICanvasRenderingContext2D_class = nullptr; +se::Class* __jsb_cc_ICanvasRenderingContext2D_class = nullptr; static bool js_engine_ICanvasRenderingContext2D_beginPath(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_beginPath : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginPath(); return true; @@ -958,9 +992,9 @@ static bool js_engine_ICanvasRenderingContext2D_clearRect(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_clearRect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -984,7 +1018,7 @@ static bool js_engine_ICanvasRenderingContext2D_closePath(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_closePath : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->closePath(); return true; @@ -998,9 +1032,9 @@ static bool js_engine_ICanvasRenderingContext2D_createLinearGradient(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_createLinearGradient : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1027,7 +1061,7 @@ static bool js_engine_ICanvasRenderingContext2D_fill(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fill : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->fill(); return true; @@ -1041,15 +1075,15 @@ static bool js_engine_ICanvasRenderingContext2D_fillImageData(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fillImageData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1068,9 +1102,9 @@ static bool js_engine_ICanvasRenderingContext2D_fillRect(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fillRect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1093,14 +1127,14 @@ static bool js_engine_ICanvasRenderingContext2D_fillText(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_fillText : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1118,9 +1152,9 @@ static bool js_engine_ICanvasRenderingContext2D_lineTo(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_lineTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1139,9 +1173,9 @@ static bool js_engine_ICanvasRenderingContext2D_measureText(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_measureText : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1161,9 +1195,9 @@ static bool js_engine_ICanvasRenderingContext2D_moveTo(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_moveTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1182,9 +1216,9 @@ static bool js_engine_ICanvasRenderingContext2D_rect(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_rect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1208,7 +1242,7 @@ static bool js_engine_ICanvasRenderingContext2D_restore(se::State& s) // NOLINT( auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_restore : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->restore(); return true; @@ -1222,9 +1256,9 @@ static bool js_engine_ICanvasRenderingContext2D_rotate(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_rotate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1242,7 +1276,7 @@ static bool js_engine_ICanvasRenderingContext2D_save(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_save : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->save(); return true; @@ -1256,9 +1290,9 @@ static bool js_engine_ICanvasRenderingContext2D_scale(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_scale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1277,41 +1311,37 @@ static bool js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback(s { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); - auto lambda = [=](const cc::Data & larg0) -> void { + auto lambda = [=](const cc::Data& larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback : Error processing arguments"); cobj->setCanvasBufferUpdatedCallback(arg0.value()); return true; @@ -1325,9 +1355,9 @@ static bool js_engine_ICanvasRenderingContext2D_setFillStyle(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setFillStyle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1344,9 +1374,9 @@ static bool js_engine_ICanvasRenderingContext2D_setFont(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setFont : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1363,9 +1393,9 @@ static bool js_engine_ICanvasRenderingContext2D_setGlobalCompositeOperation(se:: { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setGlobalCompositeOperation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1382,9 +1412,9 @@ static bool js_engine_ICanvasRenderingContext2D_setHeight(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1401,9 +1431,9 @@ static bool js_engine_ICanvasRenderingContext2D_setLineCap(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setLineCap : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1420,9 +1450,9 @@ static bool js_engine_ICanvasRenderingContext2D_setLineJoin(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setLineJoin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1439,9 +1469,9 @@ static bool js_engine_ICanvasRenderingContext2D_setLineWidth(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setLineWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1458,9 +1488,9 @@ static bool js_engine_ICanvasRenderingContext2D_setStrokeStyle(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setStrokeStyle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1477,9 +1507,9 @@ static bool js_engine_ICanvasRenderingContext2D_setTextAlign(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setTextAlign : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1496,9 +1526,9 @@ static bool js_engine_ICanvasRenderingContext2D_setTextBaseline(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setTextBaseline : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1515,9 +1545,9 @@ static bool js_engine_ICanvasRenderingContext2D_setTransform(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1544,9 +1574,9 @@ static bool js_engine_ICanvasRenderingContext2D_setWidth(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1564,7 +1594,7 @@ static bool js_engine_ICanvasRenderingContext2D_stroke(se::State& s) // NOLINT(r auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_stroke : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stroke(); return true; @@ -1578,14 +1608,14 @@ static bool js_engine_ICanvasRenderingContext2D_strokeText(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_strokeText : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1603,9 +1633,9 @@ static bool js_engine_ICanvasRenderingContext2D_transform(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_transform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1632,9 +1662,9 @@ static bool js_engine_ICanvasRenderingContext2D_translate(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_ICanvasRenderingContext2D_translate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1649,8 +1679,6 @@ static bool js_engine_ICanvasRenderingContext2D_translate(se::State& s) // NOLIN } SE_BIND_FUNC(js_engine_ICanvasRenderingContext2D_translate) - - bool js_register_engine_ICanvasRenderingContext2D(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ICanvasRenderingContext2D", obj, __jsb_cc_OSInterface_proto, nullptr); @@ -1698,7 +1726,7 @@ bool js_register_engine_ICanvasRenderingContext2D(se::Object* obj) // NOLINT(rea return true; } se::Object* __jsb_cc_CanvasGradient_proto = nullptr; -se::Class* __jsb_cc_CanvasGradient_class = nullptr; +se::Class* __jsb_cc_CanvasGradient_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_CanvasGradient_finalize) @@ -1711,13 +1739,10 @@ static bool js_engine_CanvasGradient_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_engine_CanvasGradient_constructor, __jsb_cc_CanvasGradient_class, js_cc_CanvasGradient_finalize) - - static bool js_cc_CanvasGradient_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1741,16 +1766,16 @@ bool js_register_engine_CanvasGradient(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_CanvasRenderingContext2D_proto = nullptr; -se::Class* __jsb_cc_CanvasRenderingContext2D_class = nullptr; +se::Class* __jsb_cc_CanvasRenderingContext2D_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_CanvasRenderingContext2D_finalize) static bool js_engine_CanvasRenderingContext2D_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - float arg0 = 0; - float arg1 = 0; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + float arg0 = 0; + float arg1 = 0; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_engine_CanvasRenderingContext2D_constructor : Error processing arguments"); @@ -1761,13 +1786,10 @@ static bool js_engine_CanvasRenderingContext2D_constructor(se::State& s) // NOLI } SE_BIND_CTOR(js_engine_CanvasRenderingContext2D_constructor, __jsb_cc_CanvasRenderingContext2D_class, js_cc_CanvasRenderingContext2D_finalize) - - static bool js_cc_CanvasRenderingContext2D_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1791,13 +1813,13 @@ bool js_register_engine_CanvasRenderingContext2D(se::Object* obj) // NOLINT(read return true; } se::Object* __jsb_cc_Device_proto = nullptr; -se::Class* __jsb_cc_Device_class = nullptr; +se::Class* __jsb_cc_Device_class = nullptr; static bool js_engine_Device_getDPI(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cc::Device::getDPI(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1812,9 +1834,9 @@ SE_BIND_FUNC(js_engine_Device_getDPI) static bool js_engine_Device_getDevicePixelRatio(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cc::Device::getDevicePixelRatio(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1829,9 +1851,9 @@ SE_BIND_FUNC(js_engine_Device_getDevicePixelRatio) static bool js_engine_Device_setAccelerometerEnabled(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1846,9 +1868,9 @@ SE_BIND_FUNC(js_engine_Device_setAccelerometerEnabled) static bool js_engine_Device_setAccelerometerInterval(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1863,9 +1885,9 @@ SE_BIND_FUNC(js_engine_Device_setAccelerometerInterval) static bool js_engine_Device_getDeviceOrientation(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cc::Device::getDeviceOrientation()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1880,9 +1902,9 @@ SE_BIND_FUNC(js_engine_Device_getDeviceOrientation) static bool js_engine_Device_getDeviceModel(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cc::Device::getDeviceModel(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1897,9 +1919,9 @@ SE_BIND_FUNC(js_engine_Device_getDeviceModel) static bool js_engine_Device_setKeepScreenOn(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1914,9 +1936,9 @@ SE_BIND_FUNC(js_engine_Device_setKeepScreenOn) static bool js_engine_Device_vibrate(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1931,9 +1953,9 @@ SE_BIND_FUNC(js_engine_Device_vibrate) static bool js_engine_Device_getBatteryLevel(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cc::Device::getBatteryLevel(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1948,9 +1970,9 @@ SE_BIND_FUNC(js_engine_Device_getBatteryLevel) static bool js_engine_Device_getNetworkType(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cc::Device::getNetworkType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1965,9 +1987,9 @@ SE_BIND_FUNC(js_engine_Device_getNetworkType) static bool js_engine_Device_getSafeAreaEdge(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Vec4 result = cc::Device::getSafeAreaEdge(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1980,8 +2002,6 @@ static bool js_engine_Device_getSafeAreaEdge(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_engine_Device_getSafeAreaEdge) - - bool js_register_engine_Device(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Device", obj, nullptr, nullptr); @@ -2007,15 +2027,15 @@ bool js_register_engine_Device(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_SAXParser_proto = nullptr; -se::Class* __jsb_cc_SAXParser_class = nullptr; +se::Class* __jsb_cc_SAXParser_class = nullptr; static bool js_engine_SAXParser_init(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_engine_SAXParser_init : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2031,8 +2051,6 @@ static bool js_engine_SAXParser_init(se::State& s) // NOLINT(readability-identif } SE_BIND_FUNC(js_engine_SAXParser_init) - - bool js_register_engine_SAXParser(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PlistParser", obj, nullptr, nullptr); @@ -2047,12 +2065,10 @@ bool js_register_engine_SAXParser(se::Object* obj) // NOLINT(readability-identif se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_engine(se::Object* obj) -{ +bool register_all_engine(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) - { + if (!obj->getProperty("jsb", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); @@ -2069,4 +2085,3 @@ bool register_all_engine(se::Object* obj) js_register_engine_SAXParser(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_cocos_auto.h b/native/cocos/bindings/auto/jsb_cocos_auto.h index eff706f4e7..f55fc3bc67 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.h +++ b/native/cocos/bindings/auto/jsb_cocos_auto.h @@ -1,16 +1,41 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include +#include "base/Config.h" +#include "cocos/bindings/event/EventDispatcher.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/platform/FileUtils.h" -#include "cocos/bindings/event/EventDispatcher.h" -#include "cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" -#include "cocos/platform/interfaces/modules/Device.h" #include "cocos/platform/SAXParser.h" +#include "cocos/platform/interfaces/modules/Device.h" +#include "cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" extern se::Object* __jsb_cc_FileUtils_proto; -extern se::Class* __jsb_cc_FileUtils_class; +extern se::Class* __jsb_cc_FileUtils_class; bool js_register_cc_FileUtils(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -54,7 +79,7 @@ SE_DECLARE_FUNC(js_engine_FileUtils_normalizePath); SE_DECLARE_FUNC(js_engine_FileUtils_getFileDir); extern se::Object* __jsb_cc_OSInterface_proto; -extern se::Class* __jsb_cc_OSInterface_class; +extern se::Class* __jsb_cc_OSInterface_class; bool js_register_cc_OSInterface(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -62,7 +87,7 @@ bool register_all_engine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::OSInterface); extern se::Object* __jsb_cc_ICanvasGradient_proto; -extern se::Class* __jsb_cc_ICanvasGradient_class; +extern se::Class* __jsb_cc_ICanvasGradient_class; bool js_register_cc_ICanvasGradient(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -71,7 +96,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::ICanvasGradient); SE_DECLARE_FUNC(js_engine_ICanvasGradient_addColorStop); extern se::Object* __jsb_cc_ICanvasRenderingContext2D_proto; -extern se::Class* __jsb_cc_ICanvasRenderingContext2D_class; +extern se::Class* __jsb_cc_ICanvasRenderingContext2D_class; bool js_register_cc_ICanvasRenderingContext2D(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -101,7 +126,7 @@ SE_DECLARE_FUNC(js_engine_ICanvasRenderingContext2D_transform); SE_DECLARE_FUNC(js_engine_ICanvasRenderingContext2D_translate); extern se::Object* __jsb_cc_CanvasGradient_proto; -extern se::Class* __jsb_cc_CanvasGradient_class; +extern se::Class* __jsb_cc_CanvasGradient_class; bool js_register_cc_CanvasGradient(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -110,7 +135,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::CanvasGradient); SE_DECLARE_FUNC(js_engine_CanvasGradient_CanvasGradient); extern se::Object* __jsb_cc_CanvasRenderingContext2D_proto; -extern se::Class* __jsb_cc_CanvasRenderingContext2D_class; +extern se::Class* __jsb_cc_CanvasRenderingContext2D_class; bool js_register_cc_CanvasRenderingContext2D(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -119,7 +144,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::CanvasRenderingContext2D); SE_DECLARE_FUNC(js_engine_CanvasRenderingContext2D_CanvasRenderingContext2D); extern se::Object* __jsb_cc_Device_proto; -extern se::Class* __jsb_cc_Device_class; +extern se::Class* __jsb_cc_Device_class; bool js_register_cc_Device(se::Object* obj); bool register_all_engine(se::Object* obj); @@ -138,11 +163,10 @@ SE_DECLARE_FUNC(js_engine_Device_getNetworkType); SE_DECLARE_FUNC(js_engine_Device_getSafeAreaEdge); extern se::Object* __jsb_cc_SAXParser_proto; -extern se::Class* __jsb_cc_SAXParser_class; +extern se::Class* __jsb_cc_SAXParser_class; bool js_register_cc_SAXParser(se::Object* obj); bool register_all_engine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::SAXParser); SE_DECLARE_FUNC(js_engine_SAXParser_init); - diff --git a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp index c88dfd71d1..76807098ff 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp @@ -1,25 +1,50 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_dragonbones_auto.h" #if USE_DRAGONBONES > 0 -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/bindings/manual/jsb_global.h" -#include "editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/bindings/manual/jsb_global.h" + #include "editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" -#ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) -#endif + #ifndef JSB_ALLOC + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #endif -#ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr -#endif + #ifndef JSB_FREE + #define JSB_FREE(ptr) delete ptr + #endif se::Object* __jsb_dragonBones_BaseObject_proto = nullptr; -se::Class* __jsb_dragonBones_BaseObject_class = nullptr; +se::Class* __jsb_dragonBones_BaseObject_class = nullptr; static bool js_dragonbones_BaseObject_returnToPool(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseObject_returnToPool : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->returnToPool(); return true; @@ -31,11 +56,11 @@ SE_BIND_FUNC(js_dragonbones_BaseObject_returnToPool) static bool js_dragonbones_BaseObject_setMaxCount(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); @@ -50,9 +75,9 @@ SE_BIND_FUNC(js_dragonbones_BaseObject_setMaxCount) static bool js_dragonbones_BaseObject_clearPool(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::BaseObject::clearPool(); return true; @@ -69,8 +94,6 @@ static bool js_dragonbones_BaseObject_clearPool(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_dragonbones_BaseObject_clearPool) - - bool js_register_dragonbones_BaseObject(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BaseObject", obj, nullptr, nullptr); @@ -88,14 +111,14 @@ bool js_register_dragonbones_BaseObject(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_dragonBones_Rectangle_proto = nullptr; -se::Class* __jsb_dragonBones_Rectangle_class = nullptr; +se::Class* __jsb_dragonBones_Rectangle_class = nullptr; static bool js_dragonbones_Rectangle_clear(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Rectangle_clear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clear(); return true; @@ -116,13 +139,10 @@ static bool js_dragonbones_Rectangle_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_dragonbones_Rectangle_constructor, __jsb_dragonBones_Rectangle_class, js_dragonBones_Rectangle_finalize) - - static bool js_dragonBones_Rectangle_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -147,7 +167,7 @@ bool js_register_dragonbones_Rectangle(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_Matrix_proto = nullptr; -se::Class* __jsb_dragonBones_Matrix_class = nullptr; +se::Class* __jsb_dragonBones_Matrix_class = nullptr; static bool js_dragonbones_Matrix_get_a(se::State& s) // NOLINT(readability-identifier-naming) { @@ -155,7 +175,7 @@ static bool js_dragonbones_Matrix_get_a(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_a : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->a, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->a, s.thisObject(), s.rval()); @@ -166,7 +186,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_a) static bool js_dragonbones_Matrix_set_a(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_a : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -182,7 +202,7 @@ static bool js_dragonbones_Matrix_get_b(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_b : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->b, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->b, s.thisObject(), s.rval()); @@ -193,7 +213,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_b) static bool js_dragonbones_Matrix_set_b(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_b : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -209,7 +229,7 @@ static bool js_dragonbones_Matrix_get_c(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_c : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->c, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->c, s.thisObject(), s.rval()); @@ -220,7 +240,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_c) static bool js_dragonbones_Matrix_set_c(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_c : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -236,7 +256,7 @@ static bool js_dragonbones_Matrix_get_d(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_d : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->d, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->d, s.thisObject(), s.rval()); @@ -247,7 +267,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_d) static bool js_dragonbones_Matrix_set_d(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_d : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -263,7 +283,7 @@ static bool js_dragonbones_Matrix_get_tx(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_tx : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tx, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tx, s.thisObject(), s.rval()); @@ -274,7 +294,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_tx) static bool js_dragonbones_Matrix_set_tx(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_tx : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -290,7 +310,7 @@ static bool js_dragonbones_Matrix_get_ty(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_get_ty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->ty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->ty, s.thisObject(), s.rval()); @@ -301,7 +321,7 @@ SE_BIND_PROP_GET(js_dragonbones_Matrix_get_ty) static bool js_dragonbones_Matrix_set_ty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Matrix_set_ty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -311,8 +331,6 @@ static bool js_dragonbones_Matrix_set_ty(se::State& s) // NOLINT(readability-ide } SE_BIND_PROP_SET(js_dragonbones_Matrix_set_ty) - - bool js_register_dragonbones_Matrix(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Matrix", obj, nullptr, nullptr); @@ -333,13 +351,13 @@ bool js_register_dragonbones_Matrix(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_dragonBones_Transform_proto = nullptr; -se::Class* __jsb_dragonBones_Transform_class = nullptr; +se::Class* __jsb_dragonBones_Transform_class = nullptr; static bool js_dragonbones_Transform_normalizeRadian(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -361,7 +379,7 @@ static bool js_dragonbones_Transform_get_x(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -372,7 +390,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_x) static bool js_dragonbones_Transform_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -388,7 +406,7 @@ static bool js_dragonbones_Transform_get_y(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -399,7 +417,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_y) static bool js_dragonbones_Transform_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -415,7 +433,7 @@ static bool js_dragonbones_Transform_get_skew(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_skew : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skew, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skew, s.thisObject(), s.rval()); @@ -426,7 +444,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_skew) static bool js_dragonbones_Transform_set_skew(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_skew : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -442,7 +460,7 @@ static bool js_dragonbones_Transform_get_rotation(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_rotation : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->rotation, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->rotation, s.thisObject(), s.rval()); @@ -453,7 +471,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_rotation) static bool js_dragonbones_Transform_set_rotation(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_rotation : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -469,7 +487,7 @@ static bool js_dragonbones_Transform_get_scaleX(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_scaleX : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->scaleX, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->scaleX, s.thisObject(), s.rval()); @@ -480,7 +498,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_scaleX) static bool js_dragonbones_Transform_set_scaleX(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_scaleX : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -496,7 +514,7 @@ static bool js_dragonbones_Transform_get_scaleY(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_get_scaleY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->scaleY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->scaleY, s.thisObject(), s.rval()); @@ -507,7 +525,7 @@ SE_BIND_PROP_GET(js_dragonbones_Transform_get_scaleY) static bool js_dragonbones_Transform_set_scaleY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Transform_set_scaleY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -517,8 +535,6 @@ static bool js_dragonbones_Transform_set_scaleY(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_dragonbones_Transform_set_scaleY) - - bool js_register_dragonbones_Transform(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Transform", obj, nullptr, nullptr); @@ -540,15 +556,15 @@ bool js_register_dragonbones_Transform(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_TextureAtlasData_proto = nullptr; -se::Class* __jsb_dragonBones_TextureAtlasData_class = nullptr; +se::Class* __jsb_dragonBones_TextureAtlasData_class = nullptr; static bool js_dragonbones_TextureAtlasData_addTexture(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_addTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -565,9 +581,9 @@ static bool js_dragonbones_TextureAtlasData_createTexture(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_createTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::TextureData* result = cobj->createTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -584,9 +600,9 @@ static bool js_dragonbones_TextureAtlasData_getTexture(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_getTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -608,7 +624,7 @@ static bool js_dragonbones_TextureAtlasData_get_name(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -619,7 +635,7 @@ SE_BIND_PROP_GET(js_dragonbones_TextureAtlasData_get_name) static bool js_dragonbones_TextureAtlasData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureAtlasData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -629,8 +645,6 @@ static bool js_dragonbones_TextureAtlasData_set_name(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_dragonbones_TextureAtlasData_set_name) - - bool js_register_dragonbones_TextureAtlasData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TextureAtlasData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -649,15 +663,15 @@ bool js_register_dragonbones_TextureAtlasData(se::Object* obj) // NOLINT(readabi return true; } se::Object* __jsb_dragonBones_TextureData_proto = nullptr; -se::Class* __jsb_dragonBones_TextureData_class = nullptr; +se::Class* __jsb_dragonBones_TextureData_class = nullptr; static bool js_dragonbones_TextureData_getFrame(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_getFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::Rectangle* result = cobj->getFrame(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -674,9 +688,9 @@ static bool js_dragonbones_TextureData_getParent(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::TextureAtlasData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -693,9 +707,9 @@ static bool js_dragonbones_TextureData_getRegion(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_getRegion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Rectangle* result = cobj->getRegion(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -712,9 +726,9 @@ static bool js_dragonbones_TextureData_setFrame(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -731,9 +745,9 @@ static bool js_dragonbones_TextureData_setParent(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TextureData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -748,9 +762,9 @@ SE_BIND_FUNC(js_dragonbones_TextureData_setParent) static bool js_dragonbones_TextureData_createRectangle(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Rectangle* result = dragonBones::TextureData::createRectangle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -763,8 +777,6 @@ static bool js_dragonbones_TextureData_createRectangle(se::State& s) // NOLINT(r } SE_BIND_FUNC(js_dragonbones_TextureData_createRectangle) - - bool js_register_dragonbones_TextureData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TextureData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -785,15 +797,15 @@ bool js_register_dragonbones_TextureData(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_dragonBones_ArmatureData_proto = nullptr; -se::Class* __jsb_dragonBones_ArmatureData_class = nullptr; +se::Class* __jsb_dragonBones_ArmatureData_class = nullptr; static bool js_dragonbones_ArmatureData_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Rectangle* result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -810,9 +822,9 @@ static bool js_dragonbones_ArmatureData_getAnimation(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -832,9 +844,9 @@ static bool js_dragonbones_ArmatureData_getAnimationNames(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getAnimationNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAnimationNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -851,9 +863,9 @@ static bool js_dragonbones_ArmatureData_getBone(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -873,9 +885,9 @@ static bool js_dragonbones_ArmatureData_getDefaultAnimation(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getDefaultAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationData* result = cobj->getDefaultAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -892,9 +904,9 @@ static bool js_dragonbones_ArmatureData_getDefaultSkin(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::SkinData* result = cobj->getDefaultSkin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -911,9 +923,9 @@ static bool js_dragonbones_ArmatureData_getMesh(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -937,9 +949,9 @@ static bool js_dragonbones_ArmatureData_getParent(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::DragonBonesData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -956,9 +968,9 @@ static bool js_dragonbones_ArmatureData_getSkin(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -978,9 +990,9 @@ static bool js_dragonbones_ArmatureData_getSlot(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1000,9 +1012,9 @@ static bool js_dragonbones_ArmatureData_getType(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getType(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1019,9 +1031,9 @@ static bool js_dragonbones_ArmatureData_setDefaultAnimation(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setDefaultAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1038,9 +1050,9 @@ static bool js_dragonbones_ArmatureData_setDefaultSkin(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1057,9 +1069,9 @@ static bool js_dragonbones_ArmatureData_setParent(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1076,9 +1088,9 @@ static bool js_dragonbones_ArmatureData_setType(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_setType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1096,7 +1108,7 @@ static bool js_dragonbones_ArmatureData_sortBones(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_sortBones : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->sortBones(); return true; @@ -1112,7 +1124,7 @@ static bool js_dragonbones_ArmatureData_get_frameRate(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_get_frameRate : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameRate, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameRate, s.thisObject(), s.rval()); @@ -1123,7 +1135,7 @@ SE_BIND_PROP_GET(js_dragonbones_ArmatureData_get_frameRate) static bool js_dragonbones_ArmatureData_set_frameRate(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_set_frameRate : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1139,7 +1151,7 @@ static bool js_dragonbones_ArmatureData_get_name(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1150,7 +1162,7 @@ SE_BIND_PROP_GET(js_dragonbones_ArmatureData_get_name) static bool js_dragonbones_ArmatureData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1160,8 +1172,6 @@ static bool js_dragonbones_ArmatureData_set_name(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_dragonbones_ArmatureData_set_name) - - bool js_register_dragonbones_ArmatureData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ArmatureData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1194,15 +1204,15 @@ bool js_register_dragonbones_ArmatureData(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_dragonBones_BoneData_proto = nullptr; -se::Class* __jsb_dragonBones_BoneData_class = nullptr; +se::Class* __jsb_dragonBones_BoneData_class = nullptr; static bool js_dragonbones_BoneData_getParent(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::BoneData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1219,9 +1229,9 @@ static bool js_dragonbones_BoneData_getTransfrom(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_getTransfrom : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Transform* result = cobj->getTransfrom(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1238,9 +1248,9 @@ static bool js_dragonbones_BoneData_setParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1259,7 +1269,7 @@ static bool js_dragonbones_BoneData_get_name(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1270,7 +1280,7 @@ SE_BIND_PROP_GET(js_dragonbones_BoneData_get_name) static bool js_dragonbones_BoneData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1286,7 +1296,7 @@ static bool js_dragonbones_BoneData_get_parent(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_get_parent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->parent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->parent, s.thisObject(), s.rval()); @@ -1297,7 +1307,7 @@ SE_BIND_PROP_GET(js_dragonbones_BoneData_get_parent) static bool js_dragonbones_BoneData_set_parent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BoneData_set_parent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1307,8 +1317,6 @@ static bool js_dragonbones_BoneData_set_parent(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_dragonbones_BoneData_set_parent) - - bool js_register_dragonbones_BoneData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BoneData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1328,15 +1336,15 @@ bool js_register_dragonbones_BoneData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_SlotData_proto = nullptr; -se::Class* __jsb_dragonBones_SlotData_class = nullptr; +se::Class* __jsb_dragonBones_SlotData_class = nullptr; static bool js_dragonbones_SlotData_getBlendMode(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_getBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBlendMode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1353,9 +1361,9 @@ static bool js_dragonbones_SlotData_getParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::BoneData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1372,9 +1380,9 @@ static bool js_dragonbones_SlotData_setBlendMode(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_setBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1391,9 +1399,9 @@ static bool js_dragonbones_SlotData_setParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1412,7 +1420,7 @@ static bool js_dragonbones_SlotData_get_name(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1423,7 +1431,7 @@ SE_BIND_PROP_GET(js_dragonbones_SlotData_get_name) static bool js_dragonbones_SlotData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1439,7 +1447,7 @@ static bool js_dragonbones_SlotData_get_parent(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_get_parent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->parent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->parent, s.thisObject(), s.rval()); @@ -1450,7 +1458,7 @@ SE_BIND_PROP_GET(js_dragonbones_SlotData_get_parent) static bool js_dragonbones_SlotData_set_parent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SlotData_set_parent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1460,8 +1468,6 @@ static bool js_dragonbones_SlotData_set_parent(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_dragonbones_SlotData_set_parent) - - bool js_register_dragonbones_SlotData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SlotData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1482,15 +1488,15 @@ bool js_register_dragonbones_SlotData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_DragonBonesData_proto = nullptr; -se::Class* __jsb_dragonBones_DragonBonesData_class = nullptr; +se::Class* __jsb_dragonBones_DragonBonesData_class = nullptr; static bool js_dragonbones_DragonBonesData_addArmature(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_addArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1507,9 +1513,9 @@ static bool js_dragonbones_DragonBonesData_getArmature(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1529,9 +1535,9 @@ static bool js_dragonbones_DragonBonesData_getArmatureNames(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_getArmatureNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getArmatureNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1548,9 +1554,9 @@ static bool js_dragonbones_DragonBonesData_getFrameIndices(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_getFrameIndices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::vector* result = cobj->getFrameIndices(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1569,7 +1575,7 @@ static bool js_dragonbones_DragonBonesData_get_name(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1580,7 +1586,7 @@ SE_BIND_PROP_GET(js_dragonbones_DragonBonesData_get_name) static bool js_dragonbones_DragonBonesData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_DragonBonesData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1590,8 +1596,6 @@ static bool js_dragonbones_DragonBonesData_set_name(se::State& s) // NOLINT(read } SE_BIND_PROP_SET(js_dragonbones_DragonBonesData_set_name) - - bool js_register_dragonbones_DragonBonesData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("DragonBonesData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1611,7 +1615,7 @@ bool js_register_dragonbones_DragonBonesData(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_dragonBones_SkinData_proto = nullptr; -se::Class* __jsb_dragonBones_SkinData_class = nullptr; +se::Class* __jsb_dragonBones_SkinData_class = nullptr; static bool js_dragonbones_SkinData_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1619,7 +1623,7 @@ static bool js_dragonbones_SkinData_get_name(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_dragonbones_SkinData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1630,7 +1634,7 @@ SE_BIND_PROP_GET(js_dragonbones_SkinData_get_name) static bool js_dragonbones_SkinData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_SkinData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1640,8 +1644,6 @@ static bool js_dragonbones_SkinData_set_name(se::State& s) // NOLINT(readability } SE_BIND_PROP_SET(js_dragonbones_SkinData_set_name) - - bool js_register_dragonbones_SkinData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SkinData", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -1657,15 +1659,15 @@ bool js_register_dragonbones_SkinData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_AnimationData_proto = nullptr; -se::Class* __jsb_dragonBones_AnimationData_class = nullptr; +se::Class* __jsb_dragonBones_AnimationData_class = nullptr; static bool js_dragonbones_AnimationData_getBoneCachedFrameIndices(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getBoneCachedFrameIndices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1685,9 +1687,9 @@ static bool js_dragonbones_AnimationData_getParent(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::ArmatureData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1704,9 +1706,9 @@ static bool js_dragonbones_AnimationData_getSlotCachedFrameIndices(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getSlotCachedFrameIndices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1726,9 +1728,9 @@ static bool js_dragonbones_AnimationData_getZOrderTimeline(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_getZOrderTimeline : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::TimelineData* result = cobj->getZOrderTimeline(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1745,9 +1747,9 @@ static bool js_dragonbones_AnimationData_setParent(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1766,7 +1768,7 @@ static bool js_dragonbones_AnimationData_get_frameCount(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_frameCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameCount, s.thisObject(), s.rval()); @@ -1777,7 +1779,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_frameCount) static bool js_dragonbones_AnimationData_set_frameCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_frameCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1793,7 +1795,7 @@ static bool js_dragonbones_AnimationData_get_playTimes(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->playTimes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->playTimes, s.thisObject(), s.rval()); @@ -1804,7 +1806,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_playTimes) static bool js_dragonbones_AnimationData_set_playTimes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1820,7 +1822,7 @@ static bool js_dragonbones_AnimationData_get_duration(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_duration : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->duration, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->duration, s.thisObject(), s.rval()); @@ -1831,7 +1833,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_duration) static bool js_dragonbones_AnimationData_set_duration(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_duration : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1847,7 +1849,7 @@ static bool js_dragonbones_AnimationData_get_fadeInTime(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_fadeInTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fadeInTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fadeInTime, s.thisObject(), s.rval()); @@ -1858,7 +1860,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_fadeInTime) static bool js_dragonbones_AnimationData_set_fadeInTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_fadeInTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1874,7 +1876,7 @@ static bool js_dragonbones_AnimationData_get_name(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1885,7 +1887,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationData_get_name) static bool js_dragonbones_AnimationData_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationData_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1895,8 +1897,6 @@ static bool js_dragonbones_AnimationData_set_name(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_dragonbones_AnimationData_set_name) - - bool js_register_dragonbones_AnimationData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationData", obj, nullptr, nullptr); @@ -1921,15 +1921,15 @@ bool js_register_dragonbones_AnimationData(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_dragonBones_Armature_proto = nullptr; -se::Class* __jsb_dragonBones_Armature_class = nullptr; +se::Class* __jsb_dragonBones_Armature_class = nullptr; static bool js_dragonbones_Armature__addBone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature__addBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1946,9 +1946,9 @@ static bool js_dragonbones_Armature__addSlot(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature__addSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1965,12 +1965,12 @@ static bool js_dragonbones_Armature__bufferAction(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature__bufferAction : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Armature__bufferAction : Error processing arguments"); @@ -1986,9 +1986,9 @@ static bool js_dragonbones_Armature_advanceTime(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2005,9 +2005,9 @@ static bool js_dragonbones_Armature_containsPoint(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_containsPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2030,7 +2030,7 @@ static bool js_dragonbones_Armature_dispose(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_dispose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dispose(); return true; @@ -2044,9 +2044,9 @@ static bool js_dragonbones_Armature_getAnimation(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2063,9 +2063,9 @@ static bool js_dragonbones_Armature_getArmatureData(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getArmatureData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::ArmatureData* result = cobj->getArmatureData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2082,9 +2082,9 @@ static bool js_dragonbones_Armature_getBone(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2104,9 +2104,9 @@ static bool js_dragonbones_Armature_getCacheFrameRate(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getCacheFrameRate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getCacheFrameRate(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2123,9 +2123,9 @@ static bool js_dragonbones_Armature_getClock(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = cobj->getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2142,9 +2142,9 @@ static bool js_dragonbones_Armature_getEventDispatcher(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getEventDispatcher : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::IEventDispatcher* result = cobj->getEventDispatcher(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2161,9 +2161,9 @@ static bool js_dragonbones_Armature_getFlipX(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getFlipX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getFlipX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2180,9 +2180,9 @@ static bool js_dragonbones_Armature_getFlipY(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getFlipY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getFlipY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2199,9 +2199,9 @@ static bool js_dragonbones_Armature_getName(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2218,9 +2218,9 @@ static bool js_dragonbones_Armature_getParent(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Slot* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2237,9 +2237,9 @@ static bool js_dragonbones_Armature_getProxy(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getProxy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::IArmatureProxy* result = cobj->getProxy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2256,9 +2256,9 @@ static bool js_dragonbones_Armature_getSlot(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_getSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2278,9 +2278,9 @@ static bool js_dragonbones_Armature_invalidUpdate(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_invalidUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->invalidUpdate(); return true; @@ -2294,7 +2294,7 @@ static bool js_dragonbones_Armature_invalidUpdate(se::State& s) // NOLINT(readab } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Armature_invalidUpdate : Error processing arguments"); @@ -2311,7 +2311,7 @@ static bool js_dragonbones_Armature_render(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_render : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->render(); return true; @@ -2325,9 +2325,9 @@ static bool js_dragonbones_Armature_setCacheFrameRate(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setCacheFrameRate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2344,9 +2344,9 @@ static bool js_dragonbones_Armature_setClock(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2363,9 +2363,9 @@ static bool js_dragonbones_Armature_setFlipX(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setFlipX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2382,9 +2382,9 @@ static bool js_dragonbones_Armature_setFlipY(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Armature_setFlipY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2397,8 +2397,6 @@ static bool js_dragonbones_Armature_setFlipY(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_dragonbones_Armature_setFlipY) - - bool js_register_dragonbones_Armature(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Armature", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -2437,15 +2435,15 @@ bool js_register_dragonbones_Armature(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_dragonBones_TransformObject_proto = nullptr; -se::Class* __jsb_dragonBones_TransformObject_class = nullptr; +se::Class* __jsb_dragonBones_TransformObject_class = nullptr; static bool js_dragonbones_TransformObject_getArmature(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2462,9 +2460,9 @@ static bool js_dragonbones_TransformObject_getGlobal(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getGlobal : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Transform* result = cobj->getGlobal(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2481,9 +2479,9 @@ static bool js_dragonbones_TransformObject_getGlobalTransformMatrix(se::State& s { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getGlobalTransformMatrix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Matrix* result = cobj->getGlobalTransformMatrix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2500,9 +2498,9 @@ static bool js_dragonbones_TransformObject_getOffset(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Transform* result = cobj->getOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2519,9 +2517,9 @@ static bool js_dragonbones_TransformObject_getOrigin(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_getOrigin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::Transform* result = cobj->getOrigin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2539,7 +2537,7 @@ static bool js_dragonbones_TransformObject_updateGlobalTransform(se::State& s) / auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_TransformObject_updateGlobalTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateGlobalTransform(); return true; @@ -2549,8 +2547,6 @@ static bool js_dragonbones_TransformObject_updateGlobalTransform(se::State& s) / } SE_BIND_FUNC(js_dragonbones_TransformObject_updateGlobalTransform) - - bool js_register_dragonbones_TransformObject(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformObject", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -2571,15 +2567,15 @@ bool js_register_dragonbones_TransformObject(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_dragonBones_AnimationState_proto = nullptr; -se::Class* __jsb_dragonBones_AnimationState_class = nullptr; +se::Class* __jsb_dragonBones_AnimationState_class = nullptr; static bool js_dragonbones_AnimationState_addBoneMask(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_addBoneMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2589,7 +2585,7 @@ static bool js_dragonbones_AnimationState_addBoneMask(se::State& s) // NOLINT(re } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_AnimationState_addBoneMask : Error processing arguments"); @@ -2605,9 +2601,9 @@ static bool js_dragonbones_AnimationState_advanceTime(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2626,9 +2622,9 @@ static bool js_dragonbones_AnimationState_containsBoneMask(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_containsBoneMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2648,9 +2644,9 @@ static bool js_dragonbones_AnimationState_fadeOut(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_fadeOut : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2660,7 +2656,7 @@ static bool js_dragonbones_AnimationState_fadeOut(se::State& s) // NOLINT(readab } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_AnimationState_fadeOut : Error processing arguments"); @@ -2676,9 +2672,9 @@ static bool js_dragonbones_AnimationState_getAnimationData(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getAnimationData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::AnimationData* result = cobj->getAnimationData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2695,9 +2691,9 @@ static bool js_dragonbones_AnimationState_getCurrentPlayTimes(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getCurrentPlayTimes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getCurrentPlayTimes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2714,9 +2710,9 @@ static bool js_dragonbones_AnimationState_getCurrentTime(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getCurrentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getCurrentTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2733,9 +2729,9 @@ static bool js_dragonbones_AnimationState_getName(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2752,9 +2748,9 @@ static bool js_dragonbones_AnimationState_getTotalTime(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_getTotalTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTotalTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2771,9 +2767,9 @@ static bool js_dragonbones_AnimationState_isCompleted(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isCompleted : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isCompleted(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2790,9 +2786,9 @@ static bool js_dragonbones_AnimationState_isFadeComplete(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isFadeComplete : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isFadeComplete(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2809,9 +2805,9 @@ static bool js_dragonbones_AnimationState_isFadeIn(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isFadeIn : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isFadeIn(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2828,9 +2824,9 @@ static bool js_dragonbones_AnimationState_isFadeOut(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isFadeOut : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isFadeOut(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2847,9 +2843,9 @@ static bool js_dragonbones_AnimationState_isPlaying(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_isPlaying : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isPlaying(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2867,7 +2863,7 @@ static bool js_dragonbones_AnimationState_play(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_play : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->play(); return true; @@ -2882,7 +2878,7 @@ static bool js_dragonbones_AnimationState_removeAllBoneMask(se::State& s) // NOL auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_removeAllBoneMask : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeAllBoneMask(); return true; @@ -2896,9 +2892,9 @@ static bool js_dragonbones_AnimationState_removeBoneMask(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_removeBoneMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2908,7 +2904,7 @@ static bool js_dragonbones_AnimationState_removeBoneMask(se::State& s) // NOLINT } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_AnimationState_removeBoneMask : Error processing arguments"); @@ -2924,9 +2920,9 @@ static bool js_dragonbones_AnimationState_setCurrentTime(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_setCurrentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2944,7 +2940,7 @@ static bool js_dragonbones_AnimationState_stop(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_stop : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stop(); return true; @@ -2960,7 +2956,7 @@ static bool js_dragonbones_AnimationState_get_additiveBlending(se::State& s) // SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_additiveBlending : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->additiveBlending, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->additiveBlending, s.thisObject(), s.rval()); @@ -2971,7 +2967,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_additiveBlending) static bool js_dragonbones_AnimationState_set_additiveBlending(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_additiveBlending : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2987,7 +2983,7 @@ static bool js_dragonbones_AnimationState_get_displayControl(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_displayControl : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->displayControl, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->displayControl, s.thisObject(), s.rval()); @@ -2998,7 +2994,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_displayControl) static bool js_dragonbones_AnimationState_set_displayControl(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_displayControl : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3014,7 +3010,7 @@ static bool js_dragonbones_AnimationState_get_playTimes(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->playTimes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->playTimes, s.thisObject(), s.rval()); @@ -3025,7 +3021,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_playTimes) static bool js_dragonbones_AnimationState_set_playTimes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_playTimes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3041,7 +3037,7 @@ static bool js_dragonbones_AnimationState_get_timeScale(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->timeScale, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->timeScale, s.thisObject(), s.rval()); @@ -3052,7 +3048,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_timeScale) static bool js_dragonbones_AnimationState_set_timeScale(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3068,7 +3064,7 @@ static bool js_dragonbones_AnimationState_get_weight(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_weight : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->weight, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->weight, s.thisObject(), s.rval()); @@ -3079,7 +3075,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_weight) static bool js_dragonbones_AnimationState_set_weight(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_weight : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3095,7 +3091,7 @@ static bool js_dragonbones_AnimationState_get_autoFadeOutTime(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_autoFadeOutTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->autoFadeOutTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->autoFadeOutTime, s.thisObject(), s.rval()); @@ -3106,7 +3102,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_autoFadeOutTime) static bool js_dragonbones_AnimationState_set_autoFadeOutTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_autoFadeOutTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3122,7 +3118,7 @@ static bool js_dragonbones_AnimationState_get_fadeTotalTime(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_fadeTotalTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fadeTotalTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fadeTotalTime, s.thisObject(), s.rval()); @@ -3133,7 +3129,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_fadeTotalTime) static bool js_dragonbones_AnimationState_set_fadeTotalTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_fadeTotalTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3149,7 +3145,7 @@ static bool js_dragonbones_AnimationState_get_name(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -3160,7 +3156,7 @@ SE_BIND_PROP_GET(js_dragonbones_AnimationState_get_name) static bool js_dragonbones_AnimationState_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_AnimationState_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3170,8 +3166,6 @@ static bool js_dragonbones_AnimationState_set_name(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_dragonbones_AnimationState_set_name) - - bool js_register_dragonbones_AnimationState(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationState", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -3213,15 +3207,15 @@ bool js_register_dragonbones_AnimationState(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_dragonBones_Bone_proto = nullptr; -se::Class* __jsb_dragonBones_Bone_class = nullptr; +se::Class* __jsb_dragonBones_Bone_class = nullptr; static bool js_dragonbones_Bone_contains(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_contains : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3241,9 +3235,9 @@ static bool js_dragonbones_Bone_getBoneData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getBoneData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::BoneData* result = cobj->getBoneData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3260,9 +3254,9 @@ static bool js_dragonbones_Bone_getName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3279,9 +3273,9 @@ static bool js_dragonbones_Bone_getOffsetMode(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getOffsetMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOffsetMode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3298,9 +3292,9 @@ static bool js_dragonbones_Bone_getParent(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Bone* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3317,9 +3311,9 @@ static bool js_dragonbones_Bone_getVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_getVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getVisible(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3336,12 +3330,12 @@ static bool js_dragonbones_Bone_init(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_init : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Bone_init : Error processing arguments"); @@ -3358,7 +3352,7 @@ static bool js_dragonbones_Bone_invalidUpdate(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_invalidUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->invalidUpdate(); return true; @@ -3372,9 +3366,9 @@ static bool js_dragonbones_Bone_setOffsetMode(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_setOffsetMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3391,9 +3385,9 @@ static bool js_dragonbones_Bone_setVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3410,9 +3404,9 @@ static bool js_dragonbones_Bone_update(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3430,7 +3424,7 @@ static bool js_dragonbones_Bone_updateByConstraint(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Bone_updateByConstraint : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateByConstraint(); return true; @@ -3440,8 +3434,6 @@ static bool js_dragonbones_Bone_updateByConstraint(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_dragonbones_Bone_updateByConstraint) - - bool js_register_dragonbones_Bone(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Bone", obj, __jsb_dragonBones_TransformObject_proto, nullptr); @@ -3468,15 +3460,15 @@ bool js_register_dragonbones_Bone(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_dragonBones_Slot_proto = nullptr; -se::Class* __jsb_dragonBones_Slot_class = nullptr; +se::Class* __jsb_dragonBones_Slot_class = nullptr; static bool js_dragonbones_Slot__setZorder(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot__setZorder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3497,7 +3489,7 @@ static bool js_dragonbones_Slot__updateColor(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot__updateColor : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->_updateColor(); return true; @@ -3511,9 +3503,9 @@ static bool js_dragonbones_Slot_containsPoint(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_containsPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3535,9 +3527,9 @@ static bool js_dragonbones_Slot_getBoundingBoxData(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getBoundingBoxData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::BoundingBoxData* result = cobj->getBoundingBoxData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3554,9 +3546,9 @@ static bool js_dragonbones_Slot_getChildArmature(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getChildArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getChildArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3573,9 +3565,9 @@ static bool js_dragonbones_Slot_getName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3592,9 +3584,9 @@ static bool js_dragonbones_Slot_getParent(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Bone* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3611,9 +3603,9 @@ static bool js_dragonbones_Slot_getSlotData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getSlotData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const dragonBones::SlotData* result = cobj->getSlotData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3630,9 +3622,9 @@ static bool js_dragonbones_Slot_getVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_getVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getVisible(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3650,7 +3642,7 @@ static bool js_dragonbones_Slot_invalidUpdate(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_invalidUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->invalidUpdate(); return true; @@ -3664,9 +3656,9 @@ static bool js_dragonbones_Slot_setChildArmature(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_setChildArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3683,9 +3675,9 @@ static bool js_dragonbones_Slot_setVisible(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3702,9 +3694,9 @@ static bool js_dragonbones_Slot_update(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3722,7 +3714,7 @@ static bool js_dragonbones_Slot_updateTransformAndMatrix(se::State& s) // NOLINT auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_updateTransformAndMatrix : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateTransformAndMatrix(); return true; @@ -3738,7 +3730,7 @@ static bool js_dragonbones_Slot_get_displayController(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_get_displayController : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->displayController, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->displayController, s.thisObject(), s.rval()); @@ -3749,7 +3741,7 @@ SE_BIND_PROP_GET(js_dragonbones_Slot_get_displayController) static bool js_dragonbones_Slot_set_displayController(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_set_displayController : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3765,7 +3757,7 @@ static bool js_dragonbones_Slot_get__zOrder(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_get__zOrder : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->_zOrder, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->_zOrder, s.thisObject(), s.rval()); @@ -3776,7 +3768,7 @@ SE_BIND_PROP_GET(js_dragonbones_Slot_get__zOrder) static bool js_dragonbones_Slot_set__zOrder(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Slot_set__zOrder : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3786,8 +3778,6 @@ static bool js_dragonbones_Slot_set__zOrder(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_dragonbones_Slot_set__zOrder) - - bool js_register_dragonbones_Slot(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Slot", obj, __jsb_dragonBones_TransformObject_proto, nullptr); @@ -3818,15 +3808,15 @@ bool js_register_dragonbones_Slot(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_dragonBones_WorldClock_proto = nullptr; -se::Class* __jsb_dragonBones_WorldClock_class = nullptr; +se::Class* __jsb_dragonBones_WorldClock_class = nullptr; static bool js_dragonbones_WorldClock_advanceTime(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3844,7 +3834,7 @@ static bool js_dragonbones_WorldClock_clear(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_clear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clear(); return true; @@ -3858,9 +3848,9 @@ static bool js_dragonbones_WorldClock_getClock(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_getClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = cobj->getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3878,7 +3868,7 @@ static bool js_dragonbones_WorldClock_render(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_render : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->render(); return true; @@ -3892,9 +3882,9 @@ static bool js_dragonbones_WorldClock_setClock(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_WorldClock_setClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3909,9 +3899,9 @@ SE_BIND_FUNC(js_dragonbones_WorldClock_setClock) static bool js_dragonbones_WorldClock_getStaticClock(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = dragonBones::WorldClock::getStaticClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3924,8 +3914,6 @@ static bool js_dragonbones_WorldClock_getStaticClock(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_dragonbones_WorldClock_getStaticClock) - - bool js_register_dragonbones_WorldClock(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("WorldClock", obj, nullptr, nullptr); @@ -3946,15 +3934,15 @@ bool js_register_dragonbones_WorldClock(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_dragonBones_Animation_proto = nullptr; -se::Class* __jsb_dragonBones_Animation_class = nullptr; +se::Class* __jsb_dragonBones_Animation_class = nullptr; static bool js_dragonbones_Animation_advanceTime(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_advanceTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3971,9 +3959,9 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_fadeIn : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3986,7 +3974,7 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_fadeIn : Error processing arguments"); @@ -3998,8 +3986,8 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4012,9 +4000,9 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4028,9 +4016,9 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- } if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4045,11 +4033,11 @@ static bool js_dragonbones_Animation_fadeIn(se::State& s) // NOLINT(readability- return true; } if (argc == 6) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4073,9 +4061,9 @@ static bool js_dragonbones_Animation_getAnimationNames(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getAnimationNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAnimationNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4092,9 +4080,9 @@ static bool js_dragonbones_Animation_getLastAnimationName(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getLastAnimationName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getLastAnimationName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4111,9 +4099,9 @@ static bool js_dragonbones_Animation_getLastAnimationState(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getLastAnimationState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationState* result = cobj->getLastAnimationState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4130,9 +4118,9 @@ static bool js_dragonbones_Animation_getState(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_getState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4152,9 +4140,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByFrame(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndPlayByFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4166,7 +4154,7 @@ static bool js_dragonbones_Animation_gotoAndPlayByFrame(se::State& s) // NOLINT( return true; } if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4178,9 +4166,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByFrame(se::State& s) // NOLINT( return true; } if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4200,9 +4188,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByProgress(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndPlayByProgress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4215,7 +4203,7 @@ static bool js_dragonbones_Animation_gotoAndPlayByProgress(se::State& s) // NOLI } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndPlayByProgress : Error processing arguments"); @@ -4227,8 +4215,8 @@ static bool js_dragonbones_Animation_gotoAndPlayByProgress(se::State& s) // NOLI } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4248,9 +4236,9 @@ static bool js_dragonbones_Animation_gotoAndPlayByTime(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndPlayByTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4263,7 +4251,7 @@ static bool js_dragonbones_Animation_gotoAndPlayByTime(se::State& s) // NOLINT(r } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndPlayByTime : Error processing arguments"); @@ -4275,8 +4263,8 @@ static bool js_dragonbones_Animation_gotoAndPlayByTime(se::State& s) // NOLINT(r } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4296,9 +4284,9 @@ static bool js_dragonbones_Animation_gotoAndStopByFrame(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndStopByFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4310,7 +4298,7 @@ static bool js_dragonbones_Animation_gotoAndStopByFrame(se::State& s) // NOLINT( return true; } if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -4330,9 +4318,9 @@ static bool js_dragonbones_Animation_gotoAndStopByProgress(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndStopByProgress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4345,7 +4333,7 @@ static bool js_dragonbones_Animation_gotoAndStopByProgress(se::State& s) // NOLI } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndStopByProgress : Error processing arguments"); @@ -4364,9 +4352,9 @@ static bool js_dragonbones_Animation_gotoAndStopByTime(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_gotoAndStopByTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4379,7 +4367,7 @@ static bool js_dragonbones_Animation_gotoAndStopByTime(se::State& s) // NOLINT(r } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_gotoAndStopByTime : Error processing arguments"); @@ -4398,9 +4386,9 @@ static bool js_dragonbones_Animation_hasAnimation(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_hasAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4420,9 +4408,9 @@ static bool js_dragonbones_Animation_init(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_init : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4439,9 +4427,9 @@ static bool js_dragonbones_Animation_isCompleted(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_isCompleted : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isCompleted(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4458,9 +4446,9 @@ static bool js_dragonbones_Animation_isPlaying(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_isPlaying : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isPlaying(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4477,9 +4465,9 @@ static bool js_dragonbones_Animation_play(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_play : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationState* result = cobj->play(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4499,7 +4487,7 @@ static bool js_dragonbones_Animation_play(se::State& s) // NOLINT(readability-id } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_Animation_play : Error processing arguments"); @@ -4519,7 +4507,7 @@ static bool js_dragonbones_Animation_reset(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_reset : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->reset(); return true; @@ -4533,9 +4521,9 @@ static bool js_dragonbones_Animation_stop(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_stop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4554,7 +4542,7 @@ static bool js_dragonbones_Animation_get_timeScale(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_get_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->timeScale, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->timeScale, s.thisObject(), s.rval()); @@ -4565,7 +4553,7 @@ SE_BIND_PROP_GET(js_dragonbones_Animation_get_timeScale) static bool js_dragonbones_Animation_set_timeScale(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_Animation_set_timeScale : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4575,8 +4563,6 @@ static bool js_dragonbones_Animation_set_timeScale(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_dragonbones_Animation_set_timeScale) - - bool js_register_dragonbones_Animation(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Animation", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -4611,15 +4597,15 @@ bool js_register_dragonbones_Animation(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_EventObject_proto = nullptr; -se::Class* __jsb_dragonBones_EventObject_class = nullptr; +se::Class* __jsb_dragonBones_EventObject_class = nullptr; static bool js_dragonbones_EventObject_getAnimationState(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getAnimationState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::AnimationState* result = cobj->getAnimationState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4636,9 +4622,9 @@ static bool js_dragonbones_EventObject_getArmature(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4655,9 +4641,9 @@ static bool js_dragonbones_EventObject_getBone(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Bone* result = cobj->getBone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4674,9 +4660,9 @@ static bool js_dragonbones_EventObject_getSlot(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_getSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Slot* result = cobj->getSlot(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4695,7 +4681,7 @@ static bool js_dragonbones_EventObject_get_type(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -4706,7 +4692,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_type) static bool js_dragonbones_EventObject_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4722,7 +4708,7 @@ static bool js_dragonbones_EventObject_get_name(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -4733,7 +4719,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_name) static bool js_dragonbones_EventObject_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4749,7 +4735,7 @@ static bool js_dragonbones_EventObject_get_armature(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_armature : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->armature, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->armature, s.thisObject(), s.rval()); @@ -4760,7 +4746,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_armature) static bool js_dragonbones_EventObject_set_armature(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_armature : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4776,7 +4762,7 @@ static bool js_dragonbones_EventObject_get_bone(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_bone : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bone, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bone, s.thisObject(), s.rval()); @@ -4787,7 +4773,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_bone) static bool js_dragonbones_EventObject_set_bone(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_bone : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4803,7 +4789,7 @@ static bool js_dragonbones_EventObject_get_slot(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_slot : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->slot, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->slot, s.thisObject(), s.rval()); @@ -4814,7 +4800,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_slot) static bool js_dragonbones_EventObject_set_slot(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_slot : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4830,7 +4816,7 @@ static bool js_dragonbones_EventObject_get_animationState(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_get_animationState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->animationState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->animationState, s.thisObject(), s.rval()); @@ -4841,7 +4827,7 @@ SE_BIND_PROP_GET(js_dragonbones_EventObject_get_animationState) static bool js_dragonbones_EventObject_set_animationState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_EventObject_set_animationState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4851,8 +4837,6 @@ static bool js_dragonbones_EventObject_set_animationState(se::State& s) // NOLIN } SE_BIND_PROP_SET(js_dragonbones_EventObject_set_animationState) - - bool js_register_dragonbones_EventObject(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("EventObject", obj, __jsb_dragonBones_BaseObject_proto, nullptr); @@ -4877,15 +4861,15 @@ bool js_register_dragonbones_EventObject(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_dragonBones_BaseFactory_proto = nullptr; -se::Class* __jsb_dragonBones_BaseFactory_class = nullptr; +se::Class* __jsb_dragonBones_BaseFactory_class = nullptr; static bool js_dragonbones_BaseFactory_addDragonBonesData(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_addDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4895,7 +4879,7 @@ static bool js_dragonbones_BaseFactory_addDragonBonesData(se::State& s) // NOLIN } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_addDragonBonesData : Error processing arguments"); @@ -4911,9 +4895,9 @@ static bool js_dragonbones_BaseFactory_addTextureAtlasData(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_addTextureAtlasData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4923,7 +4907,7 @@ static bool js_dragonbones_BaseFactory_addTextureAtlasData(se::State& s) // NOLI } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_addTextureAtlasData : Error processing arguments"); @@ -4939,9 +4923,9 @@ static bool js_dragonbones_BaseFactory_buildArmature(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_buildArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5003,12 +4987,12 @@ static bool js_dragonbones_BaseFactory_changeSkin(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_changeSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType, true> arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5029,9 +5013,9 @@ static bool js_dragonbones_BaseFactory_clear(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_clear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->clear(); return true; @@ -5052,9 +5036,9 @@ static bool js_dragonbones_BaseFactory_getArmatureData(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_getArmatureData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5086,9 +5070,9 @@ static bool js_dragonbones_BaseFactory_getClock(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_getClock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = cobj->getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5105,9 +5089,9 @@ static bool js_dragonbones_BaseFactory_getDragonBonesData(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_getDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5127,9 +5111,9 @@ static bool js_dragonbones_BaseFactory_parseDragonBonesData(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_parseDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5142,7 +5126,7 @@ static bool js_dragonbones_BaseFactory_parseDragonBonesData(se::State& s) // NOL } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_parseDragonBonesData : Error processing arguments"); @@ -5154,8 +5138,8 @@ static bool js_dragonbones_BaseFactory_parseDragonBonesData(se::State& s) // NOL } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -5175,9 +5159,9 @@ static bool js_dragonbones_BaseFactory_removeDragonBonesData(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_removeDragonBonesData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5187,7 +5171,7 @@ static bool js_dragonbones_BaseFactory_removeDragonBonesData(se::State& s) // NO } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_removeDragonBonesData : Error processing arguments"); @@ -5203,9 +5187,9 @@ static bool js_dragonbones_BaseFactory_removeTextureAtlasData(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_removeTextureAtlasData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5215,7 +5199,7 @@ static bool js_dragonbones_BaseFactory_removeTextureAtlasData(se::State& s) // N } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_BaseFactory_removeTextureAtlasData : Error processing arguments"); @@ -5231,11 +5215,11 @@ static bool js_dragonbones_BaseFactory_replaceAnimation(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_replaceAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5247,9 +5231,9 @@ static bool js_dragonbones_BaseFactory_replaceAnimation(se::State& s) // NOLINT( return true; } if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -5269,13 +5253,13 @@ static bool js_dragonbones_BaseFactory_replaceSkin(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_replaceSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; HolderType, true> arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5297,14 +5281,14 @@ static bool js_dragonbones_BaseFactory_replaceSlotDisplay(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_BaseFactory_replaceSlotDisplay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5319,12 +5303,12 @@ static bool js_dragonbones_BaseFactory_replaceSlotDisplay(se::State& s) // NOLIN return true; } if (argc == 6) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -5343,8 +5327,6 @@ static bool js_dragonbones_BaseFactory_replaceSlotDisplay(se::State& s) // NOLIN } SE_BIND_FUNC(js_dragonbones_BaseFactory_replaceSlotDisplay) - - bool js_register_dragonbones_BaseFactory(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BaseFactory", obj, nullptr, nullptr); @@ -5373,14 +5355,14 @@ bool js_register_dragonbones_BaseFactory(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_dragonBones_CCSlot_proto = nullptr; -se::Class* __jsb_dragonBones_CCSlot_class = nullptr; +se::Class* __jsb_dragonBones_CCSlot_class = nullptr; static bool js_dragonbones_CCSlot_updateWorldMatrix(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCSlot_updateWorldMatrix : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldMatrix(); return true; @@ -5390,8 +5372,6 @@ static bool js_dragonbones_CCSlot_updateWorldMatrix(se::State& s) // NOLINT(read } SE_BIND_FUNC(js_dragonbones_CCSlot_updateWorldMatrix) - - bool js_register_dragonbones_CCSlot(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("CCSlot", obj, __jsb_dragonBones_Slot_proto, nullptr); @@ -5407,49 +5387,45 @@ bool js_register_dragonbones_CCSlot(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_dragonBones_CCArmatureDisplay_proto = nullptr; -se::Class* __jsb_dragonBones_CCArmatureDisplay_class = nullptr; +se::Class* __jsb_dragonBones_CCArmatureDisplay_class = nullptr; static bool js_dragonbones_CCArmatureDisplay_addDBEventListener(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_addDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureDisplay_addDBEventListener : Error processing arguments"); cobj->addDBEventListener(arg0.value(), arg1.value()); return true; @@ -5463,9 +5439,9 @@ static bool js_dragonbones_CCArmatureDisplay_getArmature(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5482,9 +5458,9 @@ static bool js_dragonbones_CCArmatureDisplay_convertToRootSpace(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_convertToRootSpace : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -5507,7 +5483,7 @@ static bool js_dragonbones_CCArmatureDisplay_dbClear(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbClear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dbClear(); return true; @@ -5521,9 +5497,9 @@ static bool js_dragonbones_CCArmatureDisplay_dbInit(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbInit : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5541,7 +5517,7 @@ static bool js_dragonbones_CCArmatureDisplay_dbRender(se::State& s) // NOLINT(re auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbRender : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dbRender(); return true; @@ -5556,7 +5532,7 @@ static bool js_dragonbones_CCArmatureDisplay_dbUpdate(se::State& s) // NOLINT(re auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dbUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dbUpdate(); return true; @@ -5570,11 +5546,11 @@ static bool js_dragonbones_CCArmatureDisplay_dispatchDBEvent(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dispatchDBEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5591,9 +5567,9 @@ static bool js_dragonbones_CCArmatureDisplay_dispose(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_dispose : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->dispose(); return true; @@ -5614,9 +5590,9 @@ static bool js_dragonbones_CCArmatureDisplay_getAnimation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5633,9 +5609,9 @@ static bool js_dragonbones_CCArmatureDisplay_getDebugData(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getDebugData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getDebugData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5652,9 +5628,9 @@ static bool js_dragonbones_CCArmatureDisplay_getParamsBuffer(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5671,9 +5647,9 @@ static bool js_dragonbones_CCArmatureDisplay_getRootDisplay(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getRootDisplay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::CCArmatureDisplay* result = cobj->getRootDisplay(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5690,9 +5666,9 @@ static bool js_dragonbones_CCArmatureDisplay_getSharedBufferOffset(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5709,9 +5685,9 @@ static bool js_dragonbones_CCArmatureDisplay_hasDBEventListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_hasDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5731,43 +5707,39 @@ static bool js_dragonbones_CCArmatureDisplay_removeDBEventListener(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_removeDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureDisplay_removeDBEventListener : Error processing arguments"); cobj->removeDBEventListener(arg0.value(), arg1.value()); return true; @@ -5781,9 +5753,9 @@ static bool js_dragonbones_CCArmatureDisplay_setAttachEnabled(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5800,9 +5772,9 @@ static bool js_dragonbones_CCArmatureDisplay_setBatchEnabled(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5819,9 +5791,9 @@ static bool js_dragonbones_CCArmatureDisplay_setColor(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -5844,41 +5816,37 @@ static bool js_dragonbones_CCArmatureDisplay_setDBEventCallback(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setDBEventCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureDisplay_setDBEventCallback : Error processing arguments"); cobj->setDBEventCallback(arg0.value()); return true; @@ -5892,9 +5860,9 @@ static bool js_dragonbones_CCArmatureDisplay_setDebugBonesEnabled(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setDebugBonesEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5911,9 +5879,9 @@ static bool js_dragonbones_CCArmatureDisplay_setOpacityModifyRGB(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureDisplay_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5928,9 +5896,9 @@ SE_BIND_FUNC(js_dragonbones_CCArmatureDisplay_setOpacityModifyRGB) static bool js_dragonbones_CCArmatureDisplay_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = dragonBones::CCArmatureDisplay::create(); result->retain(); @@ -5954,11 +5922,9 @@ static bool js_dragonbones_CCArmatureDisplay_constructor(se::State& s) // NOLINT } SE_BIND_CTOR(js_dragonbones_CCArmatureDisplay_constructor, __jsb_dragonBones_CCArmatureDisplay_class, js_dragonBones_CCArmatureDisplay_finalize) - - static bool js_dragonBones_CCArmatureDisplay_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -6002,15 +5968,15 @@ bool js_register_dragonbones_CCArmatureDisplay(se::Object* obj) // NOLINT(readab return true; } se::Object* __jsb_dragonBones_ArmatureCacheMgr_proto = nullptr; -se::Class* __jsb_dragonBones_ArmatureCacheMgr_class = nullptr; +se::Class* __jsb_dragonBones_ArmatureCacheMgr_class = nullptr; static bool js_dragonbones_ArmatureCacheMgr_buildArmatureCache(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureCacheMgr_buildArmatureCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -6034,9 +6000,9 @@ static bool js_dragonbones_ArmatureCacheMgr_removeArmatureCache(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_ArmatureCacheMgr_removeArmatureCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6051,9 +6017,9 @@ SE_BIND_FUNC(js_dragonbones_ArmatureCacheMgr_removeArmatureCache) static bool js_dragonbones_ArmatureCacheMgr_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::ArmatureCacheMgr* result = dragonBones::ArmatureCacheMgr::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6069,7 +6035,7 @@ SE_BIND_FUNC(js_dragonbones_ArmatureCacheMgr_getInstance) static bool js_dragonbones_ArmatureCacheMgr_destroyInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { dragonBones::ArmatureCacheMgr::destroyInstance(); return true; @@ -6079,12 +6045,10 @@ static bool js_dragonbones_ArmatureCacheMgr_destroyInstance(se::State& s) // NOL } SE_BIND_FUNC(js_dragonbones_ArmatureCacheMgr_destroyInstance) - static bool js_dragonBones_ArmatureCacheMgr_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6112,15 +6076,15 @@ bool js_register_dragonbones_ArmatureCacheMgr(se::Object* obj) // NOLINT(readabi return true; } se::Object* __jsb_dragonBones_CCArmatureCacheDisplay_proto = nullptr; -se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class = nullptr; +se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class = nullptr; static bool js_dragonbones_CCArmatureCacheDisplay_addDBEventListener(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_addDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6137,9 +6101,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getArmature(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getArmature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Armature* result = cobj->getArmature(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6157,7 +6121,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_beginSchedule(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_beginSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginSchedule(); return true; @@ -6171,11 +6135,11 @@ static bool js_dragonbones_CCArmatureCacheDisplay_dispatchDBEvent(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_dispatchDBEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -6193,7 +6157,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_dispose(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_dispose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dispose(); return true; @@ -6207,9 +6171,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getAnimation(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6226,9 +6190,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getParamsBuffer(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6245,9 +6209,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getSharedBufferOffset(se::Stat { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6264,9 +6228,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_getTimeScale(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6284,7 +6248,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_onDisable(se::State& s) // NOL auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -6299,7 +6263,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_onEnable(se::State& s) // NOLI auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -6313,12 +6277,12 @@ static bool js_dragonbones_CCArmatureCacheDisplay_playAnimation(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_playAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureCacheDisplay_playAnimation : Error processing arguments"); @@ -6334,9 +6298,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_removeDBEventListener(se::Stat { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_removeDBEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6353,9 +6317,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_render(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6372,9 +6336,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setAttachEnabled(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6391,9 +6355,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setBatchEnabled(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6410,9 +6374,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setColor(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -6435,41 +6399,37 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](dragonBones::EventObject* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback : Error processing arguments"); cobj->setDBEventCallback(arg0.value()); return true; @@ -6483,9 +6443,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setOpacityModifyRGB(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6502,9 +6462,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setTimeScale(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6522,7 +6482,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_stopSchedule(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -6536,9 +6496,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_update(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6556,7 +6516,7 @@ static bool js_dragonbones_CCArmatureCacheDisplay_updateAllAnimationCache(se::St auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_updateAllAnimationCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateAllAnimationCache(); return true; @@ -6570,9 +6530,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_updateAnimationCache(se::State { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCArmatureCacheDisplay_updateAnimationCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6589,12 +6549,12 @@ SE_DECLARE_FINALIZE_FUNC(js_dragonBones_CCArmatureCacheDisplay_finalize) static bool js_dragonbones_CCArmatureCacheDisplay_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - std::string arg0; - std::string arg1; - std::string arg2; - bool arg3; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + std::string arg0; + std::string arg1; + std::string arg2; + bool arg3; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -6606,11 +6566,9 @@ static bool js_dragonbones_CCArmatureCacheDisplay_constructor(se::State& s) // N } SE_BIND_CTOR(js_dragonbones_CCArmatureCacheDisplay_constructor, __jsb_dragonBones_CCArmatureCacheDisplay_class, js_dragonBones_CCArmatureCacheDisplay_finalize) - - static bool js_dragonBones_CCArmatureCacheDisplay_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -6655,15 +6613,15 @@ bool js_register_dragonbones_CCArmatureCacheDisplay(se::Object* obj) // NOLINT(r return true; } se::Object* __jsb_dragonBones_CCFactory_proto = nullptr; -se::Class* __jsb_dragonBones_CCFactory_class = nullptr; +se::Class* __jsb_dragonBones_CCFactory_class = nullptr; static bool js_dragonbones_CCFactory_add(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_add : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6680,9 +6638,9 @@ static bool js_dragonbones_CCFactory_buildArmatureDisplay(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_buildArmatureDisplay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6744,9 +6702,9 @@ static bool js_dragonbones_CCFactory_getDragonBones(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getDragonBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::DragonBones* result = cobj->getDragonBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6763,9 +6721,9 @@ static bool js_dragonbones_CCFactory_getSoundEventManager(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getSoundEventManager : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::CCArmatureDisplay* result = cobj->getSoundEventManager(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6782,12 +6740,12 @@ static bool js_dragonbones_CCFactory_getTextureAtlasDataByIndex(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getTextureAtlasDataByIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCFactory_getTextureAtlasDataByIndex : Error processing arguments"); @@ -6806,9 +6764,9 @@ static bool js_dragonbones_CCFactory_getTimeScale(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6825,9 +6783,9 @@ static bool js_dragonbones_CCFactory_parseDragonBonesDataByPath(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_parseDragonBonesDataByPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6853,7 +6811,7 @@ static bool js_dragonbones_CCFactory_parseDragonBonesDataByPath(se::State& s) // if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -6873,9 +6831,9 @@ static bool js_dragonbones_CCFactory_remove(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_remove : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6892,9 +6850,9 @@ static bool js_dragonbones_CCFactory_removeDragonBonesDataByUUID(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_removeDragonBonesDataByUUID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6904,7 +6862,7 @@ static bool js_dragonbones_CCFactory_removeDragonBonesDataByUUID(se::State& s) / } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCFactory_removeDragonBonesDataByUUID : Error processing arguments"); @@ -6920,12 +6878,12 @@ static bool js_dragonbones_CCFactory_removeTextureAtlasDataByIndex(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_removeTextureAtlasDataByIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_dragonbones_CCFactory_removeTextureAtlasDataByIndex : Error processing arguments"); @@ -6941,9 +6899,9 @@ static bool js_dragonbones_CCFactory_render(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6960,9 +6918,9 @@ static bool js_dragonbones_CCFactory_setTimeScale(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6980,7 +6938,7 @@ static bool js_dragonbones_CCFactory_stopSchedule(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -6994,9 +6952,9 @@ static bool js_dragonbones_CCFactory_update(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_dragonbones_CCFactory_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7011,9 +6969,9 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_update) static bool js_dragonbones_CCFactory_isInit(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = dragonBones::CCFactory::isInit(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7028,9 +6986,9 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_isInit) static bool js_dragonbones_CCFactory_getFactory(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::CCFactory* result = dragonBones::CCFactory::getFactory(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7046,7 +7004,7 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_getFactory) static bool js_dragonbones_CCFactory_destroyFactory(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { dragonBones::CCFactory::destroyFactory(); return true; @@ -7058,9 +7016,9 @@ SE_BIND_FUNC(js_dragonbones_CCFactory_destroyFactory) static bool js_dragonbones_CCFactory_getClock(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::WorldClock* result = dragonBones::CCFactory::getClock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7084,13 +7042,10 @@ static bool js_dragonbones_CCFactory_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_dragonbones_CCFactory_constructor, __jsb_dragonBones_CCFactory_class, js_dragonBones_CCFactory_finalize) - - static bool js_dragonBones_CCFactory_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7132,9 +7087,7 @@ bool js_register_dragonbones_CCFactory(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_dragonBones_CCTextureAtlasData_proto = nullptr; -se::Class* __jsb_dragonBones_CCTextureAtlasData_class = nullptr; - - +se::Class* __jsb_dragonBones_CCTextureAtlasData_class = nullptr; bool js_register_dragonbones_CCTextureAtlasData(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -7150,9 +7103,7 @@ bool js_register_dragonbones_CCTextureAtlasData(se::Object* obj) // NOLINT(reada return true; } se::Object* __jsb_dragonBones_CCTextureData_proto = nullptr; -se::Class* __jsb_dragonBones_CCTextureData_class = nullptr; - - +se::Class* __jsb_dragonBones_CCTextureData_class = nullptr; bool js_register_dragonbones_CCTextureData(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -7167,12 +7118,10 @@ bool js_register_dragonbones_CCTextureData(se::Object* obj) // NOLINT(readabilit se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_dragonbones(se::Object* obj) -{ +bool register_all_dragonbones(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("dragonBones", &nsVal)) - { + if (!obj->getProperty("dragonBones", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("dragonBones", nsVal); diff --git a/native/cocos/bindings/auto/jsb_dragonbones_auto.h b/native/cocos/bindings/auto/jsb_dragonbones_auto.h index a78f747f96..9fedf064b7 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.h +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.h @@ -1,13 +1,38 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if USE_DRAGONBONES > 0 -#include -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" + #include + #include "cocos/bindings/jswrapper/SeApi.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" extern se::Object* __jsb_dragonBones_BaseObject_proto; -extern se::Class* __jsb_dragonBones_BaseObject_class; +extern se::Class* __jsb_dragonBones_BaseObject_class; bool js_register_dragonBones_BaseObject(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -18,7 +43,7 @@ SE_DECLARE_FUNC(js_dragonbones_BaseObject_setMaxCount); SE_DECLARE_FUNC(js_dragonbones_BaseObject_clearPool); extern se::Object* __jsb_dragonBones_Rectangle_proto; -extern se::Class* __jsb_dragonBones_Rectangle_class; +extern se::Class* __jsb_dragonBones_Rectangle_class; bool js_register_dragonBones_Rectangle(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -28,7 +53,7 @@ SE_DECLARE_FUNC(js_dragonbones_Rectangle_clear); SE_DECLARE_FUNC(js_dragonbones_Rectangle_Rectangle); extern se::Object* __jsb_dragonBones_Matrix_proto; -extern se::Class* __jsb_dragonBones_Matrix_class; +extern se::Class* __jsb_dragonBones_Matrix_class; bool js_register_dragonBones_Matrix(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -36,7 +61,7 @@ bool register_all_dragonbones(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(dragonBones::Matrix); extern se::Object* __jsb_dragonBones_Transform_proto; -extern se::Class* __jsb_dragonBones_Transform_class; +extern se::Class* __jsb_dragonBones_Transform_class; bool js_register_dragonBones_Transform(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -45,7 +70,7 @@ JSB_REGISTER_OBJECT_TYPE(dragonBones::Transform); SE_DECLARE_FUNC(js_dragonbones_Transform_normalizeRadian); extern se::Object* __jsb_dragonBones_TextureAtlasData_proto; -extern se::Class* __jsb_dragonBones_TextureAtlasData_class; +extern se::Class* __jsb_dragonBones_TextureAtlasData_class; bool js_register_dragonBones_TextureAtlasData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -56,7 +81,7 @@ SE_DECLARE_FUNC(js_dragonbones_TextureAtlasData_createTexture); SE_DECLARE_FUNC(js_dragonbones_TextureAtlasData_getTexture); extern se::Object* __jsb_dragonBones_TextureData_proto; -extern se::Class* __jsb_dragonBones_TextureData_class; +extern se::Class* __jsb_dragonBones_TextureData_class; bool js_register_dragonBones_TextureData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -70,7 +95,7 @@ SE_DECLARE_FUNC(js_dragonbones_TextureData_setParent); SE_DECLARE_FUNC(js_dragonbones_TextureData_createRectangle); extern se::Object* __jsb_dragonBones_ArmatureData_proto; -extern se::Class* __jsb_dragonBones_ArmatureData_class; +extern se::Class* __jsb_dragonBones_ArmatureData_class; bool js_register_dragonBones_ArmatureData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -94,7 +119,7 @@ SE_DECLARE_FUNC(js_dragonbones_ArmatureData_setType); SE_DECLARE_FUNC(js_dragonbones_ArmatureData_sortBones); extern se::Object* __jsb_dragonBones_BoneData_proto; -extern se::Class* __jsb_dragonBones_BoneData_class; +extern se::Class* __jsb_dragonBones_BoneData_class; bool js_register_dragonBones_BoneData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -105,7 +130,7 @@ SE_DECLARE_FUNC(js_dragonbones_BoneData_getTransfrom); SE_DECLARE_FUNC(js_dragonbones_BoneData_setParent); extern se::Object* __jsb_dragonBones_SlotData_proto; -extern se::Class* __jsb_dragonBones_SlotData_class; +extern se::Class* __jsb_dragonBones_SlotData_class; bool js_register_dragonBones_SlotData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -117,7 +142,7 @@ SE_DECLARE_FUNC(js_dragonbones_SlotData_setBlendMode); SE_DECLARE_FUNC(js_dragonbones_SlotData_setParent); extern se::Object* __jsb_dragonBones_DragonBonesData_proto; -extern se::Class* __jsb_dragonBones_DragonBonesData_class; +extern se::Class* __jsb_dragonBones_DragonBonesData_class; bool js_register_dragonBones_DragonBonesData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -129,7 +154,7 @@ SE_DECLARE_FUNC(js_dragonbones_DragonBonesData_getArmatureNames); SE_DECLARE_FUNC(js_dragonbones_DragonBonesData_getFrameIndices); extern se::Object* __jsb_dragonBones_SkinData_proto; -extern se::Class* __jsb_dragonBones_SkinData_class; +extern se::Class* __jsb_dragonBones_SkinData_class; bool js_register_dragonBones_SkinData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -137,7 +162,7 @@ bool register_all_dragonbones(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(dragonBones::SkinData); extern se::Object* __jsb_dragonBones_AnimationData_proto; -extern se::Class* __jsb_dragonBones_AnimationData_class; +extern se::Class* __jsb_dragonBones_AnimationData_class; bool js_register_dragonBones_AnimationData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -150,7 +175,7 @@ SE_DECLARE_FUNC(js_dragonbones_AnimationData_getZOrderTimeline); SE_DECLARE_FUNC(js_dragonbones_AnimationData_setParent); extern se::Object* __jsb_dragonBones_Armature_proto; -extern se::Class* __jsb_dragonBones_Armature_class; +extern se::Class* __jsb_dragonBones_Armature_class; bool js_register_dragonBones_Armature(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -182,7 +207,7 @@ SE_DECLARE_FUNC(js_dragonbones_Armature_setFlipX); SE_DECLARE_FUNC(js_dragonbones_Armature_setFlipY); extern se::Object* __jsb_dragonBones_TransformObject_proto; -extern se::Class* __jsb_dragonBones_TransformObject_class; +extern se::Class* __jsb_dragonBones_TransformObject_class; bool js_register_dragonBones_TransformObject(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -196,7 +221,7 @@ SE_DECLARE_FUNC(js_dragonbones_TransformObject_getOrigin); SE_DECLARE_FUNC(js_dragonbones_TransformObject_updateGlobalTransform); extern se::Object* __jsb_dragonBones_AnimationState_proto; -extern se::Class* __jsb_dragonBones_AnimationState_class; +extern se::Class* __jsb_dragonBones_AnimationState_class; bool js_register_dragonBones_AnimationState(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -223,7 +248,7 @@ SE_DECLARE_FUNC(js_dragonbones_AnimationState_setCurrentTime); SE_DECLARE_FUNC(js_dragonbones_AnimationState_stop); extern se::Object* __jsb_dragonBones_Bone_proto; -extern se::Class* __jsb_dragonBones_Bone_class; +extern se::Class* __jsb_dragonBones_Bone_class; bool js_register_dragonBones_Bone(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -243,7 +268,7 @@ SE_DECLARE_FUNC(js_dragonbones_Bone_update); SE_DECLARE_FUNC(js_dragonbones_Bone_updateByConstraint); extern se::Object* __jsb_dragonBones_Slot_proto; -extern se::Class* __jsb_dragonBones_Slot_class; +extern se::Class* __jsb_dragonBones_Slot_class; bool js_register_dragonBones_Slot(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -265,7 +290,7 @@ SE_DECLARE_FUNC(js_dragonbones_Slot_update); SE_DECLARE_FUNC(js_dragonbones_Slot_updateTransformAndMatrix); extern se::Object* __jsb_dragonBones_WorldClock_proto; -extern se::Class* __jsb_dragonBones_WorldClock_class; +extern se::Class* __jsb_dragonBones_WorldClock_class; bool js_register_dragonBones_WorldClock(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -279,7 +304,7 @@ SE_DECLARE_FUNC(js_dragonbones_WorldClock_setClock); SE_DECLARE_FUNC(js_dragonbones_WorldClock_getStaticClock); extern se::Object* __jsb_dragonBones_Animation_proto; -extern se::Class* __jsb_dragonBones_Animation_class; +extern se::Class* __jsb_dragonBones_Animation_class; bool js_register_dragonBones_Animation(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -306,7 +331,7 @@ SE_DECLARE_FUNC(js_dragonbones_Animation_reset); SE_DECLARE_FUNC(js_dragonbones_Animation_stop); extern se::Object* __jsb_dragonBones_EventObject_proto; -extern se::Class* __jsb_dragonBones_EventObject_class; +extern se::Class* __jsb_dragonBones_EventObject_class; bool js_register_dragonBones_EventObject(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -318,7 +343,7 @@ SE_DECLARE_FUNC(js_dragonbones_EventObject_getBone); SE_DECLARE_FUNC(js_dragonbones_EventObject_getSlot); extern se::Object* __jsb_dragonBones_BaseFactory_proto; -extern se::Class* __jsb_dragonBones_BaseFactory_class; +extern se::Class* __jsb_dragonBones_BaseFactory_class; bool js_register_dragonBones_BaseFactory(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -340,7 +365,7 @@ SE_DECLARE_FUNC(js_dragonbones_BaseFactory_replaceSkin); SE_DECLARE_FUNC(js_dragonbones_BaseFactory_replaceSlotDisplay); extern se::Object* __jsb_dragonBones_CCSlot_proto; -extern se::Class* __jsb_dragonBones_CCSlot_class; +extern se::Class* __jsb_dragonBones_CCSlot_class; bool js_register_dragonBones_CCSlot(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -349,7 +374,7 @@ JSB_REGISTER_OBJECT_TYPE(dragonBones::CCSlot); SE_DECLARE_FUNC(js_dragonbones_CCSlot_updateWorldMatrix); extern se::Object* __jsb_dragonBones_CCArmatureDisplay_proto; -extern se::Class* __jsb_dragonBones_CCArmatureDisplay_class; +extern se::Class* __jsb_dragonBones_CCArmatureDisplay_class; bool js_register_dragonBones_CCArmatureDisplay(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -381,7 +406,7 @@ SE_DECLARE_FUNC(js_dragonbones_CCArmatureDisplay_create); SE_DECLARE_FUNC(js_dragonbones_CCArmatureDisplay_CCArmatureDisplay); extern se::Object* __jsb_dragonBones_ArmatureCacheMgr_proto; -extern se::Class* __jsb_dragonBones_ArmatureCacheMgr_class; +extern se::Class* __jsb_dragonBones_ArmatureCacheMgr_class; bool js_register_dragonBones_ArmatureCacheMgr(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -393,7 +418,7 @@ SE_DECLARE_FUNC(js_dragonbones_ArmatureCacheMgr_getInstance); SE_DECLARE_FUNC(js_dragonbones_ArmatureCacheMgr_destroyInstance); extern se::Object* __jsb_dragonBones_CCArmatureCacheDisplay_proto; -extern se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class; +extern se::Class* __jsb_dragonBones_CCArmatureCacheDisplay_class; bool js_register_dragonBones_CCArmatureCacheDisplay(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -426,7 +451,7 @@ SE_DECLARE_FUNC(js_dragonbones_CCArmatureCacheDisplay_updateAnimationCache); SE_DECLARE_FUNC(js_dragonbones_CCArmatureCacheDisplay_CCArmatureCacheDisplay); extern se::Object* __jsb_dragonBones_CCFactory_proto; -extern se::Class* __jsb_dragonBones_CCFactory_class; +extern se::Class* __jsb_dragonBones_CCFactory_class; bool js_register_dragonBones_CCFactory(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -453,7 +478,7 @@ SE_DECLARE_FUNC(js_dragonbones_CCFactory_getClock); SE_DECLARE_FUNC(js_dragonbones_CCFactory_CCFactory); extern se::Object* __jsb_dragonBones_CCTextureAtlasData_proto; -extern se::Class* __jsb_dragonBones_CCTextureAtlasData_class; +extern se::Class* __jsb_dragonBones_CCTextureAtlasData_class; bool js_register_dragonBones_CCTextureAtlasData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); @@ -461,7 +486,7 @@ bool register_all_dragonbones(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(dragonBones::CCTextureAtlasData); extern se::Object* __jsb_dragonBones_CCTextureData_proto; -extern se::Class* __jsb_dragonBones_CCTextureData_class; +extern se::Class* __jsb_dragonBones_CCTextureData_class; bool js_register_dragonBones_CCTextureData(se::Object* obj); bool register_all_dragonbones(se::Object* obj); diff --git a/native/cocos/bindings/auto/jsb_editor_support_auto.cpp b/native/cocos/bindings/auto/jsb_editor_support_auto.cpp index ca19de70b0..ef5a594d0f 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.cpp +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.cpp @@ -1,27 +1,52 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_editor_support_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" -#include "editor-support/middleware-adapter.h" #include "editor-support/MiddlewareManager.h" #include "editor-support/SharedBufferManager.h" +#include "editor-support/middleware-adapter.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_middleware_Texture2D_proto = nullptr; -se::Class* __jsb_cc_middleware_Texture2D_class = nullptr; +se::Class* __jsb_cc_middleware_Texture2D_class = nullptr; static bool js_editor_support_Texture2D_getPixelsHigh(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_getPixelsHigh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPixelsHigh(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -38,9 +63,9 @@ static bool js_editor_support_Texture2D_getPixelsWide(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_getPixelsWide : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPixelsWide(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -57,9 +82,9 @@ static bool js_editor_support_Texture2D_getRealTextureIndex(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_getRealTextureIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getRealTextureIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -76,9 +101,9 @@ static bool js_editor_support_Texture2D_setPixelsHigh(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setPixelsHigh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -95,9 +120,9 @@ static bool js_editor_support_Texture2D_setPixelsWide(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setPixelsWide : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -114,9 +139,9 @@ static bool js_editor_support_Texture2D_setRealTextureIndex(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setRealTextureIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -133,21 +158,20 @@ static bool js_editor_support_Texture2D_setTexParamCallback(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_Texture2D_setTexParamCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](int larg0, unsigned int larg1, unsigned int larg2, unsigned int larg3, unsigned int larg4) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(5); @@ -156,22 +180,19 @@ static bool js_editor_support_Texture2D_setTexParamCallback(se::State& s) // NOL ok &= nativevalue_to_se(larg2, args[2], nullptr /*ctx*/); ok &= nativevalue_to_se(larg3, args[3], nullptr /*ctx*/); ok &= nativevalue_to_se(larg4, args[4], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_editor_support_Texture2D_setTexParamCallback : Error processing arguments"); cobj->setTexParamCallback(arg0.value()); return true; @@ -191,11 +212,9 @@ static bool js_editor_support_Texture2D_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_editor_support_Texture2D_constructor, __jsb_cc_middleware_Texture2D_class, js_cc_middleware_Texture2D_finalize) - - static bool js_cc_middleware_Texture2D_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -223,15 +242,15 @@ bool js_register_editor_support_Texture2D(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_middleware_SharedBufferManager_proto = nullptr; -se::Class* __jsb_cc_middleware_SharedBufferManager_class = nullptr; +se::Class* __jsb_cc_middleware_SharedBufferManager_class = nullptr; static bool js_editor_support_SharedBufferManager_getSharedBuffer(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_SharedBufferManager_getSharedBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -248,37 +267,33 @@ static bool js_editor_support_SharedBufferManager_setResizeCallback(se::State& s { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_SharedBufferManager_setResizeCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=]() -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - - se::Value rval; + + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); + bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_editor_support_SharedBufferManager_setResizeCallback : Error processing arguments"); cobj->setResizeCallback(arg0.value()); return true; @@ -292,8 +307,8 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_middleware_SharedBufferManager_finalize) static bool js_editor_support_SharedBufferManager_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); se::Object::TypedArrayType arg0; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_editor_support_SharedBufferManager_constructor : Error processing arguments"); @@ -304,13 +319,10 @@ static bool js_editor_support_SharedBufferManager_constructor(se::State& s) // N } SE_BIND_CTOR(js_editor_support_SharedBufferManager_constructor, __jsb_cc_middleware_SharedBufferManager_class, js_cc_middleware_SharedBufferManager_finalize) - - static bool js_cc_middleware_SharedBufferManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -336,15 +348,15 @@ bool js_register_editor_support_SharedBufferManager(se::Object* obj) // NOLINT(r return true; } se::Object* __jsb_cc_middleware_MiddlewareManager_proto = nullptr; -se::Class* __jsb_cc_middleware_MiddlewareManager_class = nullptr; +se::Class* __jsb_cc_middleware_MiddlewareManager_class = nullptr; static bool js_editor_support_MiddlewareManager_getAttachInfoMgr(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getAttachInfoMgr : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::middleware::SharedBufferManager* result = cobj->getAttachInfoMgr(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -361,9 +373,9 @@ static bool js_editor_support_MiddlewareManager_getBufferCount(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getBufferCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -383,9 +395,9 @@ static bool js_editor_support_MiddlewareManager_getIBTypedArray(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getIBTypedArray : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -407,11 +419,11 @@ static bool js_editor_support_MiddlewareManager_getIBTypedArrayLength(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getIBTypedArrayLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -431,9 +443,9 @@ static bool js_editor_support_MiddlewareManager_getRenderInfoMgr(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getRenderInfoMgr : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::middleware::SharedBufferManager* result = cobj->getRenderInfoMgr(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -450,9 +462,9 @@ static bool js_editor_support_MiddlewareManager_getVBTypedArray(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getVBTypedArray : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -474,11 +486,11 @@ static bool js_editor_support_MiddlewareManager_getVBTypedArrayLength(se::State& { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_getVBTypedArrayLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -498,9 +510,9 @@ static bool js_editor_support_MiddlewareManager_render(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -517,9 +529,9 @@ static bool js_editor_support_MiddlewareManager_update(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_editor_support_MiddlewareManager_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -534,9 +546,9 @@ SE_BIND_FUNC(js_editor_support_MiddlewareManager_update) static bool js_editor_support_MiddlewareManager_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::middleware::MiddlewareManager* result = cc::middleware::MiddlewareManager::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -552,7 +564,7 @@ SE_BIND_FUNC(js_editor_support_MiddlewareManager_getInstance) static bool js_editor_support_MiddlewareManager_destroyInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::middleware::MiddlewareManager::destroyInstance(); return true; @@ -564,9 +576,9 @@ SE_BIND_FUNC(js_editor_support_MiddlewareManager_destroyInstance) static bool js_editor_support_MiddlewareManager_generateModuleID(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uint8_t result = cc::middleware::MiddlewareManager::generateModuleID(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -590,13 +602,10 @@ static bool js_editor_support_MiddlewareManager_constructor(se::State& s) // NOL } SE_BIND_CTOR(js_editor_support_MiddlewareManager_constructor, __jsb_cc_middleware_MiddlewareManager_class, js_cc_middleware_MiddlewareManager_finalize) - - static bool js_cc_middleware_MiddlewareManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -631,12 +640,10 @@ bool js_register_editor_support_MiddlewareManager(se::Object* obj) // NOLINT(rea se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_editor_support(se::Object* obj) -{ +bool register_all_editor_support(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("middleware", &nsVal)) - { + if (!obj->getProperty("middleware", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("middleware", nsVal); @@ -648,4 +655,3 @@ bool register_all_editor_support(se::Object* obj) js_register_editor_support_MiddlewareManager(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_editor_support_auto.h b/native/cocos/bindings/auto/jsb_editor_support_auto.h index 1e53355af5..c0ec756cc1 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.h +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.h @@ -1,14 +1,39 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include +#include "base/Config.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/editor-support/middleware-adapter.h" #include "cocos/editor-support/MiddlewareManager.h" #include "cocos/editor-support/SharedBufferManager.h" +#include "cocos/editor-support/middleware-adapter.h" extern se::Object* __jsb_cc_middleware_Texture2D_proto; -extern se::Class* __jsb_cc_middleware_Texture2D_class; +extern se::Class* __jsb_cc_middleware_Texture2D_class; bool js_register_cc_middleware_Texture2D(se::Object* obj); bool register_all_editor_support(se::Object* obj); @@ -24,7 +49,7 @@ SE_DECLARE_FUNC(js_editor_support_Texture2D_setTexParamCallback); SE_DECLARE_FUNC(js_editor_support_Texture2D_Texture2D); extern se::Object* __jsb_cc_middleware_SharedBufferManager_proto; -extern se::Class* __jsb_cc_middleware_SharedBufferManager_class; +extern se::Class* __jsb_cc_middleware_SharedBufferManager_class; bool js_register_cc_middleware_SharedBufferManager(se::Object* obj); bool register_all_editor_support(se::Object* obj); @@ -35,7 +60,7 @@ SE_DECLARE_FUNC(js_editor_support_SharedBufferManager_setResizeCallback); SE_DECLARE_FUNC(js_editor_support_SharedBufferManager_SharedBufferManager); extern se::Object* __jsb_cc_middleware_MiddlewareManager_proto; -extern se::Class* __jsb_cc_middleware_MiddlewareManager_class; +extern se::Class* __jsb_cc_middleware_MiddlewareManager_class; bool js_register_cc_middleware_MiddlewareManager(se::Object* obj); bool register_all_editor_support(se::Object* obj); @@ -54,4 +79,3 @@ SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_getInstance); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_destroyInstance); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_generateModuleID); SE_DECLARE_FUNC(js_editor_support_MiddlewareManager_MiddlewareManager); - diff --git a/native/cocos/bindings/auto/jsb_extension_auto.cpp b/native/cocos/bindings/auto/jsb_extension_auto.cpp index e233425cc4..d9d9079040 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.cpp +++ b/native/cocos/bindings/auto/jsb_extension_auto.cpp @@ -1,25 +1,50 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_extension_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" #include "extensions/cocos-ext.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_extension_EventAssetsManagerEx_proto = nullptr; -se::Class* __jsb_cc_extension_EventAssetsManagerEx_class = nullptr; +se::Class* __jsb_cc_extension_EventAssetsManagerEx_class = nullptr; static bool js_extension_EventAssetsManagerEx_getAssetId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getAssetId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cobj->getAssetId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -36,9 +61,9 @@ static bool js_extension_EventAssetsManagerEx_getAssetsManagerEx(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getAssetsManagerEx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::extension::AssetsManagerEx* result = cobj->getAssetsManagerEx(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -55,9 +80,9 @@ static bool js_extension_EventAssetsManagerEx_getCURLECode(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getCURLECode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getCURLECode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -74,9 +99,9 @@ static bool js_extension_EventAssetsManagerEx_getCURLMCode(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getCURLMCode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getCURLMCode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -93,9 +118,9 @@ static bool js_extension_EventAssetsManagerEx_getDownloadedBytes(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getDownloadedBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getDownloadedBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -112,9 +137,9 @@ static bool js_extension_EventAssetsManagerEx_getDownloadedFiles(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getDownloadedFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getDownloadedFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -131,9 +156,9 @@ static bool js_extension_EventAssetsManagerEx_getEventCode(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getEventCode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getEventCode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -150,9 +175,9 @@ static bool js_extension_EventAssetsManagerEx_getMessage(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getMessage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::string result = cobj->getMessage(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -169,9 +194,9 @@ static bool js_extension_EventAssetsManagerEx_getPercent(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getPercent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPercent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -188,9 +213,9 @@ static bool js_extension_EventAssetsManagerEx_getPercentByFile(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getPercentByFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPercentByFile(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -207,9 +232,9 @@ static bool js_extension_EventAssetsManagerEx_getTotalBytes(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getTotalBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getTotalBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -226,9 +251,9 @@ static bool js_extension_EventAssetsManagerEx_getTotalFiles(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_getTotalFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getTotalFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -245,9 +270,9 @@ static bool js_extension_EventAssetsManagerEx_isResuming(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_EventAssetsManagerEx_isResuming : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isResuming(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -264,10 +289,10 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_extension_EventAssetsManagerEx_finalize) static bool js_extension_EventAssetsManagerEx_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - std::string arg0; - cc::extension::AssetsManagerEx* arg1 = nullptr; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + std::string arg0; + cc::extension::AssetsManagerEx* arg1 = nullptr; cc::extension::EventAssetsManagerEx::EventCode arg2; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -279,11 +304,9 @@ static bool js_extension_EventAssetsManagerEx_constructor(se::State& s) // NOLIN } SE_BIND_CTOR(js_extension_EventAssetsManagerEx_constructor, __jsb_cc_extension_EventAssetsManagerEx_class, js_cc_extension_EventAssetsManagerEx_finalize) - - static bool js_cc_extension_EventAssetsManagerEx_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -317,15 +340,15 @@ bool js_register_extension_EventAssetsManagerEx(se::Object* obj) // NOLINT(reada return true; } se::Object* __jsb_cc_extension_Manifest_proto = nullptr; -se::Class* __jsb_cc_extension_Manifest_class = nullptr; +se::Class* __jsb_cc_extension_Manifest_class = nullptr; static bool js_extension_Manifest_getManifestFileUrl(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getManifestFileUrl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getManifestFileUrl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -342,9 +365,9 @@ static bool js_extension_Manifest_getManifestRoot(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getManifestRoot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getManifestRoot(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -361,9 +384,9 @@ static bool js_extension_Manifest_getPackageUrl(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getPackageUrl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getPackageUrl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -380,9 +403,9 @@ static bool js_extension_Manifest_getSearchPaths(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getSearchPaths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::vector result = cobj->getSearchPaths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -399,9 +422,9 @@ static bool js_extension_Manifest_getVersion(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getVersion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getVersion(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -418,9 +441,9 @@ static bool js_extension_Manifest_getVersionFileUrl(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_getVersionFileUrl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getVersionFileUrl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -437,9 +460,9 @@ static bool js_extension_Manifest_isLoaded(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_isLoaded : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isLoaded(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -456,9 +479,9 @@ static bool js_extension_Manifest_isUpdating(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_isUpdating : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isUpdating(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -475,9 +498,9 @@ static bool js_extension_Manifest_isVersionLoaded(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_isVersionLoaded : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isVersionLoaded(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -494,9 +517,9 @@ static bool js_extension_Manifest_parseFile(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_parseFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -513,9 +536,9 @@ static bool js_extension_Manifest_parseJSONString(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_parseJSONString : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -534,9 +557,9 @@ static bool js_extension_Manifest_setUpdating(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_Manifest_setUpdating : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -553,49 +576,56 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_extension_Manifest_finalize) static bool js_extension_Manifest_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::extension::Manifest* cobj = JSB_ALLOC(cc::extension::Manifest, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 0) { cc::extension::Manifest* cobj = JSB_ALLOC(cc::extension::Manifest); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::extension::Manifest* cobj = JSB_ALLOC(cc::extension::Manifest, arg0.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_extension_Manifest_constructor, __jsb_cc_extension_Manifest_class, js_cc_extension_Manifest_finalize) - - static bool js_cc_extension_Manifest_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -628,14 +658,14 @@ bool js_register_extension_Manifest(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_extension_AssetsManagerEx_proto = nullptr; -se::Class* __jsb_cc_extension_AssetsManagerEx_class = nullptr; +se::Class* __jsb_cc_extension_AssetsManagerEx_class = nullptr; static bool js_extension_AssetsManagerEx_checkUpdate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_checkUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->checkUpdate(); return true; @@ -650,7 +680,7 @@ static bool js_extension_AssetsManagerEx_downloadFailedAssets(se::State& s) // N auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_downloadFailedAssets : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->downloadFailedAssets(); return true; @@ -664,9 +694,9 @@ static bool js_extension_AssetsManagerEx_getDownloadedBytes(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getDownloadedBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getDownloadedBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -683,9 +713,9 @@ static bool js_extension_AssetsManagerEx_getDownloadedFiles(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getDownloadedFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getDownloadedFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -702,9 +732,9 @@ static bool js_extension_AssetsManagerEx_getLocalManifest(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getLocalManifest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::extension::Manifest* result = cobj->getLocalManifest(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -721,9 +751,9 @@ static bool js_extension_AssetsManagerEx_getMaxConcurrentTask(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getMaxConcurrentTask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const int result = cobj->getMaxConcurrentTask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -740,9 +770,9 @@ static bool js_extension_AssetsManagerEx_getRemoteManifest(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getRemoteManifest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::extension::Manifest* result = cobj->getRemoteManifest(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -759,9 +789,9 @@ static bool js_extension_AssetsManagerEx_getState(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getState()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -778,9 +808,9 @@ static bool js_extension_AssetsManagerEx_getStoragePath(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getStoragePath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getStoragePath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -797,9 +827,9 @@ static bool js_extension_AssetsManagerEx_getTotalBytes(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getTotalBytes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { double result = cobj->getTotalBytes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -816,9 +846,9 @@ static bool js_extension_AssetsManagerEx_getTotalFiles(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_getTotalFiles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getTotalFiles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -835,9 +865,9 @@ static bool js_extension_AssetsManagerEx_isResuming(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_isResuming : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isResuming(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -852,41 +882,50 @@ SE_BIND_FUNC(js_extension_AssetsManagerEx_isResuming) static bool js_extension_AssetsManagerEx_loadLocalManifest(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_extension_AssetsManagerEx_loadLocalManifest : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_loadLocalManifest : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->loadLocalManifest(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_loadLocalManifest : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->loadLocalManifest(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_loadLocalManifest : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -897,9 +936,9 @@ static bool js_extension_AssetsManagerEx_loadRemoteManifest(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_loadRemoteManifest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -920,7 +959,7 @@ static bool js_extension_AssetsManagerEx_prepareUpdate(se::State& s) // NOLINT(r auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_prepareUpdate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->prepareUpdate(); return true; @@ -934,41 +973,37 @@ static bool js_extension_AssetsManagerEx_setEventCallback(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setEventCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::extension::EventAssetsManagerEx* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_setEventCallback : Error processing arguments"); cobj->setEventCallback(arg0.value()); return true; @@ -982,9 +1017,9 @@ static bool js_extension_AssetsManagerEx_setMaxConcurrentTask(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setMaxConcurrentTask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1001,30 +1036,29 @@ static bool js_extension_AssetsManagerEx_setVerifyCallback(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setVerifyCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](const std::string larg0, cc::extension::ManifestAsset larg1) -> bool { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -1034,13 +1068,10 @@ static bool js_extension_AssetsManagerEx_setVerifyCallback(se::State& s) // NOLI return result; }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_setVerifyCallback : Error processing arguments"); cobj->setVerifyCallback(arg0.value()); return true; @@ -1054,30 +1085,29 @@ static bool js_extension_AssetsManagerEx_setVersionCompareHandle(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_setVersionCompareHandle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](const std::string larg0, const std::string larg1) -> int { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -1087,13 +1117,10 @@ static bool js_extension_AssetsManagerEx_setVersionCompareHandle(se::State& s) / return result; }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_extension_AssetsManagerEx_setVersionCompareHandle : Error processing arguments"); cobj->setVersionCompareHandle(arg0.value()); return true; @@ -1108,7 +1135,7 @@ static bool js_extension_AssetsManagerEx_update(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_extension_AssetsManagerEx_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -1120,9 +1147,9 @@ SE_BIND_FUNC(js_extension_AssetsManagerEx_update) static bool js_extension_AssetsManagerEx_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1145,37 +1172,42 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_extension_AssetsManagerEx_finalize) static bool js_extension_AssetsManagerEx_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 3) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } - HolderType, true> arg2 = {}; + if (!ok) { + ok = true; + break; + } + HolderType, true> arg2 = {}; do { - if (args[2].isObject() && args[2].toObject()->isFunction()) - { + if (args[2].isObject() && args[2].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[2]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](const std::string larg0, const std::string larg1) -> int { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -1185,42 +1217,46 @@ static bool js_extension_AssetsManagerEx_constructor(se::State& s) // NOLINT(rea return result; }; arg2.data = lambda; - } - else - { + } else { arg2.data = nullptr; } - } while(false) - ; - if (!ok) { ok = true; break; } + } while (false); + if (!ok) { + ok = true; + break; + } cc::extension::AssetsManagerEx* cobj = JSB_ALLOC(cc::extension::AssetsManagerEx, arg0.value(), arg1.value(), arg2.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::extension::AssetsManagerEx* cobj = JSB_ALLOC(cc::extension::AssetsManagerEx, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_extension_AssetsManagerEx_constructor, __jsb_cc_extension_AssetsManagerEx_class, js_cc_extension_AssetsManagerEx_finalize) - - static bool js_cc_extension_AssetsManagerEx_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -1261,12 +1297,10 @@ bool js_register_extension_AssetsManagerEx(se::Object* obj) // NOLINT(readabilit se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_extension(se::Object* obj) -{ +bool register_all_extension(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) - { + if (!obj->getProperty("jsb", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); @@ -1278,4 +1312,3 @@ bool register_all_extension(se::Object* obj) js_register_extension_AssetsManagerEx(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_extension_auto.h b/native/cocos/bindings/auto/jsb_extension_auto.h index dcfd3d411f..79d5760d7c 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.h +++ b/native/cocos/bindings/auto/jsb_extension_auto.h @@ -1,12 +1,37 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include +#include "base/Config.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "extensions/cocos-ext.h" extern se::Object* __jsb_cc_extension_EventAssetsManagerEx_proto; -extern se::Class* __jsb_cc_extension_EventAssetsManagerEx_class; +extern se::Class* __jsb_cc_extension_EventAssetsManagerEx_class; bool js_register_cc_extension_EventAssetsManagerEx(se::Object* obj); bool register_all_extension(se::Object* obj); @@ -28,7 +53,7 @@ SE_DECLARE_FUNC(js_extension_EventAssetsManagerEx_isResuming); SE_DECLARE_FUNC(js_extension_EventAssetsManagerEx_EventAssetsManagerEx); extern se::Object* __jsb_cc_extension_Manifest_proto; -extern se::Class* __jsb_cc_extension_Manifest_class; +extern se::Class* __jsb_cc_extension_Manifest_class; bool js_register_cc_extension_Manifest(se::Object* obj); bool register_all_extension(se::Object* obj); @@ -49,7 +74,7 @@ SE_DECLARE_FUNC(js_extension_Manifest_setUpdating); SE_DECLARE_FUNC(js_extension_Manifest_Manifest); extern se::Object* __jsb_cc_extension_AssetsManagerEx_proto; -extern se::Class* __jsb_cc_extension_AssetsManagerEx_class; +extern se::Class* __jsb_cc_extension_AssetsManagerEx_class; bool js_register_cc_extension_AssetsManagerEx(se::Object* obj); bool register_all_extension(se::Object* obj); @@ -77,4 +102,3 @@ SE_DECLARE_FUNC(js_extension_AssetsManagerEx_setVersionCompareHandle); SE_DECLARE_FUNC(js_extension_AssetsManagerEx_update); SE_DECLARE_FUNC(js_extension_AssetsManagerEx_create); SE_DECLARE_FUNC(js_extension_AssetsManagerEx_AssetsManagerEx); - diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.cpp b/native/cocos/bindings/auto/jsb_gfx_auto.cpp index a577298da6..ca8164ab62 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.cpp +++ b/native/cocos/bindings/auto/jsb_gfx_auto.cpp @@ -1,17 +1,42 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_gfx_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" #include "renderer/GFXDeviceManager.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_gfx_Size_proto = nullptr; -se::Class* __jsb_cc_gfx_Size_class = nullptr; +se::Class* __jsb_cc_gfx_Size_class = nullptr; static bool js_gfx_Size_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -19,7 +44,7 @@ static bool js_gfx_Size_get_x(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Size_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -30,7 +55,7 @@ SE_BIND_PROP_GET(js_gfx_Size_get_x) static bool js_gfx_Size_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Size_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -46,7 +71,7 @@ static bool js_gfx_Size_get_y(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Size_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -57,7 +82,7 @@ SE_BIND_PROP_GET(js_gfx_Size_get_y) static bool js_gfx_Size_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Size_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -73,7 +98,7 @@ static bool js_gfx_Size_get_z(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Size_get_z : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->z, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->z, s.thisObject(), s.rval()); @@ -84,7 +109,7 @@ SE_BIND_PROP_GET(js_gfx_Size_get_z) static bool js_gfx_Size_set_z(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Size_set_z : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -94,29 +119,27 @@ static bool js_gfx_Size_set_z(se::State& s) // NOLINT(readability-identifier-nam } SE_BIND_PROP_SET(js_gfx_Size_set_z) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Size * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Size* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("z", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->z), ctx); } return ok; @@ -126,26 +149,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Size_finalize) static bool js_gfx_Size_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Size* cobj = JSB_ALLOC(cc::gfx::Size); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Size* cobj = JSB_ALLOC(cc::gfx::Size); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -167,7 +188,7 @@ static bool js_gfx_Size_constructor(se::State& s) // NOLINT(readability-identifi ok &= sevalue_to_native(args[2], &(cobj->z), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -179,13 +200,10 @@ static bool js_gfx_Size_constructor(se::State& s) // NOLINT(readability-identifi } SE_BIND_CTOR(js_gfx_Size_constructor, __jsb_cc_gfx_Size_class, js_cc_gfx_Size_finalize) - - static bool js_cc_gfx_Size_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -212,7 +230,7 @@ bool js_register_gfx_Size(se::Object* obj) // NOLINT(readability-identifier-nami return true; } se::Object* __jsb_cc_gfx_DeviceCaps_proto = nullptr; -se::Class* __jsb_cc_gfx_DeviceCaps_class = nullptr; +se::Class* __jsb_cc_gfx_DeviceCaps_class = nullptr; static bool js_gfx_DeviceCaps_get_maxVertexAttributes(se::State& s) // NOLINT(readability-identifier-naming) { @@ -220,7 +238,7 @@ static bool js_gfx_DeviceCaps_get_maxVertexAttributes(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxVertexAttributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxVertexAttributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxVertexAttributes, s.thisObject(), s.rval()); @@ -231,7 +249,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxVertexAttributes) static bool js_gfx_DeviceCaps_set_maxVertexAttributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxVertexAttributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -247,7 +265,7 @@ static bool js_gfx_DeviceCaps_get_maxVertexUniformVectors(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxVertexUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxVertexUniformVectors, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxVertexUniformVectors, s.thisObject(), s.rval()); @@ -258,7 +276,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxVertexUniformVectors) static bool js_gfx_DeviceCaps_set_maxVertexUniformVectors(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxVertexUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -274,7 +292,7 @@ static bool js_gfx_DeviceCaps_get_maxFragmentUniformVectors(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxFragmentUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxFragmentUniformVectors, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxFragmentUniformVectors, s.thisObject(), s.rval()); @@ -285,7 +303,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxFragmentUniformVectors) static bool js_gfx_DeviceCaps_set_maxFragmentUniformVectors(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxFragmentUniformVectors : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -301,7 +319,7 @@ static bool js_gfx_DeviceCaps_get_maxTextureUnits(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxTextureUnits, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxTextureUnits, s.thisObject(), s.rval()); @@ -312,7 +330,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxTextureUnits) static bool js_gfx_DeviceCaps_set_maxTextureUnits(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -328,7 +346,7 @@ static bool js_gfx_DeviceCaps_get_maxImageUnits(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxImageUnits : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxImageUnits, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxImageUnits, s.thisObject(), s.rval()); @@ -339,7 +357,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxImageUnits) static bool js_gfx_DeviceCaps_set_maxImageUnits(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxImageUnits : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -355,7 +373,7 @@ static bool js_gfx_DeviceCaps_get_maxVertexTextureUnits(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxVertexTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxVertexTextureUnits, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxVertexTextureUnits, s.thisObject(), s.rval()); @@ -366,7 +384,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxVertexTextureUnits) static bool js_gfx_DeviceCaps_set_maxVertexTextureUnits(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxVertexTextureUnits : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -382,7 +400,7 @@ static bool js_gfx_DeviceCaps_get_maxColorRenderTargets(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxColorRenderTargets : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxColorRenderTargets, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxColorRenderTargets, s.thisObject(), s.rval()); @@ -393,7 +411,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxColorRenderTargets) static bool js_gfx_DeviceCaps_set_maxColorRenderTargets(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxColorRenderTargets : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -409,7 +427,7 @@ static bool js_gfx_DeviceCaps_get_maxShaderStorageBufferBindings(se::State& s) / SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxShaderStorageBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxShaderStorageBufferBindings, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxShaderStorageBufferBindings, s.thisObject(), s.rval()); @@ -420,7 +438,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxShaderStorageBufferBindings) static bool js_gfx_DeviceCaps_set_maxShaderStorageBufferBindings(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxShaderStorageBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -436,7 +454,7 @@ static bool js_gfx_DeviceCaps_get_maxShaderStorageBlockSize(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxShaderStorageBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxShaderStorageBlockSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxShaderStorageBlockSize, s.thisObject(), s.rval()); @@ -447,7 +465,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxShaderStorageBlockSize) static bool js_gfx_DeviceCaps_set_maxShaderStorageBlockSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxShaderStorageBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -463,7 +481,7 @@ static bool js_gfx_DeviceCaps_get_maxUniformBufferBindings(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxUniformBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxUniformBufferBindings, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxUniformBufferBindings, s.thisObject(), s.rval()); @@ -474,7 +492,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxUniformBufferBindings) static bool js_gfx_DeviceCaps_set_maxUniformBufferBindings(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxUniformBufferBindings : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -490,7 +508,7 @@ static bool js_gfx_DeviceCaps_get_maxUniformBlockSize(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxUniformBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxUniformBlockSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxUniformBlockSize, s.thisObject(), s.rval()); @@ -501,7 +519,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxUniformBlockSize) static bool js_gfx_DeviceCaps_set_maxUniformBlockSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxUniformBlockSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -517,7 +535,7 @@ static bool js_gfx_DeviceCaps_get_maxTextureSize(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxTextureSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxTextureSize, s.thisObject(), s.rval()); @@ -528,7 +546,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxTextureSize) static bool js_gfx_DeviceCaps_set_maxTextureSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -544,7 +562,7 @@ static bool js_gfx_DeviceCaps_get_maxCubeMapTextureSize(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxCubeMapTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxCubeMapTextureSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxCubeMapTextureSize, s.thisObject(), s.rval()); @@ -555,7 +573,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxCubeMapTextureSize) static bool js_gfx_DeviceCaps_set_maxCubeMapTextureSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxCubeMapTextureSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -571,7 +589,7 @@ static bool js_gfx_DeviceCaps_get_uboOffsetAlignment(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_uboOffsetAlignment : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->uboOffsetAlignment, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->uboOffsetAlignment, s.thisObject(), s.rval()); @@ -582,7 +600,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_uboOffsetAlignment) static bool js_gfx_DeviceCaps_set_uboOffsetAlignment(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_uboOffsetAlignment : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -598,7 +616,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeSharedMemorySize(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeSharedMemorySize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeSharedMemorySize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeSharedMemorySize, s.thisObject(), s.rval()); @@ -609,7 +627,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeSharedMemorySize) static bool js_gfx_DeviceCaps_set_maxComputeSharedMemorySize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeSharedMemorySize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -625,7 +643,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeWorkGroupInvocations(se::State& s) / SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeWorkGroupInvocations : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeWorkGroupInvocations, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeWorkGroupInvocations, s.thisObject(), s.rval()); @@ -636,7 +654,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeWorkGroupInvocations) static bool js_gfx_DeviceCaps_set_maxComputeWorkGroupInvocations(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeWorkGroupInvocations : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -652,7 +670,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeWorkGroupSize(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeWorkGroupSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeWorkGroupSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeWorkGroupSize, s.thisObject(), s.rval()); @@ -663,7 +681,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeWorkGroupSize) static bool js_gfx_DeviceCaps_set_maxComputeWorkGroupSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeWorkGroupSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -679,7 +697,7 @@ static bool js_gfx_DeviceCaps_get_maxComputeWorkGroupCount(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_maxComputeWorkGroupCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxComputeWorkGroupCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxComputeWorkGroupCount, s.thisObject(), s.rval()); @@ -690,7 +708,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_maxComputeWorkGroupCount) static bool js_gfx_DeviceCaps_set_maxComputeWorkGroupCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_maxComputeWorkGroupCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -706,7 +724,7 @@ static bool js_gfx_DeviceCaps_get_supportQuery(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_supportQuery : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->supportQuery, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->supportQuery, s.thisObject(), s.rval()); @@ -717,7 +735,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_supportQuery) static bool js_gfx_DeviceCaps_set_supportQuery(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_supportQuery : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -733,7 +751,7 @@ static bool js_gfx_DeviceCaps_get_clipSpaceMinZ(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_clipSpaceMinZ : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clipSpaceMinZ, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clipSpaceMinZ, s.thisObject(), s.rval()); @@ -744,7 +762,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_clipSpaceMinZ) static bool js_gfx_DeviceCaps_set_clipSpaceMinZ(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_clipSpaceMinZ : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -760,7 +778,7 @@ static bool js_gfx_DeviceCaps_get_screenSpaceSignY(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_screenSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->screenSpaceSignY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->screenSpaceSignY, s.thisObject(), s.rval()); @@ -771,7 +789,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_screenSpaceSignY) static bool js_gfx_DeviceCaps_set_screenSpaceSignY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_screenSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -787,7 +805,7 @@ static bool js_gfx_DeviceCaps_get_clipSpaceSignY(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_get_clipSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clipSpaceSignY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clipSpaceSignY, s.thisObject(), s.rval()); @@ -798,7 +816,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceCaps_get_clipSpaceSignY) static bool js_gfx_DeviceCaps_set_clipSpaceSignY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceCaps_set_clipSpaceSignY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -808,105 +826,103 @@ static bool js_gfx_DeviceCaps_set_clipSpaceSignY(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_gfx_DeviceCaps_set_clipSpaceSignY) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DeviceCaps * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DeviceCaps* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("maxVertexAttributes", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxVertexAttributes), ctx); } json->getProperty("maxVertexUniformVectors", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxVertexUniformVectors), ctx); } json->getProperty("maxFragmentUniformVectors", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxFragmentUniformVectors), ctx); } json->getProperty("maxTextureUnits", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxTextureUnits), ctx); } json->getProperty("maxImageUnits", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxImageUnits), ctx); } json->getProperty("maxVertexTextureUnits", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxVertexTextureUnits), ctx); } json->getProperty("maxColorRenderTargets", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxColorRenderTargets), ctx); } json->getProperty("maxShaderStorageBufferBindings", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxShaderStorageBufferBindings), ctx); } json->getProperty("maxShaderStorageBlockSize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxShaderStorageBlockSize), ctx); } json->getProperty("maxUniformBufferBindings", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxUniformBufferBindings), ctx); } json->getProperty("maxUniformBlockSize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxUniformBlockSize), ctx); } json->getProperty("maxTextureSize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxTextureSize), ctx); } json->getProperty("maxCubeMapTextureSize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxCubeMapTextureSize), ctx); } json->getProperty("uboOffsetAlignment", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->uboOffsetAlignment), ctx); } json->getProperty("maxComputeSharedMemorySize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeSharedMemorySize), ctx); } json->getProperty("maxComputeWorkGroupInvocations", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeWorkGroupInvocations), ctx); } json->getProperty("maxComputeWorkGroupSize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeWorkGroupSize), ctx); } json->getProperty("maxComputeWorkGroupCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxComputeWorkGroupCount), ctx); } json->getProperty("supportQuery", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->supportQuery), ctx); } json->getProperty("clipSpaceMinZ", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clipSpaceMinZ), ctx); } json->getProperty("screenSpaceSignY", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->screenSpaceSignY), ctx); } json->getProperty("clipSpaceSignY", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clipSpaceSignY), ctx); } return ok; @@ -916,26 +932,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DeviceCaps_finalize) static bool js_gfx_DeviceCaps_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DeviceCaps* cobj = JSB_ALLOC(cc::gfx::DeviceCaps); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::DeviceCaps* cobj = JSB_ALLOC(cc::gfx::DeviceCaps); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1014,7 +1028,7 @@ static bool js_gfx_DeviceCaps_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[21], &(cobj->clipSpaceSignY), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1026,13 +1040,10 @@ static bool js_gfx_DeviceCaps_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_DeviceCaps_constructor, __jsb_cc_gfx_DeviceCaps_class, js_cc_gfx_DeviceCaps_finalize) - - static bool js_cc_gfx_DeviceCaps_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1078,7 +1089,7 @@ bool js_register_gfx_DeviceCaps(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_Offset_proto = nullptr; -se::Class* __jsb_cc_gfx_Offset_class = nullptr; +se::Class* __jsb_cc_gfx_Offset_class = nullptr; static bool js_gfx_Offset_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1086,7 +1097,7 @@ static bool js_gfx_Offset_get_x(se::State& s) // NOLINT(readability-identifier-n SE_PRECONDITION2(cobj, false, "js_gfx_Offset_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -1097,7 +1108,7 @@ SE_BIND_PROP_GET(js_gfx_Offset_get_x) static bool js_gfx_Offset_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Offset_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1113,7 +1124,7 @@ static bool js_gfx_Offset_get_y(se::State& s) // NOLINT(readability-identifier-n SE_PRECONDITION2(cobj, false, "js_gfx_Offset_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -1124,7 +1135,7 @@ SE_BIND_PROP_GET(js_gfx_Offset_get_y) static bool js_gfx_Offset_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Offset_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1140,7 +1151,7 @@ static bool js_gfx_Offset_get_z(se::State& s) // NOLINT(readability-identifier-n SE_PRECONDITION2(cobj, false, "js_gfx_Offset_get_z : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->z, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->z, s.thisObject(), s.rval()); @@ -1151,7 +1162,7 @@ SE_BIND_PROP_GET(js_gfx_Offset_get_z) static bool js_gfx_Offset_set_z(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Offset_set_z : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1161,29 +1172,27 @@ static bool js_gfx_Offset_set_z(se::State& s) // NOLINT(readability-identifier-n } SE_BIND_PROP_SET(js_gfx_Offset_set_z) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Offset * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Offset* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("z", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->z), ctx); } return ok; @@ -1193,26 +1202,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Offset_finalize) static bool js_gfx_Offset_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Offset* cobj = JSB_ALLOC(cc::gfx::Offset); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Offset* cobj = JSB_ALLOC(cc::gfx::Offset); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1234,7 +1241,7 @@ static bool js_gfx_Offset_constructor(se::State& s) // NOLINT(readability-identi ok &= sevalue_to_native(args[2], &(cobj->z), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1246,13 +1253,10 @@ static bool js_gfx_Offset_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_gfx_Offset_constructor, __jsb_cc_gfx_Offset_class, js_cc_gfx_Offset_finalize) - - static bool js_cc_gfx_Offset_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1279,7 +1283,7 @@ bool js_register_gfx_Offset(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_Rect_proto = nullptr; -se::Class* __jsb_cc_gfx_Rect_class = nullptr; +se::Class* __jsb_cc_gfx_Rect_class = nullptr; static bool js_gfx_Rect_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1287,7 +1291,7 @@ static bool js_gfx_Rect_get_x(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -1298,7 +1302,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_x) static bool js_gfx_Rect_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1314,7 +1318,7 @@ static bool js_gfx_Rect_get_y(se::State& s) // NOLINT(readability-identifier-nam SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -1325,7 +1329,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_y) static bool js_gfx_Rect_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1341,7 +1345,7 @@ static bool js_gfx_Rect_get_width(se::State& s) // NOLINT(readability-identifier SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -1352,7 +1356,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_width) static bool js_gfx_Rect_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1368,7 +1372,7 @@ static bool js_gfx_Rect_get_height(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_gfx_Rect_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -1379,7 +1383,7 @@ SE_BIND_PROP_GET(js_gfx_Rect_get_height) static bool js_gfx_Rect_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Rect_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1389,33 +1393,31 @@ static bool js_gfx_Rect_set_height(se::State& s) // NOLINT(readability-identifie } SE_BIND_PROP_SET(js_gfx_Rect_set_height) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Rect * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Rect* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("width", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } return ok; @@ -1425,26 +1427,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Rect_finalize) static bool js_gfx_Rect_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Rect* cobj = JSB_ALLOC(cc::gfx::Rect); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Rect* cobj = JSB_ALLOC(cc::gfx::Rect); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1469,7 +1469,7 @@ static bool js_gfx_Rect_constructor(se::State& s) // NOLINT(readability-identifi ok &= sevalue_to_native(args[3], &(cobj->height), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1481,13 +1481,10 @@ static bool js_gfx_Rect_constructor(se::State& s) // NOLINT(readability-identifi } SE_BIND_CTOR(js_gfx_Rect_constructor, __jsb_cc_gfx_Rect_class, js_cc_gfx_Rect_finalize) - - static bool js_cc_gfx_Rect_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1515,7 +1512,7 @@ bool js_register_gfx_Rect(se::Object* obj) // NOLINT(readability-identifier-nami return true; } se::Object* __jsb_cc_gfx_Extent_proto = nullptr; -se::Class* __jsb_cc_gfx_Extent_class = nullptr; +se::Class* __jsb_cc_gfx_Extent_class = nullptr; static bool js_gfx_Extent_get_width(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1523,7 +1520,7 @@ static bool js_gfx_Extent_get_width(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Extent_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -1534,7 +1531,7 @@ SE_BIND_PROP_GET(js_gfx_Extent_get_width) static bool js_gfx_Extent_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Extent_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1550,7 +1547,7 @@ static bool js_gfx_Extent_get_height(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_gfx_Extent_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -1561,7 +1558,7 @@ SE_BIND_PROP_GET(js_gfx_Extent_get_height) static bool js_gfx_Extent_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Extent_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1577,7 +1574,7 @@ static bool js_gfx_Extent_get_depth(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Extent_get_depth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depth, s.thisObject(), s.rval()); @@ -1588,7 +1585,7 @@ SE_BIND_PROP_GET(js_gfx_Extent_get_depth) static bool js_gfx_Extent_set_depth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Extent_set_depth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1598,29 +1595,27 @@ static bool js_gfx_Extent_set_depth(se::State& s) // NOLINT(readability-identifi } SE_BIND_PROP_SET(js_gfx_Extent_set_depth) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Extent * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Extent* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("width", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("depth", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depth), ctx); } return ok; @@ -1630,26 +1625,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Extent_finalize) static bool js_gfx_Extent_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Extent* cobj = JSB_ALLOC(cc::gfx::Extent); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Extent* cobj = JSB_ALLOC(cc::gfx::Extent); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1671,7 +1664,7 @@ static bool js_gfx_Extent_constructor(se::State& s) // NOLINT(readability-identi ok &= sevalue_to_native(args[2], &(cobj->depth), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1683,13 +1676,10 @@ static bool js_gfx_Extent_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_gfx_Extent_constructor, __jsb_cc_gfx_Extent_class, js_cc_gfx_Extent_finalize) - - static bool js_cc_gfx_Extent_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1716,7 +1706,7 @@ bool js_register_gfx_Extent(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_TextureSubresLayers_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureSubresLayers_class = nullptr; +se::Class* __jsb_cc_gfx_TextureSubresLayers_class = nullptr; static bool js_gfx_TextureSubresLayers_get_mipLevel(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1724,7 +1714,7 @@ static bool js_gfx_TextureSubresLayers_get_mipLevel(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_get_mipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->mipLevel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->mipLevel, s.thisObject(), s.rval()); @@ -1735,7 +1725,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresLayers_get_mipLevel) static bool js_gfx_TextureSubresLayers_set_mipLevel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_set_mipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1751,7 +1741,7 @@ static bool js_gfx_TextureSubresLayers_get_baseArrayLayer(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_get_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseArrayLayer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseArrayLayer, s.thisObject(), s.rval()); @@ -1762,7 +1752,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresLayers_get_baseArrayLayer) static bool js_gfx_TextureSubresLayers_set_baseArrayLayer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_set_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1778,7 +1768,7 @@ static bool js_gfx_TextureSubresLayers_get_layerCount(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -1789,7 +1779,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresLayers_get_layerCount) static bool js_gfx_TextureSubresLayers_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresLayers_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1799,29 +1789,27 @@ static bool js_gfx_TextureSubresLayers_set_layerCount(se::State& s) // NOLINT(re } SE_BIND_PROP_SET(js_gfx_TextureSubresLayers_set_layerCount) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::TextureSubresLayers * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::TextureSubresLayers* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("mipLevel", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->mipLevel), ctx); } json->getProperty("baseArrayLayer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseArrayLayer), ctx); } json->getProperty("layerCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } return ok; @@ -1831,26 +1819,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureSubresLayers_finalize) static bool js_gfx_TextureSubresLayers_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::TextureSubresLayers* cobj = JSB_ALLOC(cc::gfx::TextureSubresLayers); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::TextureSubresLayers* cobj = JSB_ALLOC(cc::gfx::TextureSubresLayers); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1872,7 +1858,7 @@ static bool js_gfx_TextureSubresLayers_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[2], &(cobj->layerCount), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1884,13 +1870,10 @@ static bool js_gfx_TextureSubresLayers_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_gfx_TextureSubresLayers_constructor, __jsb_cc_gfx_TextureSubresLayers_class, js_cc_gfx_TextureSubresLayers_finalize) - - static bool js_cc_gfx_TextureSubresLayers_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1917,7 +1900,7 @@ bool js_register_gfx_TextureSubresLayers(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_gfx_TextureSubresRange_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureSubresRange_class = nullptr; +se::Class* __jsb_cc_gfx_TextureSubresRange_class = nullptr; static bool js_gfx_TextureSubresRange_get_baseMipLevel(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1925,7 +1908,7 @@ static bool js_gfx_TextureSubresRange_get_baseMipLevel(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_baseMipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseMipLevel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseMipLevel, s.thisObject(), s.rval()); @@ -1936,7 +1919,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_baseMipLevel) static bool js_gfx_TextureSubresRange_set_baseMipLevel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_baseMipLevel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1952,7 +1935,7 @@ static bool js_gfx_TextureSubresRange_get_levelCount(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->levelCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->levelCount, s.thisObject(), s.rval()); @@ -1963,7 +1946,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_levelCount) static bool js_gfx_TextureSubresRange_set_levelCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1979,7 +1962,7 @@ static bool js_gfx_TextureSubresRange_get_baseArrayLayer(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseArrayLayer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseArrayLayer, s.thisObject(), s.rval()); @@ -1990,7 +1973,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_baseArrayLayer) static bool js_gfx_TextureSubresRange_set_baseArrayLayer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_baseArrayLayer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2006,7 +1989,7 @@ static bool js_gfx_TextureSubresRange_get_layerCount(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -2017,7 +2000,7 @@ SE_BIND_PROP_GET(js_gfx_TextureSubresRange_get_layerCount) static bool js_gfx_TextureSubresRange_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureSubresRange_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2027,33 +2010,31 @@ static bool js_gfx_TextureSubresRange_set_layerCount(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_TextureSubresRange_set_layerCount) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::TextureSubresRange * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::TextureSubresRange* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("baseMipLevel", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseMipLevel), ctx); } json->getProperty("levelCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->levelCount), ctx); } json->getProperty("baseArrayLayer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseArrayLayer), ctx); } json->getProperty("layerCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } return ok; @@ -2063,26 +2044,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureSubresRange_finalize) static bool js_gfx_TextureSubresRange_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::TextureSubresRange* cobj = JSB_ALLOC(cc::gfx::TextureSubresRange); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::TextureSubresRange* cobj = JSB_ALLOC(cc::gfx::TextureSubresRange); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2107,7 +2086,7 @@ static bool js_gfx_TextureSubresRange_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[3], &(cobj->layerCount), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2119,13 +2098,10 @@ static bool js_gfx_TextureSubresRange_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_TextureSubresRange_constructor, __jsb_cc_gfx_TextureSubresRange_class, js_cc_gfx_TextureSubresRange_finalize) - - static bool js_cc_gfx_TextureSubresRange_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2153,7 +2129,7 @@ bool js_register_gfx_TextureSubresRange(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_TextureCopy_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureCopy_class = nullptr; +se::Class* __jsb_cc_gfx_TextureCopy_class = nullptr; static bool js_gfx_TextureCopy_get_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2161,7 +2137,7 @@ static bool js_gfx_TextureCopy_get_srcSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcSubres, s.thisObject(), s.rval()); @@ -2172,7 +2148,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_srcSubres) static bool js_gfx_TextureCopy_set_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2188,7 +2164,7 @@ static bool js_gfx_TextureCopy_get_srcOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcOffset, s.thisObject(), s.rval()); @@ -2199,7 +2175,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_srcOffset) static bool js_gfx_TextureCopy_set_srcOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2215,7 +2191,7 @@ static bool js_gfx_TextureCopy_get_dstSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstSubres, s.thisObject(), s.rval()); @@ -2226,7 +2202,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_dstSubres) static bool js_gfx_TextureCopy_set_dstSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2242,7 +2218,7 @@ static bool js_gfx_TextureCopy_get_dstOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstOffset, s.thisObject(), s.rval()); @@ -2253,7 +2229,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_dstOffset) static bool js_gfx_TextureCopy_set_dstOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2269,7 +2245,7 @@ static bool js_gfx_TextureCopy_get_extent(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_get_extent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->extent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->extent, s.thisObject(), s.rval()); @@ -2280,7 +2256,7 @@ SE_BIND_PROP_GET(js_gfx_TextureCopy_get_extent) static bool js_gfx_TextureCopy_set_extent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureCopy_set_extent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2290,37 +2266,35 @@ static bool js_gfx_TextureCopy_set_extent(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_TextureCopy_set_extent) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::TextureCopy * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::TextureCopy* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("srcSubres", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcSubres), ctx); } json->getProperty("srcOffset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcOffset), ctx); } json->getProperty("dstSubres", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstSubres), ctx); } json->getProperty("dstOffset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstOffset), ctx); } json->getProperty("extent", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->extent), ctx); } return ok; @@ -2330,26 +2304,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureCopy_finalize) static bool js_gfx_TextureCopy_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::TextureCopy* cobj = JSB_ALLOC(cc::gfx::TextureCopy); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::TextureCopy* cobj = JSB_ALLOC(cc::gfx::TextureCopy); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2377,7 +2349,7 @@ static bool js_gfx_TextureCopy_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[4], &(cobj->extent), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2389,13 +2361,10 @@ static bool js_gfx_TextureCopy_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_TextureCopy_constructor, __jsb_cc_gfx_TextureCopy_class, js_cc_gfx_TextureCopy_finalize) - - static bool js_cc_gfx_TextureCopy_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2424,7 +2393,7 @@ bool js_register_gfx_TextureCopy(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_TextureBlit_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureBlit_class = nullptr; +se::Class* __jsb_cc_gfx_TextureBlit_class = nullptr; static bool js_gfx_TextureBlit_get_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2432,7 +2401,7 @@ static bool js_gfx_TextureBlit_get_srcSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcSubres, s.thisObject(), s.rval()); @@ -2443,7 +2412,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_srcSubres) static bool js_gfx_TextureBlit_set_srcSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_srcSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2459,7 +2428,7 @@ static bool js_gfx_TextureBlit_get_srcOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcOffset, s.thisObject(), s.rval()); @@ -2470,7 +2439,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_srcOffset) static bool js_gfx_TextureBlit_set_srcOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_srcOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2486,7 +2455,7 @@ static bool js_gfx_TextureBlit_get_srcExtent(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_srcExtent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcExtent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcExtent, s.thisObject(), s.rval()); @@ -2497,7 +2466,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_srcExtent) static bool js_gfx_TextureBlit_set_srcExtent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_srcExtent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2513,7 +2482,7 @@ static bool js_gfx_TextureBlit_get_dstSubres(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstSubres, s.thisObject(), s.rval()); @@ -2524,7 +2493,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_dstSubres) static bool js_gfx_TextureBlit_set_dstSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_dstSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2540,7 +2509,7 @@ static bool js_gfx_TextureBlit_get_dstOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstOffset, s.thisObject(), s.rval()); @@ -2551,7 +2520,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_dstOffset) static bool js_gfx_TextureBlit_set_dstOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_dstOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2567,7 +2536,7 @@ static bool js_gfx_TextureBlit_get_dstExtent(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_get_dstExtent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstExtent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstExtent, s.thisObject(), s.rval()); @@ -2578,7 +2547,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBlit_get_dstExtent) static bool js_gfx_TextureBlit_set_dstExtent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBlit_set_dstExtent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2588,41 +2557,39 @@ static bool js_gfx_TextureBlit_set_dstExtent(se::State& s) // NOLINT(readability } SE_BIND_PROP_SET(js_gfx_TextureBlit_set_dstExtent) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::TextureBlit * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::TextureBlit* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("srcSubres", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcSubres), ctx); } json->getProperty("srcOffset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcOffset), ctx); } json->getProperty("srcExtent", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcExtent), ctx); } json->getProperty("dstSubres", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstSubres), ctx); } json->getProperty("dstOffset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstOffset), ctx); } json->getProperty("dstExtent", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstExtent), ctx); } return ok; @@ -2632,26 +2599,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureBlit_finalize) static bool js_gfx_TextureBlit_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::TextureBlit* cobj = JSB_ALLOC(cc::gfx::TextureBlit); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::TextureBlit* cobj = JSB_ALLOC(cc::gfx::TextureBlit); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2682,7 +2647,7 @@ static bool js_gfx_TextureBlit_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[5], &(cobj->dstExtent), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2694,13 +2659,10 @@ static bool js_gfx_TextureBlit_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_TextureBlit_constructor, __jsb_cc_gfx_TextureBlit_class, js_cc_gfx_TextureBlit_finalize) - - static bool js_cc_gfx_TextureBlit_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2730,7 +2692,7 @@ bool js_register_gfx_TextureBlit(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_BufferTextureCopy_proto = nullptr; -se::Class* __jsb_cc_gfx_BufferTextureCopy_class = nullptr; +se::Class* __jsb_cc_gfx_BufferTextureCopy_class = nullptr; static bool js_gfx_BufferTextureCopy_get_buffStride(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2738,7 +2700,7 @@ static bool js_gfx_BufferTextureCopy_get_buffStride(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_buffStride : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffStride, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffStride, s.thisObject(), s.rval()); @@ -2749,7 +2711,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_buffStride) static bool js_gfx_BufferTextureCopy_set_buffStride(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_buffStride : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2765,7 +2727,7 @@ static bool js_gfx_BufferTextureCopy_get_buffTexHeight(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_buffTexHeight : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffTexHeight, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffTexHeight, s.thisObject(), s.rval()); @@ -2776,7 +2738,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_buffTexHeight) static bool js_gfx_BufferTextureCopy_set_buffTexHeight(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_buffTexHeight : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2792,7 +2754,7 @@ static bool js_gfx_BufferTextureCopy_get_texOffset(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_texOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texOffset, s.thisObject(), s.rval()); @@ -2803,7 +2765,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_texOffset) static bool js_gfx_BufferTextureCopy_set_texOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_texOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2819,7 +2781,7 @@ static bool js_gfx_BufferTextureCopy_get_texExtent(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_texExtent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texExtent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texExtent, s.thisObject(), s.rval()); @@ -2830,7 +2792,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_texExtent) static bool js_gfx_BufferTextureCopy_set_texExtent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_texExtent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2846,7 +2808,7 @@ static bool js_gfx_BufferTextureCopy_get_texSubres(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_get_texSubres : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texSubres, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texSubres, s.thisObject(), s.rval()); @@ -2857,7 +2819,7 @@ SE_BIND_PROP_GET(js_gfx_BufferTextureCopy_get_texSubres) static bool js_gfx_BufferTextureCopy_set_texSubres(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferTextureCopy_set_texSubres : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2867,37 +2829,35 @@ static bool js_gfx_BufferTextureCopy_set_texSubres(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_BufferTextureCopy_set_texSubres) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::BufferTextureCopy * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::BufferTextureCopy* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("buffStride", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffStride), ctx); } json->getProperty("buffTexHeight", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffTexHeight), ctx); } json->getProperty("texOffset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texOffset), ctx); } json->getProperty("texExtent", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texExtent), ctx); } json->getProperty("texSubres", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texSubres), ctx); } return ok; @@ -2907,26 +2867,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BufferTextureCopy_finalize) static bool js_gfx_BufferTextureCopy_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::BufferTextureCopy* cobj = JSB_ALLOC(cc::gfx::BufferTextureCopy); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::BufferTextureCopy* cobj = JSB_ALLOC(cc::gfx::BufferTextureCopy); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2954,7 +2912,7 @@ static bool js_gfx_BufferTextureCopy_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[4], &(cobj->texSubres), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2966,13 +2924,10 @@ static bool js_gfx_BufferTextureCopy_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_BufferTextureCopy_constructor, __jsb_cc_gfx_BufferTextureCopy_class, js_cc_gfx_BufferTextureCopy_finalize) - - static bool js_cc_gfx_BufferTextureCopy_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3001,7 +2956,7 @@ bool js_register_gfx_BufferTextureCopy(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_Viewport_proto = nullptr; -se::Class* __jsb_cc_gfx_Viewport_class = nullptr; +se::Class* __jsb_cc_gfx_Viewport_class = nullptr; static bool js_gfx_Viewport_get_left(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3009,7 +2964,7 @@ static bool js_gfx_Viewport_get_left(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_left : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->left, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->left, s.thisObject(), s.rval()); @@ -3020,7 +2975,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_left) static bool js_gfx_Viewport_set_left(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_left : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3036,7 +2991,7 @@ static bool js_gfx_Viewport_get_top(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_top : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->top, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->top, s.thisObject(), s.rval()); @@ -3047,7 +3002,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_top) static bool js_gfx_Viewport_set_top(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_top : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3063,7 +3018,7 @@ static bool js_gfx_Viewport_get_width(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -3074,7 +3029,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_width) static bool js_gfx_Viewport_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3090,7 +3045,7 @@ static bool js_gfx_Viewport_get_height(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -3101,7 +3056,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_height) static bool js_gfx_Viewport_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3117,7 +3072,7 @@ static bool js_gfx_Viewport_get_minDepth(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_minDepth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minDepth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minDepth, s.thisObject(), s.rval()); @@ -3128,7 +3083,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_minDepth) static bool js_gfx_Viewport_set_minDepth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_minDepth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3144,7 +3099,7 @@ static bool js_gfx_Viewport_get_maxDepth(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_get_maxDepth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxDepth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxDepth, s.thisObject(), s.rval()); @@ -3155,7 +3110,7 @@ SE_BIND_PROP_GET(js_gfx_Viewport_get_maxDepth) static bool js_gfx_Viewport_set_maxDepth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Viewport_set_maxDepth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3165,41 +3120,39 @@ static bool js_gfx_Viewport_set_maxDepth(se::State& s) // NOLINT(readability-ide } SE_BIND_PROP_SET(js_gfx_Viewport_set_maxDepth) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Viewport * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Viewport* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("left", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->left), ctx); } json->getProperty("top", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->top), ctx); } json->getProperty("width", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("minDepth", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->minDepth), ctx); } json->getProperty("maxDepth", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxDepth), ctx); } return ok; @@ -3209,26 +3162,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Viewport_finalize) static bool js_gfx_Viewport_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Viewport* cobj = JSB_ALLOC(cc::gfx::Viewport); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Viewport* cobj = JSB_ALLOC(cc::gfx::Viewport); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3259,7 +3210,7 @@ static bool js_gfx_Viewport_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[5], &(cobj->maxDepth), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3271,13 +3222,10 @@ static bool js_gfx_Viewport_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_gfx_Viewport_constructor, __jsb_cc_gfx_Viewport_class, js_cc_gfx_Viewport_finalize) - - static bool js_cc_gfx_Viewport_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3307,7 +3255,7 @@ bool js_register_gfx_Viewport(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_gfx_Color_proto = nullptr; -se::Class* __jsb_cc_gfx_Color_class = nullptr; +se::Class* __jsb_cc_gfx_Color_class = nullptr; static bool js_gfx_Color_get_x(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3315,7 +3263,7 @@ static bool js_gfx_Color_get_x(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_x : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->x, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->x, s.thisObject(), s.rval()); @@ -3326,7 +3274,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_x) static bool js_gfx_Color_set_x(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_x : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3342,7 +3290,7 @@ static bool js_gfx_Color_get_y(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_y : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->y, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->y, s.thisObject(), s.rval()); @@ -3353,7 +3301,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_y) static bool js_gfx_Color_set_y(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_y : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3369,7 +3317,7 @@ static bool js_gfx_Color_get_z(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_z : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->z, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->z, s.thisObject(), s.rval()); @@ -3380,7 +3328,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_z) static bool js_gfx_Color_set_z(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_z : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3396,7 +3344,7 @@ static bool js_gfx_Color_get_w(se::State& s) // NOLINT(readability-identifier-na SE_PRECONDITION2(cobj, false, "js_gfx_Color_get_w : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->w, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->w, s.thisObject(), s.rval()); @@ -3407,7 +3355,7 @@ SE_BIND_PROP_GET(js_gfx_Color_get_w) static bool js_gfx_Color_set_w(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Color_set_w : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3417,33 +3365,31 @@ static bool js_gfx_Color_set_w(se::State& s) // NOLINT(readability-identifier-na } SE_BIND_PROP_SET(js_gfx_Color_set_w) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Color * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Color* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("x", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->x), ctx); } json->getProperty("y", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->y), ctx); } json->getProperty("z", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->z), ctx); } json->getProperty("w", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->w), ctx); } return ok; @@ -3453,26 +3399,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Color_finalize) static bool js_gfx_Color_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Color* cobj = JSB_ALLOC(cc::gfx::Color); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Color* cobj = JSB_ALLOC(cc::gfx::Color); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3497,7 +3441,7 @@ static bool js_gfx_Color_constructor(se::State& s) // NOLINT(readability-identif ok &= sevalue_to_native(args[3], &(cobj->w), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3509,13 +3453,10 @@ static bool js_gfx_Color_constructor(se::State& s) // NOLINT(readability-identif } SE_BIND_CTOR(js_gfx_Color_constructor, __jsb_cc_gfx_Color_class, js_cc_gfx_Color_finalize) - - static bool js_cc_gfx_Color_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3543,7 +3484,7 @@ bool js_register_gfx_Color(se::Object* obj) // NOLINT(readability-identifier-nam return true; } se::Object* __jsb_cc_gfx_BindingMappingInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_BindingMappingInfo_class = nullptr; +se::Class* __jsb_cc_gfx_BindingMappingInfo_class = nullptr; static bool js_gfx_BindingMappingInfo_get_maxBlockCounts(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3551,7 +3492,7 @@ static bool js_gfx_BindingMappingInfo_get_maxBlockCounts(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxBlockCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxBlockCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxBlockCounts, s.thisObject(), s.rval()); @@ -3562,7 +3503,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxBlockCounts) static bool js_gfx_BindingMappingInfo_set_maxBlockCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxBlockCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3578,7 +3519,7 @@ static bool js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts(se::State& s) SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxSamplerTextureCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxSamplerTextureCounts, s.thisObject(), s.rval()); @@ -3589,7 +3530,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSamplerTextureCounts) static bool js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSamplerTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3605,7 +3546,7 @@ static bool js_gfx_BindingMappingInfo_get_maxSamplerCounts(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSamplerCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxSamplerCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxSamplerCounts, s.thisObject(), s.rval()); @@ -3616,7 +3557,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSamplerCounts) static bool js_gfx_BindingMappingInfo_set_maxSamplerCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSamplerCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3632,7 +3573,7 @@ static bool js_gfx_BindingMappingInfo_get_maxTextureCounts(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxTextureCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxTextureCounts, s.thisObject(), s.rval()); @@ -3643,7 +3584,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxTextureCounts) static bool js_gfx_BindingMappingInfo_set_maxTextureCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxTextureCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3659,7 +3600,7 @@ static bool js_gfx_BindingMappingInfo_get_maxBufferCounts(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxBufferCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxBufferCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxBufferCounts, s.thisObject(), s.rval()); @@ -3670,7 +3611,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxBufferCounts) static bool js_gfx_BindingMappingInfo_set_maxBufferCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxBufferCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3686,7 +3627,7 @@ static bool js_gfx_BindingMappingInfo_get_maxImageCounts(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxImageCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxImageCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxImageCounts, s.thisObject(), s.rval()); @@ -3697,7 +3638,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxImageCounts) static bool js_gfx_BindingMappingInfo_set_maxImageCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxImageCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3713,7 +3654,7 @@ static bool js_gfx_BindingMappingInfo_get_maxSubpassInputCounts(se::State& s) // SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_maxSubpassInputCounts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxSubpassInputCounts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxSubpassInputCounts, s.thisObject(), s.rval()); @@ -3724,7 +3665,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_maxSubpassInputCounts) static bool js_gfx_BindingMappingInfo_set_maxSubpassInputCounts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_maxSubpassInputCounts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3740,7 +3681,7 @@ static bool js_gfx_BindingMappingInfo_get_setIndices(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_get_setIndices : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->setIndices, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->setIndices, s.thisObject(), s.rval()); @@ -3751,7 +3692,7 @@ SE_BIND_PROP_GET(js_gfx_BindingMappingInfo_get_setIndices) static bool js_gfx_BindingMappingInfo_set_setIndices(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BindingMappingInfo_set_setIndices : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3761,49 +3702,47 @@ static bool js_gfx_BindingMappingInfo_set_setIndices(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_BindingMappingInfo_set_setIndices) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::BindingMappingInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::BindingMappingInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("maxBlockCounts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxBlockCounts), ctx); } json->getProperty("maxSamplerTextureCounts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxSamplerTextureCounts), ctx); } json->getProperty("maxSamplerCounts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxSamplerCounts), ctx); } json->getProperty("maxTextureCounts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxTextureCounts), ctx); } json->getProperty("maxBufferCounts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxBufferCounts), ctx); } json->getProperty("maxImageCounts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxImageCounts), ctx); } json->getProperty("maxSubpassInputCounts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxSubpassInputCounts), ctx); } json->getProperty("setIndices", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->setIndices), ctx); } return ok; @@ -3813,26 +3752,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BindingMappingInfo_finalize) static bool js_gfx_BindingMappingInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::BindingMappingInfo* cobj = JSB_ALLOC(cc::gfx::BindingMappingInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::BindingMappingInfo* cobj = JSB_ALLOC(cc::gfx::BindingMappingInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3869,7 +3806,7 @@ static bool js_gfx_BindingMappingInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[7], &(cobj->setIndices), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3881,13 +3818,10 @@ static bool js_gfx_BindingMappingInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_BindingMappingInfo_constructor, __jsb_cc_gfx_BindingMappingInfo_class, js_cc_gfx_BindingMappingInfo_finalize) - - static bool js_cc_gfx_BindingMappingInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3919,7 +3853,7 @@ bool js_register_gfx_BindingMappingInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_SwapchainInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_SwapchainInfo_class = nullptr; +se::Class* __jsb_cc_gfx_SwapchainInfo_class = nullptr; static bool js_gfx_SwapchainInfo_get_windowHandle(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3927,7 +3861,7 @@ static bool js_gfx_SwapchainInfo_get_windowHandle(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_windowHandle : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->windowHandle, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->windowHandle, s.thisObject(), s.rval()); @@ -3938,7 +3872,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_windowHandle) static bool js_gfx_SwapchainInfo_set_windowHandle(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_windowHandle : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3954,7 +3888,7 @@ static bool js_gfx_SwapchainInfo_get_vsyncMode(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_vsyncMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vsyncMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vsyncMode, s.thisObject(), s.rval()); @@ -3965,7 +3899,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_vsyncMode) static bool js_gfx_SwapchainInfo_set_vsyncMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_vsyncMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3981,7 +3915,7 @@ static bool js_gfx_SwapchainInfo_get_width(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -3992,7 +3926,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_width) static bool js_gfx_SwapchainInfo_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4008,7 +3942,7 @@ static bool js_gfx_SwapchainInfo_get_height(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -4019,7 +3953,7 @@ SE_BIND_PROP_GET(js_gfx_SwapchainInfo_get_height) static bool js_gfx_SwapchainInfo_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SwapchainInfo_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4029,33 +3963,31 @@ static bool js_gfx_SwapchainInfo_set_height(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_SwapchainInfo_set_height) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::SwapchainInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::SwapchainInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("windowHandle", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->windowHandle), ctx); } json->getProperty("vsyncMode", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vsyncMode), ctx); } json->getProperty("width", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } return ok; @@ -4065,26 +3997,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SwapchainInfo_finalize) static bool js_gfx_SwapchainInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::SwapchainInfo* cobj = JSB_ALLOC(cc::gfx::SwapchainInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::SwapchainInfo* cobj = JSB_ALLOC(cc::gfx::SwapchainInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4109,7 +4039,7 @@ static bool js_gfx_SwapchainInfo_constructor(se::State& s) // NOLINT(readability ok &= sevalue_to_native(args[3], &(cobj->height), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4121,13 +4051,10 @@ static bool js_gfx_SwapchainInfo_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_gfx_SwapchainInfo_constructor, __jsb_cc_gfx_SwapchainInfo_class, js_cc_gfx_SwapchainInfo_finalize) - - static bool js_cc_gfx_SwapchainInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4155,7 +4082,7 @@ bool js_register_gfx_SwapchainInfo(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_DeviceInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DeviceInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DeviceInfo_class = nullptr; static bool js_gfx_DeviceInfo_get_bindingMappingInfo(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4163,7 +4090,7 @@ static bool js_gfx_DeviceInfo_get_bindingMappingInfo(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_DeviceInfo_get_bindingMappingInfo : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bindingMappingInfo, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bindingMappingInfo, s.thisObject(), s.rval()); @@ -4174,7 +4101,7 @@ SE_BIND_PROP_GET(js_gfx_DeviceInfo_get_bindingMappingInfo) static bool js_gfx_DeviceInfo_set_bindingMappingInfo(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DeviceInfo_set_bindingMappingInfo : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4184,21 +4111,19 @@ static bool js_gfx_DeviceInfo_set_bindingMappingInfo(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_DeviceInfo_set_bindingMappingInfo) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DeviceInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DeviceInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bindingMappingInfo", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindingMappingInfo), ctx); } return ok; @@ -4208,12 +4133,11 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DeviceInfo_finalize) static bool js_gfx_DeviceInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DeviceInfo* cobj = JSB_ALLOC(cc::gfx::DeviceInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -4225,7 +4149,7 @@ static bool js_gfx_DeviceInfo_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[0], &(cobj->bindingMappingInfo), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4237,13 +4161,10 @@ static bool js_gfx_DeviceInfo_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_DeviceInfo_constructor, __jsb_cc_gfx_DeviceInfo_class, js_cc_gfx_DeviceInfo_finalize) - - static bool js_cc_gfx_DeviceInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4268,7 +4189,7 @@ bool js_register_gfx_DeviceInfo(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_BufferInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_BufferInfo_class = nullptr; +se::Class* __jsb_cc_gfx_BufferInfo_class = nullptr; static bool js_gfx_BufferInfo_get_usage(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4276,7 +4197,7 @@ static bool js_gfx_BufferInfo_get_usage(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_usage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->usage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->usage, s.thisObject(), s.rval()); @@ -4287,7 +4208,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_usage) static bool js_gfx_BufferInfo_set_usage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_usage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4303,7 +4224,7 @@ static bool js_gfx_BufferInfo_get_memUsage(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_memUsage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->memUsage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->memUsage, s.thisObject(), s.rval()); @@ -4314,7 +4235,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_memUsage) static bool js_gfx_BufferInfo_set_memUsage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_memUsage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4330,7 +4251,7 @@ static bool js_gfx_BufferInfo_get_size(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_size : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->size, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->size, s.thisObject(), s.rval()); @@ -4341,7 +4262,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_size) static bool js_gfx_BufferInfo_set_size(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_size : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4357,7 +4278,7 @@ static bool js_gfx_BufferInfo_get_stride(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_stride : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stride, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stride, s.thisObject(), s.rval()); @@ -4368,7 +4289,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_stride) static bool js_gfx_BufferInfo_set_stride(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_stride : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4384,7 +4305,7 @@ static bool js_gfx_BufferInfo_get_flags(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_get_flags : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->flags, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->flags, s.thisObject(), s.rval()); @@ -4395,7 +4316,7 @@ SE_BIND_PROP_GET(js_gfx_BufferInfo_get_flags) static bool js_gfx_BufferInfo_set_flags(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferInfo_set_flags : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4405,37 +4326,35 @@ static bool js_gfx_BufferInfo_set_flags(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_gfx_BufferInfo_set_flags) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::BufferInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::BufferInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("usage", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->usage), ctx); } json->getProperty("memUsage", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->memUsage), ctx); } json->getProperty("size", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->size), ctx); } json->getProperty("stride", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stride), ctx); } json->getProperty("flags", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->flags), ctx); } return ok; @@ -4445,26 +4364,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BufferInfo_finalize) static bool js_gfx_BufferInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::BufferInfo* cobj = JSB_ALLOC(cc::gfx::BufferInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::BufferInfo* cobj = JSB_ALLOC(cc::gfx::BufferInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4492,7 +4409,7 @@ static bool js_gfx_BufferInfo_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[4], &(cobj->flags), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4504,13 +4421,10 @@ static bool js_gfx_BufferInfo_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_BufferInfo_constructor, __jsb_cc_gfx_BufferInfo_class, js_cc_gfx_BufferInfo_finalize) - - static bool js_cc_gfx_BufferInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4539,7 +4453,7 @@ bool js_register_gfx_BufferInfo(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_BufferViewInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_BufferViewInfo_class = nullptr; +se::Class* __jsb_cc_gfx_BufferViewInfo_class = nullptr; static bool js_gfx_BufferViewInfo_get_buffer(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4547,7 +4461,7 @@ static bool js_gfx_BufferViewInfo_get_buffer(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_get_buffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffer, s.thisObject(), s.rval()); @@ -4558,7 +4472,7 @@ SE_BIND_PROP_GET(js_gfx_BufferViewInfo_get_buffer) static bool js_gfx_BufferViewInfo_set_buffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_set_buffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4574,7 +4488,7 @@ static bool js_gfx_BufferViewInfo_get_offset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_get_offset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->offset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->offset, s.thisObject(), s.rval()); @@ -4585,7 +4499,7 @@ SE_BIND_PROP_GET(js_gfx_BufferViewInfo_get_offset) static bool js_gfx_BufferViewInfo_set_offset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_set_offset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4601,7 +4515,7 @@ static bool js_gfx_BufferViewInfo_get_range(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_get_range : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->range, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->range, s.thisObject(), s.rval()); @@ -4612,7 +4526,7 @@ SE_BIND_PROP_GET(js_gfx_BufferViewInfo_get_range) static bool js_gfx_BufferViewInfo_set_range(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BufferViewInfo_set_range : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4622,29 +4536,27 @@ static bool js_gfx_BufferViewInfo_set_range(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_BufferViewInfo_set_range) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::BufferViewInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::BufferViewInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("buffer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } json->getProperty("offset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->offset), ctx); } json->getProperty("range", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->range), ctx); } return ok; @@ -4654,26 +4566,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BufferViewInfo_finalize) static bool js_gfx_BufferViewInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::BufferViewInfo* cobj = JSB_ALLOC(cc::gfx::BufferViewInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::BufferViewInfo* cobj = JSB_ALLOC(cc::gfx::BufferViewInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4695,7 +4605,7 @@ static bool js_gfx_BufferViewInfo_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[2], &(cobj->range), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4707,13 +4617,10 @@ static bool js_gfx_BufferViewInfo_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_BufferViewInfo_constructor, __jsb_cc_gfx_BufferViewInfo_class, js_cc_gfx_BufferViewInfo_finalize) - - static bool js_cc_gfx_BufferViewInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4740,7 +4647,7 @@ bool js_register_gfx_BufferViewInfo(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_DrawInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DrawInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DrawInfo_class = nullptr; static bool js_gfx_DrawInfo_get_vertexCount(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4748,7 +4655,7 @@ static bool js_gfx_DrawInfo_get_vertexCount(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_vertexCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertexCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertexCount, s.thisObject(), s.rval()); @@ -4759,7 +4666,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_vertexCount) static bool js_gfx_DrawInfo_set_vertexCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_vertexCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4775,7 +4682,7 @@ static bool js_gfx_DrawInfo_get_firstVertex(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_firstVertex : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->firstVertex, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->firstVertex, s.thisObject(), s.rval()); @@ -4786,7 +4693,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_firstVertex) static bool js_gfx_DrawInfo_set_firstVertex(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_firstVertex : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4802,7 +4709,7 @@ static bool js_gfx_DrawInfo_get_indexCount(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_indexCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indexCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indexCount, s.thisObject(), s.rval()); @@ -4813,7 +4720,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_indexCount) static bool js_gfx_DrawInfo_set_indexCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_indexCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4829,7 +4736,7 @@ static bool js_gfx_DrawInfo_get_firstIndex(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_firstIndex : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->firstIndex, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->firstIndex, s.thisObject(), s.rval()); @@ -4840,7 +4747,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_firstIndex) static bool js_gfx_DrawInfo_set_firstIndex(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_firstIndex : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4856,7 +4763,7 @@ static bool js_gfx_DrawInfo_get_vertexOffset(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_vertexOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertexOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertexOffset, s.thisObject(), s.rval()); @@ -4867,7 +4774,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_vertexOffset) static bool js_gfx_DrawInfo_set_vertexOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_vertexOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4883,7 +4790,7 @@ static bool js_gfx_DrawInfo_get_instanceCount(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_instanceCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->instanceCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->instanceCount, s.thisObject(), s.rval()); @@ -4894,7 +4801,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_instanceCount) static bool js_gfx_DrawInfo_set_instanceCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_instanceCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4910,7 +4817,7 @@ static bool js_gfx_DrawInfo_get_firstInstance(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_get_firstInstance : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->firstInstance, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->firstInstance, s.thisObject(), s.rval()); @@ -4921,7 +4828,7 @@ SE_BIND_PROP_GET(js_gfx_DrawInfo_get_firstInstance) static bool js_gfx_DrawInfo_set_firstInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DrawInfo_set_firstInstance : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4931,45 +4838,43 @@ static bool js_gfx_DrawInfo_set_firstInstance(se::State& s) // NOLINT(readabilit } SE_BIND_PROP_SET(js_gfx_DrawInfo_set_firstInstance) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DrawInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DrawInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("vertexCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertexCount), ctx); } json->getProperty("firstVertex", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->firstVertex), ctx); } json->getProperty("indexCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indexCount), ctx); } json->getProperty("firstIndex", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->firstIndex), ctx); } json->getProperty("vertexOffset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertexOffset), ctx); } json->getProperty("instanceCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->instanceCount), ctx); } json->getProperty("firstInstance", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->firstInstance), ctx); } return ok; @@ -4979,26 +4884,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DrawInfo_finalize) static bool js_gfx_DrawInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DrawInfo* cobj = JSB_ALLOC(cc::gfx::DrawInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::DrawInfo* cobj = JSB_ALLOC(cc::gfx::DrawInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5032,7 +4935,7 @@ static bool js_gfx_DrawInfo_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[6], &(cobj->firstInstance), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5044,13 +4947,10 @@ static bool js_gfx_DrawInfo_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_gfx_DrawInfo_constructor, __jsb_cc_gfx_DrawInfo_class, js_cc_gfx_DrawInfo_finalize) - - static bool js_cc_gfx_DrawInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5081,7 +4981,7 @@ bool js_register_gfx_DrawInfo(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_gfx_DispatchInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DispatchInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DispatchInfo_class = nullptr; static bool js_gfx_DispatchInfo_get_groupCountX(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5089,7 +4989,7 @@ static bool js_gfx_DispatchInfo_get_groupCountX(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_groupCountX : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groupCountX, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groupCountX, s.thisObject(), s.rval()); @@ -5100,7 +5000,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_groupCountX) static bool js_gfx_DispatchInfo_set_groupCountX(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_groupCountX : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5116,7 +5016,7 @@ static bool js_gfx_DispatchInfo_get_groupCountY(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_groupCountY : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groupCountY, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groupCountY, s.thisObject(), s.rval()); @@ -5127,7 +5027,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_groupCountY) static bool js_gfx_DispatchInfo_set_groupCountY(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_groupCountY : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5143,7 +5043,7 @@ static bool js_gfx_DispatchInfo_get_groupCountZ(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_groupCountZ : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groupCountZ, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groupCountZ, s.thisObject(), s.rval()); @@ -5154,7 +5054,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_groupCountZ) static bool js_gfx_DispatchInfo_set_groupCountZ(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_groupCountZ : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5170,7 +5070,7 @@ static bool js_gfx_DispatchInfo_get_indirectBuffer(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indirectBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indirectBuffer, s.thisObject(), s.rval()); @@ -5181,7 +5081,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_indirectBuffer) static bool js_gfx_DispatchInfo_set_indirectBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5197,7 +5097,7 @@ static bool js_gfx_DispatchInfo_get_indirectOffset(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_get_indirectOffset : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indirectOffset, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indirectOffset, s.thisObject(), s.rval()); @@ -5208,7 +5108,7 @@ SE_BIND_PROP_GET(js_gfx_DispatchInfo_get_indirectOffset) static bool js_gfx_DispatchInfo_set_indirectOffset(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DispatchInfo_set_indirectOffset : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5218,37 +5118,35 @@ static bool js_gfx_DispatchInfo_set_indirectOffset(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_DispatchInfo_set_indirectOffset) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DispatchInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DispatchInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("groupCountX", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groupCountX), ctx); } json->getProperty("groupCountY", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groupCountY), ctx); } json->getProperty("groupCountZ", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groupCountZ), ctx); } json->getProperty("indirectBuffer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indirectBuffer), ctx); } json->getProperty("indirectOffset", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indirectOffset), ctx); } return ok; @@ -5258,26 +5156,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DispatchInfo_finalize) static bool js_gfx_DispatchInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DispatchInfo* cobj = JSB_ALLOC(cc::gfx::DispatchInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::DispatchInfo* cobj = JSB_ALLOC(cc::gfx::DispatchInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5305,7 +5201,7 @@ static bool js_gfx_DispatchInfo_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[4], &(cobj->indirectOffset), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5317,13 +5213,10 @@ static bool js_gfx_DispatchInfo_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_gfx_DispatchInfo_constructor, __jsb_cc_gfx_DispatchInfo_class, js_cc_gfx_DispatchInfo_finalize) - - static bool js_cc_gfx_DispatchInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5352,7 +5245,7 @@ bool js_register_gfx_DispatchInfo(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_gfx_IndirectBuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_IndirectBuffer_class = nullptr; +se::Class* __jsb_cc_gfx_IndirectBuffer_class = nullptr; static bool js_gfx_IndirectBuffer_get_drawInfos(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5360,7 +5253,7 @@ static bool js_gfx_IndirectBuffer_get_drawInfos(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_IndirectBuffer_get_drawInfos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->drawInfos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->drawInfos, s.thisObject(), s.rval()); @@ -5371,7 +5264,7 @@ SE_BIND_PROP_GET(js_gfx_IndirectBuffer_get_drawInfos) static bool js_gfx_IndirectBuffer_set_drawInfos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_IndirectBuffer_set_drawInfos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5381,21 +5274,19 @@ static bool js_gfx_IndirectBuffer_set_drawInfos(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_IndirectBuffer_set_drawInfos) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::IndirectBuffer * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::IndirectBuffer* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("drawInfos", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->drawInfos), ctx); } return ok; @@ -5405,12 +5296,11 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_IndirectBuffer_finalize) static bool js_gfx_IndirectBuffer_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::IndirectBuffer* cobj = JSB_ALLOC(cc::gfx::IndirectBuffer); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -5422,7 +5312,7 @@ static bool js_gfx_IndirectBuffer_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[0], &(cobj->drawInfos), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5434,13 +5324,10 @@ static bool js_gfx_IndirectBuffer_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_IndirectBuffer_constructor, __jsb_cc_gfx_IndirectBuffer_class, js_cc_gfx_IndirectBuffer_finalize) - - static bool js_cc_gfx_IndirectBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5465,7 +5352,7 @@ bool js_register_gfx_IndirectBuffer(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_TextureInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureInfo_class = nullptr; +se::Class* __jsb_cc_gfx_TextureInfo_class = nullptr; static bool js_gfx_TextureInfo_get_type(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5473,7 +5360,7 @@ static bool js_gfx_TextureInfo_get_type(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -5484,7 +5371,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_type) static bool js_gfx_TextureInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5500,7 +5387,7 @@ static bool js_gfx_TextureInfo_get_usage(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_usage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->usage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->usage, s.thisObject(), s.rval()); @@ -5511,7 +5398,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_usage) static bool js_gfx_TextureInfo_set_usage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_usage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5527,7 +5414,7 @@ static bool js_gfx_TextureInfo_get_format(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -5538,7 +5425,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_format) static bool js_gfx_TextureInfo_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5554,7 +5441,7 @@ static bool js_gfx_TextureInfo_get_width(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -5565,7 +5452,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_width) static bool js_gfx_TextureInfo_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5581,7 +5468,7 @@ static bool js_gfx_TextureInfo_get_height(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -5592,7 +5479,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_height) static bool js_gfx_TextureInfo_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5608,7 +5495,7 @@ static bool js_gfx_TextureInfo_get_flags(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_flags : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->flags, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->flags, s.thisObject(), s.rval()); @@ -5619,7 +5506,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_flags) static bool js_gfx_TextureInfo_set_flags(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_flags : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5635,7 +5522,7 @@ static bool js_gfx_TextureInfo_get_layerCount(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -5646,7 +5533,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_layerCount) static bool js_gfx_TextureInfo_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5662,7 +5549,7 @@ static bool js_gfx_TextureInfo_get_levelCount(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->levelCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->levelCount, s.thisObject(), s.rval()); @@ -5673,7 +5560,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_levelCount) static bool js_gfx_TextureInfo_set_levelCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5689,7 +5576,7 @@ static bool js_gfx_TextureInfo_get_samples(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_samples : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->samples, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->samples, s.thisObject(), s.rval()); @@ -5700,7 +5587,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_samples) static bool js_gfx_TextureInfo_set_samples(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_samples : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5716,7 +5603,7 @@ static bool js_gfx_TextureInfo_get_depth(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_depth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depth, s.thisObject(), s.rval()); @@ -5727,7 +5614,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_depth) static bool js_gfx_TextureInfo_set_depth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_depth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5743,7 +5630,7 @@ static bool js_gfx_TextureInfo_get_externalRes(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_get_externalRes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->externalRes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->externalRes, s.thisObject(), s.rval()); @@ -5754,7 +5641,7 @@ SE_BIND_PROP_GET(js_gfx_TextureInfo_get_externalRes) static bool js_gfx_TextureInfo_set_externalRes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureInfo_set_externalRes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5764,61 +5651,59 @@ static bool js_gfx_TextureInfo_set_externalRes(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_gfx_TextureInfo_set_externalRes) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::TextureInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::TextureInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("usage", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->usage), ctx); } json->getProperty("format", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("width", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("flags", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->flags), ctx); } json->getProperty("layerCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } json->getProperty("levelCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->levelCount), ctx); } json->getProperty("samples", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->samples), ctx); } json->getProperty("depth", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depth), ctx); } json->getProperty("externalRes", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->externalRes), ctx); } return ok; @@ -5828,26 +5713,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureInfo_finalize) static bool js_gfx_TextureInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::TextureInfo* cobj = JSB_ALLOC(cc::gfx::TextureInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::TextureInfo* cobj = JSB_ALLOC(cc::gfx::TextureInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5893,7 +5776,7 @@ static bool js_gfx_TextureInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[10], &(cobj->externalRes), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5905,13 +5788,10 @@ static bool js_gfx_TextureInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_TextureInfo_constructor, __jsb_cc_gfx_TextureInfo_class, js_cc_gfx_TextureInfo_finalize) - - static bool js_cc_gfx_TextureInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5946,7 +5826,7 @@ bool js_register_gfx_TextureInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_TextureViewInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureViewInfo_class = nullptr; +se::Class* __jsb_cc_gfx_TextureViewInfo_class = nullptr; static bool js_gfx_TextureViewInfo_get_texture(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5954,7 +5834,7 @@ static bool js_gfx_TextureViewInfo_get_texture(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_texture : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->texture, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->texture, s.thisObject(), s.rval()); @@ -5965,7 +5845,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_texture) static bool js_gfx_TextureViewInfo_set_texture(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_texture : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5981,7 +5861,7 @@ static bool js_gfx_TextureViewInfo_get_type(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -5992,7 +5872,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_type) static bool js_gfx_TextureViewInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6008,7 +5888,7 @@ static bool js_gfx_TextureViewInfo_get_format(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -6019,7 +5899,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_format) static bool js_gfx_TextureViewInfo_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6035,7 +5915,7 @@ static bool js_gfx_TextureViewInfo_get_baseLevel(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_baseLevel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseLevel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseLevel, s.thisObject(), s.rval()); @@ -6046,7 +5926,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_baseLevel) static bool js_gfx_TextureViewInfo_set_baseLevel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_baseLevel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6062,7 +5942,7 @@ static bool js_gfx_TextureViewInfo_get_levelCount(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->levelCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->levelCount, s.thisObject(), s.rval()); @@ -6073,7 +5953,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_levelCount) static bool js_gfx_TextureViewInfo_set_levelCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_levelCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6089,7 +5969,7 @@ static bool js_gfx_TextureViewInfo_get_baseLayer(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_baseLayer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->baseLayer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->baseLayer, s.thisObject(), s.rval()); @@ -6100,7 +5980,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_baseLayer) static bool js_gfx_TextureViewInfo_set_baseLayer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_baseLayer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6116,7 +5996,7 @@ static bool js_gfx_TextureViewInfo_get_layerCount(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_get_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layerCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layerCount, s.thisObject(), s.rval()); @@ -6127,7 +6007,7 @@ SE_BIND_PROP_GET(js_gfx_TextureViewInfo_get_layerCount) static bool js_gfx_TextureViewInfo_set_layerCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureViewInfo_set_layerCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6137,45 +6017,43 @@ static bool js_gfx_TextureViewInfo_set_layerCount(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_gfx_TextureViewInfo_set_layerCount) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::TextureViewInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::TextureViewInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("texture", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->texture), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("format", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("baseLevel", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseLevel), ctx); } json->getProperty("levelCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->levelCount), ctx); } json->getProperty("baseLayer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->baseLayer), ctx); } json->getProperty("layerCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layerCount), ctx); } return ok; @@ -6185,26 +6063,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureViewInfo_finalize) static bool js_gfx_TextureViewInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::TextureViewInfo* cobj = JSB_ALLOC(cc::gfx::TextureViewInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::TextureViewInfo* cobj = JSB_ALLOC(cc::gfx::TextureViewInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6238,7 +6114,7 @@ static bool js_gfx_TextureViewInfo_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[6], &(cobj->layerCount), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6250,13 +6126,10 @@ static bool js_gfx_TextureViewInfo_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_TextureViewInfo_constructor, __jsb_cc_gfx_TextureViewInfo_class, js_cc_gfx_TextureViewInfo_finalize) - - static bool js_cc_gfx_TextureViewInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6287,7 +6160,7 @@ bool js_register_gfx_TextureViewInfo(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_SamplerInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_SamplerInfo_class = nullptr; +se::Class* __jsb_cc_gfx_SamplerInfo_class = nullptr; static bool js_gfx_SamplerInfo_get_minFilter(se::State& s) // NOLINT(readability-identifier-naming) { @@ -6295,7 +6168,7 @@ static bool js_gfx_SamplerInfo_get_minFilter(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_minFilter : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minFilter, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minFilter, s.thisObject(), s.rval()); @@ -6306,7 +6179,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_minFilter) static bool js_gfx_SamplerInfo_set_minFilter(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_minFilter : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6322,7 +6195,7 @@ static bool js_gfx_SamplerInfo_get_magFilter(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_magFilter : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->magFilter, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->magFilter, s.thisObject(), s.rval()); @@ -6333,7 +6206,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_magFilter) static bool js_gfx_SamplerInfo_set_magFilter(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_magFilter : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6349,7 +6222,7 @@ static bool js_gfx_SamplerInfo_get_mipFilter(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_mipFilter : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->mipFilter, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->mipFilter, s.thisObject(), s.rval()); @@ -6360,7 +6233,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_mipFilter) static bool js_gfx_SamplerInfo_set_mipFilter(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_mipFilter : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6376,7 +6249,7 @@ static bool js_gfx_SamplerInfo_get_addressU(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_addressU : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->addressU, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->addressU, s.thisObject(), s.rval()); @@ -6387,7 +6260,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_addressU) static bool js_gfx_SamplerInfo_set_addressU(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_addressU : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6403,7 +6276,7 @@ static bool js_gfx_SamplerInfo_get_addressV(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_addressV : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->addressV, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->addressV, s.thisObject(), s.rval()); @@ -6414,7 +6287,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_addressV) static bool js_gfx_SamplerInfo_set_addressV(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_addressV : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6430,7 +6303,7 @@ static bool js_gfx_SamplerInfo_get_addressW(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_addressW : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->addressW, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->addressW, s.thisObject(), s.rval()); @@ -6441,7 +6314,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_addressW) static bool js_gfx_SamplerInfo_set_addressW(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_addressW : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6457,7 +6330,7 @@ static bool js_gfx_SamplerInfo_get_maxAnisotropy(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_maxAnisotropy : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxAnisotropy, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxAnisotropy, s.thisObject(), s.rval()); @@ -6468,7 +6341,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_maxAnisotropy) static bool js_gfx_SamplerInfo_set_maxAnisotropy(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_maxAnisotropy : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6484,7 +6357,7 @@ static bool js_gfx_SamplerInfo_get_cmpFunc(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_get_cmpFunc : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->cmpFunc, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->cmpFunc, s.thisObject(), s.rval()); @@ -6495,7 +6368,7 @@ SE_BIND_PROP_GET(js_gfx_SamplerInfo_get_cmpFunc) static bool js_gfx_SamplerInfo_set_cmpFunc(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SamplerInfo_set_cmpFunc : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6505,49 +6378,47 @@ static bool js_gfx_SamplerInfo_set_cmpFunc(se::State& s) // NOLINT(readability-i } SE_BIND_PROP_SET(js_gfx_SamplerInfo_set_cmpFunc) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::SamplerInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::SamplerInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("minFilter", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->minFilter), ctx); } json->getProperty("magFilter", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->magFilter), ctx); } json->getProperty("mipFilter", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->mipFilter), ctx); } json->getProperty("addressU", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->addressU), ctx); } json->getProperty("addressV", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->addressV), ctx); } json->getProperty("addressW", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->addressW), ctx); } json->getProperty("maxAnisotropy", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxAnisotropy), ctx); } json->getProperty("cmpFunc", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->cmpFunc), ctx); } return ok; @@ -6557,26 +6428,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SamplerInfo_finalize) static bool js_gfx_SamplerInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::SamplerInfo* cobj = JSB_ALLOC(cc::gfx::SamplerInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::SamplerInfo* cobj = JSB_ALLOC(cc::gfx::SamplerInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6613,7 +6482,7 @@ static bool js_gfx_SamplerInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[7], &(cobj->cmpFunc), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6625,13 +6494,10 @@ static bool js_gfx_SamplerInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_SamplerInfo_constructor, __jsb_cc_gfx_SamplerInfo_class, js_cc_gfx_SamplerInfo_finalize) - - static bool js_cc_gfx_SamplerInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6663,7 +6529,7 @@ bool js_register_gfx_SamplerInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_Uniform_proto = nullptr; -se::Class* __jsb_cc_gfx_Uniform_class = nullptr; +se::Class* __jsb_cc_gfx_Uniform_class = nullptr; static bool js_gfx_Uniform_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -6671,7 +6537,7 @@ static bool js_gfx_Uniform_get_name(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -6682,7 +6548,7 @@ SE_BIND_PROP_GET(js_gfx_Uniform_get_name) static bool js_gfx_Uniform_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6698,7 +6564,7 @@ static bool js_gfx_Uniform_get_type(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -6709,7 +6575,7 @@ SE_BIND_PROP_GET(js_gfx_Uniform_get_type) static bool js_gfx_Uniform_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6725,7 +6591,7 @@ static bool js_gfx_Uniform_get_count(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -6736,7 +6602,7 @@ SE_BIND_PROP_GET(js_gfx_Uniform_get_count) static bool js_gfx_Uniform_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Uniform_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6746,29 +6612,27 @@ static bool js_gfx_Uniform_set_count(se::State& s) // NOLINT(readability-identif } SE_BIND_PROP_SET(js_gfx_Uniform_set_count) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Uniform * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Uniform* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -6778,26 +6642,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Uniform_finalize) static bool js_gfx_Uniform_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Uniform* cobj = JSB_ALLOC(cc::gfx::Uniform); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Uniform* cobj = JSB_ALLOC(cc::gfx::Uniform); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6819,7 +6681,7 @@ static bool js_gfx_Uniform_constructor(se::State& s) // NOLINT(readability-ident ok &= sevalue_to_native(args[2], &(cobj->count), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6831,13 +6693,10 @@ static bool js_gfx_Uniform_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_gfx_Uniform_constructor, __jsb_cc_gfx_Uniform_class, js_cc_gfx_Uniform_finalize) - - static bool js_cc_gfx_Uniform_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6864,7 +6723,7 @@ bool js_register_gfx_Uniform(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_gfx_UniformBlock_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformBlock_class = nullptr; +se::Class* __jsb_cc_gfx_UniformBlock_class = nullptr; static bool js_gfx_UniformBlock_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -6872,7 +6731,7 @@ static bool js_gfx_UniformBlock_get_set(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -6883,7 +6742,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_set) static bool js_gfx_UniformBlock_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6899,7 +6758,7 @@ static bool js_gfx_UniformBlock_get_binding(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -6910,7 +6769,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_binding) static bool js_gfx_UniformBlock_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6926,7 +6785,7 @@ static bool js_gfx_UniformBlock_get_name(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -6937,7 +6796,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_name) static bool js_gfx_UniformBlock_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6953,7 +6812,7 @@ static bool js_gfx_UniformBlock_get_members(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_members : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->members, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->members, s.thisObject(), s.rval()); @@ -6964,7 +6823,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_members) static bool js_gfx_UniformBlock_set_members(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_members : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -6980,7 +6839,7 @@ static bool js_gfx_UniformBlock_get_count(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -6991,7 +6850,7 @@ SE_BIND_PROP_GET(js_gfx_UniformBlock_get_count) static bool js_gfx_UniformBlock_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformBlock_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7001,37 +6860,35 @@ static bool js_gfx_UniformBlock_set_count(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_UniformBlock_set_count) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::UniformBlock * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::UniformBlock* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("members", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->members), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -7041,26 +6898,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformBlock_finalize) static bool js_gfx_UniformBlock_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::UniformBlock* cobj = JSB_ALLOC(cc::gfx::UniformBlock); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::UniformBlock* cobj = JSB_ALLOC(cc::gfx::UniformBlock); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7088,7 +6943,7 @@ static bool js_gfx_UniformBlock_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[4], &(cobj->count), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7100,13 +6955,10 @@ static bool js_gfx_UniformBlock_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_gfx_UniformBlock_constructor, __jsb_cc_gfx_UniformBlock_class, js_cc_gfx_UniformBlock_finalize) - - static bool js_cc_gfx_UniformBlock_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7135,7 +6987,7 @@ bool js_register_gfx_UniformBlock(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_gfx_UniformSamplerTexture_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformSamplerTexture_class = nullptr; +se::Class* __jsb_cc_gfx_UniformSamplerTexture_class = nullptr; static bool js_gfx_UniformSamplerTexture_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7143,7 +6995,7 @@ static bool js_gfx_UniformSamplerTexture_get_set(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7154,7 +7006,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_set) static bool js_gfx_UniformSamplerTexture_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7170,7 +7022,7 @@ static bool js_gfx_UniformSamplerTexture_get_binding(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7181,7 +7033,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_binding) static bool js_gfx_UniformSamplerTexture_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7197,7 +7049,7 @@ static bool js_gfx_UniformSamplerTexture_get_name(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7208,7 +7060,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_name) static bool js_gfx_UniformSamplerTexture_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7224,7 +7076,7 @@ static bool js_gfx_UniformSamplerTexture_get_type(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -7235,7 +7087,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_type) static bool js_gfx_UniformSamplerTexture_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7251,7 +7103,7 @@ static bool js_gfx_UniformSamplerTexture_get_count(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -7262,7 +7114,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSamplerTexture_get_count) static bool js_gfx_UniformSamplerTexture_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSamplerTexture_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7272,37 +7124,35 @@ static bool js_gfx_UniformSamplerTexture_set_count(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_UniformSamplerTexture_set_count) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::UniformSamplerTexture * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::UniformSamplerTexture* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -7312,26 +7162,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformSamplerTexture_finalize) static bool js_gfx_UniformSamplerTexture_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::UniformSamplerTexture* cobj = JSB_ALLOC(cc::gfx::UniformSamplerTexture); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::UniformSamplerTexture* cobj = JSB_ALLOC(cc::gfx::UniformSamplerTexture); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7359,7 +7207,7 @@ static bool js_gfx_UniformSamplerTexture_constructor(se::State& s) // NOLINT(rea ok &= sevalue_to_native(args[4], &(cobj->count), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7371,13 +7219,10 @@ static bool js_gfx_UniformSamplerTexture_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_gfx_UniformSamplerTexture_constructor, __jsb_cc_gfx_UniformSamplerTexture_class, js_cc_gfx_UniformSamplerTexture_finalize) - - static bool js_cc_gfx_UniformSamplerTexture_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7406,7 +7251,7 @@ bool js_register_gfx_UniformSamplerTexture(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_cc_gfx_UniformSampler_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformSampler_class = nullptr; +se::Class* __jsb_cc_gfx_UniformSampler_class = nullptr; static bool js_gfx_UniformSampler_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7414,7 +7259,7 @@ static bool js_gfx_UniformSampler_get_set(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7425,7 +7270,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_set) static bool js_gfx_UniformSampler_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7441,7 +7286,7 @@ static bool js_gfx_UniformSampler_get_binding(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7452,7 +7297,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_binding) static bool js_gfx_UniformSampler_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7468,7 +7313,7 @@ static bool js_gfx_UniformSampler_get_name(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7479,7 +7324,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_name) static bool js_gfx_UniformSampler_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7495,7 +7340,7 @@ static bool js_gfx_UniformSampler_get_count(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -7506,7 +7351,7 @@ SE_BIND_PROP_GET(js_gfx_UniformSampler_get_count) static bool js_gfx_UniformSampler_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformSampler_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7516,33 +7361,31 @@ static bool js_gfx_UniformSampler_set_count(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_UniformSampler_set_count) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::UniformSampler * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::UniformSampler* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -7552,26 +7395,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformSampler_finalize) static bool js_gfx_UniformSampler_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::UniformSampler* cobj = JSB_ALLOC(cc::gfx::UniformSampler); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::UniformSampler* cobj = JSB_ALLOC(cc::gfx::UniformSampler); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7596,7 +7437,7 @@ static bool js_gfx_UniformSampler_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[3], &(cobj->count), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7608,13 +7449,10 @@ static bool js_gfx_UniformSampler_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_UniformSampler_constructor, __jsb_cc_gfx_UniformSampler_class, js_cc_gfx_UniformSampler_finalize) - - static bool js_cc_gfx_UniformSampler_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7642,7 +7480,7 @@ bool js_register_gfx_UniformSampler(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_UniformTexture_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformTexture_class = nullptr; +se::Class* __jsb_cc_gfx_UniformTexture_class = nullptr; static bool js_gfx_UniformTexture_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7650,7 +7488,7 @@ static bool js_gfx_UniformTexture_get_set(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7661,7 +7499,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_set) static bool js_gfx_UniformTexture_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7677,7 +7515,7 @@ static bool js_gfx_UniformTexture_get_binding(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7688,7 +7526,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_binding) static bool js_gfx_UniformTexture_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7704,7 +7542,7 @@ static bool js_gfx_UniformTexture_get_name(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7715,7 +7553,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_name) static bool js_gfx_UniformTexture_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7731,7 +7569,7 @@ static bool js_gfx_UniformTexture_get_type(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -7742,7 +7580,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_type) static bool js_gfx_UniformTexture_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7758,7 +7596,7 @@ static bool js_gfx_UniformTexture_get_count(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -7769,7 +7607,7 @@ SE_BIND_PROP_GET(js_gfx_UniformTexture_get_count) static bool js_gfx_UniformTexture_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformTexture_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7779,37 +7617,35 @@ static bool js_gfx_UniformTexture_set_count(se::State& s) // NOLINT(readability- } SE_BIND_PROP_SET(js_gfx_UniformTexture_set_count) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::UniformTexture * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::UniformTexture* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -7819,26 +7655,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformTexture_finalize) static bool js_gfx_UniformTexture_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::UniformTexture* cobj = JSB_ALLOC(cc::gfx::UniformTexture); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::UniformTexture* cobj = JSB_ALLOC(cc::gfx::UniformTexture); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7866,7 +7700,7 @@ static bool js_gfx_UniformTexture_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[4], &(cobj->count), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7878,13 +7712,10 @@ static bool js_gfx_UniformTexture_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_UniformTexture_constructor, __jsb_cc_gfx_UniformTexture_class, js_cc_gfx_UniformTexture_finalize) - - static bool js_cc_gfx_UniformTexture_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7913,7 +7744,7 @@ bool js_register_gfx_UniformTexture(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_UniformStorageImage_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformStorageImage_class = nullptr; +se::Class* __jsb_cc_gfx_UniformStorageImage_class = nullptr; static bool js_gfx_UniformStorageImage_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -7921,7 +7752,7 @@ static bool js_gfx_UniformStorageImage_get_set(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -7932,7 +7763,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_set) static bool js_gfx_UniformStorageImage_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7948,7 +7779,7 @@ static bool js_gfx_UniformStorageImage_get_binding(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -7959,7 +7790,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_binding) static bool js_gfx_UniformStorageImage_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -7975,7 +7806,7 @@ static bool js_gfx_UniformStorageImage_get_name(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -7986,7 +7817,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_name) static bool js_gfx_UniformStorageImage_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8002,7 +7833,7 @@ static bool js_gfx_UniformStorageImage_get_type(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -8013,7 +7844,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_type) static bool js_gfx_UniformStorageImage_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8029,7 +7860,7 @@ static bool js_gfx_UniformStorageImage_get_count(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -8040,7 +7871,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_count) static bool js_gfx_UniformStorageImage_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8056,7 +7887,7 @@ static bool js_gfx_UniformStorageImage_get_memoryAccess(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_get_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->memoryAccess, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->memoryAccess, s.thisObject(), s.rval()); @@ -8067,7 +7898,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageImage_get_memoryAccess) static bool js_gfx_UniformStorageImage_set_memoryAccess(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageImage_set_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8077,41 +7908,39 @@ static bool js_gfx_UniformStorageImage_set_memoryAccess(se::State& s) // NOLINT( } SE_BIND_PROP_SET(js_gfx_UniformStorageImage_set_memoryAccess) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::UniformStorageImage * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::UniformStorageImage* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } json->getProperty("memoryAccess", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->memoryAccess), ctx); } return ok; @@ -8121,26 +7950,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformStorageImage_finalize) static bool js_gfx_UniformStorageImage_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::UniformStorageImage* cobj = JSB_ALLOC(cc::gfx::UniformStorageImage); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::UniformStorageImage* cobj = JSB_ALLOC(cc::gfx::UniformStorageImage); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8171,7 +7998,7 @@ static bool js_gfx_UniformStorageImage_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[5], &(cobj->memoryAccess), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8183,13 +8010,10 @@ static bool js_gfx_UniformStorageImage_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_gfx_UniformStorageImage_constructor, __jsb_cc_gfx_UniformStorageImage_class, js_cc_gfx_UniformStorageImage_finalize) - - static bool js_cc_gfx_UniformStorageImage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8219,7 +8043,7 @@ bool js_register_gfx_UniformStorageImage(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_gfx_UniformStorageBuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformStorageBuffer_class = nullptr; +se::Class* __jsb_cc_gfx_UniformStorageBuffer_class = nullptr; static bool js_gfx_UniformStorageBuffer_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8227,7 +8051,7 @@ static bool js_gfx_UniformStorageBuffer_get_set(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -8238,7 +8062,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_set) static bool js_gfx_UniformStorageBuffer_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8254,7 +8078,7 @@ static bool js_gfx_UniformStorageBuffer_get_binding(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -8265,7 +8089,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_binding) static bool js_gfx_UniformStorageBuffer_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8281,7 +8105,7 @@ static bool js_gfx_UniformStorageBuffer_get_name(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -8292,7 +8116,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_name) static bool js_gfx_UniformStorageBuffer_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8308,7 +8132,7 @@ static bool js_gfx_UniformStorageBuffer_get_count(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -8319,7 +8143,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_count) static bool js_gfx_UniformStorageBuffer_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8335,7 +8159,7 @@ static bool js_gfx_UniformStorageBuffer_get_memoryAccess(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_get_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->memoryAccess, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->memoryAccess, s.thisObject(), s.rval()); @@ -8346,7 +8170,7 @@ SE_BIND_PROP_GET(js_gfx_UniformStorageBuffer_get_memoryAccess) static bool js_gfx_UniformStorageBuffer_set_memoryAccess(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformStorageBuffer_set_memoryAccess : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8356,37 +8180,35 @@ static bool js_gfx_UniformStorageBuffer_set_memoryAccess(se::State& s) // NOLINT } SE_BIND_PROP_SET(js_gfx_UniformStorageBuffer_set_memoryAccess) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::UniformStorageBuffer * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::UniformStorageBuffer* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } json->getProperty("memoryAccess", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->memoryAccess), ctx); } return ok; @@ -8396,26 +8218,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformStorageBuffer_finalize) static bool js_gfx_UniformStorageBuffer_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::UniformStorageBuffer* cobj = JSB_ALLOC(cc::gfx::UniformStorageBuffer); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::UniformStorageBuffer* cobj = JSB_ALLOC(cc::gfx::UniformStorageBuffer); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8443,7 +8263,7 @@ static bool js_gfx_UniformStorageBuffer_constructor(se::State& s) // NOLINT(read ok &= sevalue_to_native(args[4], &(cobj->memoryAccess), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8455,13 +8275,10 @@ static bool js_gfx_UniformStorageBuffer_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_gfx_UniformStorageBuffer_constructor, __jsb_cc_gfx_UniformStorageBuffer_class, js_cc_gfx_UniformStorageBuffer_finalize) - - static bool js_cc_gfx_UniformStorageBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8490,7 +8307,7 @@ bool js_register_gfx_UniformStorageBuffer(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_gfx_UniformInputAttachment_proto = nullptr; -se::Class* __jsb_cc_gfx_UniformInputAttachment_class = nullptr; +se::Class* __jsb_cc_gfx_UniformInputAttachment_class = nullptr; static bool js_gfx_UniformInputAttachment_get_set(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8498,7 +8315,7 @@ static bool js_gfx_UniformInputAttachment_get_set(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_set : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->set, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->set, s.thisObject(), s.rval()); @@ -8509,7 +8326,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_set) static bool js_gfx_UniformInputAttachment_set_set(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_set : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8525,7 +8342,7 @@ static bool js_gfx_UniformInputAttachment_get_binding(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -8536,7 +8353,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_binding) static bool js_gfx_UniformInputAttachment_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8552,7 +8369,7 @@ static bool js_gfx_UniformInputAttachment_get_name(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -8563,7 +8380,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_name) static bool js_gfx_UniformInputAttachment_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8579,7 +8396,7 @@ static bool js_gfx_UniformInputAttachment_get_count(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -8590,7 +8407,7 @@ SE_BIND_PROP_GET(js_gfx_UniformInputAttachment_get_count) static bool js_gfx_UniformInputAttachment_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_UniformInputAttachment_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8600,33 +8417,31 @@ static bool js_gfx_UniformInputAttachment_set_count(se::State& s) // NOLINT(read } SE_BIND_PROP_SET(js_gfx_UniformInputAttachment_set_count) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::UniformInputAttachment * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::UniformInputAttachment* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("set", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->set), ctx); } json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } return ok; @@ -8636,26 +8451,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_UniformInputAttachment_finalize) static bool js_gfx_UniformInputAttachment_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::UniformInputAttachment* cobj = JSB_ALLOC(cc::gfx::UniformInputAttachment); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::UniformInputAttachment* cobj = JSB_ALLOC(cc::gfx::UniformInputAttachment); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8680,7 +8493,7 @@ static bool js_gfx_UniformInputAttachment_constructor(se::State& s) // NOLINT(re ok &= sevalue_to_native(args[3], &(cobj->count), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8692,13 +8505,10 @@ static bool js_gfx_UniformInputAttachment_constructor(se::State& s) // NOLINT(re } SE_BIND_CTOR(js_gfx_UniformInputAttachment_constructor, __jsb_cc_gfx_UniformInputAttachment_class, js_cc_gfx_UniformInputAttachment_finalize) - - static bool js_cc_gfx_UniformInputAttachment_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8726,7 +8536,7 @@ bool js_register_gfx_UniformInputAttachment(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_cc_gfx_ShaderStage_proto = nullptr; -se::Class* __jsb_cc_gfx_ShaderStage_class = nullptr; +se::Class* __jsb_cc_gfx_ShaderStage_class = nullptr; static bool js_gfx_ShaderStage_get_stage(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8734,7 +8544,7 @@ static bool js_gfx_ShaderStage_get_stage(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_get_stage : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stage, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stage, s.thisObject(), s.rval()); @@ -8745,7 +8555,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderStage_get_stage) static bool js_gfx_ShaderStage_set_stage(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_set_stage : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8761,7 +8571,7 @@ static bool js_gfx_ShaderStage_get_source(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_get_source : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->source, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->source, s.thisObject(), s.rval()); @@ -8772,7 +8582,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderStage_get_source) static bool js_gfx_ShaderStage_set_source(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderStage_set_source : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8782,25 +8592,23 @@ static bool js_gfx_ShaderStage_set_source(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_ShaderStage_set_source) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::ShaderStage * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::ShaderStage* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("stage", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stage), ctx); } json->getProperty("source", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->source), ctx); } return ok; @@ -8810,26 +8618,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_ShaderStage_finalize) static bool js_gfx_ShaderStage_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::ShaderStage* cobj = JSB_ALLOC(cc::gfx::ShaderStage); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::ShaderStage* cobj = JSB_ALLOC(cc::gfx::ShaderStage); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8848,7 +8654,7 @@ static bool js_gfx_ShaderStage_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[1], &(cobj->source), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8860,13 +8666,10 @@ static bool js_gfx_ShaderStage_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_ShaderStage_constructor, __jsb_cc_gfx_ShaderStage_class, js_cc_gfx_ShaderStage_finalize) - - static bool js_cc_gfx_ShaderStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8892,7 +8695,7 @@ bool js_register_gfx_ShaderStage(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_Attribute_proto = nullptr; -se::Class* __jsb_cc_gfx_Attribute_class = nullptr; +se::Class* __jsb_cc_gfx_Attribute_class = nullptr; static bool js_gfx_Attribute_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8900,7 +8703,7 @@ static bool js_gfx_Attribute_get_name(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -8911,7 +8714,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_name) static bool js_gfx_Attribute_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8927,7 +8730,7 @@ static bool js_gfx_Attribute_get_format(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -8938,7 +8741,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_format) static bool js_gfx_Attribute_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8954,7 +8757,7 @@ static bool js_gfx_Attribute_get_isNormalized(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_isNormalized : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isNormalized, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isNormalized, s.thisObject(), s.rval()); @@ -8965,7 +8768,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_isNormalized) static bool js_gfx_Attribute_set_isNormalized(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_isNormalized : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8981,7 +8784,7 @@ static bool js_gfx_Attribute_get_stream(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_stream : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stream, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stream, s.thisObject(), s.rval()); @@ -8992,7 +8795,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_stream) static bool js_gfx_Attribute_set_stream(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_stream : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9008,7 +8811,7 @@ static bool js_gfx_Attribute_get_isInstanced(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_isInstanced : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isInstanced, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isInstanced, s.thisObject(), s.rval()); @@ -9019,7 +8822,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_isInstanced) static bool js_gfx_Attribute_set_isInstanced(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_isInstanced : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9035,7 +8838,7 @@ static bool js_gfx_Attribute_get_location(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_get_location : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->location, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->location, s.thisObject(), s.rval()); @@ -9046,7 +8849,7 @@ SE_BIND_PROP_GET(js_gfx_Attribute_get_location) static bool js_gfx_Attribute_set_location(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Attribute_set_location : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9056,41 +8859,39 @@ static bool js_gfx_Attribute_set_location(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_Attribute_set_location) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::Attribute * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::Attribute* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("format", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("isNormalized", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isNormalized), ctx); } json->getProperty("stream", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stream), ctx); } json->getProperty("isInstanced", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isInstanced), ctx); } json->getProperty("location", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->location), ctx); } return ok; @@ -9100,26 +8901,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_Attribute_finalize) static bool js_gfx_Attribute_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::Attribute* cobj = JSB_ALLOC(cc::gfx::Attribute); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::Attribute* cobj = JSB_ALLOC(cc::gfx::Attribute); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9150,7 +8949,7 @@ static bool js_gfx_Attribute_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[5], &(cobj->location), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9162,13 +8961,10 @@ static bool js_gfx_Attribute_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_Attribute_constructor, __jsb_cc_gfx_Attribute_class, js_cc_gfx_Attribute_finalize) - - static bool js_cc_gfx_Attribute_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9198,7 +8994,7 @@ bool js_register_gfx_Attribute(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_ShaderInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_ShaderInfo_class = nullptr; +se::Class* __jsb_cc_gfx_ShaderInfo_class = nullptr; static bool js_gfx_ShaderInfo_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -9206,7 +9002,7 @@ static bool js_gfx_ShaderInfo_get_name(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -9217,7 +9013,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_name) static bool js_gfx_ShaderInfo_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9233,7 +9029,7 @@ static bool js_gfx_ShaderInfo_get_stages(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_stages : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stages, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stages, s.thisObject(), s.rval()); @@ -9244,7 +9040,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_stages) static bool js_gfx_ShaderInfo_set_stages(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_stages : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9260,7 +9056,7 @@ static bool js_gfx_ShaderInfo_get_attributes(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->attributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->attributes, s.thisObject(), s.rval()); @@ -9271,7 +9067,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_attributes) static bool js_gfx_ShaderInfo_set_attributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9287,7 +9083,7 @@ static bool js_gfx_ShaderInfo_get_blocks(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_blocks : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blocks, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blocks, s.thisObject(), s.rval()); @@ -9298,7 +9094,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_blocks) static bool js_gfx_ShaderInfo_set_blocks(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_blocks : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9314,7 +9110,7 @@ static bool js_gfx_ShaderInfo_get_buffers(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_buffers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->buffers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->buffers, s.thisObject(), s.rval()); @@ -9325,7 +9121,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_buffers) static bool js_gfx_ShaderInfo_set_buffers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_buffers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9341,7 +9137,7 @@ static bool js_gfx_ShaderInfo_get_samplerTextures(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_samplerTextures : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->samplerTextures, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->samplerTextures, s.thisObject(), s.rval()); @@ -9352,7 +9148,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_samplerTextures) static bool js_gfx_ShaderInfo_set_samplerTextures(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_samplerTextures : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9368,7 +9164,7 @@ static bool js_gfx_ShaderInfo_get_samplers(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_samplers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->samplers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->samplers, s.thisObject(), s.rval()); @@ -9379,7 +9175,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_samplers) static bool js_gfx_ShaderInfo_set_samplers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_samplers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9395,7 +9191,7 @@ static bool js_gfx_ShaderInfo_get_textures(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_textures : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->textures, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->textures, s.thisObject(), s.rval()); @@ -9406,7 +9202,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_textures) static bool js_gfx_ShaderInfo_set_textures(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_textures : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9422,7 +9218,7 @@ static bool js_gfx_ShaderInfo_get_images(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_images : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->images, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->images, s.thisObject(), s.rval()); @@ -9433,7 +9229,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_images) static bool js_gfx_ShaderInfo_set_images(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_images : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9449,7 +9245,7 @@ static bool js_gfx_ShaderInfo_get_subpassInputs(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_get_subpassInputs : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->subpassInputs, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->subpassInputs, s.thisObject(), s.rval()); @@ -9460,7 +9256,7 @@ SE_BIND_PROP_GET(js_gfx_ShaderInfo_get_subpassInputs) static bool js_gfx_ShaderInfo_set_subpassInputs(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ShaderInfo_set_subpassInputs : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9470,57 +9266,55 @@ static bool js_gfx_ShaderInfo_set_subpassInputs(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_ShaderInfo_set_subpassInputs) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::ShaderInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::ShaderInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("stages", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stages), ctx); } json->getProperty("attributes", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->attributes), ctx); } json->getProperty("blocks", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blocks), ctx); } json->getProperty("buffers", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffers), ctx); } json->getProperty("samplerTextures", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->samplerTextures), ctx); } json->getProperty("samplers", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->samplers), ctx); } json->getProperty("textures", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->textures), ctx); } json->getProperty("images", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->images), ctx); } json->getProperty("subpassInputs", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->subpassInputs), ctx); } return ok; @@ -9530,26 +9324,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_ShaderInfo_finalize) static bool js_gfx_ShaderInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::ShaderInfo* cobj = JSB_ALLOC(cc::gfx::ShaderInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::ShaderInfo* cobj = JSB_ALLOC(cc::gfx::ShaderInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9592,7 +9384,7 @@ static bool js_gfx_ShaderInfo_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[9], &(cobj->subpassInputs), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9604,13 +9396,10 @@ static bool js_gfx_ShaderInfo_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_ShaderInfo_constructor, __jsb_cc_gfx_ShaderInfo_class, js_cc_gfx_ShaderInfo_finalize) - - static bool js_cc_gfx_ShaderInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9644,7 +9433,7 @@ bool js_register_gfx_ShaderInfo(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_InputAssemblerInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_InputAssemblerInfo_class = nullptr; +se::Class* __jsb_cc_gfx_InputAssemblerInfo_class = nullptr; static bool js_gfx_InputAssemblerInfo_get_attributes(se::State& s) // NOLINT(readability-identifier-naming) { @@ -9652,7 +9441,7 @@ static bool js_gfx_InputAssemblerInfo_get_attributes(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->attributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->attributes, s.thisObject(), s.rval()); @@ -9663,7 +9452,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_attributes) static bool js_gfx_InputAssemblerInfo_set_attributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9679,7 +9468,7 @@ static bool js_gfx_InputAssemblerInfo_get_vertexBuffers(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_vertexBuffers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertexBuffers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertexBuffers, s.thisObject(), s.rval()); @@ -9690,7 +9479,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_vertexBuffers) static bool js_gfx_InputAssemblerInfo_set_vertexBuffers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_vertexBuffers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9706,7 +9495,7 @@ static bool js_gfx_InputAssemblerInfo_get_indexBuffer(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_indexBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indexBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indexBuffer, s.thisObject(), s.rval()); @@ -9717,7 +9506,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_indexBuffer) static bool js_gfx_InputAssemblerInfo_set_indexBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_indexBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9733,7 +9522,7 @@ static bool js_gfx_InputAssemblerInfo_get_indirectBuffer(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_get_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->indirectBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->indirectBuffer, s.thisObject(), s.rval()); @@ -9744,7 +9533,7 @@ SE_BIND_PROP_GET(js_gfx_InputAssemblerInfo_get_indirectBuffer) static bool js_gfx_InputAssemblerInfo_set_indirectBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssemblerInfo_set_indirectBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9754,33 +9543,31 @@ static bool js_gfx_InputAssemblerInfo_set_indirectBuffer(se::State& s) // NOLINT } SE_BIND_PROP_SET(js_gfx_InputAssemblerInfo_set_indirectBuffer) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::InputAssemblerInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::InputAssemblerInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("attributes", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->attributes), ctx); } json->getProperty("vertexBuffers", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertexBuffers), ctx); } json->getProperty("indexBuffer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indexBuffer), ctx); } json->getProperty("indirectBuffer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indirectBuffer), ctx); } return ok; @@ -9790,26 +9577,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_InputAssemblerInfo_finalize) static bool js_gfx_InputAssemblerInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::InputAssemblerInfo* cobj = JSB_ALLOC(cc::gfx::InputAssemblerInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::InputAssemblerInfo* cobj = JSB_ALLOC(cc::gfx::InputAssemblerInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9834,7 +9619,7 @@ static bool js_gfx_InputAssemblerInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[3], &(cobj->indirectBuffer), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9846,13 +9631,10 @@ static bool js_gfx_InputAssemblerInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_InputAssemblerInfo_constructor, __jsb_cc_gfx_InputAssemblerInfo_class, js_cc_gfx_InputAssemblerInfo_finalize) - - static bool js_cc_gfx_InputAssemblerInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9880,7 +9662,7 @@ bool js_register_gfx_InputAssemblerInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_ColorAttachment_proto = nullptr; -se::Class* __jsb_cc_gfx_ColorAttachment_class = nullptr; +se::Class* __jsb_cc_gfx_ColorAttachment_class = nullptr; static bool js_gfx_ColorAttachment_get_format(se::State& s) // NOLINT(readability-identifier-naming) { @@ -9888,7 +9670,7 @@ static bool js_gfx_ColorAttachment_get_format(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -9899,7 +9681,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_format) static bool js_gfx_ColorAttachment_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9915,7 +9697,7 @@ static bool js_gfx_ColorAttachment_get_sampleCount(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->sampleCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->sampleCount, s.thisObject(), s.rval()); @@ -9926,7 +9708,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_sampleCount) static bool js_gfx_ColorAttachment_set_sampleCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9942,7 +9724,7 @@ static bool js_gfx_ColorAttachment_get_loadOp(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_loadOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->loadOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->loadOp, s.thisObject(), s.rval()); @@ -9953,7 +9735,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_loadOp) static bool js_gfx_ColorAttachment_set_loadOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_loadOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9969,7 +9751,7 @@ static bool js_gfx_ColorAttachment_get_storeOp(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_storeOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->storeOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->storeOp, s.thisObject(), s.rval()); @@ -9980,7 +9762,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_storeOp) static bool js_gfx_ColorAttachment_set_storeOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_storeOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -9996,7 +9778,7 @@ static bool js_gfx_ColorAttachment_get_beginAccesses(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->beginAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->beginAccesses, s.thisObject(), s.rval()); @@ -10007,7 +9789,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_beginAccesses) static bool js_gfx_ColorAttachment_set_beginAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10023,7 +9805,7 @@ static bool js_gfx_ColorAttachment_get_endAccesses(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->endAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->endAccesses, s.thisObject(), s.rval()); @@ -10034,7 +9816,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_endAccesses) static bool js_gfx_ColorAttachment_set_endAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10050,7 +9832,7 @@ static bool js_gfx_ColorAttachment_get_isGeneralLayout(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_get_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isGeneralLayout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isGeneralLayout, s.thisObject(), s.rval()); @@ -10061,7 +9843,7 @@ SE_BIND_PROP_GET(js_gfx_ColorAttachment_get_isGeneralLayout) static bool js_gfx_ColorAttachment_set_isGeneralLayout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_ColorAttachment_set_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10071,45 +9853,43 @@ static bool js_gfx_ColorAttachment_set_isGeneralLayout(se::State& s) // NOLINT(r } SE_BIND_PROP_SET(js_gfx_ColorAttachment_set_isGeneralLayout) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::ColorAttachment * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::ColorAttachment* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("format", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("sampleCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->sampleCount), ctx); } json->getProperty("loadOp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->loadOp), ctx); } json->getProperty("storeOp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->storeOp), ctx); } json->getProperty("beginAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->beginAccesses), ctx); } json->getProperty("endAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->endAccesses), ctx); } json->getProperty("isGeneralLayout", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isGeneralLayout), ctx); } return ok; @@ -10119,26 +9899,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_ColorAttachment_finalize) static bool js_gfx_ColorAttachment_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::ColorAttachment* cobj = JSB_ALLOC(cc::gfx::ColorAttachment); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::ColorAttachment* cobj = JSB_ALLOC(cc::gfx::ColorAttachment); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -10172,7 +9950,7 @@ static bool js_gfx_ColorAttachment_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[6], &(cobj->isGeneralLayout), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -10184,13 +9962,10 @@ static bool js_gfx_ColorAttachment_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_ColorAttachment_constructor, __jsb_cc_gfx_ColorAttachment_class, js_cc_gfx_ColorAttachment_finalize) - - static bool js_cc_gfx_ColorAttachment_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -10221,7 +9996,7 @@ bool js_register_gfx_ColorAttachment(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_DepthStencilAttachment_proto = nullptr; -se::Class* __jsb_cc_gfx_DepthStencilAttachment_class = nullptr; +se::Class* __jsb_cc_gfx_DepthStencilAttachment_class = nullptr; static bool js_gfx_DepthStencilAttachment_get_format(se::State& s) // NOLINT(readability-identifier-naming) { @@ -10229,7 +10004,7 @@ static bool js_gfx_DepthStencilAttachment_get_format(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_format : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->format, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->format, s.thisObject(), s.rval()); @@ -10240,7 +10015,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_format) static bool js_gfx_DepthStencilAttachment_set_format(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_format : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10256,7 +10031,7 @@ static bool js_gfx_DepthStencilAttachment_get_sampleCount(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->sampleCount, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->sampleCount, s.thisObject(), s.rval()); @@ -10267,7 +10042,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_sampleCount) static bool js_gfx_DepthStencilAttachment_set_sampleCount(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_sampleCount : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10283,7 +10058,7 @@ static bool js_gfx_DepthStencilAttachment_get_depthLoadOp(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_depthLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthLoadOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthLoadOp, s.thisObject(), s.rval()); @@ -10294,7 +10069,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_depthLoadOp) static bool js_gfx_DepthStencilAttachment_set_depthLoadOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_depthLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10310,7 +10085,7 @@ static bool js_gfx_DepthStencilAttachment_get_depthStoreOp(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_depthStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStoreOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStoreOp, s.thisObject(), s.rval()); @@ -10321,7 +10096,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_depthStoreOp) static bool js_gfx_DepthStencilAttachment_set_depthStoreOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_depthStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10337,7 +10112,7 @@ static bool js_gfx_DepthStencilAttachment_get_stencilLoadOp(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_stencilLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilLoadOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilLoadOp, s.thisObject(), s.rval()); @@ -10348,7 +10123,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_stencilLoadOp) static bool js_gfx_DepthStencilAttachment_set_stencilLoadOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_stencilLoadOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10364,7 +10139,7 @@ static bool js_gfx_DepthStencilAttachment_get_stencilStoreOp(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_stencilStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilStoreOp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilStoreOp, s.thisObject(), s.rval()); @@ -10375,7 +10150,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_stencilStoreOp) static bool js_gfx_DepthStencilAttachment_set_stencilStoreOp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_stencilStoreOp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10391,7 +10166,7 @@ static bool js_gfx_DepthStencilAttachment_get_beginAccesses(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->beginAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->beginAccesses, s.thisObject(), s.rval()); @@ -10402,7 +10177,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_beginAccesses) static bool js_gfx_DepthStencilAttachment_set_beginAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_beginAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10418,7 +10193,7 @@ static bool js_gfx_DepthStencilAttachment_get_endAccesses(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->endAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->endAccesses, s.thisObject(), s.rval()); @@ -10429,7 +10204,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_endAccesses) static bool js_gfx_DepthStencilAttachment_set_endAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_endAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10445,7 +10220,7 @@ static bool js_gfx_DepthStencilAttachment_get_isGeneralLayout(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_get_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isGeneralLayout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isGeneralLayout, s.thisObject(), s.rval()); @@ -10456,7 +10231,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilAttachment_get_isGeneralLayout) static bool js_gfx_DepthStencilAttachment_set_isGeneralLayout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilAttachment_set_isGeneralLayout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10466,53 +10241,51 @@ static bool js_gfx_DepthStencilAttachment_set_isGeneralLayout(se::State& s) // N } SE_BIND_PROP_SET(js_gfx_DepthStencilAttachment_set_isGeneralLayout) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DepthStencilAttachment * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DepthStencilAttachment* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("format", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->format), ctx); } json->getProperty("sampleCount", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->sampleCount), ctx); } json->getProperty("depthLoadOp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthLoadOp), ctx); } json->getProperty("depthStoreOp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStoreOp), ctx); } json->getProperty("stencilLoadOp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilLoadOp), ctx); } json->getProperty("stencilStoreOp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilStoreOp), ctx); } json->getProperty("beginAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->beginAccesses), ctx); } json->getProperty("endAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->endAccesses), ctx); } json->getProperty("isGeneralLayout", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isGeneralLayout), ctx); } return ok; @@ -10522,26 +10295,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DepthStencilAttachment_finalize) static bool js_gfx_DepthStencilAttachment_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DepthStencilAttachment* cobj = JSB_ALLOC(cc::gfx::DepthStencilAttachment); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::DepthStencilAttachment* cobj = JSB_ALLOC(cc::gfx::DepthStencilAttachment); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -10581,7 +10352,7 @@ static bool js_gfx_DepthStencilAttachment_constructor(se::State& s) // NOLINT(re ok &= sevalue_to_native(args[8], &(cobj->isGeneralLayout), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -10593,13 +10364,10 @@ static bool js_gfx_DepthStencilAttachment_constructor(se::State& s) // NOLINT(re } SE_BIND_CTOR(js_gfx_DepthStencilAttachment_constructor, __jsb_cc_gfx_DepthStencilAttachment_class, js_cc_gfx_DepthStencilAttachment_finalize) - - static bool js_cc_gfx_DepthStencilAttachment_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -10632,7 +10400,7 @@ bool js_register_gfx_DepthStencilAttachment(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_cc_gfx_SubpassInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_SubpassInfo_class = nullptr; +se::Class* __jsb_cc_gfx_SubpassInfo_class = nullptr; static bool js_gfx_SubpassInfo_get_inputs(se::State& s) // NOLINT(readability-identifier-naming) { @@ -10640,7 +10408,7 @@ static bool js_gfx_SubpassInfo_get_inputs(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_inputs : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->inputs, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->inputs, s.thisObject(), s.rval()); @@ -10651,7 +10419,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_inputs) static bool js_gfx_SubpassInfo_set_inputs(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_inputs : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10667,7 +10435,7 @@ static bool js_gfx_SubpassInfo_get_colors(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_colors : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->colors, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->colors, s.thisObject(), s.rval()); @@ -10678,7 +10446,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_colors) static bool js_gfx_SubpassInfo_set_colors(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_colors : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10694,7 +10462,7 @@ static bool js_gfx_SubpassInfo_get_resolves(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_resolves : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->resolves, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->resolves, s.thisObject(), s.rval()); @@ -10705,7 +10473,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_resolves) static bool js_gfx_SubpassInfo_set_resolves(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_resolves : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10721,7 +10489,7 @@ static bool js_gfx_SubpassInfo_get_preserves(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_preserves : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->preserves, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->preserves, s.thisObject(), s.rval()); @@ -10732,7 +10500,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_preserves) static bool js_gfx_SubpassInfo_set_preserves(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_preserves : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10748,7 +10516,7 @@ static bool js_gfx_SubpassInfo_get_depthStencil(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_depthStencil : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencil, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencil, s.thisObject(), s.rval()); @@ -10759,7 +10527,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_depthStencil) static bool js_gfx_SubpassInfo_set_depthStencil(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_depthStencil : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10775,7 +10543,7 @@ static bool js_gfx_SubpassInfo_get_depthStencilResolve(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_depthStencilResolve : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilResolve, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilResolve, s.thisObject(), s.rval()); @@ -10786,7 +10554,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_depthStencilResolve) static bool js_gfx_SubpassInfo_set_depthStencilResolve(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_depthStencilResolve : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10802,7 +10570,7 @@ static bool js_gfx_SubpassInfo_get_depthResolveMode(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_depthResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthResolveMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthResolveMode, s.thisObject(), s.rval()); @@ -10813,7 +10581,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_depthResolveMode) static bool js_gfx_SubpassInfo_set_depthResolveMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_depthResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10829,7 +10597,7 @@ static bool js_gfx_SubpassInfo_get_stencilResolveMode(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_get_stencilResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilResolveMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilResolveMode, s.thisObject(), s.rval()); @@ -10840,7 +10608,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassInfo_get_stencilResolveMode) static bool js_gfx_SubpassInfo_set_stencilResolveMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassInfo_set_stencilResolveMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -10850,49 +10618,47 @@ static bool js_gfx_SubpassInfo_set_stencilResolveMode(se::State& s) // NOLINT(re } SE_BIND_PROP_SET(js_gfx_SubpassInfo_set_stencilResolveMode) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::SubpassInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::SubpassInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("inputs", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->inputs), ctx); } json->getProperty("colors", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->colors), ctx); } json->getProperty("resolves", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->resolves), ctx); } json->getProperty("preserves", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->preserves), ctx); } json->getProperty("depthStencil", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencil), ctx); } json->getProperty("depthStencilResolve", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilResolve), ctx); } json->getProperty("depthResolveMode", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthResolveMode), ctx); } json->getProperty("stencilResolveMode", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilResolveMode), ctx); } return ok; @@ -10902,26 +10668,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SubpassInfo_finalize) static bool js_gfx_SubpassInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::SubpassInfo* cobj = JSB_ALLOC(cc::gfx::SubpassInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::SubpassInfo* cobj = JSB_ALLOC(cc::gfx::SubpassInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -10958,7 +10722,7 @@ static bool js_gfx_SubpassInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[7], &(cobj->stencilResolveMode), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -10970,13 +10734,10 @@ static bool js_gfx_SubpassInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_SubpassInfo_constructor, __jsb_cc_gfx_SubpassInfo_class, js_cc_gfx_SubpassInfo_finalize) - - static bool js_cc_gfx_SubpassInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11008,7 +10769,7 @@ bool js_register_gfx_SubpassInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_SubpassDependency_proto = nullptr; -se::Class* __jsb_cc_gfx_SubpassDependency_class = nullptr; +se::Class* __jsb_cc_gfx_SubpassDependency_class = nullptr; static bool js_gfx_SubpassDependency_get_srcSubpass(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11016,7 +10777,7 @@ static bool js_gfx_SubpassDependency_get_srcSubpass(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_srcSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcSubpass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcSubpass, s.thisObject(), s.rval()); @@ -11027,7 +10788,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_srcSubpass) static bool js_gfx_SubpassDependency_set_srcSubpass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_srcSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11043,7 +10804,7 @@ static bool js_gfx_SubpassDependency_get_dstSubpass(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_dstSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstSubpass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstSubpass, s.thisObject(), s.rval()); @@ -11054,7 +10815,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_dstSubpass) static bool js_gfx_SubpassDependency_set_dstSubpass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_dstSubpass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11070,7 +10831,7 @@ static bool js_gfx_SubpassDependency_get_srcAccesses(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_srcAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcAccesses, s.thisObject(), s.rval()); @@ -11081,7 +10842,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_srcAccesses) static bool js_gfx_SubpassDependency_set_srcAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_srcAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11097,7 +10858,7 @@ static bool js_gfx_SubpassDependency_get_dstAccesses(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_get_dstAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstAccesses, s.thisObject(), s.rval()); @@ -11108,7 +10869,7 @@ SE_BIND_PROP_GET(js_gfx_SubpassDependency_get_dstAccesses) static bool js_gfx_SubpassDependency_set_dstAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_SubpassDependency_set_dstAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11118,33 +10879,31 @@ static bool js_gfx_SubpassDependency_set_dstAccesses(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_SubpassDependency_set_dstAccesses) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::SubpassDependency * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::SubpassDependency* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("srcSubpass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcSubpass), ctx); } json->getProperty("dstSubpass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstSubpass), ctx); } json->getProperty("srcAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcAccesses), ctx); } json->getProperty("dstAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstAccesses), ctx); } return ok; @@ -11154,26 +10913,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_SubpassDependency_finalize) static bool js_gfx_SubpassDependency_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::SubpassDependency* cobj = JSB_ALLOC(cc::gfx::SubpassDependency); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::SubpassDependency* cobj = JSB_ALLOC(cc::gfx::SubpassDependency); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11198,7 +10955,7 @@ static bool js_gfx_SubpassDependency_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[3], &(cobj->dstAccesses), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11210,13 +10967,10 @@ static bool js_gfx_SubpassDependency_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_SubpassDependency_constructor, __jsb_cc_gfx_SubpassDependency_class, js_cc_gfx_SubpassDependency_finalize) - - static bool js_cc_gfx_SubpassDependency_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11244,7 +10998,7 @@ bool js_register_gfx_SubpassDependency(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_RenderPassInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_RenderPassInfo_class = nullptr; +se::Class* __jsb_cc_gfx_RenderPassInfo_class = nullptr; static bool js_gfx_RenderPassInfo_get_colorAttachments(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11252,7 +11006,7 @@ static bool js_gfx_RenderPassInfo_get_colorAttachments(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_colorAttachments : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->colorAttachments, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->colorAttachments, s.thisObject(), s.rval()); @@ -11263,7 +11017,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_colorAttachments) static bool js_gfx_RenderPassInfo_set_colorAttachments(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_colorAttachments : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11279,7 +11033,7 @@ static bool js_gfx_RenderPassInfo_get_depthStencilAttachment(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_depthStencilAttachment : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilAttachment, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilAttachment, s.thisObject(), s.rval()); @@ -11290,7 +11044,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_depthStencilAttachment) static bool js_gfx_RenderPassInfo_set_depthStencilAttachment(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_depthStencilAttachment : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11306,7 +11060,7 @@ static bool js_gfx_RenderPassInfo_get_subpasses(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_subpasses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->subpasses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->subpasses, s.thisObject(), s.rval()); @@ -11317,7 +11071,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_subpasses) static bool js_gfx_RenderPassInfo_set_subpasses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_subpasses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11333,7 +11087,7 @@ static bool js_gfx_RenderPassInfo_get_dependencies(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_get_dependencies : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dependencies, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dependencies, s.thisObject(), s.rval()); @@ -11344,7 +11098,7 @@ SE_BIND_PROP_GET(js_gfx_RenderPassInfo_get_dependencies) static bool js_gfx_RenderPassInfo_set_dependencies(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPassInfo_set_dependencies : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11354,33 +11108,31 @@ static bool js_gfx_RenderPassInfo_set_dependencies(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_RenderPassInfo_set_dependencies) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::RenderPassInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::RenderPassInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("colorAttachments", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->colorAttachments), ctx); } json->getProperty("depthStencilAttachment", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilAttachment), ctx); } json->getProperty("subpasses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->subpasses), ctx); } json->getProperty("dependencies", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dependencies), ctx); } return ok; @@ -11390,26 +11142,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_RenderPassInfo_finalize) static bool js_gfx_RenderPassInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::RenderPassInfo* cobj = JSB_ALLOC(cc::gfx::RenderPassInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::RenderPassInfo* cobj = JSB_ALLOC(cc::gfx::RenderPassInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11434,7 +11184,7 @@ static bool js_gfx_RenderPassInfo_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[3], &(cobj->dependencies), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11446,13 +11196,10 @@ static bool js_gfx_RenderPassInfo_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_RenderPassInfo_constructor, __jsb_cc_gfx_RenderPassInfo_class, js_cc_gfx_RenderPassInfo_finalize) - - static bool js_cc_gfx_RenderPassInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11480,7 +11227,7 @@ bool js_register_gfx_RenderPassInfo(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_GlobalBarrierInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class = nullptr; +se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class = nullptr; static bool js_gfx_GlobalBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11488,7 +11235,7 @@ static bool js_gfx_GlobalBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_get_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->prevAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->prevAccesses, s.thisObject(), s.rval()); @@ -11499,7 +11246,7 @@ SE_BIND_PROP_GET(js_gfx_GlobalBarrierInfo_get_prevAccesses) static bool js_gfx_GlobalBarrierInfo_set_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_set_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11515,7 +11262,7 @@ static bool js_gfx_GlobalBarrierInfo_get_nextAccesses(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_get_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nextAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nextAccesses, s.thisObject(), s.rval()); @@ -11526,7 +11273,7 @@ SE_BIND_PROP_GET(js_gfx_GlobalBarrierInfo_get_nextAccesses) static bool js_gfx_GlobalBarrierInfo_set_nextAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrierInfo_set_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11536,25 +11283,23 @@ static bool js_gfx_GlobalBarrierInfo_set_nextAccesses(se::State& s) // NOLINT(re } SE_BIND_PROP_SET(js_gfx_GlobalBarrierInfo_set_nextAccesses) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::GlobalBarrierInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::GlobalBarrierInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("prevAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->prevAccesses), ctx); } json->getProperty("nextAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nextAccesses), ctx); } return ok; @@ -11564,26 +11309,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_GlobalBarrierInfo_finalize) static bool js_gfx_GlobalBarrierInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::GlobalBarrierInfo* cobj = JSB_ALLOC(cc::gfx::GlobalBarrierInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::GlobalBarrierInfo* cobj = JSB_ALLOC(cc::gfx::GlobalBarrierInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11602,7 +11345,7 @@ static bool js_gfx_GlobalBarrierInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[1], &(cobj->nextAccesses), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11614,13 +11357,10 @@ static bool js_gfx_GlobalBarrierInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_GlobalBarrierInfo_constructor, __jsb_cc_gfx_GlobalBarrierInfo_class, js_cc_gfx_GlobalBarrierInfo_finalize) - - static bool js_cc_gfx_GlobalBarrierInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11646,7 +11386,7 @@ bool js_register_gfx_GlobalBarrierInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_TextureBarrierInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureBarrierInfo_class = nullptr; +se::Class* __jsb_cc_gfx_TextureBarrierInfo_class = nullptr; static bool js_gfx_TextureBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11654,7 +11394,7 @@ static bool js_gfx_TextureBarrierInfo_get_prevAccesses(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->prevAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->prevAccesses, s.thisObject(), s.rval()); @@ -11665,7 +11405,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_prevAccesses) static bool js_gfx_TextureBarrierInfo_set_prevAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_prevAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11681,7 +11421,7 @@ static bool js_gfx_TextureBarrierInfo_get_nextAccesses(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nextAccesses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nextAccesses, s.thisObject(), s.rval()); @@ -11692,7 +11432,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_nextAccesses) static bool js_gfx_TextureBarrierInfo_set_nextAccesses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_nextAccesses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11708,7 +11448,7 @@ static bool js_gfx_TextureBarrierInfo_get_discardContents(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_discardContents : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->discardContents, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->discardContents, s.thisObject(), s.rval()); @@ -11719,7 +11459,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_discardContents) static bool js_gfx_TextureBarrierInfo_set_discardContents(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_discardContents : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11735,7 +11475,7 @@ static bool js_gfx_TextureBarrierInfo_get_srcQueue(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_srcQueue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->srcQueue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->srcQueue, s.thisObject(), s.rval()); @@ -11746,7 +11486,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_srcQueue) static bool js_gfx_TextureBarrierInfo_set_srcQueue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_srcQueue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11762,7 +11502,7 @@ static bool js_gfx_TextureBarrierInfo_get_dstQueue(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_get_dstQueue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dstQueue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dstQueue, s.thisObject(), s.rval()); @@ -11773,7 +11513,7 @@ SE_BIND_PROP_GET(js_gfx_TextureBarrierInfo_get_dstQueue) static bool js_gfx_TextureBarrierInfo_set_dstQueue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrierInfo_set_dstQueue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11783,37 +11523,35 @@ static bool js_gfx_TextureBarrierInfo_set_dstQueue(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_gfx_TextureBarrierInfo_set_dstQueue) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::TextureBarrierInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::TextureBarrierInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("prevAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->prevAccesses), ctx); } json->getProperty("nextAccesses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nextAccesses), ctx); } json->getProperty("discardContents", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->discardContents), ctx); } json->getProperty("srcQueue", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->srcQueue), ctx); } json->getProperty("dstQueue", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dstQueue), ctx); } return ok; @@ -11823,26 +11561,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_TextureBarrierInfo_finalize) static bool js_gfx_TextureBarrierInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::TextureBarrierInfo* cobj = JSB_ALLOC(cc::gfx::TextureBarrierInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::TextureBarrierInfo* cobj = JSB_ALLOC(cc::gfx::TextureBarrierInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -11870,7 +11606,7 @@ static bool js_gfx_TextureBarrierInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[4], &(cobj->dstQueue), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -11882,13 +11618,10 @@ static bool js_gfx_TextureBarrierInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_TextureBarrierInfo_constructor, __jsb_cc_gfx_TextureBarrierInfo_class, js_cc_gfx_TextureBarrierInfo_finalize) - - static bool js_cc_gfx_TextureBarrierInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -11917,7 +11650,7 @@ bool js_register_gfx_TextureBarrierInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_FramebufferInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_FramebufferInfo_class = nullptr; +se::Class* __jsb_cc_gfx_FramebufferInfo_class = nullptr; static bool js_gfx_FramebufferInfo_get_renderPass(se::State& s) // NOLINT(readability-identifier-naming) { @@ -11925,7 +11658,7 @@ static bool js_gfx_FramebufferInfo_get_renderPass(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_get_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->renderPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->renderPass, s.thisObject(), s.rval()); @@ -11936,7 +11669,7 @@ SE_BIND_PROP_GET(js_gfx_FramebufferInfo_get_renderPass) static bool js_gfx_FramebufferInfo_set_renderPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_set_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11952,7 +11685,7 @@ static bool js_gfx_FramebufferInfo_get_colorTextures(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_get_colorTextures : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->colorTextures, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->colorTextures, s.thisObject(), s.rval()); @@ -11963,7 +11696,7 @@ SE_BIND_PROP_GET(js_gfx_FramebufferInfo_get_colorTextures) static bool js_gfx_FramebufferInfo_set_colorTextures(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_set_colorTextures : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -11979,7 +11712,7 @@ static bool js_gfx_FramebufferInfo_get_depthStencilTexture(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_get_depthStencilTexture : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilTexture, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilTexture, s.thisObject(), s.rval()); @@ -11990,7 +11723,7 @@ SE_BIND_PROP_GET(js_gfx_FramebufferInfo_get_depthStencilTexture) static bool js_gfx_FramebufferInfo_set_depthStencilTexture(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_FramebufferInfo_set_depthStencilTexture : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12000,29 +11733,27 @@ static bool js_gfx_FramebufferInfo_set_depthStencilTexture(se::State& s) // NOLI } SE_BIND_PROP_SET(js_gfx_FramebufferInfo_set_depthStencilTexture) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::FramebufferInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::FramebufferInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("renderPass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->renderPass), ctx); } json->getProperty("colorTextures", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->colorTextures), ctx); } json->getProperty("depthStencilTexture", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilTexture), ctx); } return ok; @@ -12032,26 +11763,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_FramebufferInfo_finalize) static bool js_gfx_FramebufferInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::FramebufferInfo* cobj = JSB_ALLOC(cc::gfx::FramebufferInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::FramebufferInfo* cobj = JSB_ALLOC(cc::gfx::FramebufferInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -12073,7 +11802,7 @@ static bool js_gfx_FramebufferInfo_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[2], &(cobj->depthStencilTexture), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12085,13 +11814,10 @@ static bool js_gfx_FramebufferInfo_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_FramebufferInfo_constructor, __jsb_cc_gfx_FramebufferInfo_class, js_cc_gfx_FramebufferInfo_finalize) - - static bool js_cc_gfx_FramebufferInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12118,7 +11844,7 @@ bool js_register_gfx_FramebufferInfo(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_DescriptorSetLayoutBinding_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class = nullptr; static bool js_gfx_DescriptorSetLayoutBinding_get_binding(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12126,7 +11852,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_binding(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_binding : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->binding, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->binding, s.thisObject(), s.rval()); @@ -12137,7 +11863,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_binding) static bool js_gfx_DescriptorSetLayoutBinding_set_binding(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_binding : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12153,7 +11879,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_descriptorType(se::State& s) / SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_descriptorType : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->descriptorType, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->descriptorType, s.thisObject(), s.rval()); @@ -12164,7 +11890,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_descriptorType) static bool js_gfx_DescriptorSetLayoutBinding_set_descriptorType(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_descriptorType : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12180,7 +11906,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_count(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_count : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->count, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->count, s.thisObject(), s.rval()); @@ -12191,7 +11917,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_count) static bool js_gfx_DescriptorSetLayoutBinding_set_count(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_count : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12207,7 +11933,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_stageFlags(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_stageFlags : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stageFlags, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stageFlags, s.thisObject(), s.rval()); @@ -12218,7 +11944,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_stageFlags) static bool js_gfx_DescriptorSetLayoutBinding_set_stageFlags(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_stageFlags : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12234,7 +11960,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_get_immutableSamplers(se::State& s SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_get_immutableSamplers : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->immutableSamplers, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->immutableSamplers, s.thisObject(), s.rval()); @@ -12245,7 +11971,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutBinding_get_immutableSamplers) static bool js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12255,37 +11981,35 @@ static bool js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers(se::State& s } SE_BIND_PROP_SET(js_gfx_DescriptorSetLayoutBinding_set_immutableSamplers) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DescriptorSetLayoutBinding * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DescriptorSetLayoutBinding* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("binding", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->binding), ctx); } json->getProperty("descriptorType", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->descriptorType), ctx); } json->getProperty("count", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->count), ctx); } json->getProperty("stageFlags", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stageFlags), ctx); } json->getProperty("immutableSamplers", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->immutableSamplers), ctx); } return ok; @@ -12295,26 +12019,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DescriptorSetLayoutBinding_finalize) static bool js_gfx_DescriptorSetLayoutBinding_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DescriptorSetLayoutBinding* cobj = JSB_ALLOC(cc::gfx::DescriptorSetLayoutBinding); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::DescriptorSetLayoutBinding* cobj = JSB_ALLOC(cc::gfx::DescriptorSetLayoutBinding); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -12342,7 +12064,7 @@ static bool js_gfx_DescriptorSetLayoutBinding_constructor(se::State& s) // NOLIN ok &= sevalue_to_native(args[4], &(cobj->immutableSamplers), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12354,13 +12076,10 @@ static bool js_gfx_DescriptorSetLayoutBinding_constructor(se::State& s) // NOLIN } SE_BIND_CTOR(js_gfx_DescriptorSetLayoutBinding_constructor, __jsb_cc_gfx_DescriptorSetLayoutBinding_class, js_cc_gfx_DescriptorSetLayoutBinding_finalize) - - static bool js_cc_gfx_DescriptorSetLayoutBinding_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12389,7 +12108,7 @@ bool js_register_gfx_DescriptorSetLayoutBinding(se::Object* obj) // NOLINT(reada return true; } se::Object* __jsb_cc_gfx_DescriptorSetLayoutInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class = nullptr; static bool js_gfx_DescriptorSetLayoutInfo_get_bindings(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12397,7 +12116,7 @@ static bool js_gfx_DescriptorSetLayoutInfo_get_bindings(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutInfo_get_bindings : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bindings, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bindings, s.thisObject(), s.rval()); @@ -12408,7 +12127,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetLayoutInfo_get_bindings) static bool js_gfx_DescriptorSetLayoutInfo_set_bindings(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayoutInfo_set_bindings : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12418,21 +12137,19 @@ static bool js_gfx_DescriptorSetLayoutInfo_set_bindings(se::State& s) // NOLINT( } SE_BIND_PROP_SET(js_gfx_DescriptorSetLayoutInfo_set_bindings) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DescriptorSetLayoutInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DescriptorSetLayoutInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bindings", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindings), ctx); } return ok; @@ -12442,12 +12159,11 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DescriptorSetLayoutInfo_finalize) static bool js_gfx_DescriptorSetLayoutInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DescriptorSetLayoutInfo* cobj = JSB_ALLOC(cc::gfx::DescriptorSetLayoutInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12459,7 +12175,7 @@ static bool js_gfx_DescriptorSetLayoutInfo_constructor(se::State& s) // NOLINT(r ok &= sevalue_to_native(args[0], &(cobj->bindings), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12471,13 +12187,10 @@ static bool js_gfx_DescriptorSetLayoutInfo_constructor(se::State& s) // NOLINT(r } SE_BIND_CTOR(js_gfx_DescriptorSetLayoutInfo_constructor, __jsb_cc_gfx_DescriptorSetLayoutInfo_class, js_cc_gfx_DescriptorSetLayoutInfo_finalize) - - static bool js_cc_gfx_DescriptorSetLayoutInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12502,7 +12215,7 @@ bool js_register_gfx_DescriptorSetLayoutInfo(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_cc_gfx_DescriptorSetInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetInfo_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetInfo_class = nullptr; static bool js_gfx_DescriptorSetInfo_get_layout(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12510,7 +12223,7 @@ static bool js_gfx_DescriptorSetInfo_get_layout(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetInfo_get_layout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->layout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->layout, s.thisObject(), s.rval()); @@ -12521,7 +12234,7 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSetInfo_get_layout) static bool js_gfx_DescriptorSetInfo_set_layout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetInfo_set_layout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12531,21 +12244,19 @@ static bool js_gfx_DescriptorSetInfo_set_layout(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_DescriptorSetInfo_set_layout) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DescriptorSetInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DescriptorSetInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("layout", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->layout), ctx); } return ok; @@ -12555,12 +12266,11 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DescriptorSetInfo_finalize) static bool js_gfx_DescriptorSetInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DescriptorSetInfo* cobj = JSB_ALLOC(cc::gfx::DescriptorSetInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12572,7 +12282,7 @@ static bool js_gfx_DescriptorSetInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[0], &(cobj->layout), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12584,13 +12294,10 @@ static bool js_gfx_DescriptorSetInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_DescriptorSetInfo_constructor, __jsb_cc_gfx_DescriptorSetInfo_class, js_cc_gfx_DescriptorSetInfo_finalize) - - static bool js_cc_gfx_DescriptorSetInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12615,7 +12322,7 @@ bool js_register_gfx_DescriptorSetInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_PipelineLayoutInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class = nullptr; static bool js_gfx_PipelineLayoutInfo_get_setLayouts(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12623,7 +12330,7 @@ static bool js_gfx_PipelineLayoutInfo_get_setLayouts(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayoutInfo_get_setLayouts : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->setLayouts, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->setLayouts, s.thisObject(), s.rval()); @@ -12634,7 +12341,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineLayoutInfo_get_setLayouts) static bool js_gfx_PipelineLayoutInfo_set_setLayouts(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayoutInfo_set_setLayouts : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12644,21 +12351,19 @@ static bool js_gfx_PipelineLayoutInfo_set_setLayouts(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_gfx_PipelineLayoutInfo_set_setLayouts) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::PipelineLayoutInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::PipelineLayoutInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("setLayouts", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->setLayouts), ctx); } return ok; @@ -12668,12 +12373,11 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_PipelineLayoutInfo_finalize) static bool js_gfx_PipelineLayoutInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::PipelineLayoutInfo* cobj = JSB_ALLOC(cc::gfx::PipelineLayoutInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12685,7 +12389,7 @@ static bool js_gfx_PipelineLayoutInfo_constructor(se::State& s) // NOLINT(readab ok &= sevalue_to_native(args[0], &(cobj->setLayouts), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12697,13 +12401,10 @@ static bool js_gfx_PipelineLayoutInfo_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_gfx_PipelineLayoutInfo_constructor, __jsb_cc_gfx_PipelineLayoutInfo_class, js_cc_gfx_PipelineLayoutInfo_finalize) - - static bool js_cc_gfx_PipelineLayoutInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12728,7 +12429,7 @@ bool js_register_gfx_PipelineLayoutInfo(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_gfx_InputState_proto = nullptr; -se::Class* __jsb_cc_gfx_InputState_class = nullptr; +se::Class* __jsb_cc_gfx_InputState_class = nullptr; static bool js_gfx_InputState_get_attributes(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12736,7 +12437,7 @@ static bool js_gfx_InputState_get_attributes(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_InputState_get_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->attributes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->attributes, s.thisObject(), s.rval()); @@ -12747,7 +12448,7 @@ SE_BIND_PROP_GET(js_gfx_InputState_get_attributes) static bool js_gfx_InputState_set_attributes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputState_set_attributes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12757,21 +12458,19 @@ static bool js_gfx_InputState_set_attributes(se::State& s) // NOLINT(readability } SE_BIND_PROP_SET(js_gfx_InputState_set_attributes) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::InputState * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::InputState* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("attributes", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->attributes), ctx); } return ok; @@ -12781,12 +12480,11 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_InputState_finalize) static bool js_gfx_InputState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::InputState* cobj = JSB_ALLOC(cc::gfx::InputState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -12798,7 +12496,7 @@ static bool js_gfx_InputState_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[0], &(cobj->attributes), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -12810,13 +12508,10 @@ static bool js_gfx_InputState_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_InputState_constructor, __jsb_cc_gfx_InputState_class, js_cc_gfx_InputState_finalize) - - static bool js_cc_gfx_InputState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -12841,7 +12536,7 @@ bool js_register_gfx_InputState(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_RasterizerState_proto = nullptr; -se::Class* __jsb_cc_gfx_RasterizerState_class = nullptr; +se::Class* __jsb_cc_gfx_RasterizerState_class = nullptr; static bool js_gfx_RasterizerState_get_isDiscard(se::State& s) // NOLINT(readability-identifier-naming) { @@ -12849,7 +12544,7 @@ static bool js_gfx_RasterizerState_get_isDiscard(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isDiscard : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isDiscard, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isDiscard, s.thisObject(), s.rval()); @@ -12860,7 +12555,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isDiscard) static bool js_gfx_RasterizerState_set_isDiscard(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isDiscard : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12876,7 +12571,7 @@ static bool js_gfx_RasterizerState_get_polygonMode(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_polygonMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->polygonMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->polygonMode, s.thisObject(), s.rval()); @@ -12887,7 +12582,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_polygonMode) static bool js_gfx_RasterizerState_set_polygonMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_polygonMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12903,7 +12598,7 @@ static bool js_gfx_RasterizerState_get_shadeModel(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_shadeModel : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadeModel, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadeModel, s.thisObject(), s.rval()); @@ -12914,7 +12609,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_shadeModel) static bool js_gfx_RasterizerState_set_shadeModel(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_shadeModel : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12930,7 +12625,7 @@ static bool js_gfx_RasterizerState_get_cullMode(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_cullMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->cullMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->cullMode, s.thisObject(), s.rval()); @@ -12941,7 +12636,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_cullMode) static bool js_gfx_RasterizerState_set_cullMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_cullMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12957,7 +12652,7 @@ static bool js_gfx_RasterizerState_get_isFrontFaceCCW(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isFrontFaceCCW : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isFrontFaceCCW, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isFrontFaceCCW, s.thisObject(), s.rval()); @@ -12968,7 +12663,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isFrontFaceCCW) static bool js_gfx_RasterizerState_set_isFrontFaceCCW(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isFrontFaceCCW : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -12984,7 +12679,7 @@ static bool js_gfx_RasterizerState_get_depthBiasEnabled(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBiasEnabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBiasEnabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBiasEnabled, s.thisObject(), s.rval()); @@ -12995,7 +12690,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBiasEnabled) static bool js_gfx_RasterizerState_set_depthBiasEnabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBiasEnabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13011,7 +12706,7 @@ static bool js_gfx_RasterizerState_get_depthBias(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBias : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBias, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBias, s.thisObject(), s.rval()); @@ -13022,7 +12717,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBias) static bool js_gfx_RasterizerState_set_depthBias(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBias : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13038,7 +12733,7 @@ static bool js_gfx_RasterizerState_get_depthBiasClamp(se::State& s) // NOLINT(re SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBiasClamp : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBiasClamp, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBiasClamp, s.thisObject(), s.rval()); @@ -13049,7 +12744,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBiasClamp) static bool js_gfx_RasterizerState_set_depthBiasClamp(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBiasClamp : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13065,7 +12760,7 @@ static bool js_gfx_RasterizerState_get_depthBiasSlop(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_depthBiasSlop : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthBiasSlop, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthBiasSlop, s.thisObject(), s.rval()); @@ -13076,7 +12771,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_depthBiasSlop) static bool js_gfx_RasterizerState_set_depthBiasSlop(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_depthBiasSlop : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13092,7 +12787,7 @@ static bool js_gfx_RasterizerState_get_isDepthClip(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isDepthClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isDepthClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isDepthClip, s.thisObject(), s.rval()); @@ -13103,7 +12798,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isDepthClip) static bool js_gfx_RasterizerState_set_isDepthClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isDepthClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13119,7 +12814,7 @@ static bool js_gfx_RasterizerState_get_isMultisample(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_isMultisample : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isMultisample, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isMultisample, s.thisObject(), s.rval()); @@ -13130,7 +12825,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_isMultisample) static bool js_gfx_RasterizerState_set_isMultisample(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_isMultisample : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13146,7 +12841,7 @@ static bool js_gfx_RasterizerState_get_lineWidth(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_get_lineWidth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->lineWidth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->lineWidth, s.thisObject(), s.rval()); @@ -13157,7 +12852,7 @@ SE_BIND_PROP_GET(js_gfx_RasterizerState_get_lineWidth) static bool js_gfx_RasterizerState_set_lineWidth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RasterizerState_set_lineWidth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13167,65 +12862,63 @@ static bool js_gfx_RasterizerState_set_lineWidth(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_gfx_RasterizerState_set_lineWidth) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::RasterizerState * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::RasterizerState* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isDiscard", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isDiscard), ctx); } json->getProperty("polygonMode", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->polygonMode), ctx); } json->getProperty("shadeModel", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadeModel), ctx); } json->getProperty("cullMode", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->cullMode), ctx); } json->getProperty("isFrontFaceCCW", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isFrontFaceCCW), ctx); } json->getProperty("depthBiasEnabled", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBiasEnabled), ctx); } json->getProperty("depthBias", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBias), ctx); } json->getProperty("depthBiasClamp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBiasClamp), ctx); } json->getProperty("depthBiasSlop", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthBiasSlop), ctx); } json->getProperty("isDepthClip", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isDepthClip), ctx); } json->getProperty("isMultisample", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isMultisample), ctx); } json->getProperty("lineWidth", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->lineWidth), ctx); } return ok; @@ -13235,26 +12928,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_RasterizerState_finalize) static bool js_gfx_RasterizerState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::RasterizerState* cobj = JSB_ALLOC(cc::gfx::RasterizerState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::RasterizerState* cobj = JSB_ALLOC(cc::gfx::RasterizerState); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -13303,7 +12994,7 @@ static bool js_gfx_RasterizerState_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[11], &(cobj->lineWidth), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -13315,13 +13006,10 @@ static bool js_gfx_RasterizerState_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_RasterizerState_constructor, __jsb_cc_gfx_RasterizerState_class, js_cc_gfx_RasterizerState_finalize) - - static bool js_cc_gfx_RasterizerState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -13357,7 +13045,7 @@ bool js_register_gfx_RasterizerState(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_gfx_DepthStencilState_proto = nullptr; -se::Class* __jsb_cc_gfx_DepthStencilState_class = nullptr; +se::Class* __jsb_cc_gfx_DepthStencilState_class = nullptr; static bool js_gfx_DepthStencilState_get_depthTest(se::State& s) // NOLINT(readability-identifier-naming) { @@ -13365,7 +13053,7 @@ static bool js_gfx_DepthStencilState_get_depthTest(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_depthTest : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthTest, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthTest, s.thisObject(), s.rval()); @@ -13376,7 +13064,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_depthTest) static bool js_gfx_DepthStencilState_set_depthTest(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_depthTest : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13392,7 +13080,7 @@ static bool js_gfx_DepthStencilState_get_depthWrite(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_depthWrite : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthWrite, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthWrite, s.thisObject(), s.rval()); @@ -13403,7 +13091,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_depthWrite) static bool js_gfx_DepthStencilState_set_depthWrite(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_depthWrite : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13419,7 +13107,7 @@ static bool js_gfx_DepthStencilState_get_depthFunc(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_depthFunc : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthFunc, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthFunc, s.thisObject(), s.rval()); @@ -13430,7 +13118,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_depthFunc) static bool js_gfx_DepthStencilState_set_depthFunc(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_depthFunc : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13446,7 +13134,7 @@ static bool js_gfx_DepthStencilState_get_stencilTestFront(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilTestFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilTestFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilTestFront, s.thisObject(), s.rval()); @@ -13457,7 +13145,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilTestFront) static bool js_gfx_DepthStencilState_set_stencilTestFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilTestFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13473,7 +13161,7 @@ static bool js_gfx_DepthStencilState_get_stencilFuncFront(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFuncFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFuncFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFuncFront, s.thisObject(), s.rval()); @@ -13484,7 +13172,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFuncFront) static bool js_gfx_DepthStencilState_set_stencilFuncFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFuncFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13500,7 +13188,7 @@ static bool js_gfx_DepthStencilState_get_stencilReadMaskFront(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilReadMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilReadMaskFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilReadMaskFront, s.thisObject(), s.rval()); @@ -13511,7 +13199,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilReadMaskFront) static bool js_gfx_DepthStencilState_set_stencilReadMaskFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilReadMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13527,7 +13215,7 @@ static bool js_gfx_DepthStencilState_get_stencilWriteMaskFront(se::State& s) // SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilWriteMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilWriteMaskFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilWriteMaskFront, s.thisObject(), s.rval()); @@ -13538,7 +13226,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilWriteMaskFront) static bool js_gfx_DepthStencilState_set_stencilWriteMaskFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilWriteMaskFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13554,7 +13242,7 @@ static bool js_gfx_DepthStencilState_get_stencilFailOpFront(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFailOpFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFailOpFront, s.thisObject(), s.rval()); @@ -13565,7 +13253,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFailOpFront) static bool js_gfx_DepthStencilState_set_stencilFailOpFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13581,7 +13269,7 @@ static bool js_gfx_DepthStencilState_get_stencilZFailOpFront(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilZFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilZFailOpFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilZFailOpFront, s.thisObject(), s.rval()); @@ -13592,7 +13280,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilZFailOpFront) static bool js_gfx_DepthStencilState_set_stencilZFailOpFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilZFailOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13608,7 +13296,7 @@ static bool js_gfx_DepthStencilState_get_stencilPassOpFront(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilPassOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilPassOpFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilPassOpFront, s.thisObject(), s.rval()); @@ -13619,7 +13307,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilPassOpFront) static bool js_gfx_DepthStencilState_set_stencilPassOpFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilPassOpFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13635,7 +13323,7 @@ static bool js_gfx_DepthStencilState_get_stencilRefFront(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilRefFront : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilRefFront, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilRefFront, s.thisObject(), s.rval()); @@ -13646,7 +13334,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilRefFront) static bool js_gfx_DepthStencilState_set_stencilRefFront(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilRefFront : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13662,7 +13350,7 @@ static bool js_gfx_DepthStencilState_get_stencilTestBack(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilTestBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilTestBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilTestBack, s.thisObject(), s.rval()); @@ -13673,7 +13361,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilTestBack) static bool js_gfx_DepthStencilState_set_stencilTestBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilTestBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13689,7 +13377,7 @@ static bool js_gfx_DepthStencilState_get_stencilFuncBack(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFuncBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFuncBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFuncBack, s.thisObject(), s.rval()); @@ -13700,7 +13388,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFuncBack) static bool js_gfx_DepthStencilState_set_stencilFuncBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFuncBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13716,7 +13404,7 @@ static bool js_gfx_DepthStencilState_get_stencilReadMaskBack(se::State& s) // NO SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilReadMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilReadMaskBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilReadMaskBack, s.thisObject(), s.rval()); @@ -13727,7 +13415,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilReadMaskBack) static bool js_gfx_DepthStencilState_set_stencilReadMaskBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilReadMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13743,7 +13431,7 @@ static bool js_gfx_DepthStencilState_get_stencilWriteMaskBack(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilWriteMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilWriteMaskBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilWriteMaskBack, s.thisObject(), s.rval()); @@ -13754,7 +13442,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilWriteMaskBack) static bool js_gfx_DepthStencilState_set_stencilWriteMaskBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilWriteMaskBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13770,7 +13458,7 @@ static bool js_gfx_DepthStencilState_get_stencilFailOpBack(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilFailOpBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilFailOpBack, s.thisObject(), s.rval()); @@ -13781,7 +13469,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilFailOpBack) static bool js_gfx_DepthStencilState_set_stencilFailOpBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13797,7 +13485,7 @@ static bool js_gfx_DepthStencilState_get_stencilZFailOpBack(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilZFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilZFailOpBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilZFailOpBack, s.thisObject(), s.rval()); @@ -13808,7 +13496,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilZFailOpBack) static bool js_gfx_DepthStencilState_set_stencilZFailOpBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilZFailOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13824,7 +13512,7 @@ static bool js_gfx_DepthStencilState_get_stencilPassOpBack(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilPassOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilPassOpBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilPassOpBack, s.thisObject(), s.rval()); @@ -13835,7 +13523,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilPassOpBack) static bool js_gfx_DepthStencilState_set_stencilPassOpBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilPassOpBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13851,7 +13539,7 @@ static bool js_gfx_DepthStencilState_get_stencilRefBack(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_get_stencilRefBack : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stencilRefBack, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stencilRefBack, s.thisObject(), s.rval()); @@ -13862,7 +13550,7 @@ SE_BIND_PROP_GET(js_gfx_DepthStencilState_get_stencilRefBack) static bool js_gfx_DepthStencilState_set_stencilRefBack(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DepthStencilState_set_stencilRefBack : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -13872,93 +13560,91 @@ static bool js_gfx_DepthStencilState_set_stencilRefBack(se::State& s) // NOLINT( } SE_BIND_PROP_SET(js_gfx_DepthStencilState_set_stencilRefBack) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::DepthStencilState * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::DepthStencilState* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("depthTest", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthTest), ctx); } json->getProperty("depthWrite", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthWrite), ctx); } json->getProperty("depthFunc", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthFunc), ctx); } json->getProperty("stencilTestFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilTestFront), ctx); } json->getProperty("stencilFuncFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFuncFront), ctx); } json->getProperty("stencilReadMaskFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilReadMaskFront), ctx); } json->getProperty("stencilWriteMaskFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilWriteMaskFront), ctx); } json->getProperty("stencilFailOpFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFailOpFront), ctx); } json->getProperty("stencilZFailOpFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilZFailOpFront), ctx); } json->getProperty("stencilPassOpFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilPassOpFront), ctx); } json->getProperty("stencilRefFront", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilRefFront), ctx); } json->getProperty("stencilTestBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilTestBack), ctx); } json->getProperty("stencilFuncBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFuncBack), ctx); } json->getProperty("stencilReadMaskBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilReadMaskBack), ctx); } json->getProperty("stencilWriteMaskBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilWriteMaskBack), ctx); } json->getProperty("stencilFailOpBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilFailOpBack), ctx); } json->getProperty("stencilZFailOpBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilZFailOpBack), ctx); } json->getProperty("stencilPassOpBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilPassOpBack), ctx); } json->getProperty("stencilRefBack", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stencilRefBack), ctx); } return ok; @@ -13968,26 +13654,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_DepthStencilState_finalize) static bool js_gfx_DepthStencilState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::DepthStencilState* cobj = JSB_ALLOC(cc::gfx::DepthStencilState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::DepthStencilState* cobj = JSB_ALLOC(cc::gfx::DepthStencilState); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -14057,7 +13741,7 @@ static bool js_gfx_DepthStencilState_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[18], &(cobj->stencilRefBack), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -14069,13 +13753,10 @@ static bool js_gfx_DepthStencilState_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_DepthStencilState_constructor, __jsb_cc_gfx_DepthStencilState_class, js_cc_gfx_DepthStencilState_finalize) - - static bool js_cc_gfx_DepthStencilState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -14118,7 +13799,7 @@ bool js_register_gfx_DepthStencilState(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_BlendTarget_proto = nullptr; -se::Class* __jsb_cc_gfx_BlendTarget_class = nullptr; +se::Class* __jsb_cc_gfx_BlendTarget_class = nullptr; static bool js_gfx_BlendTarget_get_blend(se::State& s) // NOLINT(readability-identifier-naming) { @@ -14126,7 +13807,7 @@ static bool js_gfx_BlendTarget_get_blend(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blend : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blend, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blend, s.thisObject(), s.rval()); @@ -14137,7 +13818,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blend) static bool js_gfx_BlendTarget_set_blend(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blend : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14153,7 +13834,7 @@ static bool js_gfx_BlendTarget_get_blendSrc(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendSrc : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendSrc, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendSrc, s.thisObject(), s.rval()); @@ -14164,7 +13845,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendSrc) static bool js_gfx_BlendTarget_set_blendSrc(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendSrc : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14180,7 +13861,7 @@ static bool js_gfx_BlendTarget_get_blendDst(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendDst : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendDst, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendDst, s.thisObject(), s.rval()); @@ -14191,7 +13872,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendDst) static bool js_gfx_BlendTarget_set_blendDst(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendDst : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14207,7 +13888,7 @@ static bool js_gfx_BlendTarget_get_blendEq(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendEq : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendEq, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendEq, s.thisObject(), s.rval()); @@ -14218,7 +13899,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendEq) static bool js_gfx_BlendTarget_set_blendEq(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendEq : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14234,7 +13915,7 @@ static bool js_gfx_BlendTarget_get_blendSrcAlpha(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendSrcAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendSrcAlpha, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendSrcAlpha, s.thisObject(), s.rval()); @@ -14245,7 +13926,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendSrcAlpha) static bool js_gfx_BlendTarget_set_blendSrcAlpha(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendSrcAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14261,7 +13942,7 @@ static bool js_gfx_BlendTarget_get_blendDstAlpha(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendDstAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendDstAlpha, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendDstAlpha, s.thisObject(), s.rval()); @@ -14272,7 +13953,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendDstAlpha) static bool js_gfx_BlendTarget_set_blendDstAlpha(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendDstAlpha : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14288,7 +13969,7 @@ static bool js_gfx_BlendTarget_get_blendAlphaEq(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendAlphaEq : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendAlphaEq, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendAlphaEq, s.thisObject(), s.rval()); @@ -14299,7 +13980,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendAlphaEq) static bool js_gfx_BlendTarget_set_blendAlphaEq(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendAlphaEq : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14315,7 +13996,7 @@ static bool js_gfx_BlendTarget_get_blendColorMask(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_get_blendColorMask : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendColorMask, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendColorMask, s.thisObject(), s.rval()); @@ -14326,7 +14007,7 @@ SE_BIND_PROP_GET(js_gfx_BlendTarget_get_blendColorMask) static bool js_gfx_BlendTarget_set_blendColorMask(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendTarget_set_blendColorMask : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14336,49 +14017,47 @@ static bool js_gfx_BlendTarget_set_blendColorMask(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_gfx_BlendTarget_set_blendColorMask) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::BlendTarget * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::BlendTarget* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("blend", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blend), ctx); } json->getProperty("blendSrc", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendSrc), ctx); } json->getProperty("blendDst", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendDst), ctx); } json->getProperty("blendEq", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendEq), ctx); } json->getProperty("blendSrcAlpha", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendSrcAlpha), ctx); } json->getProperty("blendDstAlpha", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendDstAlpha), ctx); } json->getProperty("blendAlphaEq", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendAlphaEq), ctx); } json->getProperty("blendColorMask", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendColorMask), ctx); } return ok; @@ -14388,26 +14067,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BlendTarget_finalize) static bool js_gfx_BlendTarget_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::BlendTarget* cobj = JSB_ALLOC(cc::gfx::BlendTarget); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::BlendTarget* cobj = JSB_ALLOC(cc::gfx::BlendTarget); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -14444,7 +14121,7 @@ static bool js_gfx_BlendTarget_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[7], &(cobj->blendColorMask), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -14456,13 +14133,10 @@ static bool js_gfx_BlendTarget_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_BlendTarget_constructor, __jsb_cc_gfx_BlendTarget_class, js_cc_gfx_BlendTarget_finalize) - - static bool js_cc_gfx_BlendTarget_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -14494,7 +14168,7 @@ bool js_register_gfx_BlendTarget(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_BlendState_proto = nullptr; -se::Class* __jsb_cc_gfx_BlendState_class = nullptr; +se::Class* __jsb_cc_gfx_BlendState_class = nullptr; static bool js_gfx_BlendState_get_isA2C(se::State& s) // NOLINT(readability-identifier-naming) { @@ -14502,7 +14176,7 @@ static bool js_gfx_BlendState_get_isA2C(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_isA2C : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isA2C, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isA2C, s.thisObject(), s.rval()); @@ -14513,7 +14187,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_isA2C) static bool js_gfx_BlendState_set_isA2C(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_isA2C : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14529,7 +14203,7 @@ static bool js_gfx_BlendState_get_isIndepend(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_isIndepend : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isIndepend, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isIndepend, s.thisObject(), s.rval()); @@ -14540,7 +14214,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_isIndepend) static bool js_gfx_BlendState_set_isIndepend(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_isIndepend : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14556,7 +14230,7 @@ static bool js_gfx_BlendState_get_blendColor(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_blendColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendColor, s.thisObject(), s.rval()); @@ -14567,7 +14241,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_blendColor) static bool js_gfx_BlendState_set_blendColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_blendColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14583,7 +14257,7 @@ static bool js_gfx_BlendState_get_targets(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_get_targets : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->targets, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->targets, s.thisObject(), s.rval()); @@ -14594,7 +14268,7 @@ SE_BIND_PROP_GET(js_gfx_BlendState_get_targets) static bool js_gfx_BlendState_set_targets(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_BlendState_set_targets : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14604,33 +14278,31 @@ static bool js_gfx_BlendState_set_targets(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_gfx_BlendState_set_targets) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::BlendState * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::BlendState* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isA2C", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isA2C), ctx); } json->getProperty("isIndepend", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isIndepend), ctx); } json->getProperty("blendColor", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendColor), ctx); } json->getProperty("targets", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->targets), ctx); } return ok; @@ -14640,26 +14312,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_BlendState_finalize) static bool js_gfx_BlendState_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::BlendState* cobj = JSB_ALLOC(cc::gfx::BlendState); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::BlendState* cobj = JSB_ALLOC(cc::gfx::BlendState); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -14684,7 +14354,7 @@ static bool js_gfx_BlendState_constructor(se::State& s) // NOLINT(readability-id ok &= sevalue_to_native(args[3], &(cobj->targets), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -14696,13 +14366,10 @@ static bool js_gfx_BlendState_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_BlendState_constructor, __jsb_cc_gfx_BlendState_class, js_cc_gfx_BlendState_finalize) - - static bool js_cc_gfx_BlendState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -14730,7 +14397,7 @@ bool js_register_gfx_BlendState(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_PipelineStateInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineStateInfo_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineStateInfo_class = nullptr; static bool js_gfx_PipelineStateInfo_get_shader(se::State& s) // NOLINT(readability-identifier-naming) { @@ -14738,7 +14405,7 @@ static bool js_gfx_PipelineStateInfo_get_shader(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_shader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shader, s.thisObject(), s.rval()); @@ -14749,7 +14416,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_shader) static bool js_gfx_PipelineStateInfo_set_shader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_shader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14765,7 +14432,7 @@ static bool js_gfx_PipelineStateInfo_get_pipelineLayout(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_pipelineLayout : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelineLayout, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelineLayout, s.thisObject(), s.rval()); @@ -14776,7 +14443,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_pipelineLayout) static bool js_gfx_PipelineStateInfo_set_pipelineLayout(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_pipelineLayout : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14792,7 +14459,7 @@ static bool js_gfx_PipelineStateInfo_get_renderPass(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->renderPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->renderPass, s.thisObject(), s.rval()); @@ -14803,7 +14470,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_renderPass) static bool js_gfx_PipelineStateInfo_set_renderPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_renderPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14819,7 +14486,7 @@ static bool js_gfx_PipelineStateInfo_get_inputState(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_inputState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->inputState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->inputState, s.thisObject(), s.rval()); @@ -14830,7 +14497,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_inputState) static bool js_gfx_PipelineStateInfo_set_inputState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_inputState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14846,7 +14513,7 @@ static bool js_gfx_PipelineStateInfo_get_rasterizerState(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_rasterizerState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->rasterizerState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->rasterizerState, s.thisObject(), s.rval()); @@ -14857,7 +14524,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_rasterizerState) static bool js_gfx_PipelineStateInfo_set_rasterizerState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_rasterizerState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14873,7 +14540,7 @@ static bool js_gfx_PipelineStateInfo_get_depthStencilState(se::State& s) // NOLI SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_depthStencilState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depthStencilState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depthStencilState, s.thisObject(), s.rval()); @@ -14884,7 +14551,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_depthStencilState) static bool js_gfx_PipelineStateInfo_set_depthStencilState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_depthStencilState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14900,7 +14567,7 @@ static bool js_gfx_PipelineStateInfo_get_blendState(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_blendState : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->blendState, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->blendState, s.thisObject(), s.rval()); @@ -14911,7 +14578,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_blendState) static bool js_gfx_PipelineStateInfo_set_blendState(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_blendState : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14927,7 +14594,7 @@ static bool js_gfx_PipelineStateInfo_get_primitive(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_primitive : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->primitive, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->primitive, s.thisObject(), s.rval()); @@ -14938,7 +14605,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_primitive) static bool js_gfx_PipelineStateInfo_set_primitive(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_primitive : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14954,7 +14621,7 @@ static bool js_gfx_PipelineStateInfo_get_dynamicStates(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_dynamicStates : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dynamicStates, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dynamicStates, s.thisObject(), s.rval()); @@ -14965,7 +14632,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_dynamicStates) static bool js_gfx_PipelineStateInfo_set_dynamicStates(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_dynamicStates : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -14981,7 +14648,7 @@ static bool js_gfx_PipelineStateInfo_get_bindPoint(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_bindPoint : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bindPoint, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bindPoint, s.thisObject(), s.rval()); @@ -14992,7 +14659,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_bindPoint) static bool js_gfx_PipelineStateInfo_set_bindPoint(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_bindPoint : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15008,7 +14675,7 @@ static bool js_gfx_PipelineStateInfo_get_subpass(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_get_subpass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->subpass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->subpass, s.thisObject(), s.rval()); @@ -15019,7 +14686,7 @@ SE_BIND_PROP_GET(js_gfx_PipelineStateInfo_get_subpass) static bool js_gfx_PipelineStateInfo_set_subpass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineStateInfo_set_subpass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15029,61 +14696,59 @@ static bool js_gfx_PipelineStateInfo_set_subpass(se::State& s) // NOLINT(readabi } SE_BIND_PROP_SET(js_gfx_PipelineStateInfo_set_subpass) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::PipelineStateInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::PipelineStateInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("shader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shader), ctx); } json->getProperty("pipelineLayout", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelineLayout), ctx); } json->getProperty("renderPass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->renderPass), ctx); } json->getProperty("inputState", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->inputState), ctx); } json->getProperty("rasterizerState", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->rasterizerState), ctx); } json->getProperty("depthStencilState", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depthStencilState), ctx); } json->getProperty("blendState", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->blendState), ctx); } json->getProperty("primitive", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->primitive), ctx); } json->getProperty("dynamicStates", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dynamicStates), ctx); } json->getProperty("bindPoint", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindPoint), ctx); } json->getProperty("subpass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->subpass), ctx); } return ok; @@ -15093,26 +14758,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_PipelineStateInfo_finalize) static bool js_gfx_PipelineStateInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::PipelineStateInfo* cobj = JSB_ALLOC(cc::gfx::PipelineStateInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::PipelineStateInfo* cobj = JSB_ALLOC(cc::gfx::PipelineStateInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -15158,7 +14821,7 @@ static bool js_gfx_PipelineStateInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[10], &(cobj->subpass), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15170,13 +14833,10 @@ static bool js_gfx_PipelineStateInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_PipelineStateInfo_constructor, __jsb_cc_gfx_PipelineStateInfo_class, js_cc_gfx_PipelineStateInfo_finalize) - - static bool js_cc_gfx_PipelineStateInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15211,7 +14871,7 @@ bool js_register_gfx_PipelineStateInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_CommandBufferInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_CommandBufferInfo_class = nullptr; +se::Class* __jsb_cc_gfx_CommandBufferInfo_class = nullptr; static bool js_gfx_CommandBufferInfo_get_queue(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15219,7 +14879,7 @@ static bool js_gfx_CommandBufferInfo_get_queue(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_get_queue : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->queue, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->queue, s.thisObject(), s.rval()); @@ -15230,7 +14890,7 @@ SE_BIND_PROP_GET(js_gfx_CommandBufferInfo_get_queue) static bool js_gfx_CommandBufferInfo_set_queue(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_set_queue : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15246,7 +14906,7 @@ static bool js_gfx_CommandBufferInfo_get_type(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -15257,7 +14917,7 @@ SE_BIND_PROP_GET(js_gfx_CommandBufferInfo_get_type) static bool js_gfx_CommandBufferInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBufferInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15267,25 +14927,23 @@ static bool js_gfx_CommandBufferInfo_set_type(se::State& s) // NOLINT(readabilit } SE_BIND_PROP_SET(js_gfx_CommandBufferInfo_set_type) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::CommandBufferInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::CommandBufferInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("queue", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->queue), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } return ok; @@ -15295,26 +14953,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_CommandBufferInfo_finalize) static bool js_gfx_CommandBufferInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::CommandBufferInfo* cobj = JSB_ALLOC(cc::gfx::CommandBufferInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::CommandBufferInfo* cobj = JSB_ALLOC(cc::gfx::CommandBufferInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -15333,7 +14989,7 @@ static bool js_gfx_CommandBufferInfo_constructor(se::State& s) // NOLINT(readabi ok &= sevalue_to_native(args[1], &(cobj->type), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15345,13 +15001,10 @@ static bool js_gfx_CommandBufferInfo_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_CommandBufferInfo_constructor, __jsb_cc_gfx_CommandBufferInfo_class, js_cc_gfx_CommandBufferInfo_finalize) - - static bool js_cc_gfx_CommandBufferInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15377,7 +15030,7 @@ bool js_register_gfx_CommandBufferInfo(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_gfx_QueueInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_QueueInfo_class = nullptr; +se::Class* __jsb_cc_gfx_QueueInfo_class = nullptr; static bool js_gfx_QueueInfo_get_type(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15385,7 +15038,7 @@ static bool js_gfx_QueueInfo_get_type(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_gfx_QueueInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -15396,7 +15049,7 @@ SE_BIND_PROP_GET(js_gfx_QueueInfo_get_type) static bool js_gfx_QueueInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueueInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15406,21 +15059,19 @@ static bool js_gfx_QueueInfo_set_type(se::State& s) // NOLINT(readability-identi } SE_BIND_PROP_SET(js_gfx_QueueInfo_set_type) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::QueueInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::QueueInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } return ok; @@ -15430,12 +15081,11 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_QueueInfo_finalize) static bool js_gfx_QueueInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::QueueInfo* cobj = JSB_ALLOC(cc::gfx::QueueInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); @@ -15447,7 +15097,7 @@ static bool js_gfx_QueueInfo_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[0], &(cobj->type), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15459,13 +15109,10 @@ static bool js_gfx_QueueInfo_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_QueueInfo_constructor, __jsb_cc_gfx_QueueInfo_class, js_cc_gfx_QueueInfo_finalize) - - static bool js_cc_gfx_QueueInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15490,7 +15137,7 @@ bool js_register_gfx_QueueInfo(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_QueryPoolInfo_proto = nullptr; -se::Class* __jsb_cc_gfx_QueryPoolInfo_class = nullptr; +se::Class* __jsb_cc_gfx_QueryPoolInfo_class = nullptr; static bool js_gfx_QueryPoolInfo_get_type(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15498,7 +15145,7 @@ static bool js_gfx_QueryPoolInfo_get_type(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -15509,7 +15156,7 @@ SE_BIND_PROP_GET(js_gfx_QueryPoolInfo_get_type) static bool js_gfx_QueryPoolInfo_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15525,7 +15172,7 @@ static bool js_gfx_QueryPoolInfo_get_maxQueryObjects(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_get_maxQueryObjects : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxQueryObjects, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxQueryObjects, s.thisObject(), s.rval()); @@ -15536,7 +15183,7 @@ SE_BIND_PROP_GET(js_gfx_QueryPoolInfo_get_maxQueryObjects) static bool js_gfx_QueryPoolInfo_set_maxQueryObjects(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_set_maxQueryObjects : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15552,7 +15199,7 @@ static bool js_gfx_QueryPoolInfo_get_forceWait(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_get_forceWait : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->forceWait, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->forceWait, s.thisObject(), s.rval()); @@ -15563,7 +15210,7 @@ SE_BIND_PROP_GET(js_gfx_QueryPoolInfo_get_forceWait) static bool js_gfx_QueryPoolInfo_set_forceWait(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPoolInfo_set_forceWait : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15573,29 +15220,27 @@ static bool js_gfx_QueryPoolInfo_set_forceWait(se::State& s) // NOLINT(readabili } SE_BIND_PROP_SET(js_gfx_QueryPoolInfo_set_forceWait) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::QueryPoolInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::QueryPoolInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("maxQueryObjects", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxQueryObjects), ctx); } json->getProperty("forceWait", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->forceWait), ctx); } return ok; @@ -15605,26 +15250,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_QueryPoolInfo_finalize) static bool js_gfx_QueryPoolInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::QueryPoolInfo* cobj = JSB_ALLOC(cc::gfx::QueryPoolInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::QueryPoolInfo* cobj = JSB_ALLOC(cc::gfx::QueryPoolInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -15646,7 +15289,7 @@ static bool js_gfx_QueryPoolInfo_constructor(se::State& s) // NOLINT(readability ok &= sevalue_to_native(args[2], &(cobj->forceWait), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15658,13 +15301,10 @@ static bool js_gfx_QueryPoolInfo_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_gfx_QueryPoolInfo_constructor, __jsb_cc_gfx_QueryPoolInfo_class, js_cc_gfx_QueryPoolInfo_finalize) - - static bool js_cc_gfx_QueryPoolInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15691,7 +15331,7 @@ bool js_register_gfx_QueryPoolInfo(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_MemoryStatus_proto = nullptr; -se::Class* __jsb_cc_gfx_MemoryStatus_class = nullptr; +se::Class* __jsb_cc_gfx_MemoryStatus_class = nullptr; static bool js_gfx_MemoryStatus_get_bufferSize(se::State& s) // NOLINT(readability-identifier-naming) { @@ -15699,7 +15339,7 @@ static bool js_gfx_MemoryStatus_get_bufferSize(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_get_bufferSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bufferSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bufferSize, s.thisObject(), s.rval()); @@ -15710,7 +15350,7 @@ SE_BIND_PROP_GET(js_gfx_MemoryStatus_get_bufferSize) static bool js_gfx_MemoryStatus_set_bufferSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_set_bufferSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15726,7 +15366,7 @@ static bool js_gfx_MemoryStatus_get_textureSize(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_get_textureSize : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->textureSize, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->textureSize, s.thisObject(), s.rval()); @@ -15737,7 +15377,7 @@ SE_BIND_PROP_GET(js_gfx_MemoryStatus_get_textureSize) static bool js_gfx_MemoryStatus_set_textureSize(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_MemoryStatus_set_textureSize : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -15747,25 +15387,23 @@ static bool js_gfx_MemoryStatus_set_textureSize(se::State& s) // NOLINT(readabil } SE_BIND_PROP_SET(js_gfx_MemoryStatus_set_textureSize) - -template<> -bool sevalue_to_native(const se::Value &from, cc::gfx::MemoryStatus * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::gfx::MemoryStatus* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bufferSize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bufferSize), ctx); } json->getProperty("textureSize", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->textureSize), ctx); } return ok; @@ -15775,26 +15413,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_MemoryStatus_finalize) static bool js_gfx_MemoryStatus_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::gfx::MemoryStatus* cobj = JSB_ALLOC(cc::gfx::MemoryStatus); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::gfx::MemoryStatus* cobj = JSB_ALLOC(cc::gfx::MemoryStatus); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -15813,7 +15449,7 @@ static bool js_gfx_MemoryStatus_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[1], &(cobj->textureSize), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -15825,13 +15461,10 @@ static bool js_gfx_MemoryStatus_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_gfx_MemoryStatus_constructor, __jsb_cc_gfx_MemoryStatus_class, js_cc_gfx_MemoryStatus_finalize) - - static bool js_cc_gfx_MemoryStatus_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15857,15 +15490,15 @@ bool js_register_gfx_MemoryStatus(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_gfx_GFXObject_proto = nullptr; -se::Class* __jsb_cc_gfx_GFXObject_class = nullptr; +se::Class* __jsb_cc_gfx_GFXObject_class = nullptr; static bool js_gfx_GFXObject_getObjectID(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GFXObject_getObjectID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getObjectID(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15882,9 +15515,9 @@ static bool js_gfx_GFXObject_getObjectType(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GFXObject_getObjectType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getObjectType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15901,9 +15534,9 @@ static bool js_gfx_GFXObject_getTypedID(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GFXObject_getTypedID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getTypedID(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15920,8 +15553,8 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_gfx_GFXObject_finalize) static bool js_gfx_GFXObject_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); cc::gfx::ObjectType arg0; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_GFXObject_constructor : Error processing arguments"); @@ -15932,13 +15565,10 @@ static bool js_gfx_GFXObject_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_GFXObject_constructor, __jsb_cc_gfx_GFXObject_class, js_cc_gfx_GFXObject_finalize) - - static bool js_cc_gfx_GFXObject_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -15965,14 +15595,14 @@ bool js_register_gfx_GFXObject(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_Buffer_proto = nullptr; -se::Class* __jsb_cc_gfx_Buffer_class = nullptr; +se::Class* __jsb_cc_gfx_Buffer_class = nullptr; static bool js_gfx_Buffer_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -15986,9 +15616,9 @@ static bool js_gfx_Buffer_getCount(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16005,9 +15635,9 @@ static bool js_gfx_Buffer_getFlags(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getFlags : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getFlags()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16024,9 +15654,9 @@ static bool js_gfx_Buffer_getMemUsage(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getMemUsage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getMemUsage()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16043,9 +15673,9 @@ static bool js_gfx_Buffer_getSize(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16062,9 +15692,9 @@ static bool js_gfx_Buffer_getStride(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getStride : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getStride(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16081,9 +15711,9 @@ static bool js_gfx_Buffer_getUsage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_getUsage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getUsage()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16100,9 +15730,9 @@ static bool js_gfx_Buffer_isBufferView(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_isBufferView : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isBufferView(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16119,9 +15749,9 @@ static bool js_gfx_Buffer_resize(se::State& s) // NOLINT(readability-identifier- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Buffer_resize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16136,9 +15766,9 @@ SE_BIND_FUNC(js_gfx_Buffer_resize) static bool js_gfx_Buffer_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -16164,13 +15794,10 @@ static bool js_gfx_Buffer_constructor(se::State& /*s*/) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_Buffer_constructor, __jsb_cc_gfx_Buffer_class, js_cc_gfx_Buffer_finalize) - - static bool js_cc_gfx_Buffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -16204,14 +15831,14 @@ bool js_register_gfx_Buffer(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_InputAssembler_proto = nullptr; -se::Class* __jsb_cc_gfx_InputAssembler_class = nullptr; +se::Class* __jsb_cc_gfx_InputAssembler_class = nullptr; static bool js_gfx_InputAssembler_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -16225,9 +15852,9 @@ static bool js_gfx_InputAssembler_getAttributes(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getAttributes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAttributes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16244,9 +15871,9 @@ static bool js_gfx_InputAssembler_getAttributesHash(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getAttributesHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getAttributesHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16263,9 +15890,9 @@ static bool js_gfx_InputAssembler_getDrawInfo(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getDrawInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DrawInfo& result = cobj->getDrawInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16282,9 +15909,9 @@ static bool js_gfx_InputAssembler_getFirstIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getFirstIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getFirstIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16301,9 +15928,9 @@ static bool js_gfx_InputAssembler_getFirstInstance(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getFirstInstance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getFirstInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16320,9 +15947,9 @@ static bool js_gfx_InputAssembler_getFirstVertex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getFirstVertex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getFirstVertex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16339,9 +15966,9 @@ static bool js_gfx_InputAssembler_getIndexBuffer(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getIndexBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getIndexBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16358,9 +15985,9 @@ static bool js_gfx_InputAssembler_getIndexCount(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getIndexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getIndexCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16377,9 +16004,9 @@ static bool js_gfx_InputAssembler_getIndirectBuffer(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getIndirectBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getIndirectBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16396,9 +16023,9 @@ static bool js_gfx_InputAssembler_getInstanceCount(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getInstanceCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getInstanceCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16415,11 +16042,11 @@ static bool js_gfx_InputAssembler_getVertexBuffers(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getVertexBuffers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getVertexBuffers(); + const std::vector& result = cobj->getVertexBuffers(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_InputAssembler_getVertexBuffers : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -16434,9 +16061,9 @@ static bool js_gfx_InputAssembler_getVertexCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getVertexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getVertexCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16453,9 +16080,9 @@ static bool js_gfx_InputAssembler_getVertexOffset(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_getVertexOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getVertexOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16472,9 +16099,9 @@ static bool js_gfx_InputAssembler_initialize(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16491,9 +16118,9 @@ static bool js_gfx_InputAssembler_setFirstIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setFirstIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16510,9 +16137,9 @@ static bool js_gfx_InputAssembler_setFirstInstance(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setFirstInstance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16529,9 +16156,9 @@ static bool js_gfx_InputAssembler_setFirstVertex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setFirstVertex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16548,9 +16175,9 @@ static bool js_gfx_InputAssembler_setIndexCount(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setIndexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16567,9 +16194,9 @@ static bool js_gfx_InputAssembler_setInstanceCount(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setInstanceCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16586,9 +16213,9 @@ static bool js_gfx_InputAssembler_setVertexCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setVertexCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16605,9 +16232,9 @@ static bool js_gfx_InputAssembler_setVertexOffset(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_InputAssembler_setVertexOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16630,13 +16257,10 @@ static bool js_gfx_InputAssembler_constructor(se::State& /*s*/) // NOLINT(readab } SE_BIND_CTOR(js_gfx_InputAssembler_constructor, __jsb_cc_gfx_InputAssembler_class, js_cc_gfx_InputAssembler_finalize) - - static bool js_cc_gfx_InputAssembler_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -16675,64 +16299,81 @@ bool js_register_gfx_InputAssembler(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_CommandBuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_CommandBuffer_class = nullptr; +se::Class* __jsb_cc_gfx_CommandBuffer_class = nullptr; static bool js_gfx_CommandBuffer_begin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_begin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_begin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 0) { - cobj->begin(); return true; } - } while(false); + } while (false); do { if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->begin(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->begin(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->begin(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16743,12 +16384,12 @@ static bool js_gfx_CommandBuffer_beginQuery(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_beginQuery : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_CommandBuffer_beginQuery : Error processing arguments"); @@ -16762,123 +16403,204 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_beginQuery) static bool js_gfx_CommandBuffer_beginRenderPass(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_beginRenderPass : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_beginRenderPass : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 7) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType, true> arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; - HolderType, true> arg6 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType, true> arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; + HolderType, true> arg6 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[6], &arg6, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value(), arg6.value()); return true; } - } while(false); + } while (false); do { if (argc == 8) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; HolderType arg6 = {}; - HolderType arg7 = {}; + HolderType arg7 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[6], &arg6, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[7], &arg7, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value(), arg6.value(), arg7.value()); return true; } - } while(false); + } while (false); do { if (argc == 6) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; HolderType, true> arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value()); return true; } - } while(false); + } while (false); do { if (argc == 6) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->beginRenderPass(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16887,61 +16609,88 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_beginRenderPass) static bool js_gfx_CommandBuffer_bindDescriptorSet(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_bindDescriptorSet : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_bindDescriptorSet : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindDescriptorSet(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindDescriptorSet(arg0.value(), arg1.value(), arg2.value(), arg3.value()); return true; } - } while(false); + } while (false); do { if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType, true> arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindDescriptorSet(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -16952,9 +16701,9 @@ static bool js_gfx_CommandBuffer_bindInputAssembler(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_bindInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16971,9 +16720,9 @@ static bool js_gfx_CommandBuffer_bindPipelineState(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_bindPipelineState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -16988,53 +16737,80 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_bindPipelineState) static bool js_gfx_CommandBuffer_blitTexture(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_blitTexture : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_blitTexture : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 4) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType, true> arg2 = {}; - HolderType arg3 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->blitTexture(arg0.value(), arg1.value(), arg2.value(), arg3.value()); return true; } - } while(false); + } while (false); do { if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->blitTexture(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17045,9 +16821,9 @@ static bool js_gfx_CommandBuffer_completeQueryPool(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_completeQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17065,7 +16841,7 @@ static bool js_gfx_CommandBuffer_destroy(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -17079,9 +16855,9 @@ static bool js_gfx_CommandBuffer_dispatch(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_dispatch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17096,32 +16872,38 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_dispatch) static bool js_gfx_CommandBuffer_draw(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_draw : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_draw : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->draw(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->draw(arg0.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17133,7 +16915,7 @@ static bool js_gfx_CommandBuffer_end(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_end : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->end(); return true; @@ -17147,12 +16929,12 @@ static bool js_gfx_CommandBuffer_endQuery(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_endQuery : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_CommandBuffer_endQuery : Error processing arguments"); @@ -17169,7 +16951,7 @@ static bool js_gfx_CommandBuffer_endRenderPass(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_endRenderPass : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->endRenderPass(); return true; @@ -17183,9 +16965,9 @@ static bool js_gfx_CommandBuffer_getNumDrawCalls(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getNumDrawCalls : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumDrawCalls(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17202,9 +16984,9 @@ static bool js_gfx_CommandBuffer_getNumInstances(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getNumInstances : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumInstances(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17221,9 +17003,9 @@ static bool js_gfx_CommandBuffer_getNumTris(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getNumTris : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumTris(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17240,9 +17022,9 @@ static bool js_gfx_CommandBuffer_getQueue(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getQueue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Queue* result = cobj->getQueue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17259,9 +17041,9 @@ static bool js_gfx_CommandBuffer_getType(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17278,9 +17060,9 @@ static bool js_gfx_CommandBuffer_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17298,7 +17080,7 @@ static bool js_gfx_CommandBuffer_nextSubpass(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_nextSubpass : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->nextSubpass(); return true; @@ -17310,58 +17092,82 @@ SE_BIND_FUNC(js_gfx_CommandBuffer_nextSubpass) static bool js_gfx_CommandBuffer_pipelineBarrier(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_CommandBuffer_pipelineBarrier : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_pipelineBarrier : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->pipelineBarrier(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->pipelineBarrier(arg0.value(), arg1.value(), arg2.value(), arg3.value()); return true; } - } while(false); + } while (false); do { if (argc == 3) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; - HolderType, true> arg2 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; + HolderType, true> arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->pipelineBarrier(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17372,9 +17178,9 @@ static bool js_gfx_CommandBuffer_resetQueryPool(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_resetQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17391,9 +17197,9 @@ static bool js_gfx_CommandBuffer_setBlendConstants(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setBlendConstants : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17410,9 +17216,9 @@ static bool js_gfx_CommandBuffer_setDepthBias(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setDepthBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -17433,9 +17239,9 @@ static bool js_gfx_CommandBuffer_setDepthBound(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setDepthBound : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -17454,9 +17260,9 @@ static bool js_gfx_CommandBuffer_setLineWidth(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setLineWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17473,9 +17279,9 @@ static bool js_gfx_CommandBuffer_setScissor(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setScissor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17492,13 +17298,13 @@ static bool js_gfx_CommandBuffer_setStencilCompareMask(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setStencilCompareMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17515,12 +17321,12 @@ static bool js_gfx_CommandBuffer_setStencilWriteMask(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setStencilWriteMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_gfx_CommandBuffer_setStencilWriteMask : Error processing arguments"); @@ -17536,9 +17342,9 @@ static bool js_gfx_CommandBuffer_setViewport(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_CommandBuffer_setViewport : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -17561,13 +17367,10 @@ static bool js_gfx_CommandBuffer_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_CommandBuffer_constructor, __jsb_cc_gfx_CommandBuffer_class, js_cc_gfx_CommandBuffer_finalize) - - static bool js_cc_gfx_CommandBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -17622,45 +17425,60 @@ bool js_register_gfx_CommandBuffer(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_DescriptorSet_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSet_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSet_class = nullptr; static bool js_gfx_DescriptorSet_bindBuffer(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_bindBuffer : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindBuffer : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindBuffer(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindBuffer(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17671,13 +17489,13 @@ static bool js_gfx_DescriptorSet_bindBufferJSB(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindBufferJSB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17695,41 +17513,56 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_bindBufferJSB) static bool js_gfx_DescriptorSet_bindSampler(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_bindSampler : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindSampler : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindSampler(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindSampler(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17740,13 +17573,13 @@ static bool js_gfx_DescriptorSet_bindSamplerJSB(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindSamplerJSB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17764,41 +17597,56 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_bindSamplerJSB) static bool js_gfx_DescriptorSet_bindTexture(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_bindTexture : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindTexture : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindTexture(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->bindTexture(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17809,13 +17657,13 @@ static bool js_gfx_DescriptorSet_bindTextureJSB(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_bindTextureJSB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -17836,7 +17684,7 @@ static bool js_gfx_DescriptorSet_destroy(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -17848,24 +17696,27 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_destroy) static bool js_gfx_DescriptorSet_getBuffer(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_getBuffer : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getBuffer : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::gfx::Buffer* result = cobj->getBuffer(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getBuffer : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 2) { @@ -17873,16 +17724,22 @@ static bool js_gfx_DescriptorSet_getBuffer(se::State& s) // NOLINT(readability-i HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::gfx::Buffer* result = cobj->getBuffer(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getBuffer : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17893,9 +17750,9 @@ static bool js_gfx_DescriptorSet_getLayout(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSetLayout* result = cobj->getLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -17910,24 +17767,27 @@ SE_BIND_PROP_GET(js_gfx_DescriptorSet_getLayout) static bool js_gfx_DescriptorSet_getSampler(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_getSampler : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getSampler : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::gfx::Sampler* result = cobj->getSampler(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getSampler : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 2) { @@ -17935,16 +17795,22 @@ static bool js_gfx_DescriptorSet_getSampler(se::State& s) // NOLINT(readability- HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::gfx::Sampler* result = cobj->getSampler(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getSampler : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17953,24 +17819,27 @@ SE_BIND_FUNC(js_gfx_DescriptorSet_getSampler) static bool js_gfx_DescriptorSet_getTexture(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_DescriptorSet_getTexture : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_getTexture : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::gfx::Texture* result = cobj->getTexture(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getTexture : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 2) { @@ -17978,16 +17847,22 @@ static bool js_gfx_DescriptorSet_getTexture(se::State& s) // NOLINT(readability- HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::gfx::Texture* result = cobj->getTexture(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_DescriptorSet_getTexture : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -17998,9 +17873,9 @@ static bool js_gfx_DescriptorSet_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18018,7 +17893,7 @@ static bool js_gfx_DescriptorSet_update(se::State& s) // NOLINT(readability-iden auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSet_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -18038,13 +17913,10 @@ static bool js_gfx_DescriptorSet_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_DescriptorSet_constructor, __jsb_cc_gfx_DescriptorSet_class, js_cc_gfx_DescriptorSet_finalize) - - static bool js_cc_gfx_DescriptorSet_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18081,14 +17953,14 @@ bool js_register_gfx_DescriptorSet(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_DescriptorSetLayout_proto = nullptr; -se::Class* __jsb_cc_gfx_DescriptorSetLayout_class = nullptr; +se::Class* __jsb_cc_gfx_DescriptorSetLayout_class = nullptr; static bool js_gfx_DescriptorSetLayout_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18102,9 +17974,9 @@ static bool js_gfx_DescriptorSetLayout_getBindings(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_getBindings : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getBindings(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18121,9 +17993,9 @@ static bool js_gfx_DescriptorSetLayout_getDescriptorCount(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_getDescriptorCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getDescriptorCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18140,9 +18012,9 @@ static bool js_gfx_DescriptorSetLayout_getDynamicBindings(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_getDynamicBindings : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getDynamicBindings(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18159,9 +18031,9 @@ static bool js_gfx_DescriptorSetLayout_initialize(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_DescriptorSetLayout_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18184,13 +18056,10 @@ static bool js_gfx_DescriptorSetLayout_constructor(se::State& /*s*/) // NOLINT(r } SE_BIND_CTOR(js_gfx_DescriptorSetLayout_constructor, __jsb_cc_gfx_DescriptorSetLayout_class, js_cc_gfx_DescriptorSetLayout_finalize) - - static bool js_cc_gfx_DescriptorSetLayout_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18219,14 +18088,14 @@ bool js_register_gfx_DescriptorSetLayout(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_gfx_Framebuffer_proto = nullptr; -se::Class* __jsb_cc_gfx_Framebuffer_class = nullptr; +se::Class* __jsb_cc_gfx_Framebuffer_class = nullptr; static bool js_gfx_Framebuffer_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18240,11 +18109,11 @@ static bool js_gfx_Framebuffer_getColorTextures(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_getColorTextures : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getColorTextures(); + const std::vector& result = cobj->getColorTextures(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_Framebuffer_getColorTextures : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -18259,9 +18128,9 @@ static bool js_gfx_Framebuffer_getDepthStencilTexture(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_getDepthStencilTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Texture* result = cobj->getDepthStencilTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18278,9 +18147,9 @@ static bool js_gfx_Framebuffer_getRenderPass(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_getRenderPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::RenderPass* result = cobj->getRenderPass(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18297,9 +18166,9 @@ static bool js_gfx_Framebuffer_initialize(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Framebuffer_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18314,9 +18183,9 @@ SE_BIND_FUNC(js_gfx_Framebuffer_initialize) static bool js_gfx_Framebuffer_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -18342,13 +18211,10 @@ static bool js_gfx_Framebuffer_constructor(se::State& /*s*/) // NOLINT(readabili } SE_BIND_CTOR(js_gfx_Framebuffer_constructor, __jsb_cc_gfx_Framebuffer_class, js_cc_gfx_Framebuffer_finalize) - - static bool js_cc_gfx_Framebuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18378,14 +18244,14 @@ bool js_register_gfx_Framebuffer(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_gfx_PipelineLayout_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineLayout_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineLayout_class = nullptr; static bool js_gfx_PipelineLayout_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayout_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18399,11 +18265,11 @@ static bool js_gfx_PipelineLayout_getSetLayouts(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayout_getSetLayouts : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSetLayouts(); + const std::vector& result = cobj->getSetLayouts(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_PipelineLayout_getSetLayouts : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -18418,9 +18284,9 @@ static bool js_gfx_PipelineLayout_initialize(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineLayout_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18443,13 +18309,10 @@ static bool js_gfx_PipelineLayout_constructor(se::State& /*s*/) // NOLINT(readab } SE_BIND_CTOR(js_gfx_PipelineLayout_constructor, __jsb_cc_gfx_PipelineLayout_class, js_cc_gfx_PipelineLayout_finalize) - - static bool js_cc_gfx_PipelineLayout_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18476,14 +18339,14 @@ bool js_register_gfx_PipelineLayout(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_PipelineState_proto = nullptr; -se::Class* __jsb_cc_gfx_PipelineState_class = nullptr; +se::Class* __jsb_cc_gfx_PipelineState_class = nullptr; static bool js_gfx_PipelineState_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18497,9 +18360,9 @@ static bool js_gfx_PipelineState_getBindPoint(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getBindPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getBindPoint()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18516,9 +18379,9 @@ static bool js_gfx_PipelineState_getBlendState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::BlendState& result = cobj->getBlendState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18535,9 +18398,9 @@ static bool js_gfx_PipelineState_getDepthStencilState(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DepthStencilState& result = cobj->getDepthStencilState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18554,9 +18417,9 @@ static bool js_gfx_PipelineState_getDynamicStates(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getDynamicStates : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getDynamicStates()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18573,9 +18436,9 @@ static bool js_gfx_PipelineState_getInputState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getInputState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::InputState& result = cobj->getInputState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18592,9 +18455,9 @@ static bool js_gfx_PipelineState_getPipelineLayout(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::PipelineLayout* result = cobj->getPipelineLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18611,9 +18474,9 @@ static bool js_gfx_PipelineState_getPrimitive(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPrimitive()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18630,9 +18493,9 @@ static bool js_gfx_PipelineState_getRasterizerState(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::RasterizerState& result = cobj->getRasterizerState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18649,9 +18512,9 @@ static bool js_gfx_PipelineState_getRenderPass(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getRenderPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::RenderPass* result = cobj->getRenderPass(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18668,9 +18531,9 @@ static bool js_gfx_PipelineState_getShader(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_getShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18687,9 +18550,9 @@ static bool js_gfx_PipelineState_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_PipelineState_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18712,13 +18575,10 @@ static bool js_gfx_PipelineState_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_PipelineState_constructor, __jsb_cc_gfx_PipelineState_class, js_cc_gfx_PipelineState_finalize) - - static bool js_cc_gfx_PipelineState_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18754,14 +18614,14 @@ bool js_register_gfx_PipelineState(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_QueryPool_proto = nullptr; -se::Class* __jsb_cc_gfx_QueryPool_class = nullptr; +se::Class* __jsb_cc_gfx_QueryPool_class = nullptr; static bool js_gfx_QueryPool_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18775,9 +18635,9 @@ static bool js_gfx_QueryPool_getForceWait(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getForceWait : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getForceWait(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18794,9 +18654,9 @@ static bool js_gfx_QueryPool_getMaxQueryObjects(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getMaxQueryObjects : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMaxQueryObjects(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18813,9 +18673,9 @@ static bool js_gfx_QueryPool_getResult(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18835,9 +18695,9 @@ static bool js_gfx_QueryPool_getType(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18854,9 +18714,9 @@ static bool js_gfx_QueryPool_hasResult(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_hasResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18876,9 +18736,9 @@ static bool js_gfx_QueryPool_initialize(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_QueryPool_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18901,13 +18761,10 @@ static bool js_gfx_QueryPool_constructor(se::State& /*s*/) // NOLINT(readability } SE_BIND_CTOR(js_gfx_QueryPool_constructor, __jsb_cc_gfx_QueryPool_class, js_cc_gfx_QueryPool_finalize) - - static bool js_cc_gfx_QueryPool_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -18938,14 +18795,14 @@ bool js_register_gfx_QueryPool(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_Queue_proto = nullptr; -se::Class* __jsb_cc_gfx_Queue_class = nullptr; +se::Class* __jsb_cc_gfx_Queue_class = nullptr; static bool js_gfx_Queue_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Queue_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -18959,9 +18816,9 @@ static bool js_gfx_Queue_getType(se::State& s) // NOLINT(readability-identifier- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Queue_getType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getType()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -18978,9 +18835,9 @@ static bool js_gfx_Queue_initialize(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Queue_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -18995,35 +18852,44 @@ SE_BIND_FUNC(js_gfx_Queue_initialize) static bool js_gfx_Queue_submit(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_Queue_submit : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_Queue_submit : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->submit(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->submit(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -19040,13 +18906,10 @@ static bool js_gfx_Queue_constructor(se::State& /*s*/) // NOLINT(readability-ide } SE_BIND_CTOR(js_gfx_Queue_constructor, __jsb_cc_gfx_Queue_class, js_cc_gfx_Queue_finalize) - - static bool js_cc_gfx_Queue_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19074,14 +18937,14 @@ bool js_register_gfx_Queue(se::Object* obj) // NOLINT(readability-identifier-nam return true; } se::Object* __jsb_cc_gfx_RenderPass_proto = nullptr; -se::Class* __jsb_cc_gfx_RenderPass_class = nullptr; +se::Class* __jsb_cc_gfx_RenderPass_class = nullptr; static bool js_gfx_RenderPass_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -19095,9 +18958,9 @@ static bool js_gfx_RenderPass_getDependencies(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getDependencies : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getDependencies(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19114,9 +18977,9 @@ static bool js_gfx_RenderPass_getDepthStencilAttachment(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getDepthStencilAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DepthStencilAttachment& result = cobj->getDepthStencilAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19133,9 +18996,9 @@ static bool js_gfx_RenderPass_getHash(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19152,9 +19015,9 @@ static bool js_gfx_RenderPass_getSubpasses(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_getSubpasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSubpasses(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19171,9 +19034,9 @@ static bool js_gfx_RenderPass_initialize(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_RenderPass_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -19188,9 +19051,9 @@ SE_BIND_FUNC(js_gfx_RenderPass_initialize) static bool js_gfx_RenderPass_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -19216,13 +19079,10 @@ static bool js_gfx_RenderPass_constructor(se::State& /*s*/) // NOLINT(readabilit } SE_BIND_CTOR(js_gfx_RenderPass_constructor, __jsb_cc_gfx_RenderPass_class, js_cc_gfx_RenderPass_finalize) - - static bool js_cc_gfx_RenderPass_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19253,14 +19113,14 @@ bool js_register_gfx_RenderPass(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_gfx_Shader_proto = nullptr; -se::Class* __jsb_cc_gfx_Shader_class = nullptr; +se::Class* __jsb_cc_gfx_Shader_class = nullptr; static bool js_gfx_Shader_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -19274,9 +19134,9 @@ static bool js_gfx_Shader_getAttributes(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getAttributes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getAttributes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19293,9 +19153,9 @@ static bool js_gfx_Shader_getBlocks(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getBlocks : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getBlocks(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19312,9 +19172,9 @@ static bool js_gfx_Shader_getBuffers(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getBuffers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getBuffers(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19331,9 +19191,9 @@ static bool js_gfx_Shader_getImages(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getImages : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getImages(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19350,9 +19210,9 @@ static bool js_gfx_Shader_getName(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19369,9 +19229,9 @@ static bool js_gfx_Shader_getSamplerTextures(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getSamplerTextures : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSamplerTextures(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19388,9 +19248,9 @@ static bool js_gfx_Shader_getSamplers(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getSamplers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSamplers(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19407,9 +19267,9 @@ static bool js_gfx_Shader_getStages(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getStages : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getStages(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19426,9 +19286,9 @@ static bool js_gfx_Shader_getSubpassInputs(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getSubpassInputs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getSubpassInputs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19445,9 +19305,9 @@ static bool js_gfx_Shader_getTextures(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_getTextures : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getTextures(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19464,9 +19324,9 @@ static bool js_gfx_Shader_initialize(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Shader_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -19489,13 +19349,10 @@ static bool js_gfx_Shader_constructor(se::State& /*s*/) // NOLINT(readability-id } SE_BIND_CTOR(js_gfx_Shader_constructor, __jsb_cc_gfx_Shader_class, js_cc_gfx_Shader_finalize) - - static bool js_cc_gfx_Shader_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19531,14 +19388,14 @@ bool js_register_gfx_Shader(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_Texture_proto = nullptr; -se::Class* __jsb_cc_gfx_Texture_class = nullptr; +se::Class* __jsb_cc_gfx_Texture_class = nullptr; static bool js_gfx_Texture_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -19552,9 +19409,9 @@ static bool js_gfx_Texture_getFormat(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getFormat : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getFormat()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19571,9 +19428,9 @@ static bool js_gfx_Texture_getHash(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19590,9 +19447,9 @@ static bool js_gfx_Texture_getHeight(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19609,9 +19466,9 @@ static bool js_gfx_Texture_getInfo(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::TextureInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19628,9 +19485,9 @@ static bool js_gfx_Texture_getSize(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19647,9 +19504,9 @@ static bool js_gfx_Texture_getViewInfo(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getViewInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::TextureViewInfo& result = cobj->getViewInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19666,9 +19523,9 @@ static bool js_gfx_Texture_getWidth(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19685,9 +19542,9 @@ static bool js_gfx_Texture_isTextureView(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_isTextureView : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isTextureView(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19704,9 +19561,9 @@ static bool js_gfx_Texture_resize(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Texture_resize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -19723,14 +19580,17 @@ SE_BIND_FUNC(js_gfx_Texture_resize) static bool js_gfx_Texture_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } size_t result = cc::gfx::Texture::computeHash(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_Texture_computeHash : Error processing arguments"); @@ -19742,7 +19602,10 @@ static bool js_gfx_Texture_computeHash(se::State& s) // NOLINT(readability-ident if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } size_t result = cc::gfx::Texture::computeHash(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_gfx_Texture_computeHash : Error processing arguments"); @@ -19765,13 +19628,10 @@ static bool js_gfx_Texture_constructor(se::State& /*s*/) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_Texture_constructor, __jsb_cc_gfx_Texture_class, js_cc_gfx_Texture_finalize) - - static bool js_cc_gfx_Texture_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -19806,15 +19666,15 @@ bool js_register_gfx_Texture(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_gfx_Swapchain_proto = nullptr; -se::Class* __jsb_cc_gfx_Swapchain_class = nullptr; +se::Class* __jsb_cc_gfx_Swapchain_class = nullptr; static bool js_gfx_Swapchain_createSurface(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_createSurface : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -19832,7 +19692,7 @@ static bool js_gfx_Swapchain_destroy(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -19847,7 +19707,7 @@ static bool js_gfx_Swapchain_destroySurface(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_destroySurface : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroySurface(); return true; @@ -19861,9 +19721,9 @@ static bool js_gfx_Swapchain_getColorTexture(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getColorTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Texture* result = cobj->getColorTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19880,9 +19740,9 @@ static bool js_gfx_Swapchain_getDepthStencilTexture(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getDepthStencilTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Texture* result = cobj->getDepthStencilTexture(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19899,9 +19759,9 @@ static bool js_gfx_Swapchain_getHeight(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19918,9 +19778,9 @@ static bool js_gfx_Swapchain_getSurfaceTransform(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getSurfaceTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getSurfaceTransform()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19937,9 +19797,9 @@ static bool js_gfx_Swapchain_getVSyncMode(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getVSyncMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getVSyncMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19956,9 +19816,9 @@ static bool js_gfx_Swapchain_getWidth(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19975,9 +19835,9 @@ static bool js_gfx_Swapchain_getWindowHandle(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_getWindowHandle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { void* result = cobj->getWindowHandle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -19994,9 +19854,9 @@ static bool js_gfx_Swapchain_initialize(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20013,12 +19873,12 @@ static bool js_gfx_Swapchain_resize(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Swapchain_resize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -20042,13 +19902,10 @@ static bool js_gfx_Swapchain_constructor(se::State& /*s*/) // NOLINT(readability } SE_BIND_CTOR(js_gfx_Swapchain_constructor, __jsb_cc_gfx_Swapchain_class, js_cc_gfx_Swapchain_finalize) - - static bool js_cc_gfx_Swapchain_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -20084,15 +19941,15 @@ bool js_register_gfx_Swapchain(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_gfx_GlobalBarrier_proto = nullptr; -se::Class* __jsb_cc_gfx_GlobalBarrier_class = nullptr; +se::Class* __jsb_cc_gfx_GlobalBarrier_class = nullptr; static bool js_gfx_GlobalBarrier_getHash(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrier_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const size_t& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20109,9 +19966,9 @@ static bool js_gfx_GlobalBarrier_getInfo(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_GlobalBarrier_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::GlobalBarrierInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20126,9 +19983,9 @@ SE_BIND_FUNC(js_gfx_GlobalBarrier_getInfo) static bool js_gfx_GlobalBarrier_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -20154,13 +20011,10 @@ static bool js_gfx_GlobalBarrier_constructor(se::State& /*s*/) // NOLINT(readabi } SE_BIND_CTOR(js_gfx_GlobalBarrier_constructor, __jsb_cc_gfx_GlobalBarrier_class, js_cc_gfx_GlobalBarrier_finalize) - - static bool js_cc_gfx_GlobalBarrier_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -20187,15 +20041,15 @@ bool js_register_gfx_GlobalBarrier(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_gfx_Sampler_proto = nullptr; -se::Class* __jsb_cc_gfx_Sampler_class = nullptr; +se::Class* __jsb_cc_gfx_Sampler_class = nullptr; static bool js_gfx_Sampler_getHash(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Sampler_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const size_t& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20212,9 +20066,9 @@ static bool js_gfx_Sampler_getInfo(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Sampler_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::SamplerInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20229,9 +20083,9 @@ SE_BIND_PROP_GET(js_gfx_Sampler_getInfo) static bool js_gfx_Sampler_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -20257,13 +20111,10 @@ static bool js_gfx_Sampler_constructor(se::State& /*s*/) // NOLINT(readability-i } SE_BIND_CTOR(js_gfx_Sampler_constructor, __jsb_cc_gfx_Sampler_class, js_cc_gfx_Sampler_finalize) - - static bool js_cc_gfx_Sampler_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -20290,15 +20141,15 @@ bool js_register_gfx_Sampler(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_gfx_TextureBarrier_proto = nullptr; -se::Class* __jsb_cc_gfx_TextureBarrier_class = nullptr; +se::Class* __jsb_cc_gfx_TextureBarrier_class = nullptr; static bool js_gfx_TextureBarrier_getHash(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrier_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const size_t& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20315,9 +20166,9 @@ static bool js_gfx_TextureBarrier_getInfo(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_TextureBarrier_getInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::TextureBarrierInfo& result = cobj->getInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20332,9 +20183,9 @@ SE_BIND_FUNC(js_gfx_TextureBarrier_getInfo) static bool js_gfx_TextureBarrier_computeHash(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -20360,13 +20211,10 @@ static bool js_gfx_TextureBarrier_constructor(se::State& /*s*/) // NOLINT(readab } SE_BIND_CTOR(js_gfx_TextureBarrier_constructor, __jsb_cc_gfx_TextureBarrier_class, js_cc_gfx_TextureBarrier_finalize) - - static bool js_cc_gfx_TextureBarrier_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -20393,39 +20241,48 @@ bool js_register_gfx_TextureBarrier(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_gfx_Device_proto = nullptr; -se::Class* __jsb_cc_gfx_Device_class = nullptr; +se::Class* __jsb_cc_gfx_Device_class = nullptr; static bool js_gfx_Device_acquire(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_Device_acquire : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_Device_acquire : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->acquire(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->acquire(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -20436,9 +20293,9 @@ static bool js_gfx_Device_bindingMappingInfo(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_bindingMappingInfo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::BindingMappingInfo& result = cobj->bindingMappingInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20455,9 +20312,9 @@ static bool js_gfx_Device_createCommandBuffer(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createCommandBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20478,9 +20335,9 @@ static bool js_gfx_Device_createDescriptorSet(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20501,9 +20358,9 @@ static bool js_gfx_Device_createDescriptorSetLayout(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createDescriptorSetLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20524,9 +20381,9 @@ static bool js_gfx_Device_createFramebuffer(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createFramebuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20547,9 +20404,9 @@ static bool js_gfx_Device_createInputAssembler(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20570,9 +20427,9 @@ static bool js_gfx_Device_createPipelineLayout(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20593,9 +20450,9 @@ static bool js_gfx_Device_createPipelineState(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createPipelineState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20616,9 +20473,9 @@ static bool js_gfx_Device_createQueryPool(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20639,9 +20496,9 @@ static bool js_gfx_Device_createQueue(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createQueue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20662,9 +20519,9 @@ static bool js_gfx_Device_createRenderPass(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createRenderPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20685,9 +20542,9 @@ static bool js_gfx_Device_createShader(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20708,9 +20565,9 @@ static bool js_gfx_Device_createSwapchain(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_createSwapchain : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20732,7 +20589,7 @@ static bool js_gfx_Device_destroy(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -20744,35 +20601,44 @@ SE_BIND_FUNC(js_gfx_Device_destroy) static bool js_gfx_Device_flushCommands(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_gfx_Device_flushCommands : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_gfx_Device_flushCommands : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->flushCommands(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->flushCommands(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -20783,9 +20649,9 @@ static bool js_gfx_Device_getCapabilities(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getCapabilities : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::gfx::DeviceCaps& result = cobj->getCapabilities(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20802,9 +20668,9 @@ static bool js_gfx_Device_getCommandBuffer(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getCommandBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::CommandBuffer* result = cobj->getCommandBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20821,9 +20687,9 @@ static bool js_gfx_Device_getDeviceName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getDeviceName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getDeviceName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20840,9 +20706,9 @@ static bool js_gfx_Device_getGfxAPI(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getGfxAPI : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getGfxAPI()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20859,9 +20725,9 @@ static bool js_gfx_Device_getGlobalBarrier(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getGlobalBarrier : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20881,9 +20747,9 @@ static bool js_gfx_Device_getMemoryStatus(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getMemoryStatus : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::MemoryStatus& result = cobj->getMemoryStatus(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20900,9 +20766,9 @@ static bool js_gfx_Device_getNumDrawCalls(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getNumDrawCalls : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumDrawCalls(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20919,9 +20785,9 @@ static bool js_gfx_Device_getNumInstances(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getNumInstances : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumInstances(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20938,9 +20804,9 @@ static bool js_gfx_Device_getNumTris(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getNumTris : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getNumTris(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20957,9 +20823,9 @@ static bool js_gfx_Device_getQueryPool(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getQueryPool : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::QueryPool* result = cobj->getQueryPool(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -20976,9 +20842,9 @@ static bool js_gfx_Device_getQueryPoolResults(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getQueryPoolResults : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -20995,9 +20861,9 @@ static bool js_gfx_Device_getQueue(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getQueue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Queue* result = cobj->getQueue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -21014,9 +20880,9 @@ static bool js_gfx_Device_getRenderer(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getRenderer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getRenderer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -21033,9 +20899,9 @@ static bool js_gfx_Device_getSampler(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -21055,9 +20921,9 @@ static bool js_gfx_Device_getTextureBarrier(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getTextureBarrier : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -21077,9 +20943,9 @@ static bool js_gfx_Device_getVendor(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_getVendor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getVendor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -21096,9 +20962,9 @@ static bool js_gfx_Device_hasFeature(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_hasFeature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -21118,9 +20984,9 @@ static bool js_gfx_Device_initialize(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -21141,7 +21007,7 @@ static bool js_gfx_Device_present(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_gfx_Device_present : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->present(); return true; @@ -21151,8 +21017,6 @@ static bool js_gfx_Device_present(se::State& s) // NOLINT(readability-identifier } SE_BIND_FUNC(js_gfx_Device_present) - - bool js_register_gfx_Device(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Device", obj, nullptr, nullptr); @@ -21202,13 +21066,13 @@ bool js_register_gfx_Device(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_gfx_DeviceManager_proto = nullptr; -se::Class* __jsb_cc_gfx_DeviceManager_class = nullptr; +se::Class* __jsb_cc_gfx_DeviceManager_class = nullptr; static bool js_gfx_DeviceManager_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -21227,7 +21091,7 @@ SE_BIND_FUNC(js_gfx_DeviceManager_create) static bool js_gfx_DeviceManager_destroy(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::gfx::DeviceManager::destroy(); return true; @@ -21240,7 +21104,7 @@ SE_BIND_FUNC(js_gfx_DeviceManager_destroy) static bool js_gfx_DeviceManager_addSurfaceEventListener(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::gfx::DeviceManager::addSurfaceEventListener(); return true; @@ -21250,12 +21114,10 @@ static bool js_gfx_DeviceManager_addSurfaceEventListener(se::State& s) // NOLINT } SE_BIND_FUNC(js_gfx_DeviceManager_addSurfaceEventListener) - static bool js_cc_gfx_DeviceManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -21281,12 +21143,10 @@ bool js_register_gfx_DeviceManager(se::Object* obj) // NOLINT(readability-identi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_gfx(se::Object* obj) -{ +bool register_all_gfx(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("gfx", &nsVal)) - { + if (!obj->getProperty("gfx", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("gfx", nsVal); @@ -21372,4 +21232,3 @@ bool register_all_gfx(se::Object* obj) js_register_gfx_DeviceManager(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.h b/native/cocos/bindings/auto/jsb_gfx_auto.h index a1db6e319a..f2c2d43c09 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.h +++ b/native/cocos/bindings/auto/jsb_gfx_auto.h @@ -1,582 +1,607 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include +#include "base/Config.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/renderer/GFXDeviceManager.h" extern se::Object* __jsb_cc_gfx_Size_proto; -extern se::Class* __jsb_cc_gfx_Size_class; +extern se::Class* __jsb_cc_gfx_Size_class; bool js_register_cc_gfx_Size(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Size *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Size*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Size); extern se::Object* __jsb_cc_gfx_DeviceCaps_proto; -extern se::Class* __jsb_cc_gfx_DeviceCaps_class; +extern se::Class* __jsb_cc_gfx_DeviceCaps_class; bool js_register_cc_gfx_DeviceCaps(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DeviceCaps *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DeviceCaps*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DeviceCaps); extern se::Object* __jsb_cc_gfx_Offset_proto; -extern se::Class* __jsb_cc_gfx_Offset_class; +extern se::Class* __jsb_cc_gfx_Offset_class; bool js_register_cc_gfx_Offset(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Offset *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Offset*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Offset); extern se::Object* __jsb_cc_gfx_Rect_proto; -extern se::Class* __jsb_cc_gfx_Rect_class; +extern se::Class* __jsb_cc_gfx_Rect_class; bool js_register_cc_gfx_Rect(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Rect *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Rect*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Rect); extern se::Object* __jsb_cc_gfx_Extent_proto; -extern se::Class* __jsb_cc_gfx_Extent_class; +extern se::Class* __jsb_cc_gfx_Extent_class; bool js_register_cc_gfx_Extent(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Extent *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Extent*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Extent); extern se::Object* __jsb_cc_gfx_TextureSubresLayers_proto; -extern se::Class* __jsb_cc_gfx_TextureSubresLayers_class; +extern se::Class* __jsb_cc_gfx_TextureSubresLayers_class; bool js_register_cc_gfx_TextureSubresLayers(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::TextureSubresLayers *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::TextureSubresLayers*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureSubresLayers); extern se::Object* __jsb_cc_gfx_TextureSubresRange_proto; -extern se::Class* __jsb_cc_gfx_TextureSubresRange_class; +extern se::Class* __jsb_cc_gfx_TextureSubresRange_class; bool js_register_cc_gfx_TextureSubresRange(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::TextureSubresRange *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::TextureSubresRange*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureSubresRange); extern se::Object* __jsb_cc_gfx_TextureCopy_proto; -extern se::Class* __jsb_cc_gfx_TextureCopy_class; +extern se::Class* __jsb_cc_gfx_TextureCopy_class; bool js_register_cc_gfx_TextureCopy(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::TextureCopy *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::TextureCopy*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureCopy); extern se::Object* __jsb_cc_gfx_TextureBlit_proto; -extern se::Class* __jsb_cc_gfx_TextureBlit_class; +extern se::Class* __jsb_cc_gfx_TextureBlit_class; bool js_register_cc_gfx_TextureBlit(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::TextureBlit *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::TextureBlit*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureBlit); extern se::Object* __jsb_cc_gfx_BufferTextureCopy_proto; -extern se::Class* __jsb_cc_gfx_BufferTextureCopy_class; +extern se::Class* __jsb_cc_gfx_BufferTextureCopy_class; bool js_register_cc_gfx_BufferTextureCopy(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::BufferTextureCopy *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::BufferTextureCopy*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BufferTextureCopy); extern se::Object* __jsb_cc_gfx_Viewport_proto; -extern se::Class* __jsb_cc_gfx_Viewport_class; +extern se::Class* __jsb_cc_gfx_Viewport_class; bool js_register_cc_gfx_Viewport(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Viewport *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Viewport*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Viewport); extern se::Object* __jsb_cc_gfx_Color_proto; -extern se::Class* __jsb_cc_gfx_Color_class; +extern se::Class* __jsb_cc_gfx_Color_class; bool js_register_cc_gfx_Color(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Color *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Color*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Color); extern se::Object* __jsb_cc_gfx_BindingMappingInfo_proto; -extern se::Class* __jsb_cc_gfx_BindingMappingInfo_class; +extern se::Class* __jsb_cc_gfx_BindingMappingInfo_class; bool js_register_cc_gfx_BindingMappingInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::BindingMappingInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::BindingMappingInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BindingMappingInfo); extern se::Object* __jsb_cc_gfx_SwapchainInfo_proto; -extern se::Class* __jsb_cc_gfx_SwapchainInfo_class; +extern se::Class* __jsb_cc_gfx_SwapchainInfo_class; bool js_register_cc_gfx_SwapchainInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::SwapchainInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::SwapchainInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SwapchainInfo); extern se::Object* __jsb_cc_gfx_DeviceInfo_proto; -extern se::Class* __jsb_cc_gfx_DeviceInfo_class; +extern se::Class* __jsb_cc_gfx_DeviceInfo_class; bool js_register_cc_gfx_DeviceInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DeviceInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DeviceInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DeviceInfo); extern se::Object* __jsb_cc_gfx_BufferInfo_proto; -extern se::Class* __jsb_cc_gfx_BufferInfo_class; +extern se::Class* __jsb_cc_gfx_BufferInfo_class; bool js_register_cc_gfx_BufferInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::BufferInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::BufferInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BufferInfo); extern se::Object* __jsb_cc_gfx_BufferViewInfo_proto; -extern se::Class* __jsb_cc_gfx_BufferViewInfo_class; +extern se::Class* __jsb_cc_gfx_BufferViewInfo_class; bool js_register_cc_gfx_BufferViewInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::BufferViewInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::BufferViewInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BufferViewInfo); extern se::Object* __jsb_cc_gfx_DrawInfo_proto; -extern se::Class* __jsb_cc_gfx_DrawInfo_class; +extern se::Class* __jsb_cc_gfx_DrawInfo_class; bool js_register_cc_gfx_DrawInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DrawInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DrawInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DrawInfo); extern se::Object* __jsb_cc_gfx_DispatchInfo_proto; -extern se::Class* __jsb_cc_gfx_DispatchInfo_class; +extern se::Class* __jsb_cc_gfx_DispatchInfo_class; bool js_register_cc_gfx_DispatchInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DispatchInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DispatchInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DispatchInfo); extern se::Object* __jsb_cc_gfx_IndirectBuffer_proto; -extern se::Class* __jsb_cc_gfx_IndirectBuffer_class; +extern se::Class* __jsb_cc_gfx_IndirectBuffer_class; bool js_register_cc_gfx_IndirectBuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::IndirectBuffer *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::IndirectBuffer*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::IndirectBuffer); extern se::Object* __jsb_cc_gfx_TextureInfo_proto; -extern se::Class* __jsb_cc_gfx_TextureInfo_class; +extern se::Class* __jsb_cc_gfx_TextureInfo_class; bool js_register_cc_gfx_TextureInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::TextureInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::TextureInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureInfo); extern se::Object* __jsb_cc_gfx_TextureViewInfo_proto; -extern se::Class* __jsb_cc_gfx_TextureViewInfo_class; +extern se::Class* __jsb_cc_gfx_TextureViewInfo_class; bool js_register_cc_gfx_TextureViewInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::TextureViewInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::TextureViewInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureViewInfo); extern se::Object* __jsb_cc_gfx_SamplerInfo_proto; -extern se::Class* __jsb_cc_gfx_SamplerInfo_class; +extern se::Class* __jsb_cc_gfx_SamplerInfo_class; bool js_register_cc_gfx_SamplerInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::SamplerInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::SamplerInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SamplerInfo); extern se::Object* __jsb_cc_gfx_Uniform_proto; -extern se::Class* __jsb_cc_gfx_Uniform_class; +extern se::Class* __jsb_cc_gfx_Uniform_class; bool js_register_cc_gfx_Uniform(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Uniform *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Uniform*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Uniform); extern se::Object* __jsb_cc_gfx_UniformBlock_proto; -extern se::Class* __jsb_cc_gfx_UniformBlock_class; +extern se::Class* __jsb_cc_gfx_UniformBlock_class; bool js_register_cc_gfx_UniformBlock(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::UniformBlock *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::UniformBlock*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformBlock); extern se::Object* __jsb_cc_gfx_UniformSamplerTexture_proto; -extern se::Class* __jsb_cc_gfx_UniformSamplerTexture_class; +extern se::Class* __jsb_cc_gfx_UniformSamplerTexture_class; bool js_register_cc_gfx_UniformSamplerTexture(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::UniformSamplerTexture *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::UniformSamplerTexture*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformSamplerTexture); extern se::Object* __jsb_cc_gfx_UniformSampler_proto; -extern se::Class* __jsb_cc_gfx_UniformSampler_class; +extern se::Class* __jsb_cc_gfx_UniformSampler_class; bool js_register_cc_gfx_UniformSampler(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::UniformSampler *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::UniformSampler*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformSampler); extern se::Object* __jsb_cc_gfx_UniformTexture_proto; -extern se::Class* __jsb_cc_gfx_UniformTexture_class; +extern se::Class* __jsb_cc_gfx_UniformTexture_class; bool js_register_cc_gfx_UniformTexture(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::UniformTexture *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::UniformTexture*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformTexture); extern se::Object* __jsb_cc_gfx_UniformStorageImage_proto; -extern se::Class* __jsb_cc_gfx_UniformStorageImage_class; +extern se::Class* __jsb_cc_gfx_UniformStorageImage_class; bool js_register_cc_gfx_UniformStorageImage(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::UniformStorageImage *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::UniformStorageImage*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformStorageImage); extern se::Object* __jsb_cc_gfx_UniformStorageBuffer_proto; -extern se::Class* __jsb_cc_gfx_UniformStorageBuffer_class; +extern se::Class* __jsb_cc_gfx_UniformStorageBuffer_class; bool js_register_cc_gfx_UniformStorageBuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::UniformStorageBuffer *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::UniformStorageBuffer*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformStorageBuffer); extern se::Object* __jsb_cc_gfx_UniformInputAttachment_proto; -extern se::Class* __jsb_cc_gfx_UniformInputAttachment_class; +extern se::Class* __jsb_cc_gfx_UniformInputAttachment_class; bool js_register_cc_gfx_UniformInputAttachment(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::UniformInputAttachment *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::UniformInputAttachment*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::UniformInputAttachment); extern se::Object* __jsb_cc_gfx_ShaderStage_proto; -extern se::Class* __jsb_cc_gfx_ShaderStage_class; +extern se::Class* __jsb_cc_gfx_ShaderStage_class; bool js_register_cc_gfx_ShaderStage(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::ShaderStage *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::ShaderStage*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::ShaderStage); extern se::Object* __jsb_cc_gfx_Attribute_proto; -extern se::Class* __jsb_cc_gfx_Attribute_class; +extern se::Class* __jsb_cc_gfx_Attribute_class; bool js_register_cc_gfx_Attribute(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::Attribute *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::Attribute*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::Attribute); extern se::Object* __jsb_cc_gfx_ShaderInfo_proto; -extern se::Class* __jsb_cc_gfx_ShaderInfo_class; +extern se::Class* __jsb_cc_gfx_ShaderInfo_class; bool js_register_cc_gfx_ShaderInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::ShaderInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::ShaderInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::ShaderInfo); extern se::Object* __jsb_cc_gfx_InputAssemblerInfo_proto; -extern se::Class* __jsb_cc_gfx_InputAssemblerInfo_class; +extern se::Class* __jsb_cc_gfx_InputAssemblerInfo_class; bool js_register_cc_gfx_InputAssemblerInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::InputAssemblerInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::InputAssemblerInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::InputAssemblerInfo); extern se::Object* __jsb_cc_gfx_ColorAttachment_proto; -extern se::Class* __jsb_cc_gfx_ColorAttachment_class; +extern se::Class* __jsb_cc_gfx_ColorAttachment_class; bool js_register_cc_gfx_ColorAttachment(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::ColorAttachment *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::ColorAttachment*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::ColorAttachment); extern se::Object* __jsb_cc_gfx_DepthStencilAttachment_proto; -extern se::Class* __jsb_cc_gfx_DepthStencilAttachment_class; +extern se::Class* __jsb_cc_gfx_DepthStencilAttachment_class; bool js_register_cc_gfx_DepthStencilAttachment(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DepthStencilAttachment *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DepthStencilAttachment*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DepthStencilAttachment); extern se::Object* __jsb_cc_gfx_SubpassInfo_proto; -extern se::Class* __jsb_cc_gfx_SubpassInfo_class; +extern se::Class* __jsb_cc_gfx_SubpassInfo_class; bool js_register_cc_gfx_SubpassInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::SubpassInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::SubpassInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SubpassInfo); extern se::Object* __jsb_cc_gfx_SubpassDependency_proto; -extern se::Class* __jsb_cc_gfx_SubpassDependency_class; +extern se::Class* __jsb_cc_gfx_SubpassDependency_class; bool js_register_cc_gfx_SubpassDependency(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::SubpassDependency *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::SubpassDependency*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::SubpassDependency); extern se::Object* __jsb_cc_gfx_RenderPassInfo_proto; -extern se::Class* __jsb_cc_gfx_RenderPassInfo_class; +extern se::Class* __jsb_cc_gfx_RenderPassInfo_class; bool js_register_cc_gfx_RenderPassInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::RenderPassInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::RenderPassInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::RenderPassInfo); extern se::Object* __jsb_cc_gfx_GlobalBarrierInfo_proto; -extern se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class; +extern se::Class* __jsb_cc_gfx_GlobalBarrierInfo_class; bool js_register_cc_gfx_GlobalBarrierInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::GlobalBarrierInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::GlobalBarrierInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::GlobalBarrierInfo); extern se::Object* __jsb_cc_gfx_TextureBarrierInfo_proto; -extern se::Class* __jsb_cc_gfx_TextureBarrierInfo_class; +extern se::Class* __jsb_cc_gfx_TextureBarrierInfo_class; bool js_register_cc_gfx_TextureBarrierInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::TextureBarrierInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::TextureBarrierInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::TextureBarrierInfo); extern se::Object* __jsb_cc_gfx_FramebufferInfo_proto; -extern se::Class* __jsb_cc_gfx_FramebufferInfo_class; +extern se::Class* __jsb_cc_gfx_FramebufferInfo_class; bool js_register_cc_gfx_FramebufferInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::FramebufferInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::FramebufferInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::FramebufferInfo); extern se::Object* __jsb_cc_gfx_DescriptorSetLayoutBinding_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutBinding_class; bool js_register_cc_gfx_DescriptorSetLayoutBinding(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DescriptorSetLayoutBinding *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DescriptorSetLayoutBinding*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DescriptorSetLayoutBinding); extern se::Object* __jsb_cc_gfx_DescriptorSetLayoutInfo_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetLayoutInfo_class; bool js_register_cc_gfx_DescriptorSetLayoutInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DescriptorSetLayoutInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DescriptorSetLayoutInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DescriptorSetLayoutInfo); extern se::Object* __jsb_cc_gfx_DescriptorSetInfo_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetInfo_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetInfo_class; bool js_register_cc_gfx_DescriptorSetInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DescriptorSetInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DescriptorSetInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DescriptorSetInfo); extern se::Object* __jsb_cc_gfx_PipelineLayoutInfo_proto; -extern se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class; +extern se::Class* __jsb_cc_gfx_PipelineLayoutInfo_class; bool js_register_cc_gfx_PipelineLayoutInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::PipelineLayoutInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::PipelineLayoutInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::PipelineLayoutInfo); extern se::Object* __jsb_cc_gfx_InputState_proto; -extern se::Class* __jsb_cc_gfx_InputState_class; +extern se::Class* __jsb_cc_gfx_InputState_class; bool js_register_cc_gfx_InputState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::InputState *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::InputState*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::InputState); extern se::Object* __jsb_cc_gfx_RasterizerState_proto; -extern se::Class* __jsb_cc_gfx_RasterizerState_class; +extern se::Class* __jsb_cc_gfx_RasterizerState_class; bool js_register_cc_gfx_RasterizerState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::RasterizerState *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::RasterizerState*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::RasterizerState); extern se::Object* __jsb_cc_gfx_DepthStencilState_proto; -extern se::Class* __jsb_cc_gfx_DepthStencilState_class; +extern se::Class* __jsb_cc_gfx_DepthStencilState_class; bool js_register_cc_gfx_DepthStencilState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::DepthStencilState *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::DepthStencilState*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::DepthStencilState); extern se::Object* __jsb_cc_gfx_BlendTarget_proto; -extern se::Class* __jsb_cc_gfx_BlendTarget_class; +extern se::Class* __jsb_cc_gfx_BlendTarget_class; bool js_register_cc_gfx_BlendTarget(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::BlendTarget *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::BlendTarget*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BlendTarget); extern se::Object* __jsb_cc_gfx_BlendState_proto; -extern se::Class* __jsb_cc_gfx_BlendState_class; +extern se::Class* __jsb_cc_gfx_BlendState_class; bool js_register_cc_gfx_BlendState(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::BlendState *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::BlendState*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::BlendState); extern se::Object* __jsb_cc_gfx_PipelineStateInfo_proto; -extern se::Class* __jsb_cc_gfx_PipelineStateInfo_class; +extern se::Class* __jsb_cc_gfx_PipelineStateInfo_class; bool js_register_cc_gfx_PipelineStateInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::PipelineStateInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::PipelineStateInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::PipelineStateInfo); extern se::Object* __jsb_cc_gfx_CommandBufferInfo_proto; -extern se::Class* __jsb_cc_gfx_CommandBufferInfo_class; +extern se::Class* __jsb_cc_gfx_CommandBufferInfo_class; bool js_register_cc_gfx_CommandBufferInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::CommandBufferInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::CommandBufferInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::CommandBufferInfo); extern se::Object* __jsb_cc_gfx_QueueInfo_proto; -extern se::Class* __jsb_cc_gfx_QueueInfo_class; +extern se::Class* __jsb_cc_gfx_QueueInfo_class; bool js_register_cc_gfx_QueueInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::QueueInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::QueueInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::QueueInfo); extern se::Object* __jsb_cc_gfx_QueryPoolInfo_proto; -extern se::Class* __jsb_cc_gfx_QueryPoolInfo_class; +extern se::Class* __jsb_cc_gfx_QueryPoolInfo_class; bool js_register_cc_gfx_QueryPoolInfo(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::QueryPoolInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::QueryPoolInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::QueryPoolInfo); extern se::Object* __jsb_cc_gfx_MemoryStatus_proto; -extern se::Class* __jsb_cc_gfx_MemoryStatus_class; +extern se::Class* __jsb_cc_gfx_MemoryStatus_class; bool js_register_cc_gfx_MemoryStatus(se::Object* obj); bool register_all_gfx(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::gfx::MemoryStatus *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::gfx::MemoryStatus*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::gfx::MemoryStatus); extern se::Object* __jsb_cc_gfx_GFXObject_proto; -extern se::Class* __jsb_cc_gfx_GFXObject_class; +extern se::Class* __jsb_cc_gfx_GFXObject_class; bool js_register_cc_gfx_GFXObject(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -585,7 +610,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::gfx::GFXObject); SE_DECLARE_FUNC(js_gfx_GFXObject_GFXObject); extern se::Object* __jsb_cc_gfx_Buffer_proto; -extern se::Class* __jsb_cc_gfx_Buffer_class; +extern se::Class* __jsb_cc_gfx_Buffer_class; bool js_register_cc_gfx_Buffer(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -598,7 +623,7 @@ SE_DECLARE_FUNC(js_gfx_Buffer_computeHash); SE_DECLARE_FUNC(js_gfx_Buffer_Buffer); extern se::Object* __jsb_cc_gfx_InputAssembler_proto; -extern se::Class* __jsb_cc_gfx_InputAssembler_class; +extern se::Class* __jsb_cc_gfx_InputAssembler_class; bool js_register_cc_gfx_InputAssembler(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -609,7 +634,7 @@ SE_DECLARE_FUNC(js_gfx_InputAssembler_initialize); SE_DECLARE_FUNC(js_gfx_InputAssembler_InputAssembler); extern se::Object* __jsb_cc_gfx_CommandBuffer_proto; -extern se::Class* __jsb_cc_gfx_CommandBuffer_class; +extern se::Class* __jsb_cc_gfx_CommandBuffer_class; bool js_register_cc_gfx_CommandBuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -649,7 +674,7 @@ SE_DECLARE_FUNC(js_gfx_CommandBuffer_setViewport); SE_DECLARE_FUNC(js_gfx_CommandBuffer_CommandBuffer); extern se::Object* __jsb_cc_gfx_DescriptorSet_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSet_class; +extern se::Class* __jsb_cc_gfx_DescriptorSet_class; bool js_register_cc_gfx_DescriptorSet(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -670,7 +695,7 @@ SE_DECLARE_FUNC(js_gfx_DescriptorSet_update); SE_DECLARE_FUNC(js_gfx_DescriptorSet_DescriptorSet); extern se::Object* __jsb_cc_gfx_DescriptorSetLayout_proto; -extern se::Class* __jsb_cc_gfx_DescriptorSetLayout_class; +extern se::Class* __jsb_cc_gfx_DescriptorSetLayout_class; bool js_register_cc_gfx_DescriptorSetLayout(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -684,7 +709,7 @@ SE_DECLARE_FUNC(js_gfx_DescriptorSetLayout_initialize); SE_DECLARE_FUNC(js_gfx_DescriptorSetLayout_DescriptorSetLayout); extern se::Object* __jsb_cc_gfx_Framebuffer_proto; -extern se::Class* __jsb_cc_gfx_Framebuffer_class; +extern se::Class* __jsb_cc_gfx_Framebuffer_class; bool js_register_cc_gfx_Framebuffer(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -696,7 +721,7 @@ SE_DECLARE_FUNC(js_gfx_Framebuffer_computeHash); SE_DECLARE_FUNC(js_gfx_Framebuffer_Framebuffer); extern se::Object* __jsb_cc_gfx_PipelineLayout_proto; -extern se::Class* __jsb_cc_gfx_PipelineLayout_class; +extern se::Class* __jsb_cc_gfx_PipelineLayout_class; bool js_register_cc_gfx_PipelineLayout(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -708,7 +733,7 @@ SE_DECLARE_FUNC(js_gfx_PipelineLayout_initialize); SE_DECLARE_FUNC(js_gfx_PipelineLayout_PipelineLayout); extern se::Object* __jsb_cc_gfx_PipelineState_proto; -extern se::Class* __jsb_cc_gfx_PipelineState_class; +extern se::Class* __jsb_cc_gfx_PipelineState_class; bool js_register_cc_gfx_PipelineState(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -721,7 +746,7 @@ SE_DECLARE_FUNC(js_gfx_PipelineState_initialize); SE_DECLARE_FUNC(js_gfx_PipelineState_PipelineState); extern se::Object* __jsb_cc_gfx_QueryPool_proto; -extern se::Class* __jsb_cc_gfx_QueryPool_class; +extern se::Class* __jsb_cc_gfx_QueryPool_class; bool js_register_cc_gfx_QueryPool(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -737,7 +762,7 @@ SE_DECLARE_FUNC(js_gfx_QueryPool_initialize); SE_DECLARE_FUNC(js_gfx_QueryPool_QueryPool); extern se::Object* __jsb_cc_gfx_Queue_proto; -extern se::Class* __jsb_cc_gfx_Queue_class; +extern se::Class* __jsb_cc_gfx_Queue_class; bool js_register_cc_gfx_Queue(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -749,7 +774,7 @@ SE_DECLARE_FUNC(js_gfx_Queue_submit); SE_DECLARE_FUNC(js_gfx_Queue_Queue); extern se::Object* __jsb_cc_gfx_RenderPass_proto; -extern se::Class* __jsb_cc_gfx_RenderPass_class; +extern se::Class* __jsb_cc_gfx_RenderPass_class; bool js_register_cc_gfx_RenderPass(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -764,7 +789,7 @@ SE_DECLARE_FUNC(js_gfx_RenderPass_computeHash); SE_DECLARE_FUNC(js_gfx_RenderPass_RenderPass); extern se::Object* __jsb_cc_gfx_Shader_proto; -extern se::Class* __jsb_cc_gfx_Shader_class; +extern se::Class* __jsb_cc_gfx_Shader_class; bool js_register_cc_gfx_Shader(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -780,7 +805,7 @@ SE_DECLARE_FUNC(js_gfx_Shader_initialize); SE_DECLARE_FUNC(js_gfx_Shader_Shader); extern se::Object* __jsb_cc_gfx_Texture_proto; -extern se::Class* __jsb_cc_gfx_Texture_class; +extern se::Class* __jsb_cc_gfx_Texture_class; bool js_register_cc_gfx_Texture(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -793,7 +818,7 @@ SE_DECLARE_FUNC(js_gfx_Texture_computeHash); SE_DECLARE_FUNC(js_gfx_Texture_Texture); extern se::Object* __jsb_cc_gfx_Swapchain_proto; -extern se::Class* __jsb_cc_gfx_Swapchain_class; +extern se::Class* __jsb_cc_gfx_Swapchain_class; bool js_register_cc_gfx_Swapchain(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -809,7 +834,7 @@ SE_DECLARE_FUNC(js_gfx_Swapchain_resize); SE_DECLARE_FUNC(js_gfx_Swapchain_Swapchain); extern se::Object* __jsb_cc_gfx_GlobalBarrier_proto; -extern se::Class* __jsb_cc_gfx_GlobalBarrier_class; +extern se::Class* __jsb_cc_gfx_GlobalBarrier_class; bool js_register_cc_gfx_GlobalBarrier(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -821,7 +846,7 @@ SE_DECLARE_FUNC(js_gfx_GlobalBarrier_computeHash); SE_DECLARE_FUNC(js_gfx_GlobalBarrier_GlobalBarrier); extern se::Object* __jsb_cc_gfx_Sampler_proto; -extern se::Class* __jsb_cc_gfx_Sampler_class; +extern se::Class* __jsb_cc_gfx_Sampler_class; bool js_register_cc_gfx_Sampler(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -832,7 +857,7 @@ SE_DECLARE_FUNC(js_gfx_Sampler_computeHash); SE_DECLARE_FUNC(js_gfx_Sampler_Sampler); extern se::Object* __jsb_cc_gfx_TextureBarrier_proto; -extern se::Class* __jsb_cc_gfx_TextureBarrier_class; +extern se::Class* __jsb_cc_gfx_TextureBarrier_class; bool js_register_cc_gfx_TextureBarrier(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -844,7 +869,7 @@ SE_DECLARE_FUNC(js_gfx_TextureBarrier_computeHash); SE_DECLARE_FUNC(js_gfx_TextureBarrier_TextureBarrier); extern se::Object* __jsb_cc_gfx_Device_proto; -extern se::Class* __jsb_cc_gfx_Device_class; +extern se::Class* __jsb_cc_gfx_Device_class; bool js_register_cc_gfx_Device(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -876,7 +901,7 @@ SE_DECLARE_FUNC(js_gfx_Device_initialize); SE_DECLARE_FUNC(js_gfx_Device_present); extern se::Object* __jsb_cc_gfx_DeviceManager_proto; -extern se::Class* __jsb_cc_gfx_DeviceManager_class; +extern se::Class* __jsb_cc_gfx_DeviceManager_class; bool js_register_cc_gfx_DeviceManager(se::Object* obj); bool register_all_gfx(se::Object* obj); @@ -885,4 +910,3 @@ JSB_REGISTER_OBJECT_TYPE(cc::gfx::DeviceManager); SE_DECLARE_FUNC(js_gfx_DeviceManager_create); SE_DECLARE_FUNC(js_gfx_DeviceManager_destroy); SE_DECLARE_FUNC(js_gfx_DeviceManager_addSurfaceEventListener); - diff --git a/native/cocos/bindings/auto/jsb_network_auto.cpp b/native/cocos/bindings/auto/jsb_network_auto.cpp index 878bf794a7..1b67c9b69d 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.cpp +++ b/native/cocos/bindings/auto/jsb_network_auto.cpp @@ -1,17 +1,42 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_network_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" #include "network/Downloader.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_network_DownloaderHints_proto = nullptr; -se::Class* __jsb_cc_network_DownloaderHints_class = nullptr; +se::Class* __jsb_cc_network_DownloaderHints_class = nullptr; static bool js_network_DownloaderHints_get_countOfMaxProcessingTasks(se::State& s) // NOLINT(readability-identifier-naming) { @@ -19,7 +44,7 @@ static bool js_network_DownloaderHints_get_countOfMaxProcessingTasks(se::State& SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_get_countOfMaxProcessingTasks : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->countOfMaxProcessingTasks, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->countOfMaxProcessingTasks, s.thisObject(), s.rval()); @@ -30,7 +55,7 @@ SE_BIND_PROP_GET(js_network_DownloaderHints_get_countOfMaxProcessingTasks) static bool js_network_DownloaderHints_set_countOfMaxProcessingTasks(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_set_countOfMaxProcessingTasks : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -46,7 +71,7 @@ static bool js_network_DownloaderHints_get_timeoutInSeconds(se::State& s) // NOL SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_get_timeoutInSeconds : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->timeoutInSeconds, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->timeoutInSeconds, s.thisObject(), s.rval()); @@ -57,7 +82,7 @@ SE_BIND_PROP_GET(js_network_DownloaderHints_get_timeoutInSeconds) static bool js_network_DownloaderHints_set_timeoutInSeconds(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_set_timeoutInSeconds : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -73,7 +98,7 @@ static bool js_network_DownloaderHints_get_tempFileNameSuffix(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_get_tempFileNameSuffix : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tempFileNameSuffix, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tempFileNameSuffix, s.thisObject(), s.rval()); @@ -84,7 +109,7 @@ SE_BIND_PROP_GET(js_network_DownloaderHints_get_tempFileNameSuffix) static bool js_network_DownloaderHints_set_tempFileNameSuffix(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_DownloaderHints_set_tempFileNameSuffix : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -94,29 +119,27 @@ static bool js_network_DownloaderHints_set_tempFileNameSuffix(se::State& s) // N } SE_BIND_PROP_SET(js_network_DownloaderHints_set_tempFileNameSuffix) - -template<> -bool sevalue_to_native(const se::Value &from, cc::network::DownloaderHints * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::network::DownloaderHints* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("countOfMaxProcessingTasks", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->countOfMaxProcessingTasks), ctx); } json->getProperty("timeoutInSeconds", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->timeoutInSeconds), ctx); } json->getProperty("tempFileNameSuffix", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tempFileNameSuffix), ctx); } return ok; @@ -126,26 +149,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_network_DownloaderHints_finalize) static bool js_network_DownloaderHints_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::network::DownloaderHints* cobj = JSB_ALLOC(cc::network::DownloaderHints); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::network::DownloaderHints* cobj = JSB_ALLOC(cc::network::DownloaderHints); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -167,7 +188,7 @@ static bool js_network_DownloaderHints_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[2], &(cobj->tempFileNameSuffix), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -179,13 +200,10 @@ static bool js_network_DownloaderHints_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_network_DownloaderHints_constructor, __jsb_cc_network_DownloaderHints_class, js_cc_network_DownloaderHints_finalize) - - static bool js_cc_network_DownloaderHints_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -212,27 +230,26 @@ bool js_register_network_DownloaderHints(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_network_Downloader_proto = nullptr; -se::Class* __jsb_cc_network_Downloader_class = nullptr; +se::Class* __jsb_cc_network_Downloader_class = nullptr; static bool js_network_Downloader_setOnTaskProgress(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_network_Downloader_setOnTaskProgress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); - auto lambda = [=](const cc::network::DownloadTask & larg0, int64_t larg1, int64_t larg2, int64_t larg3) -> void { + auto lambda = [=](const cc::network::DownloadTask& larg0, int64_t larg1, int64_t larg2, int64_t larg3) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(4); @@ -240,22 +257,19 @@ static bool js_network_Downloader_setOnTaskProgress(se::State& s) // NOLINT(read ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); ok &= nativevalue_to_se(larg2, args[2], nullptr /*ctx*/); ok &= nativevalue_to_se(larg3, args[3], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_network_Downloader_setOnTaskProgress : Error processing arguments"); cobj->setOnTaskProgress(arg0.value()); return true; @@ -269,20 +283,23 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_network_Downloader_finalize) static bool js_network_Downloader_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::network::Downloader* cobj = JSB_ALLOC(cc::network::Downloader, arg0.value()); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - } while(false); + } while (false); do { if (argc == 0) { cc::network::Downloader* cobj = JSB_ALLOC(cc::network::Downloader); @@ -290,19 +307,16 @@ static bool js_network_Downloader_constructor(se::State& s) // NOLINT(readabilit se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_network_Downloader_constructor, __jsb_cc_network_Downloader_class, js_cc_network_Downloader_finalize) - - static bool js_cc_network_Downloader_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -326,12 +340,10 @@ bool js_register_network_Downloader(se::Object* obj) // NOLINT(readability-ident se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_network(se::Object* obj) -{ +bool register_all_network(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) - { + if (!obj->getProperty("jsb", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); @@ -342,4 +354,3 @@ bool register_all_network(se::Object* obj) js_register_network_Downloader(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_network_auto.h b/native/cocos/bindings/auto/jsb_network_auto.h index ebca293de1..26e1e0e3ee 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.h +++ b/native/cocos/bindings/auto/jsb_network_auto.h @@ -1,22 +1,47 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include +#include "base/Config.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/network/Downloader.h" extern se::Object* __jsb_cc_network_DownloaderHints_proto; -extern se::Class* __jsb_cc_network_DownloaderHints_class; +extern se::Class* __jsb_cc_network_DownloaderHints_class; bool js_register_cc_network_DownloaderHints(se::Object* obj); bool register_all_network(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::network::DownloaderHints *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::network::DownloaderHints*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::network::DownloaderHints); extern se::Object* __jsb_cc_network_Downloader_proto; -extern se::Class* __jsb_cc_network_Downloader_class; +extern se::Class* __jsb_cc_network_Downloader_class; bool js_register_cc_network_Downloader(se::Object* obj); bool register_all_network(se::Object* obj); @@ -24,4 +49,3 @@ bool register_all_network(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::network::Downloader); SE_DECLARE_FUNC(js_network_Downloader_setOnTaskProgress); SE_DECLARE_FUNC(js_network_Downloader_Downloader); - diff --git a/native/cocos/bindings/auto/jsb_physics_auto.cpp b/native/cocos/bindings/auto/jsb_physics_auto.cpp index fedd1092fa..3e55599420 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.cpp +++ b/native/cocos/bindings/auto/jsb_physics_auto.cpp @@ -1,25 +1,50 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_physics_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" #include "physics/PhysicsSDK.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_physics_World_proto = nullptr; -se::Class* __jsb_cc_physics_World_class = nullptr; +se::Class* __jsb_cc_physics_World_class = nullptr; static bool js_physics_World_createConvex(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_createConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -39,9 +64,9 @@ static bool js_physics_World_createHeightField(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_createHeightField : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -61,16 +86,16 @@ static bool js_physics_World_createMaterial(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_createMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -93,9 +118,9 @@ static bool js_physics_World_createTrimesh(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_createTrimesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -116,7 +141,7 @@ static bool js_physics_World_destroy(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -131,7 +156,7 @@ static bool js_physics_World_emitEvents(se::State& s) // NOLINT(readability-iden auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_emitEvents : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->emitEvents(); return true; @@ -145,9 +170,9 @@ static bool js_physics_World_getContactEventPairs(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_getContactEventPairs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::vector>& result = cobj->getContactEventPairs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -164,9 +189,9 @@ static bool js_physics_World_getTriggerEventPairs(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_getTriggerEventPairs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::vector>& result = cobj->getTriggerEventPairs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -183,9 +208,9 @@ static bool js_physics_World_raycast(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_raycast : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -205,9 +230,9 @@ static bool js_physics_World_raycastClosest(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_raycastClosest : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -227,9 +252,9 @@ static bool js_physics_World_raycastClosestResult(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_raycastClosestResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::physics::RaycastResult& result = cobj->raycastClosestResult(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -246,9 +271,9 @@ static bool js_physics_World_raycastResult(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_raycastResult : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { std::vector& result = cobj->raycastResult(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -265,9 +290,9 @@ static bool js_physics_World_setAllowSleep(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_setAllowSleep : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -284,9 +309,9 @@ static bool js_physics_World_setCollisionMatrix(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_setCollisionMatrix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -305,9 +330,9 @@ static bool js_physics_World_setGravity(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_setGravity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -328,9 +353,9 @@ static bool js_physics_World_step(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_step : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -348,7 +373,7 @@ static bool js_physics_World_syncSceneToPhysics(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_syncSceneToPhysics : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->syncSceneToPhysics(); return true; @@ -363,7 +388,7 @@ static bool js_physics_World_syncSceneWithCheck(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_World_syncSceneWithCheck : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->syncSceneWithCheck(); return true; @@ -384,13 +409,10 @@ static bool js_physics_World_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_physics_World_constructor, __jsb_cc_physics_World_class, js_cc_physics_World_finalize) - - static bool js_cc_physics_World_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -432,15 +454,15 @@ bool js_register_physics_World(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_physics_RigidBody_proto = nullptr; -se::Class* __jsb_cc_physics_RigidBody_class = nullptr; +se::Class* __jsb_cc_physics_RigidBody_class = nullptr; static bool js_physics_RigidBody_applyForce(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyForce : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -467,9 +489,9 @@ static bool js_physics_RigidBody_applyImpulse(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyImpulse : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -496,9 +518,9 @@ static bool js_physics_RigidBody_applyLocalForce(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyLocalForce : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -525,9 +547,9 @@ static bool js_physics_RigidBody_applyLocalImpulse(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyLocalImpulse : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -554,9 +576,9 @@ static bool js_physics_RigidBody_applyLocalTorque(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyLocalTorque : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -577,9 +599,9 @@ static bool js_physics_RigidBody_applyTorque(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_applyTorque : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -601,7 +623,7 @@ static bool js_physics_RigidBody_clearForces(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_clearForces : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearForces(); return true; @@ -616,7 +638,7 @@ static bool js_physics_RigidBody_clearState(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_clearState : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearState(); return true; @@ -631,7 +653,7 @@ static bool js_physics_RigidBody_clearVelocity(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_clearVelocity : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearVelocity(); return true; @@ -645,9 +667,9 @@ static bool js_physics_RigidBody_getAngularVelocity(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getAngularVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Vec3 result = cobj->getAngularVelocity(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -664,9 +686,9 @@ static bool js_physics_RigidBody_getGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -683,9 +705,9 @@ static bool js_physics_RigidBody_getImpl(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -702,9 +724,9 @@ static bool js_physics_RigidBody_getLinearVelocity(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getLinearVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Vec3 result = cobj->getLinearVelocity(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -721,9 +743,9 @@ static bool js_physics_RigidBody_getMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -740,9 +762,9 @@ static bool js_physics_RigidBody_getNodeHandle(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getNodeHandle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getNodeHandle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -759,9 +781,9 @@ static bool js_physics_RigidBody_getSleepThreshold(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_getSleepThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSleepThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -778,13 +800,13 @@ static bool js_physics_RigidBody_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -801,9 +823,9 @@ static bool js_physics_RigidBody_isAwake(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_isAwake : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isAwake(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -820,9 +842,9 @@ static bool js_physics_RigidBody_isSleeping(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_isSleeping : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSleeping(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -839,9 +861,9 @@ static bool js_physics_RigidBody_isSleepy(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_isSleepy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSleepy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -859,7 +881,7 @@ static bool js_physics_RigidBody_onDestroy(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -874,7 +896,7 @@ static bool js_physics_RigidBody_onDisable(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -889,7 +911,7 @@ static bool js_physics_RigidBody_onEnable(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -903,9 +925,9 @@ static bool js_physics_RigidBody_setAllowSleep(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAllowSleep : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -922,9 +944,9 @@ static bool js_physics_RigidBody_setAngularDamping(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAngularDamping : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -941,9 +963,9 @@ static bool js_physics_RigidBody_setAngularFactor(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAngularFactor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -964,9 +986,9 @@ static bool js_physics_RigidBody_setAngularVelocity(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setAngularVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -987,9 +1009,9 @@ static bool js_physics_RigidBody_setGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1006,9 +1028,9 @@ static bool js_physics_RigidBody_setLinearDamping(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setLinearDamping : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1025,9 +1047,9 @@ static bool js_physics_RigidBody_setLinearFactor(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setLinearFactor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1048,9 +1070,9 @@ static bool js_physics_RigidBody_setLinearVelocity(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setLinearVelocity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1071,9 +1093,9 @@ static bool js_physics_RigidBody_setMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1090,9 +1112,9 @@ static bool js_physics_RigidBody_setMass(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setMass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1109,9 +1131,9 @@ static bool js_physics_RigidBody_setSleepThreshold(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setSleepThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1128,9 +1150,9 @@ static bool js_physics_RigidBody_setType(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_setType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1148,7 +1170,7 @@ static bool js_physics_RigidBody_sleep(se::State& s) // NOLINT(readability-ident auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_sleep : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->sleep(); return true; @@ -1162,9 +1184,9 @@ static bool js_physics_RigidBody_useCCD(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_useCCD : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1181,9 +1203,9 @@ static bool js_physics_RigidBody_useGravity(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_useGravity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1201,7 +1223,7 @@ static bool js_physics_RigidBody_wakeUp(se::State& s) // NOLINT(readability-iden auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RigidBody_wakeUp : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->wakeUp(); return true; @@ -1222,13 +1244,10 @@ static bool js_physics_RigidBody_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_physics_RigidBody_constructor, __jsb_cc_physics_RigidBody_class, js_cc_physics_RigidBody_finalize) - - static bool js_cc_physics_RigidBody_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1291,15 +1310,15 @@ bool js_register_physics_RigidBody(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_physics_SphereShape_proto = nullptr; -se::Class* __jsb_cc_physics_SphereShape_class = nullptr; +se::Class* __jsb_cc_physics_SphereShape_class = nullptr; static bool js_physics_SphereShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1316,9 +1335,9 @@ static bool js_physics_SphereShape_getBoundingSphere(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1335,9 +1354,9 @@ static bool js_physics_SphereShape_getGroup(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1354,9 +1373,9 @@ static bool js_physics_SphereShape_getImpl(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1373,9 +1392,9 @@ static bool js_physics_SphereShape_getMask(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1392,9 +1411,9 @@ static bool js_physics_SphereShape_initialize(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1412,7 +1431,7 @@ static bool js_physics_SphereShape_onDestroy(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -1427,7 +1446,7 @@ static bool js_physics_SphereShape_onDisable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -1442,7 +1461,7 @@ static bool js_physics_SphereShape_onEnable(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -1456,9 +1475,9 @@ static bool js_physics_SphereShape_setAsTrigger(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1475,9 +1494,9 @@ static bool js_physics_SphereShape_setCenter(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1498,9 +1517,9 @@ static bool js_physics_SphereShape_setGroup(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1517,9 +1536,9 @@ static bool js_physics_SphereShape_setMask(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1536,16 +1555,16 @@ static bool js_physics_SphereShape_setMaterial(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1565,9 +1584,9 @@ static bool js_physics_SphereShape_setRadius(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1584,9 +1603,9 @@ static bool js_physics_SphereShape_updateEventListener(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_SphereShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1610,13 +1629,10 @@ static bool js_physics_SphereShape_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_physics_SphereShape_constructor, __jsb_cc_physics_SphereShape_class, js_cc_physics_SphereShape_finalize) - - static bool js_cc_physics_SphereShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1656,15 +1672,15 @@ bool js_register_physics_SphereShape(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_physics_BoxShape_proto = nullptr; -se::Class* __jsb_cc_physics_BoxShape_class = nullptr; +se::Class* __jsb_cc_physics_BoxShape_class = nullptr; static bool js_physics_BoxShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1681,9 +1697,9 @@ static bool js_physics_BoxShape_getBoundingSphere(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1700,9 +1716,9 @@ static bool js_physics_BoxShape_getGroup(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1719,9 +1735,9 @@ static bool js_physics_BoxShape_getImpl(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1738,9 +1754,9 @@ static bool js_physics_BoxShape_getMask(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1757,9 +1773,9 @@ static bool js_physics_BoxShape_initialize(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1777,7 +1793,7 @@ static bool js_physics_BoxShape_onDestroy(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -1792,7 +1808,7 @@ static bool js_physics_BoxShape_onDisable(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -1807,7 +1823,7 @@ static bool js_physics_BoxShape_onEnable(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -1821,9 +1837,9 @@ static bool js_physics_BoxShape_setAsTrigger(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1840,9 +1856,9 @@ static bool js_physics_BoxShape_setCenter(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1863,9 +1879,9 @@ static bool js_physics_BoxShape_setGroup(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1882,9 +1898,9 @@ static bool js_physics_BoxShape_setMask(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1901,16 +1917,16 @@ static bool js_physics_BoxShape_setMaterial(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1930,9 +1946,9 @@ static bool js_physics_BoxShape_setSize(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1953,9 +1969,9 @@ static bool js_physics_BoxShape_updateEventListener(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_BoxShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1979,13 +1995,10 @@ static bool js_physics_BoxShape_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_physics_BoxShape_constructor, __jsb_cc_physics_BoxShape_class, js_cc_physics_BoxShape_finalize) - - static bool js_cc_physics_BoxShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2025,15 +2038,15 @@ bool js_register_physics_BoxShape(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_physics_CapsuleShape_proto = nullptr; -se::Class* __jsb_cc_physics_CapsuleShape_class = nullptr; +se::Class* __jsb_cc_physics_CapsuleShape_class = nullptr; static bool js_physics_CapsuleShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2050,9 +2063,9 @@ static bool js_physics_CapsuleShape_getBoundingSphere(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2069,9 +2082,9 @@ static bool js_physics_CapsuleShape_getGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2088,9 +2101,9 @@ static bool js_physics_CapsuleShape_getImpl(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2107,9 +2120,9 @@ static bool js_physics_CapsuleShape_getMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2126,9 +2139,9 @@ static bool js_physics_CapsuleShape_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2146,7 +2159,7 @@ static bool js_physics_CapsuleShape_onDestroy(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -2161,7 +2174,7 @@ static bool js_physics_CapsuleShape_onDisable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -2176,7 +2189,7 @@ static bool js_physics_CapsuleShape_onEnable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -2190,9 +2203,9 @@ static bool js_physics_CapsuleShape_setAsTrigger(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2209,9 +2222,9 @@ static bool js_physics_CapsuleShape_setCenter(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2232,9 +2245,9 @@ static bool js_physics_CapsuleShape_setCylinderHeight(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setCylinderHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2251,9 +2264,9 @@ static bool js_physics_CapsuleShape_setDirection(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2270,9 +2283,9 @@ static bool js_physics_CapsuleShape_setGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2289,9 +2302,9 @@ static bool js_physics_CapsuleShape_setMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2308,16 +2321,16 @@ static bool js_physics_CapsuleShape_setMaterial(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -2337,9 +2350,9 @@ static bool js_physics_CapsuleShape_setRadius(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2356,9 +2369,9 @@ static bool js_physics_CapsuleShape_updateEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CapsuleShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2382,13 +2395,10 @@ static bool js_physics_CapsuleShape_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_physics_CapsuleShape_constructor, __jsb_cc_physics_CapsuleShape_class, js_cc_physics_CapsuleShape_finalize) - - static bool js_cc_physics_CapsuleShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2430,15 +2440,15 @@ bool js_register_physics_CapsuleShape(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_physics_PlaneShape_proto = nullptr; -se::Class* __jsb_cc_physics_PlaneShape_class = nullptr; +se::Class* __jsb_cc_physics_PlaneShape_class = nullptr; static bool js_physics_PlaneShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2455,9 +2465,9 @@ static bool js_physics_PlaneShape_getBoundingSphere(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2474,9 +2484,9 @@ static bool js_physics_PlaneShape_getGroup(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2493,9 +2503,9 @@ static bool js_physics_PlaneShape_getImpl(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2512,9 +2522,9 @@ static bool js_physics_PlaneShape_getMask(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2531,9 +2541,9 @@ static bool js_physics_PlaneShape_initialize(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2551,7 +2561,7 @@ static bool js_physics_PlaneShape_onDestroy(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -2566,7 +2576,7 @@ static bool js_physics_PlaneShape_onDisable(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -2581,7 +2591,7 @@ static bool js_physics_PlaneShape_onEnable(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -2595,9 +2605,9 @@ static bool js_physics_PlaneShape_setAsTrigger(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2614,9 +2624,9 @@ static bool js_physics_PlaneShape_setCenter(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2637,9 +2647,9 @@ static bool js_physics_PlaneShape_setConstant(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setConstant : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2656,9 +2666,9 @@ static bool js_physics_PlaneShape_setGroup(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2675,9 +2685,9 @@ static bool js_physics_PlaneShape_setMask(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2694,16 +2704,16 @@ static bool js_physics_PlaneShape_setMaterial(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -2723,9 +2733,9 @@ static bool js_physics_PlaneShape_setNormal(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_setNormal : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2746,9 +2756,9 @@ static bool js_physics_PlaneShape_updateEventListener(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_PlaneShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2772,13 +2782,10 @@ static bool js_physics_PlaneShape_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_physics_PlaneShape_constructor, __jsb_cc_physics_PlaneShape_class, js_cc_physics_PlaneShape_finalize) - - static bool js_cc_physics_PlaneShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2819,15 +2826,15 @@ bool js_register_physics_PlaneShape(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_physics_TrimeshShape_proto = nullptr; -se::Class* __jsb_cc_physics_TrimeshShape_class = nullptr; +se::Class* __jsb_cc_physics_TrimeshShape_class = nullptr; static bool js_physics_TrimeshShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2844,9 +2851,9 @@ static bool js_physics_TrimeshShape_getBoundingSphere(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2863,9 +2870,9 @@ static bool js_physics_TrimeshShape_getGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2882,9 +2889,9 @@ static bool js_physics_TrimeshShape_getImpl(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2901,9 +2908,9 @@ static bool js_physics_TrimeshShape_getMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2920,9 +2927,9 @@ static bool js_physics_TrimeshShape_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2940,7 +2947,7 @@ static bool js_physics_TrimeshShape_onDestroy(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -2955,7 +2962,7 @@ static bool js_physics_TrimeshShape_onDisable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -2970,7 +2977,7 @@ static bool js_physics_TrimeshShape_onEnable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -2984,9 +2991,9 @@ static bool js_physics_TrimeshShape_setAsTrigger(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3003,9 +3010,9 @@ static bool js_physics_TrimeshShape_setCenter(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3026,9 +3033,9 @@ static bool js_physics_TrimeshShape_setGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3045,9 +3052,9 @@ static bool js_physics_TrimeshShape_setMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3064,16 +3071,16 @@ static bool js_physics_TrimeshShape_setMaterial(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -3093,9 +3100,9 @@ static bool js_physics_TrimeshShape_setMesh(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_setMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3112,9 +3119,9 @@ static bool js_physics_TrimeshShape_updateEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3131,9 +3138,9 @@ static bool js_physics_TrimeshShape_useConvex(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TrimeshShape_useConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3157,13 +3164,10 @@ static bool js_physics_TrimeshShape_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_physics_TrimeshShape_constructor, __jsb_cc_physics_TrimeshShape_class, js_cc_physics_TrimeshShape_finalize) - - static bool js_cc_physics_TrimeshShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3204,15 +3208,15 @@ bool js_register_physics_TrimeshShape(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_physics_CylinderShape_proto = nullptr; -se::Class* __jsb_cc_physics_CylinderShape_class = nullptr; +se::Class* __jsb_cc_physics_CylinderShape_class = nullptr; static bool js_physics_CylinderShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3229,9 +3233,9 @@ static bool js_physics_CylinderShape_getBoundingSphere(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3248,9 +3252,9 @@ static bool js_physics_CylinderShape_getGroup(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3267,9 +3271,9 @@ static bool js_physics_CylinderShape_getImpl(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3286,9 +3290,9 @@ static bool js_physics_CylinderShape_getMask(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3305,9 +3309,9 @@ static bool js_physics_CylinderShape_initialize(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3325,7 +3329,7 @@ static bool js_physics_CylinderShape_onDestroy(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -3340,7 +3344,7 @@ static bool js_physics_CylinderShape_onDisable(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -3355,7 +3359,7 @@ static bool js_physics_CylinderShape_onEnable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -3369,9 +3373,9 @@ static bool js_physics_CylinderShape_setAsTrigger(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3388,9 +3392,9 @@ static bool js_physics_CylinderShape_setCenter(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3411,9 +3415,9 @@ static bool js_physics_CylinderShape_setConvex(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3430,12 +3434,12 @@ static bool js_physics_CylinderShape_setCylinder(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setCylinder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -3453,9 +3457,9 @@ static bool js_physics_CylinderShape_setGroup(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3472,9 +3476,9 @@ static bool js_physics_CylinderShape_setMask(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3491,16 +3495,16 @@ static bool js_physics_CylinderShape_setMaterial(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -3520,9 +3524,9 @@ static bool js_physics_CylinderShape_updateEventListener(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_CylinderShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3546,13 +3550,10 @@ static bool js_physics_CylinderShape_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_physics_CylinderShape_constructor, __jsb_cc_physics_CylinderShape_class, js_cc_physics_CylinderShape_finalize) - - static bool js_cc_physics_CylinderShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3593,15 +3594,15 @@ bool js_register_physics_CylinderShape(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_physics_ConeShape_proto = nullptr; -se::Class* __jsb_cc_physics_ConeShape_class = nullptr; +se::Class* __jsb_cc_physics_ConeShape_class = nullptr; static bool js_physics_ConeShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3618,9 +3619,9 @@ static bool js_physics_ConeShape_getBoundingSphere(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3637,9 +3638,9 @@ static bool js_physics_ConeShape_getGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3656,9 +3657,9 @@ static bool js_physics_ConeShape_getImpl(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3675,9 +3676,9 @@ static bool js_physics_ConeShape_getMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3694,9 +3695,9 @@ static bool js_physics_ConeShape_initialize(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3714,7 +3715,7 @@ static bool js_physics_ConeShape_onDestroy(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -3729,7 +3730,7 @@ static bool js_physics_ConeShape_onDisable(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -3744,7 +3745,7 @@ static bool js_physics_ConeShape_onEnable(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -3758,9 +3759,9 @@ static bool js_physics_ConeShape_setAsTrigger(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3777,9 +3778,9 @@ static bool js_physics_ConeShape_setCenter(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -3800,12 +3801,12 @@ static bool js_physics_ConeShape_setCone(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setCone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -3823,9 +3824,9 @@ static bool js_physics_ConeShape_setConvex(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setConvex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3842,9 +3843,9 @@ static bool js_physics_ConeShape_setGroup(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3861,9 +3862,9 @@ static bool js_physics_ConeShape_setMask(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3880,16 +3881,16 @@ static bool js_physics_ConeShape_setMaterial(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -3909,9 +3910,9 @@ static bool js_physics_ConeShape_updateEventListener(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_ConeShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3935,13 +3936,10 @@ static bool js_physics_ConeShape_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_physics_ConeShape_constructor, __jsb_cc_physics_ConeShape_class, js_cc_physics_ConeShape_finalize) - - static bool js_cc_physics_ConeShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3982,15 +3980,15 @@ bool js_register_physics_ConeShape(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_physics_TerrainShape_proto = nullptr; -se::Class* __jsb_cc_physics_TerrainShape_class = nullptr; +se::Class* __jsb_cc_physics_TerrainShape_class = nullptr; static bool js_physics_TerrainShape_getAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABB& result = cobj->getAABB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4007,9 +4005,9 @@ static bool js_physics_TerrainShape_getBoundingSphere(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getBoundingSphere : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Sphere& result = cobj->getBoundingSphere(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4026,9 +4024,9 @@ static bool js_physics_TerrainShape_getGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getGroup(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4045,9 +4043,9 @@ static bool js_physics_TerrainShape_getImpl(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4064,9 +4062,9 @@ static bool js_physics_TerrainShape_getMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_getMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getMask(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4083,9 +4081,9 @@ static bool js_physics_TerrainShape_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4103,7 +4101,7 @@ static bool js_physics_TerrainShape_onDestroy(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -4118,7 +4116,7 @@ static bool js_physics_TerrainShape_onDisable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -4133,7 +4131,7 @@ static bool js_physics_TerrainShape_onEnable(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -4147,9 +4145,9 @@ static bool js_physics_TerrainShape_setAsTrigger(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setAsTrigger : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4166,9 +4164,9 @@ static bool js_physics_TerrainShape_setCenter(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4189,9 +4187,9 @@ static bool js_physics_TerrainShape_setGroup(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setGroup : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4208,9 +4206,9 @@ static bool js_physics_TerrainShape_setMask(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setMask : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4227,16 +4225,16 @@ static bool js_physics_TerrainShape_setMaterial(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setMaterial : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4256,14 +4254,14 @@ static bool js_physics_TerrainShape_setTerrain(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_setTerrain : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4281,9 +4279,9 @@ static bool js_physics_TerrainShape_updateEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_TerrainShape_updateEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4307,13 +4305,10 @@ static bool js_physics_TerrainShape_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_physics_TerrainShape_constructor, __jsb_cc_physics_TerrainShape_class, js_cc_physics_TerrainShape_finalize) - - static bool js_cc_physics_TerrainShape_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4353,15 +4348,15 @@ bool js_register_physics_TerrainShape(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_physics_RevoluteJoint_proto = nullptr; -se::Class* __jsb_cc_physics_RevoluteJoint_class = nullptr; +se::Class* __jsb_cc_physics_RevoluteJoint_class = nullptr; static bool js_physics_RevoluteJoint_getImpl(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4378,9 +4373,9 @@ static bool js_physics_RevoluteJoint_initialize(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4398,7 +4393,7 @@ static bool js_physics_RevoluteJoint_onDestroy(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -4413,7 +4408,7 @@ static bool js_physics_RevoluteJoint_onDisable(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -4428,7 +4423,7 @@ static bool js_physics_RevoluteJoint_onEnable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -4442,9 +4437,9 @@ static bool js_physics_RevoluteJoint_setAxis(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setAxis : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4465,9 +4460,9 @@ static bool js_physics_RevoluteJoint_setConnectedBody(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setConnectedBody : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4484,9 +4479,9 @@ static bool js_physics_RevoluteJoint_setEnableCollision(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setEnableCollision : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4503,9 +4498,9 @@ static bool js_physics_RevoluteJoint_setPivotA(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setPivotA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4526,9 +4521,9 @@ static bool js_physics_RevoluteJoint_setPivotB(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_RevoluteJoint_setPivotB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4556,13 +4551,10 @@ static bool js_physics_RevoluteJoint_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_physics_RevoluteJoint_constructor, __jsb_cc_physics_RevoluteJoint_class, js_cc_physics_RevoluteJoint_finalize) - - static bool js_cc_physics_RevoluteJoint_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4596,15 +4588,15 @@ bool js_register_physics_RevoluteJoint(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_physics_DistanceJoint_proto = nullptr; -se::Class* __jsb_cc_physics_DistanceJoint_class = nullptr; +se::Class* __jsb_cc_physics_DistanceJoint_class = nullptr; static bool js_physics_DistanceJoint_getImpl(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_getImpl : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { uintptr_t result = cobj->getImpl(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4621,9 +4613,9 @@ static bool js_physics_DistanceJoint_initialize(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4641,7 +4633,7 @@ static bool js_physics_DistanceJoint_onDestroy(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onDestroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDestroy(); return true; @@ -4656,7 +4648,7 @@ static bool js_physics_DistanceJoint_onDisable(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -4671,7 +4663,7 @@ static bool js_physics_DistanceJoint_onEnable(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -4685,9 +4677,9 @@ static bool js_physics_DistanceJoint_setConnectedBody(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setConnectedBody : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4704,9 +4696,9 @@ static bool js_physics_DistanceJoint_setEnableCollision(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setEnableCollision : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4723,9 +4715,9 @@ static bool js_physics_DistanceJoint_setPivotA(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setPivotA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4746,9 +4738,9 @@ static bool js_physics_DistanceJoint_setPivotB(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_physics_DistanceJoint_setPivotB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -4776,13 +4768,10 @@ static bool js_physics_DistanceJoint_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_physics_DistanceJoint_constructor, __jsb_cc_physics_DistanceJoint_class, js_cc_physics_DistanceJoint_finalize) - - static bool js_cc_physics_DistanceJoint_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4814,12 +4803,10 @@ bool js_register_physics_DistanceJoint(se::Object* obj) // NOLINT(readability-id se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_physics(se::Object* obj) -{ +bool register_all_physics(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb.physics", &nsVal)) - { + if (!obj->getProperty("jsb.physics", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb.physics", nsVal); @@ -4840,4 +4827,3 @@ bool register_all_physics(se::Object* obj) js_register_physics_DistanceJoint(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_physics_auto.h b/native/cocos/bindings/auto/jsb_physics_auto.h index 9d029c2ffe..568eab2c39 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.h +++ b/native/cocos/bindings/auto/jsb_physics_auto.h @@ -1,14 +1,39 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" +#include "base/Config.h" #include "cocos/bindings/auto/jsb_gfx_auto.h" #include "cocos/bindings/auto/jsb_scene_auto.h" +#include "cocos/bindings/jswrapper/SeApi.h" +#include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/physics/PhysicsSDK.h" extern se::Object* __jsb_cc_physics_World_proto; -extern se::Class* __jsb_cc_physics_World_class; +extern se::Class* __jsb_cc_physics_World_class; bool js_register_cc_physics_World(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -35,7 +60,7 @@ SE_DECLARE_FUNC(js_physics_World_syncSceneWithCheck); SE_DECLARE_FUNC(js_physics_World_World); extern se::Object* __jsb_cc_physics_RigidBody_proto; -extern se::Class* __jsb_cc_physics_RigidBody_class; +extern se::Class* __jsb_cc_physics_RigidBody_class; bool js_register_cc_physics_RigidBody(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -83,7 +108,7 @@ SE_DECLARE_FUNC(js_physics_RigidBody_wakeUp); SE_DECLARE_FUNC(js_physics_RigidBody_RigidBody); extern se::Object* __jsb_cc_physics_SphereShape_proto; -extern se::Class* __jsb_cc_physics_SphereShape_class; +extern se::Class* __jsb_cc_physics_SphereShape_class; bool js_register_cc_physics_SphereShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -108,7 +133,7 @@ SE_DECLARE_FUNC(js_physics_SphereShape_updateEventListener); SE_DECLARE_FUNC(js_physics_SphereShape_SphereShape); extern se::Object* __jsb_cc_physics_BoxShape_proto; -extern se::Class* __jsb_cc_physics_BoxShape_class; +extern se::Class* __jsb_cc_physics_BoxShape_class; bool js_register_cc_physics_BoxShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -133,7 +158,7 @@ SE_DECLARE_FUNC(js_physics_BoxShape_updateEventListener); SE_DECLARE_FUNC(js_physics_BoxShape_BoxShape); extern se::Object* __jsb_cc_physics_CapsuleShape_proto; -extern se::Class* __jsb_cc_physics_CapsuleShape_class; +extern se::Class* __jsb_cc_physics_CapsuleShape_class; bool js_register_cc_physics_CapsuleShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -160,7 +185,7 @@ SE_DECLARE_FUNC(js_physics_CapsuleShape_updateEventListener); SE_DECLARE_FUNC(js_physics_CapsuleShape_CapsuleShape); extern se::Object* __jsb_cc_physics_PlaneShape_proto; -extern se::Class* __jsb_cc_physics_PlaneShape_class; +extern se::Class* __jsb_cc_physics_PlaneShape_class; bool js_register_cc_physics_PlaneShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -186,7 +211,7 @@ SE_DECLARE_FUNC(js_physics_PlaneShape_updateEventListener); SE_DECLARE_FUNC(js_physics_PlaneShape_PlaneShape); extern se::Object* __jsb_cc_physics_TrimeshShape_proto; -extern se::Class* __jsb_cc_physics_TrimeshShape_class; +extern se::Class* __jsb_cc_physics_TrimeshShape_class; bool js_register_cc_physics_TrimeshShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -212,7 +237,7 @@ SE_DECLARE_FUNC(js_physics_TrimeshShape_useConvex); SE_DECLARE_FUNC(js_physics_TrimeshShape_TrimeshShape); extern se::Object* __jsb_cc_physics_CylinderShape_proto; -extern se::Class* __jsb_cc_physics_CylinderShape_class; +extern se::Class* __jsb_cc_physics_CylinderShape_class; bool js_register_cc_physics_CylinderShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -238,7 +263,7 @@ SE_DECLARE_FUNC(js_physics_CylinderShape_updateEventListener); SE_DECLARE_FUNC(js_physics_CylinderShape_CylinderShape); extern se::Object* __jsb_cc_physics_ConeShape_proto; -extern se::Class* __jsb_cc_physics_ConeShape_class; +extern se::Class* __jsb_cc_physics_ConeShape_class; bool js_register_cc_physics_ConeShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -264,7 +289,7 @@ SE_DECLARE_FUNC(js_physics_ConeShape_updateEventListener); SE_DECLARE_FUNC(js_physics_ConeShape_ConeShape); extern se::Object* __jsb_cc_physics_TerrainShape_proto; -extern se::Class* __jsb_cc_physics_TerrainShape_class; +extern se::Class* __jsb_cc_physics_TerrainShape_class; bool js_register_cc_physics_TerrainShape(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -289,7 +314,7 @@ SE_DECLARE_FUNC(js_physics_TerrainShape_updateEventListener); SE_DECLARE_FUNC(js_physics_TerrainShape_TerrainShape); extern se::Object* __jsb_cc_physics_RevoluteJoint_proto; -extern se::Class* __jsb_cc_physics_RevoluteJoint_class; +extern se::Class* __jsb_cc_physics_RevoluteJoint_class; bool js_register_cc_physics_RevoluteJoint(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -308,7 +333,7 @@ SE_DECLARE_FUNC(js_physics_RevoluteJoint_setPivotB); SE_DECLARE_FUNC(js_physics_RevoluteJoint_RevoluteJoint); extern se::Object* __jsb_cc_physics_DistanceJoint_proto; -extern se::Class* __jsb_cc_physics_DistanceJoint_class; +extern se::Class* __jsb_cc_physics_DistanceJoint_class; bool js_register_cc_physics_DistanceJoint(se::Object* obj); bool register_all_physics(se::Object* obj); @@ -324,4 +349,3 @@ SE_DECLARE_FUNC(js_physics_DistanceJoint_setEnableCollision); SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotA); SE_DECLARE_FUNC(js_physics_DistanceJoint_setPivotB); SE_DECLARE_FUNC(js_physics_DistanceJoint_DistanceJoint); - diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp index 2a08ecde5e..509f8506a1 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp @@ -1,35 +1,60 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_pipeline_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" -#include "renderer/pipeline/forward/ForwardPipeline.h" +#include "cocos/renderer/gfx-base/GFXDevice.h" +#include "renderer/pipeline/Define.h" +#include "renderer/pipeline/GeometryRenderer.h" +#include "renderer/pipeline/GlobalDescriptorSetManager.h" +#include "renderer/pipeline/InstancedBuffer.h" +#include "renderer/pipeline/RenderFlow.h" +#include "renderer/pipeline/RenderPipeline.h" +#include "renderer/pipeline/RenderStage.h" +#include "renderer/pipeline/deferred/BloomStage.h" +#include "renderer/pipeline/deferred/DeferredPipeline.h" +#include "renderer/pipeline/deferred/GbufferStage.h" +#include "renderer/pipeline/deferred/LightingStage.h" +#include "renderer/pipeline/deferred/MainFlow.h" +#include "renderer/pipeline/deferred/PostProcessStage.h" #include "renderer/pipeline/forward/ForwardFlow.h" +#include "renderer/pipeline/forward/ForwardPipeline.h" #include "renderer/pipeline/forward/ForwardStage.h" #include "renderer/pipeline/shadow/ShadowFlow.h" #include "renderer/pipeline/shadow/ShadowStage.h" -#include "renderer/pipeline/RenderPipeline.h" -#include "renderer/pipeline/RenderFlow.h" -#include "renderer/pipeline/RenderStage.h" -#include "renderer/pipeline/Define.h" -#include "renderer/pipeline/GlobalDescriptorSetManager.h" -#include "renderer/pipeline/InstancedBuffer.h" -#include "renderer/pipeline/deferred/DeferredPipeline.h" -#include "renderer/pipeline/deferred/MainFlow.h" -#include "renderer/pipeline/deferred/GbufferStage.h" -#include "renderer/pipeline/deferred/LightingStage.h" -#include "renderer/pipeline/deferred/BloomStage.h" -#include "renderer/pipeline/deferred/PostProcessStage.h" -#include "renderer/pipeline/GeometryRenderer.h" -#include "cocos/renderer/gfx-base/GFXDevice.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_pipeline_RenderQueueDesc_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderQueueDesc_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderQueueDesc_class = nullptr; static bool js_pipeline_RenderQueueDesc_get_isTransparent(se::State& s) // NOLINT(readability-identifier-naming) { @@ -37,7 +62,7 @@ static bool js_pipeline_RenderQueueDesc_get_isTransparent(se::State& s) // NOLIN SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_get_isTransparent : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isTransparent, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isTransparent, s.thisObject(), s.rval()); @@ -48,7 +73,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderQueueDesc_get_isTransparent) static bool js_pipeline_RenderQueueDesc_set_isTransparent(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_set_isTransparent : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -64,7 +89,7 @@ static bool js_pipeline_RenderQueueDesc_get_sortMode(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_get_sortMode : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->sortMode, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->sortMode, s.thisObject(), s.rval()); @@ -75,7 +100,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderQueueDesc_get_sortMode) static bool js_pipeline_RenderQueueDesc_set_sortMode(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_set_sortMode : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -91,7 +116,7 @@ static bool js_pipeline_RenderQueueDesc_get_stages(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_get_stages : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stages, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stages, s.thisObject(), s.rval()); @@ -102,7 +127,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderQueueDesc_get_stages) static bool js_pipeline_RenderQueueDesc_set_stages(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderQueueDesc_set_stages : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -112,29 +137,27 @@ static bool js_pipeline_RenderQueueDesc_set_stages(se::State& s) // NOLINT(reada } SE_BIND_PROP_SET(js_pipeline_RenderQueueDesc_set_stages) - -template<> -bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderQueueDesc * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderQueueDesc* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isTransparent", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isTransparent), ctx); } json->getProperty("sortMode", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->sortMode), ctx); } json->getProperty("stages", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stages), ctx); } return ok; @@ -144,26 +167,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderQueueDesc_finalize) static bool js_pipeline_RenderQueueDesc_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::pipeline::RenderQueueDesc* cobj = JSB_ALLOC(cc::pipeline::RenderQueueDesc); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::pipeline::RenderQueueDesc* cobj = JSB_ALLOC(cc::pipeline::RenderQueueDesc); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -185,7 +206,7 @@ static bool js_pipeline_RenderQueueDesc_constructor(se::State& s) // NOLINT(read ok &= sevalue_to_native(args[2], &(cobj->stages), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -197,13 +218,10 @@ static bool js_pipeline_RenderQueueDesc_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_RenderQueueDesc_constructor, __jsb_cc_pipeline_RenderQueueDesc_class, js_cc_pipeline_RenderQueueDesc_finalize) - - static bool js_cc_pipeline_RenderQueueDesc_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -230,17 +248,17 @@ bool js_register_pipeline_RenderQueueDesc(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_GlobalDSManager_proto = nullptr; -se::Class* __jsb_cc_pipeline_GlobalDSManager_class = nullptr; +se::Class* __jsb_cc_pipeline_GlobalDSManager_class = nullptr; static bool js_pipeline_GlobalDSManager_bindBuffer(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_bindBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -257,11 +275,11 @@ static bool js_pipeline_GlobalDSManager_bindSampler(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_bindSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -278,11 +296,11 @@ static bool js_pipeline_GlobalDSManager_bindTexture(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_bindTexture : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -299,9 +317,9 @@ static bool js_pipeline_GlobalDSManager_getDescriptorSetLayout(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getDescriptorSetLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSetLayout* result = cobj->getDescriptorSetLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -318,11 +336,11 @@ static bool js_pipeline_GlobalDSManager_getDescriptorSetMap(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getDescriptorSetMap : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::unordered_map result = cobj->getDescriptorSetMap(); + std::unordered_map result = cobj->getDescriptorSetMap(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_GlobalDSManager_getDescriptorSetMap : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -337,9 +355,9 @@ static bool js_pipeline_GlobalDSManager_getGlobalDescriptorSet(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getGlobalDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getGlobalDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -356,9 +374,9 @@ static bool js_pipeline_GlobalDSManager_getLinearSampler(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getLinearSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Sampler* result = cobj->getLinearSampler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -375,9 +393,9 @@ static bool js_pipeline_GlobalDSManager_getOrCreateDescriptorSet(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getOrCreateDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -397,9 +415,9 @@ static bool js_pipeline_GlobalDSManager_getPointSampler(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_getPointSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Sampler* result = cobj->getPointSampler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -417,7 +435,7 @@ static bool js_pipeline_GlobalDSManager_update(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_GlobalDSManager_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -438,13 +456,10 @@ static bool js_pipeline_GlobalDSManager_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_GlobalDSManager_constructor, __jsb_cc_pipeline_GlobalDSManager_class, js_cc_pipeline_GlobalDSManager_finalize) - - static bool js_cc_pipeline_GlobalDSManager_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -478,7 +493,7 @@ bool js_register_pipeline_GlobalDSManager(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_RenderPipelineInfo_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class = nullptr; static bool js_pipeline_RenderPipelineInfo_get_tag(se::State& s) // NOLINT(readability-identifier-naming) { @@ -486,7 +501,7 @@ static bool js_pipeline_RenderPipelineInfo_get_tag(se::State& s) // NOLINT(reada SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_get_tag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tag, s.thisObject(), s.rval()); @@ -497,7 +512,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderPipelineInfo_get_tag) static bool js_pipeline_RenderPipelineInfo_set_tag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_set_tag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -513,7 +528,7 @@ static bool js_pipeline_RenderPipelineInfo_get_flows(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_get_flows : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->flows, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->flows, s.thisObject(), s.rval()); @@ -524,7 +539,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderPipelineInfo_get_flows) static bool js_pipeline_RenderPipelineInfo_set_flows(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipelineInfo_set_flows : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -534,25 +549,23 @@ static bool js_pipeline_RenderPipelineInfo_set_flows(se::State& s) // NOLINT(rea } SE_BIND_PROP_SET(js_pipeline_RenderPipelineInfo_set_flows) - -template<> -bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderPipelineInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderPipelineInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("tag", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tag), ctx); } json->getProperty("flows", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->flows), ctx); } return ok; @@ -562,26 +575,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderPipelineInfo_finalize) static bool js_pipeline_RenderPipelineInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::pipeline::RenderPipelineInfo* cobj = JSB_ALLOC(cc::pipeline::RenderPipelineInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::pipeline::RenderPipelineInfo* cobj = JSB_ALLOC(cc::pipeline::RenderPipelineInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -600,7 +611,7 @@ static bool js_pipeline_RenderPipelineInfo_constructor(se::State& s) // NOLINT(r ok &= sevalue_to_native(args[1], &(cobj->flows), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -612,13 +623,10 @@ static bool js_pipeline_RenderPipelineInfo_constructor(se::State& s) // NOLINT(r } SE_BIND_CTOR(js_pipeline_RenderPipelineInfo_constructor, __jsb_cc_pipeline_RenderPipelineInfo_class, js_cc_pipeline_RenderPipelineInfo_finalize) - - static bool js_cc_pipeline_RenderPipelineInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -644,15 +652,15 @@ bool js_register_pipeline_RenderPipelineInfo(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_cc_pipeline_RenderPipeline_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderPipeline_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderPipeline_class = nullptr; static bool js_pipeline_RenderPipeline_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_activate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -672,12 +680,12 @@ static bool js_pipeline_RenderPipeline_createQuadInputAssembler(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_createQuadInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -699,7 +707,7 @@ static bool js_pipeline_RenderPipeline_destroy(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -713,11 +721,11 @@ static bool js_pipeline_RenderPipeline_ensureEnoughSize(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_ensureEnoughSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_ensureEnoughSize : Error processing arguments"); cobj->ensureEnoughSize(arg0.value()); @@ -732,12 +740,12 @@ static bool js_pipeline_RenderPipeline_genQuadVertexData(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_genQuadVertexData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_genQuadVertexData : Error processing arguments"); @@ -753,9 +761,9 @@ static bool js_pipeline_RenderPipeline_getBloomEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getBloomEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getBloomEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -772,9 +780,9 @@ static bool js_pipeline_RenderPipeline_getClearcolor(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getClearcolor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -794,9 +802,9 @@ static bool js_pipeline_RenderPipeline_getClusterEnabled(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getClusterEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getClusterEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -813,9 +821,9 @@ static bool js_pipeline_RenderPipeline_getConstantMacros(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getConstantMacros : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::String& result = cobj->getConstantMacros(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -832,9 +840,9 @@ static bool js_pipeline_RenderPipeline_getDescriptorSet(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -851,9 +859,9 @@ static bool js_pipeline_RenderPipeline_getDescriptorSetLayout(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getDescriptorSetLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSetLayout* result = cobj->getDescriptorSetLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -870,9 +878,9 @@ static bool js_pipeline_RenderPipeline_getDevice(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getDevice : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Device* result = cobj->getDevice(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -889,9 +897,9 @@ static bool js_pipeline_RenderPipeline_getFrameGraph(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getFrameGraph : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::framegraph::FrameGraph& result = cobj->getFrameGraph(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -908,9 +916,9 @@ static bool js_pipeline_RenderPipeline_getGeometryRenderer(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getGeometryRenderer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::GeometryRenderer* result = cobj->getGeometryRenderer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -927,9 +935,9 @@ static bool js_pipeline_RenderPipeline_getGlobalDSManager(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getGlobalDSManager : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::GlobalDSManager* result = cobj->getGlobalDSManager(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -946,9 +954,9 @@ static bool js_pipeline_RenderPipeline_getHeight(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -965,9 +973,9 @@ static bool js_pipeline_RenderPipeline_getIAByRenderArea(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getIAByRenderArea : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -987,9 +995,9 @@ static bool js_pipeline_RenderPipeline_getOcclusionQueryEnabled(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getOcclusionQueryEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getOcclusionQueryEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1006,9 +1014,9 @@ static bool js_pipeline_RenderPipeline_getProfiler(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getProfiler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Model* result = cobj->getProfiler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1025,11 +1033,11 @@ static bool js_pipeline_RenderPipeline_getQueryPools(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getQueryPools : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getQueryPools(); + const std::vector& result = cobj->getQueryPools(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_getQueryPools : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -1044,9 +1052,9 @@ static bool js_pipeline_RenderPipeline_getRenderstageByName(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getRenderstageByName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1066,9 +1074,9 @@ static bool js_pipeline_RenderPipeline_getScissor(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getScissor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1088,9 +1096,9 @@ static bool js_pipeline_RenderPipeline_getViewport(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getViewport : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1110,9 +1118,9 @@ static bool js_pipeline_RenderPipeline_getWidth(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1129,9 +1137,9 @@ static bool js_pipeline_RenderPipeline_initialize(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1151,9 +1159,9 @@ static bool js_pipeline_RenderPipeline_isEnvmapEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_isEnvmapEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isEnvmapEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1170,11 +1178,11 @@ static bool js_pipeline_RenderPipeline_isOccluded(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_isOccluded : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1194,11 +1202,11 @@ static bool js_pipeline_RenderPipeline_render(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_render : Error processing arguments"); cobj->render(arg0.value()); @@ -1213,9 +1221,9 @@ static bool js_pipeline_RenderPipeline_setBloomEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setBloomEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1232,9 +1240,9 @@ static bool js_pipeline_RenderPipeline_setClusterEnabled(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setClusterEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1251,9 +1259,9 @@ static bool js_pipeline_RenderPipeline_setGeometryRenderer(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setGeometryRenderer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1270,9 +1278,9 @@ static bool js_pipeline_RenderPipeline_setOcclusionQueryEnabled(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setOcclusionQueryEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1289,9 +1297,9 @@ static bool js_pipeline_RenderPipeline_setPipelineSharedSceneData(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setPipelineSharedSceneData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1308,9 +1316,9 @@ static bool js_pipeline_RenderPipeline_setProfiler(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setProfiler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1327,12 +1335,12 @@ static bool js_pipeline_RenderPipeline_setValue(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_setValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderPipeline_setValue : Error processing arguments"); @@ -1348,11 +1356,11 @@ static bool js_pipeline_RenderPipeline_updateQuadVertexData(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderPipeline_updateQuadVertexData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1367,9 +1375,9 @@ SE_BIND_FUNC(js_pipeline_RenderPipeline_updateQuadVertexData) static bool js_pipeline_RenderPipeline_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::RenderPipeline* result = cc::pipeline::RenderPipeline::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1384,9 +1392,9 @@ SE_BIND_FUNC(js_pipeline_RenderPipeline_getInstance) static bool js_pipeline_RenderPipeline_getRenderArea(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -1402,8 +1410,6 @@ static bool js_pipeline_RenderPipeline_getRenderArea(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_pipeline_RenderPipeline_getRenderArea) - - bool js_register_pipeline_RenderPipeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RenderPipeline", obj, nullptr, nullptr); @@ -1454,7 +1460,7 @@ bool js_register_pipeline_RenderPipeline(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_pipeline_ForwardPipeline_proto = nullptr; -se::Class* __jsb_cc_pipeline_ForwardPipeline_class = nullptr; +se::Class* __jsb_cc_pipeline_ForwardPipeline_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_ForwardPipeline_finalize) @@ -1467,13 +1473,10 @@ static bool js_pipeline_ForwardPipeline_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_ForwardPipeline_constructor, __jsb_cc_pipeline_ForwardPipeline_class, js_cc_pipeline_ForwardPipeline_finalize) - - static bool js_cc_pipeline_ForwardPipeline_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1497,7 +1500,7 @@ bool js_register_pipeline_ForwardPipeline(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_RenderFlowInfo_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderFlowInfo_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderFlowInfo_class = nullptr; static bool js_pipeline_RenderFlowInfo_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1505,7 +1508,7 @@ static bool js_pipeline_RenderFlowInfo_get_name(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1516,7 +1519,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_name) static bool js_pipeline_RenderFlowInfo_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1532,7 +1535,7 @@ static bool js_pipeline_RenderFlowInfo_get_priority(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_priority : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->priority, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->priority, s.thisObject(), s.rval()); @@ -1543,7 +1546,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_priority) static bool js_pipeline_RenderFlowInfo_set_priority(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_priority : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1559,7 +1562,7 @@ static bool js_pipeline_RenderFlowInfo_get_tag(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_tag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tag, s.thisObject(), s.rval()); @@ -1570,7 +1573,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_tag) static bool js_pipeline_RenderFlowInfo_set_tag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_tag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1586,7 +1589,7 @@ static bool js_pipeline_RenderFlowInfo_get_stages(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_get_stages : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->stages, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->stages, s.thisObject(), s.rval()); @@ -1597,7 +1600,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderFlowInfo_get_stages) static bool js_pipeline_RenderFlowInfo_set_stages(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlowInfo_set_stages : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1607,33 +1610,31 @@ static bool js_pipeline_RenderFlowInfo_set_stages(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_pipeline_RenderFlowInfo_set_stages) - -template<> -bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderFlowInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderFlowInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("priority", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->priority), ctx); } json->getProperty("tag", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tag), ctx); } json->getProperty("stages", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stages), ctx); } return ok; @@ -1643,26 +1644,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderFlowInfo_finalize) static bool js_pipeline_RenderFlowInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::pipeline::RenderFlowInfo* cobj = JSB_ALLOC(cc::pipeline::RenderFlowInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::pipeline::RenderFlowInfo* cobj = JSB_ALLOC(cc::pipeline::RenderFlowInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1687,7 +1686,7 @@ static bool js_pipeline_RenderFlowInfo_constructor(se::State& s) // NOLINT(reada ok &= sevalue_to_native(args[3], &(cobj->stages), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1699,13 +1698,10 @@ static bool js_pipeline_RenderFlowInfo_constructor(se::State& s) // NOLINT(reada } SE_BIND_CTOR(js_pipeline_RenderFlowInfo_constructor, __jsb_cc_pipeline_RenderFlowInfo_class, js_cc_pipeline_RenderFlowInfo_finalize) - - static bool js_cc_pipeline_RenderFlowInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1733,15 +1729,15 @@ bool js_register_pipeline_RenderFlowInfo(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_cc_pipeline_RenderFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderFlow_class = nullptr; static bool js_pipeline_RenderFlow_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_activate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1758,9 +1754,9 @@ static bool js_pipeline_RenderFlow_getRenderstageByName(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_getRenderstageByName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1780,9 +1776,9 @@ static bool js_pipeline_RenderFlow_getTag(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_getTag : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getTag(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1799,9 +1795,9 @@ static bool js_pipeline_RenderFlow_initialize(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderFlow_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1817,8 +1813,6 @@ static bool js_pipeline_RenderFlow_initialize(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_pipeline_RenderFlow_initialize) - - bool js_register_pipeline_RenderFlow(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RenderFlow", obj, nullptr, nullptr); @@ -1837,13 +1831,13 @@ bool js_register_pipeline_RenderFlow(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_pipeline_ForwardFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_ForwardFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_ForwardFlow_class = nullptr; static bool js_pipeline_ForwardFlow_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderFlowInfo& result = cc::pipeline::ForwardFlow::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1867,13 +1861,10 @@ static bool js_pipeline_ForwardFlow_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_pipeline_ForwardFlow_constructor, __jsb_cc_pipeline_ForwardFlow_class, js_cc_pipeline_ForwardFlow_finalize) - - static bool js_cc_pipeline_ForwardFlow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1898,7 +1889,7 @@ bool js_register_pipeline_ForwardFlow(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_pipeline_RenderStageInfo_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderStageInfo_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderStageInfo_class = nullptr; static bool js_pipeline_RenderStageInfo_get_name(se::State& s) // NOLINT(readability-identifier-naming) { @@ -1906,7 +1897,7 @@ static bool js_pipeline_RenderStageInfo_get_name(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_name : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->name, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->name, s.thisObject(), s.rval()); @@ -1917,7 +1908,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_name) static bool js_pipeline_RenderStageInfo_set_name(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_name : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1933,7 +1924,7 @@ static bool js_pipeline_RenderStageInfo_get_priority(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_priority : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->priority, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->priority, s.thisObject(), s.rval()); @@ -1944,7 +1935,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_priority) static bool js_pipeline_RenderStageInfo_set_priority(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_priority : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1960,7 +1951,7 @@ static bool js_pipeline_RenderStageInfo_get_tag(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_tag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->tag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->tag, s.thisObject(), s.rval()); @@ -1971,7 +1962,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_tag) static bool js_pipeline_RenderStageInfo_set_tag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_tag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1987,7 +1978,7 @@ static bool js_pipeline_RenderStageInfo_get_renderQueues(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_get_renderQueues : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->renderQueues, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->renderQueues, s.thisObject(), s.rval()); @@ -1998,7 +1989,7 @@ SE_BIND_PROP_GET(js_pipeline_RenderStageInfo_get_renderQueues) static bool js_pipeline_RenderStageInfo_set_renderQueues(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStageInfo_set_renderQueues : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2008,33 +1999,31 @@ static bool js_pipeline_RenderStageInfo_set_renderQueues(se::State& s) // NOLINT } SE_BIND_PROP_SET(js_pipeline_RenderStageInfo_set_renderQueues) - -template<> -bool sevalue_to_native(const se::Value &from, cc::pipeline::RenderStageInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::pipeline::RenderStageInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("name", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->name), ctx); } json->getProperty("priority", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->priority), ctx); } json->getProperty("tag", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->tag), ctx); } json->getProperty("renderQueues", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->renderQueues), ctx); } return ok; @@ -2044,26 +2033,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_RenderStageInfo_finalize) static bool js_pipeline_RenderStageInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::pipeline::RenderStageInfo* cobj = JSB_ALLOC(cc::pipeline::RenderStageInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::pipeline::RenderStageInfo* cobj = JSB_ALLOC(cc::pipeline::RenderStageInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -2088,7 +2075,7 @@ static bool js_pipeline_RenderStageInfo_constructor(se::State& s) // NOLINT(read ok &= sevalue_to_native(args[3], &(cobj->renderQueues), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -2100,13 +2087,10 @@ static bool js_pipeline_RenderStageInfo_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_RenderStageInfo_constructor, __jsb_cc_pipeline_RenderStageInfo_class, js_cc_pipeline_RenderStageInfo_finalize) - - static bool js_cc_pipeline_RenderStageInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2134,18 +2118,18 @@ bool js_register_pipeline_RenderStageInfo(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_RenderStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_RenderStage_class = nullptr; +se::Class* __jsb_cc_pipeline_RenderStage_class = nullptr; static bool js_pipeline_RenderStage_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_activate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_RenderStage_activate : Error processing arguments"); @@ -2161,9 +2145,9 @@ static bool js_pipeline_RenderStage_getFlow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_getFlow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::pipeline::RenderFlow* result = cobj->getFlow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2180,9 +2164,9 @@ static bool js_pipeline_RenderStage_getTag(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_getTag : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getTag(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2199,9 +2183,9 @@ static bool js_pipeline_RenderStage_initialize(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_RenderStage_initialize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2217,8 +2201,6 @@ static bool js_pipeline_RenderStage_initialize(se::State& s) // NOLINT(readabili } SE_BIND_FUNC(js_pipeline_RenderStage_initialize) - - bool js_register_pipeline_RenderStage(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RenderStage", obj, nullptr, nullptr); @@ -2237,13 +2219,13 @@ bool js_register_pipeline_RenderStage(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_pipeline_ForwardStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_ForwardStage_class = nullptr; +se::Class* __jsb_cc_pipeline_ForwardStage_class = nullptr; static bool js_pipeline_ForwardStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::ForwardStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2267,13 +2249,10 @@ static bool js_pipeline_ForwardStage_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_pipeline_ForwardStage_constructor, __jsb_cc_pipeline_ForwardStage_class, js_cc_pipeline_ForwardStage_finalize) - - static bool js_cc_pipeline_ForwardStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2298,13 +2277,13 @@ bool js_register_pipeline_ForwardStage(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_pipeline_ShadowFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_ShadowFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_ShadowFlow_class = nullptr; static bool js_pipeline_ShadowFlow_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderFlowInfo& result = cc::pipeline::ShadowFlow::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2328,13 +2307,10 @@ static bool js_pipeline_ShadowFlow_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_pipeline_ShadowFlow_constructor, __jsb_cc_pipeline_ShadowFlow_class, js_cc_pipeline_ShadowFlow_finalize) - - static bool js_cc_pipeline_ShadowFlow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2359,15 +2335,15 @@ bool js_register_pipeline_ShadowFlow(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_pipeline_ShadowStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_ShadowStage_class = nullptr; +se::Class* __jsb_cc_pipeline_ShadowStage_class = nullptr; static bool js_pipeline_ShadowStage_setFramebuffer(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_ShadowStage_setFramebuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2384,13 +2360,13 @@ static bool js_pipeline_ShadowStage_setUsage(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_ShadowStage_setUsage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -2405,9 +2381,9 @@ SE_BIND_FUNC(js_pipeline_ShadowStage_setUsage) static bool js_pipeline_ShadowStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::ShadowStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2431,13 +2407,10 @@ static bool js_pipeline_ShadowStage_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_pipeline_ShadowStage_constructor, __jsb_cc_pipeline_ShadowStage_class, js_cc_pipeline_ShadowStage_finalize) - - static bool js_cc_pipeline_ShadowStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2464,14 +2437,14 @@ bool js_register_pipeline_ShadowStage(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_pipeline_InstancedBuffer_proto = nullptr; -se::Class* __jsb_cc_pipeline_InstancedBuffer_class = nullptr; +se::Class* __jsb_cc_pipeline_InstancedBuffer_class = nullptr; static bool js_pipeline_InstancedBuffer_destroy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_InstancedBuffer_destroy : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->destroy(); return true; @@ -2485,9 +2458,9 @@ static bool js_pipeline_InstancedBuffer_setDynamicOffset(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_InstancedBuffer_setDynamicOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -2504,17 +2477,23 @@ SE_BIND_FUNC(js_pipeline_InstancedBuffer_setDynamicOffset) static bool js_pipeline_InstancedBuffer_get(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::pipeline::InstancedBuffer* result = cc::pipeline::InstancedBuffer::get(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_InstancedBuffer_get : Error processing arguments"); @@ -2526,7 +2505,10 @@ static bool js_pipeline_InstancedBuffer_get(se::State& s) // NOLINT(readability- if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cc::pipeline::InstancedBuffer* result = cc::pipeline::InstancedBuffer::get(arg0.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_InstancedBuffer_get : Error processing arguments"); @@ -2542,7 +2524,7 @@ SE_BIND_FUNC(js_pipeline_InstancedBuffer_get) static bool js_pipeline_InstancedBuffer_destroyInstancedBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cc::pipeline::InstancedBuffer::destroyInstancedBuffer(); return true; @@ -2556,8 +2538,8 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_InstancedBuffer_finalize) static bool js_pipeline_InstancedBuffer_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); const cc::scene::Pass* arg0 = nullptr; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_pipeline_InstancedBuffer_constructor : Error processing arguments"); @@ -2568,13 +2550,10 @@ static bool js_pipeline_InstancedBuffer_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_pipeline_InstancedBuffer_constructor, __jsb_cc_pipeline_InstancedBuffer_class, js_cc_pipeline_InstancedBuffer_finalize) - - static bool js_cc_pipeline_InstancedBuffer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2602,7 +2581,7 @@ bool js_register_pipeline_InstancedBuffer(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_pipeline_DeferredPipeline_proto = nullptr; -se::Class* __jsb_cc_pipeline_DeferredPipeline_class = nullptr; +se::Class* __jsb_cc_pipeline_DeferredPipeline_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_DeferredPipeline_finalize) @@ -2615,13 +2594,10 @@ static bool js_pipeline_DeferredPipeline_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_pipeline_DeferredPipeline_constructor, __jsb_cc_pipeline_DeferredPipeline_class, js_cc_pipeline_DeferredPipeline_finalize) - - static bool js_cc_pipeline_DeferredPipeline_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2645,13 +2621,13 @@ bool js_register_pipeline_DeferredPipeline(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_cc_pipeline_MainFlow_proto = nullptr; -se::Class* __jsb_cc_pipeline_MainFlow_class = nullptr; +se::Class* __jsb_cc_pipeline_MainFlow_class = nullptr; static bool js_pipeline_MainFlow_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderFlowInfo& result = cc::pipeline::MainFlow::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2675,13 +2651,10 @@ static bool js_pipeline_MainFlow_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_pipeline_MainFlow_constructor, __jsb_cc_pipeline_MainFlow_class, js_cc_pipeline_MainFlow_finalize) - - static bool js_cc_pipeline_MainFlow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2706,13 +2679,13 @@ bool js_register_pipeline_MainFlow(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_pipeline_GbufferStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_GbufferStage_class = nullptr; +se::Class* __jsb_cc_pipeline_GbufferStage_class = nullptr; static bool js_pipeline_GbufferStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::GbufferStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2736,13 +2709,10 @@ static bool js_pipeline_GbufferStage_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_pipeline_GbufferStage_constructor, __jsb_cc_pipeline_GbufferStage_class, js_cc_pipeline_GbufferStage_finalize) - - static bool js_cc_pipeline_GbufferStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2767,13 +2737,13 @@ bool js_register_pipeline_GbufferStage(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_cc_pipeline_LightingStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_LightingStage_class = nullptr; +se::Class* __jsb_cc_pipeline_LightingStage_class = nullptr; static bool js_pipeline_LightingStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::LightingStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2797,13 +2767,10 @@ static bool js_pipeline_LightingStage_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_pipeline_LightingStage_constructor, __jsb_cc_pipeline_LightingStage_class, js_cc_pipeline_LightingStage_finalize) - - static bool js_cc_pipeline_LightingStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2828,15 +2795,15 @@ bool js_register_pipeline_LightingStage(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_pipeline_BloomStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_BloomStage_class = nullptr; +se::Class* __jsb_cc_pipeline_BloomStage_class = nullptr; static bool js_pipeline_BloomStage_getCombineUBO(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getCombineUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getCombineUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2853,11 +2820,11 @@ static bool js_pipeline_BloomStage_getDownsampelUBO(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getDownsampelUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::array& result = cobj->getDownsampelUBO(); + std::array& result = cobj->getDownsampelUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_BloomStage_getDownsampelUBO : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2872,9 +2839,9 @@ static bool js_pipeline_BloomStage_getIntensity(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getIntensity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getIntensity(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2891,9 +2858,9 @@ static bool js_pipeline_BloomStage_getIterations(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getIterations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIterations(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2910,9 +2877,9 @@ static bool js_pipeline_BloomStage_getPrefilterUBO(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getPrefilterUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getPrefilterUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2929,9 +2896,9 @@ static bool js_pipeline_BloomStage_getSampler(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getSampler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Sampler* result = cobj->getSampler(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2948,9 +2915,9 @@ static bool js_pipeline_BloomStage_getThreshold(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2967,11 +2934,11 @@ static bool js_pipeline_BloomStage_getUpsampleUBO(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_getUpsampleUBO : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::array& result = cobj->getUpsampleUBO(); + std::array& result = cobj->getUpsampleUBO(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_pipeline_BloomStage_getUpsampleUBO : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2986,9 +2953,9 @@ static bool js_pipeline_BloomStage_setIntensity(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_setIntensity : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3005,9 +2972,9 @@ static bool js_pipeline_BloomStage_setIterations(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_setIterations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3024,9 +2991,9 @@ static bool js_pipeline_BloomStage_setThreshold(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_pipeline_BloomStage_setThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3041,9 +3008,9 @@ SE_BIND_PROP_SET(js_pipeline_BloomStage_setThreshold) static bool js_pipeline_BloomStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::BloomStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3067,13 +3034,10 @@ static bool js_pipeline_BloomStage_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_pipeline_BloomStage_constructor, __jsb_cc_pipeline_BloomStage_class, js_cc_pipeline_BloomStage_finalize) - - static bool js_cc_pipeline_BloomStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3106,13 +3070,13 @@ bool js_register_pipeline_BloomStage(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_pipeline_PostProcessStage_proto = nullptr; -se::Class* __jsb_cc_pipeline_PostProcessStage_class = nullptr; +se::Class* __jsb_cc_pipeline_PostProcessStage_class = nullptr; static bool js_pipeline_PostProcessStage_getInitializeInfo(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::pipeline::RenderStageInfo& result = cc::pipeline::PostProcessStage::getInitializeInfo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3136,13 +3100,10 @@ static bool js_pipeline_PostProcessStage_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_pipeline_PostProcessStage_constructor, __jsb_cc_pipeline_PostProcessStage_class, js_cc_pipeline_PostProcessStage_finalize) - - static bool js_cc_pipeline_PostProcessStage_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3167,7 +3128,7 @@ bool js_register_pipeline_PostProcessStage(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_cc_pipeline_GeometryRenderer_proto = nullptr; -se::Class* __jsb_cc_pipeline_GeometryRenderer_class = nullptr; +se::Class* __jsb_cc_pipeline_GeometryRenderer_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_pipeline_GeometryRenderer_finalize) @@ -3180,13 +3141,10 @@ static bool js_pipeline_GeometryRenderer_constructor(se::State& s) // NOLINT(rea } SE_BIND_CTOR(js_pipeline_GeometryRenderer_constructor, __jsb_cc_pipeline_GeometryRenderer_class, js_cc_pipeline_GeometryRenderer_finalize) - - static bool js_cc_pipeline_GeometryRenderer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3209,12 +3167,10 @@ bool js_register_pipeline_GeometryRenderer(se::Object* obj) // NOLINT(readabilit se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_pipeline(se::Object* obj) -{ +bool register_all_pipeline(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("nr", &nsVal)) - { + if (!obj->getProperty("nr", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("nr", nsVal); @@ -3244,4 +3200,3 @@ bool register_all_pipeline(se::Object* obj) js_register_pipeline_GeometryRenderer(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.h b/native/cocos/bindings/auto/jsb_pipeline_auto.h index 983c1a29d0..a14a2c3b0e 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.h +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.h @@ -1,41 +1,66 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" +#include "base/Config.h" #include "cocos/bindings/auto/jsb_gfx_auto.h" #include "cocos/bindings/auto/jsb_scene_auto.h" -#include "cocos/renderer/pipeline/forward/ForwardPipeline.h" +#include "cocos/bindings/jswrapper/SeApi.h" +#include "cocos/bindings/manual/jsb_conversions.h" +#include "cocos/renderer/pipeline/Define.h" +#include "cocos/renderer/pipeline/GeometryRenderer.h" +#include "cocos/renderer/pipeline/GlobalDescriptorSetManager.h" +#include "cocos/renderer/pipeline/InstancedBuffer.h" +#include "cocos/renderer/pipeline/RenderFlow.h" +#include "cocos/renderer/pipeline/RenderPipeline.h" +#include "cocos/renderer/pipeline/RenderStage.h" +#include "cocos/renderer/pipeline/deferred/BloomStage.h" +#include "cocos/renderer/pipeline/deferred/DeferredPipeline.h" +#include "cocos/renderer/pipeline/deferred/GbufferStage.h" +#include "cocos/renderer/pipeline/deferred/LightingStage.h" +#include "cocos/renderer/pipeline/deferred/MainFlow.h" +#include "cocos/renderer/pipeline/deferred/PostProcessStage.h" #include "cocos/renderer/pipeline/forward/ForwardFlow.h" +#include "cocos/renderer/pipeline/forward/ForwardPipeline.h" #include "cocos/renderer/pipeline/forward/ForwardStage.h" #include "cocos/renderer/pipeline/shadow/ShadowFlow.h" #include "cocos/renderer/pipeline/shadow/ShadowStage.h" -#include "cocos/renderer/pipeline/RenderPipeline.h" -#include "cocos/renderer/pipeline/RenderFlow.h" -#include "cocos/renderer/pipeline/RenderStage.h" -#include "cocos/renderer/pipeline/Define.h" -#include "cocos/renderer/pipeline/GlobalDescriptorSetManager.h" -#include "cocos/renderer/pipeline/InstancedBuffer.h" -#include "cocos/renderer/pipeline/deferred/DeferredPipeline.h" -#include "cocos/renderer/pipeline/deferred/MainFlow.h" -#include "cocos/renderer/pipeline/deferred/GbufferStage.h" -#include "cocos/renderer/pipeline/deferred/LightingStage.h" -#include "cocos/renderer/pipeline/deferred/BloomStage.h" -#include "cocos/renderer/pipeline/deferred/PostProcessStage.h" -#include "cocos/renderer/pipeline/GeometryRenderer.h" extern se::Object* __jsb_cc_pipeline_RenderQueueDesc_proto; -extern se::Class* __jsb_cc_pipeline_RenderQueueDesc_class; +extern se::Class* __jsb_cc_pipeline_RenderQueueDesc_class; bool js_register_cc_pipeline_RenderQueueDesc(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::pipeline::RenderQueueDesc *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::pipeline::RenderQueueDesc*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderQueueDesc); extern se::Object* __jsb_cc_pipeline_GlobalDSManager_proto; -extern se::Class* __jsb_cc_pipeline_GlobalDSManager_class; +extern se::Class* __jsb_cc_pipeline_GlobalDSManager_class; bool js_register_cc_pipeline_GlobalDSManager(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -54,17 +79,17 @@ SE_DECLARE_FUNC(js_pipeline_GlobalDSManager_update); SE_DECLARE_FUNC(js_pipeline_GlobalDSManager_GlobalDSManager); extern se::Object* __jsb_cc_pipeline_RenderPipelineInfo_proto; -extern se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class; +extern se::Class* __jsb_cc_pipeline_RenderPipelineInfo_class; bool js_register_cc_pipeline_RenderPipelineInfo(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::pipeline::RenderPipelineInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::pipeline::RenderPipelineInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderPipelineInfo); extern se::Object* __jsb_cc_pipeline_RenderPipeline_proto; -extern se::Class* __jsb_cc_pipeline_RenderPipeline_class; +extern se::Class* __jsb_cc_pipeline_RenderPipeline_class; bool js_register_cc_pipeline_RenderPipeline(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -102,7 +127,7 @@ SE_DECLARE_FUNC(js_pipeline_RenderPipeline_getInstance); SE_DECLARE_FUNC(js_pipeline_RenderPipeline_getRenderArea); extern se::Object* __jsb_cc_pipeline_ForwardPipeline_proto; -extern se::Class* __jsb_cc_pipeline_ForwardPipeline_class; +extern se::Class* __jsb_cc_pipeline_ForwardPipeline_class; bool js_register_cc_pipeline_ForwardPipeline(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -111,17 +136,17 @@ JSB_REGISTER_OBJECT_TYPE(cc::pipeline::ForwardPipeline); SE_DECLARE_FUNC(js_pipeline_ForwardPipeline_ForwardPipeline); extern se::Object* __jsb_cc_pipeline_RenderFlowInfo_proto; -extern se::Class* __jsb_cc_pipeline_RenderFlowInfo_class; +extern se::Class* __jsb_cc_pipeline_RenderFlowInfo_class; bool js_register_cc_pipeline_RenderFlowInfo(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::pipeline::RenderFlowInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::pipeline::RenderFlowInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderFlowInfo); extern se::Object* __jsb_cc_pipeline_RenderFlow_proto; -extern se::Class* __jsb_cc_pipeline_RenderFlow_class; +extern se::Class* __jsb_cc_pipeline_RenderFlow_class; bool js_register_cc_pipeline_RenderFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -133,7 +158,7 @@ SE_DECLARE_FUNC(js_pipeline_RenderFlow_getTag); SE_DECLARE_FUNC(js_pipeline_RenderFlow_initialize); extern se::Object* __jsb_cc_pipeline_ForwardFlow_proto; -extern se::Class* __jsb_cc_pipeline_ForwardFlow_class; +extern se::Class* __jsb_cc_pipeline_ForwardFlow_class; bool js_register_cc_pipeline_ForwardFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -143,17 +168,17 @@ SE_DECLARE_FUNC(js_pipeline_ForwardFlow_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ForwardFlow_ForwardFlow); extern se::Object* __jsb_cc_pipeline_RenderStageInfo_proto; -extern se::Class* __jsb_cc_pipeline_RenderStageInfo_class; +extern se::Class* __jsb_cc_pipeline_RenderStageInfo_class; bool js_register_cc_pipeline_RenderStageInfo(se::Object* obj); bool register_all_pipeline(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::pipeline::RenderStageInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::pipeline::RenderStageInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::RenderStageInfo); extern se::Object* __jsb_cc_pipeline_RenderStage_proto; -extern se::Class* __jsb_cc_pipeline_RenderStage_class; +extern se::Class* __jsb_cc_pipeline_RenderStage_class; bool js_register_cc_pipeline_RenderStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -165,7 +190,7 @@ SE_DECLARE_FUNC(js_pipeline_RenderStage_getTag); SE_DECLARE_FUNC(js_pipeline_RenderStage_initialize); extern se::Object* __jsb_cc_pipeline_ForwardStage_proto; -extern se::Class* __jsb_cc_pipeline_ForwardStage_class; +extern se::Class* __jsb_cc_pipeline_ForwardStage_class; bool js_register_cc_pipeline_ForwardStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -175,7 +200,7 @@ SE_DECLARE_FUNC(js_pipeline_ForwardStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ForwardStage_ForwardStage); extern se::Object* __jsb_cc_pipeline_ShadowFlow_proto; -extern se::Class* __jsb_cc_pipeline_ShadowFlow_class; +extern se::Class* __jsb_cc_pipeline_ShadowFlow_class; bool js_register_cc_pipeline_ShadowFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -185,7 +210,7 @@ SE_DECLARE_FUNC(js_pipeline_ShadowFlow_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ShadowFlow_ShadowFlow); extern se::Object* __jsb_cc_pipeline_ShadowStage_proto; -extern se::Class* __jsb_cc_pipeline_ShadowStage_class; +extern se::Class* __jsb_cc_pipeline_ShadowStage_class; bool js_register_cc_pipeline_ShadowStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -197,7 +222,7 @@ SE_DECLARE_FUNC(js_pipeline_ShadowStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_ShadowStage_ShadowStage); extern se::Object* __jsb_cc_pipeline_InstancedBuffer_proto; -extern se::Class* __jsb_cc_pipeline_InstancedBuffer_class; +extern se::Class* __jsb_cc_pipeline_InstancedBuffer_class; bool js_register_cc_pipeline_InstancedBuffer(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -210,7 +235,7 @@ SE_DECLARE_FUNC(js_pipeline_InstancedBuffer_destroyInstancedBuffer); SE_DECLARE_FUNC(js_pipeline_InstancedBuffer_InstancedBuffer); extern se::Object* __jsb_cc_pipeline_DeferredPipeline_proto; -extern se::Class* __jsb_cc_pipeline_DeferredPipeline_class; +extern se::Class* __jsb_cc_pipeline_DeferredPipeline_class; bool js_register_cc_pipeline_DeferredPipeline(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -219,7 +244,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::pipeline::DeferredPipeline); SE_DECLARE_FUNC(js_pipeline_DeferredPipeline_DeferredPipeline); extern se::Object* __jsb_cc_pipeline_MainFlow_proto; -extern se::Class* __jsb_cc_pipeline_MainFlow_class; +extern se::Class* __jsb_cc_pipeline_MainFlow_class; bool js_register_cc_pipeline_MainFlow(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -229,7 +254,7 @@ SE_DECLARE_FUNC(js_pipeline_MainFlow_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_MainFlow_MainFlow); extern se::Object* __jsb_cc_pipeline_GbufferStage_proto; -extern se::Class* __jsb_cc_pipeline_GbufferStage_class; +extern se::Class* __jsb_cc_pipeline_GbufferStage_class; bool js_register_cc_pipeline_GbufferStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -239,7 +264,7 @@ SE_DECLARE_FUNC(js_pipeline_GbufferStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_GbufferStage_GbufferStage); extern se::Object* __jsb_cc_pipeline_LightingStage_proto; -extern se::Class* __jsb_cc_pipeline_LightingStage_class; +extern se::Class* __jsb_cc_pipeline_LightingStage_class; bool js_register_cc_pipeline_LightingStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -249,7 +274,7 @@ SE_DECLARE_FUNC(js_pipeline_LightingStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_LightingStage_LightingStage); extern se::Object* __jsb_cc_pipeline_BloomStage_proto; -extern se::Class* __jsb_cc_pipeline_BloomStage_class; +extern se::Class* __jsb_cc_pipeline_BloomStage_class; bool js_register_cc_pipeline_BloomStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -264,7 +289,7 @@ SE_DECLARE_FUNC(js_pipeline_BloomStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_BloomStage_BloomStage); extern se::Object* __jsb_cc_pipeline_PostProcessStage_proto; -extern se::Class* __jsb_cc_pipeline_PostProcessStage_class; +extern se::Class* __jsb_cc_pipeline_PostProcessStage_class; bool js_register_cc_pipeline_PostProcessStage(se::Object* obj); bool register_all_pipeline(se::Object* obj); @@ -274,11 +299,10 @@ SE_DECLARE_FUNC(js_pipeline_PostProcessStage_getInitializeInfo); SE_DECLARE_FUNC(js_pipeline_PostProcessStage_PostProcessStage); extern se::Object* __jsb_cc_pipeline_GeometryRenderer_proto; -extern se::Class* __jsb_cc_pipeline_GeometryRenderer_class; +extern se::Class* __jsb_cc_pipeline_GeometryRenderer_class; bool js_register_cc_pipeline_GeometryRenderer(se::Object* obj); bool register_all_pipeline(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(cc::pipeline::GeometryRenderer); SE_DECLARE_FUNC(js_pipeline_GeometryRenderer_GeometryRenderer); - diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index e8ab264c4c..81097510c7 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -1,44 +1,68 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_scene_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" -#include "scene/Node.h" +#include "scene/AABB.h" #include "scene/BaseNode.h" -#include "scene/Scene.h" -#include "scene/Light.h" -#include "scene/DirectionalLight.h" -#include "scene/SpotLight.h" -#include "scene/SphereLight.h" -#include "scene/Model.h" -#include "scene/SubModel.h" -#include "scene/Pass.h" -#include "scene/RenderScene.h" -#include "scene/DrawBatch2D.h" -#include "scene/Camera.h" -#include "scene/RenderWindow.h" #include "scene/Camera.h" #include "scene/Define.h" -#include "scene/AABB.h" +#include "scene/DirectionalLight.h" +#include "scene/DrawBatch2D.h" +#include "scene/Light.h" +#include "scene/Model.h" +#include "scene/Node.h" +#include "scene/Pass.h" +#include "scene/RenderScene.h" +#include "scene/RenderWindow.h" +#include "scene/Scene.h" #include "scene/Sphere.h" +#include "scene/SphereLight.h" +#include "scene/SpotLight.h" +#include "scene/SubModel.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_cc_scene_BaseNode_proto = nullptr; -se::Class* __jsb_cc_scene_BaseNode_class = nullptr; +se::Class* __jsb_cc_scene_BaseNode_class = nullptr; static bool js_scene_BaseNode_getChilds(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BaseNode_getChilds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getChilds(); + const std::vector& result = cobj->getChilds(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_BaseNode_getChilds : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -53,9 +77,9 @@ static bool js_scene_BaseNode_setParent(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BaseNode_setParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -79,13 +103,10 @@ static bool js_scene_BaseNode_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_scene_BaseNode_constructor, __jsb_cc_scene_BaseNode_class, js_cc_scene_BaseNode_finalize) - - static bool js_cc_scene_BaseNode_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -111,7 +132,7 @@ bool js_register_scene_BaseNode(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_scene_Scene_proto = nullptr; -se::Class* __jsb_cc_scene_Scene_class = nullptr; +se::Class* __jsb_cc_scene_Scene_class = nullptr; SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Scene_finalize) @@ -124,13 +145,10 @@ static bool js_scene_Scene_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Scene_constructor, __jsb_cc_scene_Scene_class, js_cc_scene_Scene_finalize) - - static bool js_cc_scene_Scene_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -154,19 +172,19 @@ bool js_register_scene_Scene(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Node_proto = nullptr; -se::Class* __jsb_cc_scene_Node_class = nullptr; +se::Class* __jsb_cc_scene_Node_class = nullptr; static bool js_scene_Node_initWithData(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Node_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -190,13 +208,10 @@ static bool js_scene_Node_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Node_constructor, __jsb_cc_scene_Node_class, js_cc_scene_Node_finalize) - - static bool js_cc_scene_Node_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -221,15 +236,15 @@ bool js_register_scene_Node(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_Light_proto = nullptr; -se::Class* __jsb_cc_scene_Light_class = nullptr; +se::Class* __jsb_cc_scene_Light_class = nullptr; static bool js_scene_Light_getBaked(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_getBaked : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getBaked(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -246,9 +261,9 @@ static bool js_scene_Light_setBaked(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setBaked : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -265,9 +280,9 @@ static bool js_scene_Light_setColor(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -284,9 +299,9 @@ static bool js_scene_Light_setColorTemperatureRGB(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setColorTemperatureRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -303,9 +318,9 @@ static bool js_scene_Light_setNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -322,9 +337,9 @@ static bool js_scene_Light_setType(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -341,9 +356,9 @@ static bool js_scene_Light_setUseColorTemperature(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_setUseColorTemperature : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -361,7 +376,7 @@ static bool js_scene_Light_update(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Light_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -371,8 +386,6 @@ static bool js_scene_Light_update(se::State& s) // NOLINT(readability-identifier } SE_BIND_FUNC(js_scene_Light_update) - - bool js_register_scene_Light(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Light", obj, nullptr, nullptr); @@ -395,15 +408,15 @@ bool js_register_scene_Light(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_DirectionalLight_proto = nullptr; -se::Class* __jsb_cc_scene_DirectionalLight_class = nullptr; +se::Class* __jsb_cc_scene_DirectionalLight_class = nullptr; static bool js_scene_DirectionalLight_getShadowBias(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -420,9 +433,9 @@ static bool js_scene_DirectionalLight_getShadowDistance(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowDistance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowDistance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -439,9 +452,9 @@ static bool js_scene_DirectionalLight_getShadowEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getShadowEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -458,9 +471,9 @@ static bool js_scene_DirectionalLight_getShadowFar(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowFar : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowFar(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -477,9 +490,9 @@ static bool js_scene_DirectionalLight_getShadowFixedArea(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowFixedArea : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getShadowFixedArea(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -496,9 +509,9 @@ static bool js_scene_DirectionalLight_getShadowInvisibleOcclusionRange(se::State { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowInvisibleOcclusionRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowInvisibleOcclusionRange(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -515,9 +528,9 @@ static bool js_scene_DirectionalLight_getShadowNear(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowNear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowNear(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -534,9 +547,9 @@ static bool js_scene_DirectionalLight_getShadowNormalBias(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowNormalBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -553,9 +566,9 @@ static bool js_scene_DirectionalLight_getShadowOrthoSize(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowOrthoSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowOrthoSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -572,9 +585,9 @@ static bool js_scene_DirectionalLight_getShadowPcf(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowPcf(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -591,9 +604,9 @@ static bool js_scene_DirectionalLight_getShadowSaturation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_getShadowSaturation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowSaturation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -610,9 +623,9 @@ static bool js_scene_DirectionalLight_setDirection(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -629,9 +642,9 @@ static bool js_scene_DirectionalLight_setIlluminanceHDR(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setIlluminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -648,9 +661,9 @@ static bool js_scene_DirectionalLight_setIlluminanceLDR(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setIlluminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -667,9 +680,9 @@ static bool js_scene_DirectionalLight_setShadowBias(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -686,9 +699,9 @@ static bool js_scene_DirectionalLight_setShadowDistance(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowDistance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -705,9 +718,9 @@ static bool js_scene_DirectionalLight_setShadowEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -724,9 +737,9 @@ static bool js_scene_DirectionalLight_setShadowFar(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowFar : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -743,9 +756,9 @@ static bool js_scene_DirectionalLight_setShadowFixedArea(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowFixedArea : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -762,9 +775,9 @@ static bool js_scene_DirectionalLight_setShadowInvisibleOcclusionRange(se::State { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowInvisibleOcclusionRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -781,9 +794,9 @@ static bool js_scene_DirectionalLight_setShadowNear(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowNear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -800,9 +813,9 @@ static bool js_scene_DirectionalLight_setShadowNormalBias(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -819,9 +832,9 @@ static bool js_scene_DirectionalLight_setShadowOrthoSize(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowOrthoSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -838,9 +851,9 @@ static bool js_scene_DirectionalLight_setShadowPcf(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -857,9 +870,9 @@ static bool js_scene_DirectionalLight_setShadowSaturation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_DirectionalLight_setShadowSaturation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -883,13 +896,10 @@ static bool js_scene_DirectionalLight_constructor(se::State& s) // NOLINT(readab } SE_BIND_CTOR(js_scene_DirectionalLight_constructor, __jsb_cc_scene_DirectionalLight_class, js_cc_scene_DirectionalLight_finalize) - - static bool js_cc_scene_DirectionalLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -938,15 +948,15 @@ bool js_register_scene_DirectionalLight(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_cc_scene_Plane_proto = nullptr; -se::Class* __jsb_cc_scene_Plane_class = nullptr; +se::Class* __jsb_cc_scene_Plane_class = nullptr; static bool js_scene_Plane_clone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_clone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Plane result = cobj->clone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -961,24 +971,30 @@ SE_BIND_FUNC(js_scene_Plane_clone) static bool js_scene_Plane_define(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_scene_Plane_define : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_Plane_define : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->define(arg0.value(), arg1.value()); return true; } - } while(false); + } while (false); do { if (argc == 3) { @@ -987,15 +1003,24 @@ static bool js_scene_Plane_define(se::State& s) // NOLINT(readability-identifier HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->define(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -1006,9 +1031,9 @@ static bool js_scene_Plane_distance(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_distance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1030,7 +1055,7 @@ static bool js_scene_Plane_get_d(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Plane_get_d : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->d, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->d, s.thisObject(), s.rval()); @@ -1041,7 +1066,7 @@ SE_BIND_PROP_GET(js_scene_Plane_get_d) static bool js_scene_Plane_set_d(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_set_d : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1057,7 +1082,7 @@ static bool js_scene_Plane_get_n(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Plane_get_n : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->n, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->n, s.thisObject(), s.rval()); @@ -1068,7 +1093,7 @@ SE_BIND_PROP_GET(js_scene_Plane_get_n) static bool js_scene_Plane_set_n(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Plane_set_n : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1078,25 +1103,23 @@ static bool js_scene_Plane_set_n(se::State& s) // NOLINT(readability-identifier- } SE_BIND_PROP_SET(js_scene_Plane_set_n) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Plane * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Plane* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("d", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->d), ctx); } json->getProperty("n", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->n), ctx); } return ok; @@ -1106,26 +1129,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Plane_finalize) static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Plane* cobj = JSB_ALLOC(cc::scene::Plane); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Plane* cobj = JSB_ALLOC(cc::scene::Plane); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1144,7 +1165,7 @@ static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-ident ok &= sevalue_to_native(args[1], &(cobj->n), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1156,13 +1177,10 @@ static bool js_scene_Plane_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Plane_constructor, __jsb_cc_scene_Plane_class, js_cc_scene_Plane_finalize) - - static bool js_cc_scene_Plane_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1191,15 +1209,15 @@ bool js_register_scene_Plane(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Frustum_proto = nullptr; -se::Class* __jsb_cc_scene_Frustum_class = nullptr; +se::Class* __jsb_cc_scene_Frustum_class = nullptr; static bool js_scene_Frustum_clone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_clone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Frustum result = cobj->clone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1216,14 +1234,14 @@ static bool js_scene_Frustum_createOrtho(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_createOrtho : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1243,14 +1261,14 @@ static bool js_scene_Frustum_split(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_split : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { - HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1270,9 +1288,9 @@ static bool js_scene_Frustum_transform(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_transform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1291,7 +1309,7 @@ static bool js_scene_Frustum_get_vertices(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Frustum_get_vertices : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->vertices, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->vertices, s.thisObject(), s.rval()); @@ -1302,7 +1320,7 @@ SE_BIND_PROP_GET(js_scene_Frustum_get_vertices) static bool js_scene_Frustum_set_vertices(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_set_vertices : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1318,7 +1336,7 @@ static bool js_scene_Frustum_get_planes(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Frustum_get_planes : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->planes, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->planes, s.thisObject(), s.rval()); @@ -1329,7 +1347,7 @@ SE_BIND_PROP_GET(js_scene_Frustum_get_planes) static bool js_scene_Frustum_set_planes(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Frustum_set_planes : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -1339,29 +1357,27 @@ static bool js_scene_Frustum_set_planes(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_scene_Frustum_set_planes) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Frustum * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Frustum* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("vertices", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->vertices), ctx); } json->getProperty("planes", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->planes), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } return ok; @@ -1371,26 +1387,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Frustum_finalize) static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Frustum* cobj = JSB_ALLOC(cc::scene::Frustum); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Frustum* cobj = JSB_ALLOC(cc::scene::Frustum); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -1412,7 +1426,7 @@ static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[2], &(cobj->type), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -1424,13 +1438,10 @@ static bool js_scene_Frustum_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_scene_Frustum_constructor, __jsb_cc_scene_Frustum_class, js_cc_scene_Frustum_finalize) - - static bool js_cc_scene_Frustum_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1460,15 +1471,15 @@ bool js_register_scene_Frustum(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_scene_AABB_proto = nullptr; -se::Class* __jsb_cc_scene_AABB_class = nullptr; +se::Class* __jsb_cc_scene_AABB_class = nullptr; static bool js_scene_AABB_contain(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_contain : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1488,9 +1499,9 @@ static bool js_scene_AABB_getLayout(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_getLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::AABBLayout* result = cobj->getLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1507,9 +1518,9 @@ static bool js_scene_AABB_initWithData(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_AABB_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1533,13 +1544,10 @@ static bool js_scene_AABB_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_AABB_constructor, __jsb_cc_scene_AABB_class, js_cc_scene_AABB_finalize) - - static bool js_cc_scene_AABB_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1566,15 +1574,15 @@ bool js_register_scene_AABB(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_SpotLight_proto = nullptr; -se::Class* __jsb_cc_scene_SpotLight_class = nullptr; +se::Class* __jsb_cc_scene_SpotLight_class = nullptr; static bool js_scene_SpotLight_getShadowBias(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1591,9 +1599,9 @@ static bool js_scene_SpotLight_getShadowEnabled(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getShadowEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1610,9 +1618,9 @@ static bool js_scene_SpotLight_getShadowNormalBias(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowNormalBias(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1629,9 +1637,9 @@ static bool js_scene_SpotLight_getShadowPcf(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_getShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShadowPcf(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1648,9 +1656,9 @@ static bool js_scene_SpotLight_setAABB(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1667,9 +1675,9 @@ static bool js_scene_SpotLight_setAngle(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAngle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1686,9 +1694,9 @@ static bool js_scene_SpotLight_setAspect(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setAspect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1705,9 +1713,9 @@ static bool js_scene_SpotLight_setDirection(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1724,9 +1732,9 @@ static bool js_scene_SpotLight_setFrustum(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setFrustum : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1743,9 +1751,9 @@ static bool js_scene_SpotLight_setLuminanceHDR(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setLuminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1762,9 +1770,9 @@ static bool js_scene_SpotLight_setLuminanceLDR(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setLuminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1781,9 +1789,9 @@ static bool js_scene_SpotLight_setNeedUpdate(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setNeedUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1800,9 +1808,9 @@ static bool js_scene_SpotLight_setPosition(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1819,9 +1827,9 @@ static bool js_scene_SpotLight_setRange(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1838,9 +1846,9 @@ static bool js_scene_SpotLight_setShadowBias(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1857,9 +1865,9 @@ static bool js_scene_SpotLight_setShadowEnabled(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1876,9 +1884,9 @@ static bool js_scene_SpotLight_setShadowNormalBias(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowNormalBias : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1895,9 +1903,9 @@ static bool js_scene_SpotLight_setShadowPcf(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setShadowPcf : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1914,9 +1922,9 @@ static bool js_scene_SpotLight_setSize(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SpotLight_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1940,13 +1948,10 @@ static bool js_scene_SpotLight_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_scene_SpotLight_constructor, __jsb_cc_scene_SpotLight_class, js_cc_scene_SpotLight_finalize) - - static bool js_cc_scene_SpotLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -1989,15 +1994,15 @@ bool js_register_scene_SpotLight(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_scene_SphereLight_proto = nullptr; -se::Class* __jsb_cc_scene_SphereLight_class = nullptr; +se::Class* __jsb_cc_scene_SphereLight_class = nullptr; static bool js_scene_SphereLight_setAABB(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setAABB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2014,9 +2019,9 @@ static bool js_scene_SphereLight_setLuminanceHDR(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setLuminanceHDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2033,9 +2038,9 @@ static bool js_scene_SphereLight_setLuminanceLDR(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setLuminanceLDR : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2052,9 +2057,9 @@ static bool js_scene_SphereLight_setPosition(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2071,9 +2076,9 @@ static bool js_scene_SphereLight_setRange(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2090,9 +2095,9 @@ static bool js_scene_SphereLight_setSize(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SphereLight_setSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2116,13 +2121,10 @@ static bool js_scene_SphereLight_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_SphereLight_constructor, __jsb_cc_scene_SphereLight_class, js_cc_scene_SphereLight_finalize) - - static bool js_cc_scene_SphereLight_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2152,15 +2154,15 @@ bool js_register_scene_SphereLight(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_Model_proto = nullptr; -se::Class* __jsb_cc_scene_Model_class = nullptr; +se::Class* __jsb_cc_scene_Model_class = nullptr; static bool js_scene_Model_getCastShadow(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getCastShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getCastShadow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2177,9 +2179,9 @@ static bool js_scene_Model_getEnabled(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2196,9 +2198,9 @@ static bool js_scene_Model_getInstMatWorldIdx(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstMatWorldIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int32_t result = cobj->getInstMatWorldIdx(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2215,9 +2217,9 @@ static bool js_scene_Model_getInstanceAttributes(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstanceAttributes : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::vector& result = cobj->getInstanceAttributes(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2234,9 +2236,9 @@ static bool js_scene_Model_getInstancedAttributeBlock(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedAttributeBlock : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::InstancedAttributeBlock* result = cobj->getInstancedAttributeBlock(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2253,9 +2255,9 @@ static bool js_scene_Model_getInstancedBuffer(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned char* result = cobj->getInstancedBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2272,9 +2274,9 @@ static bool js_scene_Model_getInstancedBufferSize(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getInstancedBufferSize : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getInstancedBufferSize(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2291,9 +2293,9 @@ static bool js_scene_Model_getLocalData(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getLocalData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float* result = cobj->getLocalData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2310,9 +2312,9 @@ static bool js_scene_Model_getNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Node* result = cobj->getNode(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2329,9 +2331,9 @@ static bool js_scene_Model_getReceiveShadow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getReceiveShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getReceiveShadow(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2348,11 +2350,11 @@ static bool js_scene_Model_getSubModels(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getSubModels : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSubModels(); + const std::vector& result = cobj->getSubModels(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_Model_getSubModels : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2367,9 +2369,9 @@ static bool js_scene_Model_getTransform(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Node* result = cobj->getTransform(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2386,9 +2388,9 @@ static bool js_scene_Model_getTransformUpdated(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getTransformUpdated : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getTransformUpdated(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2405,9 +2407,9 @@ static bool js_scene_Model_getUpdatStamp(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getUpdatStamp : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int32_t result = cobj->getUpdatStamp(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2424,9 +2426,9 @@ static bool js_scene_Model_getVisFlags(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getVisFlags : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getVisFlags(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2443,9 +2445,9 @@ static bool js_scene_Model_getWorldBoundBuffer(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_getWorldBoundBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Buffer* result = cobj->getWorldBoundBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2462,9 +2464,9 @@ static bool js_scene_Model_seVisFlag(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_seVisFlag : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2481,9 +2483,9 @@ static bool js_scene_Model_setBounds(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setBounds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2500,9 +2502,9 @@ static bool js_scene_Model_setCastShadow(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setCastShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2519,9 +2521,9 @@ static bool js_scene_Model_setEnabled(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2538,9 +2540,9 @@ static bool js_scene_Model_setInstMatWorldIdx(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setInstMatWorldIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2557,9 +2559,9 @@ static bool js_scene_Model_setLocalBuffer(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setLocalBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2576,9 +2578,9 @@ static bool js_scene_Model_setNode(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setNode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2595,9 +2597,9 @@ static bool js_scene_Model_setReceiveShadow(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setReceiveShadow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2614,11 +2616,11 @@ static bool js_scene_Model_setSubModel(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setSubModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -2635,9 +2637,9 @@ static bool js_scene_Model_setTransform(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2654,9 +2656,9 @@ static bool js_scene_Model_setWorldBoundBuffer(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_setWorldBoundBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2673,11 +2675,11 @@ static bool js_scene_Model_updateLightingmap(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateLightingmap : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2696,9 +2698,9 @@ static bool js_scene_Model_updateTransform(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateTransform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2715,9 +2717,9 @@ static bool js_scene_Model_updateUBOs(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateUBOs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2735,7 +2737,7 @@ static bool js_scene_Model_updateWorldBoundUBOs(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Model_updateWorldBoundUBOs : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldBoundUBOs(); return true; @@ -2756,13 +2758,10 @@ static bool js_scene_Model_constructor(se::State& s) // NOLINT(readability-ident } SE_BIND_CTOR(js_scene_Model_constructor, __jsb_cc_scene_Model_class, js_cc_scene_Model_finalize) - - static bool js_cc_scene_Model_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -2817,7 +2816,7 @@ bool js_register_scene_Model(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_cc_scene_Fog_proto = nullptr; -se::Class* __jsb_cc_scene_Fog_class = nullptr; +se::Class* __jsb_cc_scene_Fog_class = nullptr; static bool js_scene_Fog_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -2825,7 +2824,7 @@ static bool js_scene_Fog_get_enabled(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -2836,7 +2835,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_enabled) static bool js_scene_Fog_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2852,7 +2851,7 @@ static bool js_scene_Fog_get_accurate(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_accurate : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->accurate, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->accurate, s.thisObject(), s.rval()); @@ -2863,7 +2862,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_accurate) static bool js_scene_Fog_set_accurate(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_accurate : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2879,7 +2878,7 @@ static bool js_scene_Fog_get_type(se::State& s) // NOLINT(readability-identifier SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_type : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->type, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->type, s.thisObject(), s.rval()); @@ -2890,7 +2889,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_type) static bool js_scene_Fog_set_type(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_type : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2906,7 +2905,7 @@ static bool js_scene_Fog_get_density(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_density : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->density, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->density, s.thisObject(), s.rval()); @@ -2917,7 +2916,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_density) static bool js_scene_Fog_set_density(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_density : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2933,7 +2932,7 @@ static bool js_scene_Fog_get_start(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_start : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->start, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->start, s.thisObject(), s.rval()); @@ -2944,7 +2943,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_start) static bool js_scene_Fog_set_start(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_start : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2960,7 +2959,7 @@ static bool js_scene_Fog_get_end(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_end : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->end, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->end, s.thisObject(), s.rval()); @@ -2971,7 +2970,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_end) static bool js_scene_Fog_set_end(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_end : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -2987,7 +2986,7 @@ static bool js_scene_Fog_get_atten(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_atten : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->atten, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->atten, s.thisObject(), s.rval()); @@ -2998,7 +2997,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_atten) static bool js_scene_Fog_set_atten(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_atten : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3014,7 +3013,7 @@ static bool js_scene_Fog_get_top(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_top : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->top, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->top, s.thisObject(), s.rval()); @@ -3025,7 +3024,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_top) static bool js_scene_Fog_set_top(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_top : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3041,7 +3040,7 @@ static bool js_scene_Fog_get_range(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_range : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->range, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->range, s.thisObject(), s.rval()); @@ -3052,7 +3051,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_range) static bool js_scene_Fog_set_range(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_range : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3068,7 +3067,7 @@ static bool js_scene_Fog_get_color(se::State& s) // NOLINT(readability-identifie SE_PRECONDITION2(cobj, false, "js_scene_Fog_get_color : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->color, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->color, s.thisObject(), s.rval()); @@ -3079,7 +3078,7 @@ SE_BIND_PROP_GET(js_scene_Fog_get_color) static bool js_scene_Fog_set_color(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Fog_set_color : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3089,57 +3088,55 @@ static bool js_scene_Fog_set_color(se::State& s) // NOLINT(readability-identifie } SE_BIND_PROP_SET(js_scene_Fog_set_color) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Fog * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Fog* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("accurate", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->accurate), ctx); } json->getProperty("type", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->type), ctx); } json->getProperty("density", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->density), ctx); } json->getProperty("start", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->start), ctx); } json->getProperty("end", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->end), ctx); } json->getProperty("atten", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->atten), ctx); } json->getProperty("top", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->top), ctx); } json->getProperty("range", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->range), ctx); } json->getProperty("color", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->color), ctx); } return ok; @@ -3149,26 +3146,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Fog_finalize) static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Fog* cobj = JSB_ALLOC(cc::scene::Fog); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Fog* cobj = JSB_ALLOC(cc::scene::Fog); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3211,7 +3206,7 @@ static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identif ok &= sevalue_to_native(args[9], &(cobj->color), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3223,13 +3218,10 @@ static bool js_scene_Fog_constructor(se::State& s) // NOLINT(readability-identif } SE_BIND_CTOR(js_scene_Fog_constructor, __jsb_cc_scene_Fog_class, js_cc_scene_Fog_finalize) - - static bool js_cc_scene_Fog_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3263,7 +3255,7 @@ bool js_register_scene_Fog(se::Object* obj) // NOLINT(readability-identifier-nam return true; } se::Object* __jsb_cc_scene_Shadow_proto = nullptr; -se::Class* __jsb_cc_scene_Shadow_class = nullptr; +se::Class* __jsb_cc_scene_Shadow_class = nullptr; static bool js_scene_Shadow_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3271,7 +3263,7 @@ static bool js_scene_Shadow_get_enabled(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -3282,7 +3274,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_enabled) static bool js_scene_Shadow_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3298,7 +3290,7 @@ static bool js_scene_Shadow_get_shadowType(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowType : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadowType, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadowType, s.thisObject(), s.rval()); @@ -3309,7 +3301,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_shadowType) static bool js_scene_Shadow_set_shadowType(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowType : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3325,7 +3317,7 @@ static bool js_scene_Shadow_get_distance(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_distance : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->distance, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->distance, s.thisObject(), s.rval()); @@ -3336,7 +3328,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_distance) static bool js_scene_Shadow_set_distance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_distance : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3352,7 +3344,7 @@ static bool js_scene_Shadow_get_dirty(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_dirty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->dirty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->dirty, s.thisObject(), s.rval()); @@ -3363,7 +3355,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_dirty) static bool js_scene_Shadow_set_dirty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_dirty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3379,7 +3371,7 @@ static bool js_scene_Shadow_get_shadowMapDirty(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_shadowMapDirty : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadowMapDirty, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadowMapDirty, s.thisObject(), s.rval()); @@ -3390,7 +3382,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_shadowMapDirty) static bool js_scene_Shadow_set_shadowMapDirty(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_shadowMapDirty : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3406,7 +3398,7 @@ static bool js_scene_Shadow_get_instancePass(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_instancePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->instancePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->instancePass, s.thisObject(), s.rval()); @@ -3417,7 +3409,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_instancePass) static bool js_scene_Shadow_set_instancePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_instancePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3433,7 +3425,7 @@ static bool js_scene_Shadow_get_planarPass(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_planarPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->planarPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->planarPass, s.thisObject(), s.rval()); @@ -3444,7 +3436,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_planarPass) static bool js_scene_Shadow_set_planarPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_planarPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3460,7 +3452,7 @@ static bool js_scene_Shadow_get_color(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_color : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->color, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->color, s.thisObject(), s.rval()); @@ -3471,7 +3463,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_color) static bool js_scene_Shadow_set_color(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_color : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3487,7 +3479,7 @@ static bool js_scene_Shadow_get_size(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_size : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->size, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->size, s.thisObject(), s.rval()); @@ -3498,7 +3490,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_size) static bool js_scene_Shadow_set_size(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_size : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3514,7 +3506,7 @@ static bool js_scene_Shadow_get_normal(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_normal : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->normal, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->normal, s.thisObject(), s.rval()); @@ -3525,7 +3517,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_normal) static bool js_scene_Shadow_set_normal(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_normal : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3541,7 +3533,7 @@ static bool js_scene_Shadow_get_matLight(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Shadow_get_matLight : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matLight, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matLight, s.thisObject(), s.rval()); @@ -3552,7 +3544,7 @@ SE_BIND_PROP_GET(js_scene_Shadow_get_matLight) static bool js_scene_Shadow_set_matLight(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Shadow_set_matLight : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3562,61 +3554,59 @@ static bool js_scene_Shadow_set_matLight(se::State& s) // NOLINT(readability-ide } SE_BIND_PROP_SET(js_scene_Shadow_set_matLight) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Shadow * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Shadow* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("shadowType", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowType), ctx); } json->getProperty("distance", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->distance), ctx); } json->getProperty("dirty", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dirty), ctx); } json->getProperty("shadowMapDirty", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadowMapDirty), ctx); } json->getProperty("instancePass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->instancePass), ctx); } json->getProperty("planarPass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->planarPass), ctx); } json->getProperty("color", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->color), ctx); } json->getProperty("size", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->size), ctx); } json->getProperty("normal", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->normal), ctx); } json->getProperty("matLight", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matLight), ctx); } return ok; @@ -3626,26 +3616,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Shadow_finalize) static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Shadow* cobj = JSB_ALLOC(cc::scene::Shadow); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Shadow* cobj = JSB_ALLOC(cc::scene::Shadow); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -3691,7 +3679,7 @@ static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[10], &(cobj->matLight), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -3703,13 +3691,10 @@ static bool js_scene_Shadow_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Shadow_constructor, __jsb_cc_scene_Shadow_class, js_cc_scene_Shadow_finalize) - - static bool js_cc_scene_Shadow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -3744,7 +3729,7 @@ bool js_register_scene_Shadow(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Skybox_proto = nullptr; -se::Class* __jsb_cc_scene_Skybox_class = nullptr; +se::Class* __jsb_cc_scene_Skybox_class = nullptr; static bool js_scene_Skybox_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -3752,7 +3737,7 @@ static bool js_scene_Skybox_get_enabled(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -3763,7 +3748,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_enabled) static bool js_scene_Skybox_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3779,7 +3764,7 @@ static bool js_scene_Skybox_get_isRGBE(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_isRGBE : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isRGBE, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isRGBE, s.thisObject(), s.rval()); @@ -3790,7 +3775,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_isRGBE) static bool js_scene_Skybox_set_isRGBE(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_isRGBE : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3806,7 +3791,7 @@ static bool js_scene_Skybox_get_useIBL(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useIBL : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useIBL, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useIBL, s.thisObject(), s.rval()); @@ -3817,7 +3802,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useIBL) static bool js_scene_Skybox_set_useIBL(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useIBL : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3833,7 +3818,7 @@ static bool js_scene_Skybox_get_useHDR(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useHDR : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useHDR, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useHDR, s.thisObject(), s.rval()); @@ -3844,7 +3829,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useHDR) static bool js_scene_Skybox_set_useHDR(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useHDR : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3860,7 +3845,7 @@ static bool js_scene_Skybox_get_useDiffuseMap(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_useDiffuseMap : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->useDiffuseMap, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->useDiffuseMap, s.thisObject(), s.rval()); @@ -3871,7 +3856,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_useDiffuseMap) static bool js_scene_Skybox_set_useDiffuseMap(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_useDiffuseMap : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3887,7 +3872,7 @@ static bool js_scene_Skybox_get_model(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Skybox_get_model : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->model, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->model, s.thisObject(), s.rval()); @@ -3898,7 +3883,7 @@ SE_BIND_PROP_GET(js_scene_Skybox_get_model) static bool js_scene_Skybox_set_model(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Skybox_set_model : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3908,41 +3893,39 @@ static bool js_scene_Skybox_set_model(se::State& s) // NOLINT(readability-identi } SE_BIND_PROP_SET(js_scene_Skybox_set_model) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Skybox * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Skybox* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("isRGBE", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isRGBE), ctx); } json->getProperty("useIBL", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useIBL), ctx); } json->getProperty("useHDR", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useHDR), ctx); } json->getProperty("useDiffuseMap", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->useDiffuseMap), ctx); } json->getProperty("model", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->model), ctx); } return ok; @@ -3952,26 +3935,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Skybox_finalize) static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Skybox* cobj = JSB_ALLOC(cc::scene::Skybox); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Skybox* cobj = JSB_ALLOC(cc::scene::Skybox); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4002,7 +3983,7 @@ static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[5], &(cobj->model), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4014,13 +3995,10 @@ static bool js_scene_Skybox_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Skybox_constructor, __jsb_cc_scene_Skybox_class, js_cc_scene_Skybox_finalize) - - static bool js_cc_scene_Skybox_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4050,7 +4028,7 @@ bool js_register_scene_Skybox(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Ambient_proto = nullptr; -se::Class* __jsb_cc_scene_Ambient_class = nullptr; +se::Class* __jsb_cc_scene_Ambient_class = nullptr; static bool js_scene_Ambient_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4058,7 +4036,7 @@ static bool js_scene_Ambient_get_enabled(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -4069,7 +4047,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_enabled) static bool js_scene_Ambient_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4085,7 +4063,7 @@ static bool js_scene_Ambient_get_skyIllum(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_skyIllum : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skyIllum, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skyIllum, s.thisObject(), s.rval()); @@ -4096,7 +4074,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_skyIllum) static bool js_scene_Ambient_set_skyIllum(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_skyIllum : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4112,7 +4090,7 @@ static bool js_scene_Ambient_get_skyColor(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_skyColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skyColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skyColor, s.thisObject(), s.rval()); @@ -4123,7 +4101,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_skyColor) static bool js_scene_Ambient_set_skyColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_skyColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4139,7 +4117,7 @@ static bool js_scene_Ambient_get_groundAlbedo(se::State& s) // NOLINT(readabilit SE_PRECONDITION2(cobj, false, "js_scene_Ambient_get_groundAlbedo : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->groundAlbedo, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->groundAlbedo, s.thisObject(), s.rval()); @@ -4150,7 +4128,7 @@ SE_BIND_PROP_GET(js_scene_Ambient_get_groundAlbedo) static bool js_scene_Ambient_set_groundAlbedo(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Ambient_set_groundAlbedo : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4160,33 +4138,31 @@ static bool js_scene_Ambient_set_groundAlbedo(se::State& s) // NOLINT(readabilit } SE_BIND_PROP_SET(js_scene_Ambient_set_groundAlbedo) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Ambient * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Ambient* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("skyIllum", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skyIllum), ctx); } json->getProperty("skyColor", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skyColor), ctx); } json->getProperty("groundAlbedo", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->groundAlbedo), ctx); } return ok; @@ -4196,26 +4172,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Ambient_finalize) static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Ambient* cobj = JSB_ALLOC(cc::scene::Ambient); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Ambient* cobj = JSB_ALLOC(cc::scene::Ambient); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4240,7 +4214,7 @@ static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-ide ok &= sevalue_to_native(args[3], &(cobj->groundAlbedo), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4252,13 +4226,10 @@ static bool js_scene_Ambient_constructor(se::State& s) // NOLINT(readability-ide } SE_BIND_CTOR(js_scene_Ambient_constructor, __jsb_cc_scene_Ambient_class, js_cc_scene_Ambient_finalize) - - static bool js_cc_scene_Ambient_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4286,7 +4257,7 @@ bool js_register_scene_Ambient(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_cc_scene_OctreeInfo_proto = nullptr; -se::Class* __jsb_cc_scene_OctreeInfo_class = nullptr; +se::Class* __jsb_cc_scene_OctreeInfo_class = nullptr; static bool js_scene_OctreeInfo_get_enabled(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4294,7 +4265,7 @@ static bool js_scene_OctreeInfo_get_enabled(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->enabled, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->enabled, s.thisObject(), s.rval()); @@ -4305,7 +4276,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_enabled) static bool js_scene_OctreeInfo_set_enabled(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_enabled : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4321,7 +4292,7 @@ static bool js_scene_OctreeInfo_get_minPos(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_minPos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->minPos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->minPos, s.thisObject(), s.rval()); @@ -4332,7 +4303,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_minPos) static bool js_scene_OctreeInfo_set_minPos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_minPos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4348,7 +4319,7 @@ static bool js_scene_OctreeInfo_get_maxPos(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_maxPos : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->maxPos, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->maxPos, s.thisObject(), s.rval()); @@ -4359,7 +4330,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_maxPos) static bool js_scene_OctreeInfo_set_maxPos(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_maxPos : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4375,7 +4346,7 @@ static bool js_scene_OctreeInfo_get_depth(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_get_depth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->depth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->depth, s.thisObject(), s.rval()); @@ -4386,7 +4357,7 @@ SE_BIND_PROP_GET(js_scene_OctreeInfo_get_depth) static bool js_scene_OctreeInfo_set_depth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_OctreeInfo_set_depth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4396,33 +4367,31 @@ static bool js_scene_OctreeInfo_set_depth(se::State& s) // NOLINT(readability-id } SE_BIND_PROP_SET(js_scene_OctreeInfo_set_depth) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::OctreeInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::OctreeInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("enabled", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->enabled), ctx); } json->getProperty("minPos", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->minPos), ctx); } json->getProperty("maxPos", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->maxPos), ctx); } json->getProperty("depth", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->depth), ctx); } return ok; @@ -4432,26 +4401,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_OctreeInfo_finalize) static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::OctreeInfo* cobj = JSB_ALLOC(cc::scene::OctreeInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::OctreeInfo* cobj = JSB_ALLOC(cc::scene::OctreeInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -4476,7 +4443,7 @@ static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability- ok &= sevalue_to_native(args[3], &(cobj->depth), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -4488,13 +4455,10 @@ static bool js_scene_OctreeInfo_constructor(se::State& s) // NOLINT(readability- } SE_BIND_CTOR(js_scene_OctreeInfo_constructor, __jsb_cc_scene_OctreeInfo_class, js_cc_scene_OctreeInfo_finalize) - - static bool js_cc_scene_OctreeInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -4522,7 +4486,7 @@ bool js_register_scene_OctreeInfo(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_cc_scene_PipelineSharedSceneData_proto = nullptr; -se::Class* __jsb_cc_scene_PipelineSharedSceneData_class = nullptr; +se::Class* __jsb_cc_scene_PipelineSharedSceneData_class = nullptr; static bool js_scene_PipelineSharedSceneData_get_isHDR(se::State& s) // NOLINT(readability-identifier-naming) { @@ -4530,7 +4494,7 @@ static bool js_scene_PipelineSharedSceneData_get_isHDR(se::State& s) // NOLINT(r SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_isHDR : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->isHDR, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->isHDR, s.thisObject(), s.rval()); @@ -4541,7 +4505,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_isHDR) static bool js_scene_PipelineSharedSceneData_set_isHDR(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_isHDR : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4557,7 +4521,7 @@ static bool js_scene_PipelineSharedSceneData_get_shadingScale(se::State& s) // N SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_shadingScale : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadingScale, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadingScale, s.thisObject(), s.rval()); @@ -4568,7 +4532,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_shadingScale) static bool js_scene_PipelineSharedSceneData_set_shadingScale(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_shadingScale : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4584,7 +4548,7 @@ static bool js_scene_PipelineSharedSceneData_get_ambient(se::State& s) // NOLINT SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_ambient : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->ambient, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->ambient, s.thisObject(), s.rval()); @@ -4595,7 +4559,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_ambient) static bool js_scene_PipelineSharedSceneData_set_ambient(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_ambient : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4611,7 +4575,7 @@ static bool js_scene_PipelineSharedSceneData_get_shadow(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_shadow : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->shadow, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->shadow, s.thisObject(), s.rval()); @@ -4622,7 +4586,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_shadow) static bool js_scene_PipelineSharedSceneData_set_shadow(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_shadow : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4638,7 +4602,7 @@ static bool js_scene_PipelineSharedSceneData_get_skybox(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_skybox : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->skybox, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->skybox, s.thisObject(), s.rval()); @@ -4649,7 +4613,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_skybox) static bool js_scene_PipelineSharedSceneData_set_skybox(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_skybox : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4665,7 +4629,7 @@ static bool js_scene_PipelineSharedSceneData_get_fog(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_fog : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fog, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fog, s.thisObject(), s.rval()); @@ -4676,7 +4640,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_fog) static bool js_scene_PipelineSharedSceneData_set_fog(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_fog : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4692,7 +4656,7 @@ static bool js_scene_PipelineSharedSceneData_get_octree(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_octree : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->octree, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->octree, s.thisObject(), s.rval()); @@ -4703,7 +4667,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_octree) static bool js_scene_PipelineSharedSceneData_set_octree(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_octree : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4719,7 +4683,7 @@ static bool js_scene_PipelineSharedSceneData_get_geometryRendererPasses(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_geometryRendererPasses : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->geometryRendererPasses, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->geometryRendererPasses, s.thisObject(), s.rval()); @@ -4730,7 +4694,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_geometryRendererPasses) static bool js_scene_PipelineSharedSceneData_set_geometryRendererPasses(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_geometryRendererPasses : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4746,7 +4710,7 @@ static bool js_scene_PipelineSharedSceneData_get_geometryRendererShaders(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_geometryRendererShaders : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->geometryRendererShaders, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->geometryRendererShaders, s.thisObject(), s.rval()); @@ -4757,7 +4721,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_geometryRendererShaders) static bool js_scene_PipelineSharedSceneData_set_geometryRendererShaders(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_geometryRendererShaders : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4773,7 +4737,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembler(se SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembler : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryInputAssembler, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryInputAssembler, s.thisObject(), s.rval()); @@ -4784,7 +4748,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryInputAssembl static bool js_scene_PipelineSharedSceneData_set_occlusionQueryInputAssembler(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryInputAssembler : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4800,7 +4764,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryPass(se::State& s SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryPass, s.thisObject(), s.rval()); @@ -4811,7 +4775,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryPass) static bool js_scene_PipelineSharedSceneData_set_occlusionQueryPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4827,7 +4791,7 @@ static bool js_scene_PipelineSharedSceneData_get_occlusionQueryShader(se::State& SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_occlusionQueryShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->occlusionQueryShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->occlusionQueryShader, s.thisObject(), s.rval()); @@ -4838,7 +4802,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_occlusionQueryShader) static bool js_scene_PipelineSharedSceneData_set_occlusionQueryShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_occlusionQueryShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4854,7 +4818,7 @@ static bool js_scene_PipelineSharedSceneData_get_deferredLightPass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_deferredLightPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->deferredLightPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->deferredLightPass, s.thisObject(), s.rval()); @@ -4865,7 +4829,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_deferredLightPass) static bool js_scene_PipelineSharedSceneData_set_deferredLightPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_deferredLightPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4881,7 +4845,7 @@ static bool js_scene_PipelineSharedSceneData_get_deferredLightPassShader(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_deferredLightPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->deferredLightPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->deferredLightPassShader, s.thisObject(), s.rval()); @@ -4892,7 +4856,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_deferredLightPassShader) static bool js_scene_PipelineSharedSceneData_set_deferredLightPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_deferredLightPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4908,7 +4872,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomPrefilterPass(se::State& s SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomPrefilterPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomPrefilterPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomPrefilterPass, s.thisObject(), s.rval()); @@ -4919,7 +4883,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomPrefilterPass) static bool js_scene_PipelineSharedSceneData_set_bloomPrefilterPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomPrefilterPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4935,7 +4899,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader(se::St SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomPrefilterPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomPrefilterPassShader, s.thisObject(), s.rval()); @@ -4946,7 +4910,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomPrefilterPassShader) static bool js_scene_PipelineSharedSceneData_set_bloomPrefilterPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomPrefilterPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4962,7 +4926,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomDownsamplePass(se::State& SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomDownsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomDownsamplePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomDownsamplePass, s.thisObject(), s.rval()); @@ -4973,7 +4937,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomDownsamplePass) static bool js_scene_PipelineSharedSceneData_set_bloomDownsamplePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomDownsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -4989,7 +4953,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader(se::S SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomDownsamplePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomDownsamplePassShader, s.thisObject(), s.rval()); @@ -5000,7 +4964,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomDownsamplePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomDownsamplePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomDownsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5016,7 +4980,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomUpsamplePass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomUpsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomUpsamplePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomUpsamplePass, s.thisObject(), s.rval()); @@ -5027,7 +4991,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomUpsamplePass) static bool js_scene_PipelineSharedSceneData_set_bloomUpsamplePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomUpsamplePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5043,7 +5007,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader(se::Sta SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomUpsamplePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomUpsamplePassShader, s.thisObject(), s.rval()); @@ -5054,7 +5018,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomUpsamplePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomUpsamplePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomUpsamplePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5070,7 +5034,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomCombinePass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomCombinePass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomCombinePass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomCombinePass, s.thisObject(), s.rval()); @@ -5081,7 +5045,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomCombinePass) static bool js_scene_PipelineSharedSceneData_set_bloomCombinePass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomCombinePass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5097,7 +5061,7 @@ static bool js_scene_PipelineSharedSceneData_get_bloomCombinePassShader(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_bloomCombinePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->bloomCombinePassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->bloomCombinePassShader, s.thisObject(), s.rval()); @@ -5108,7 +5072,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_bloomCombinePassShader) static bool js_scene_PipelineSharedSceneData_set_bloomCombinePassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_bloomCombinePassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5124,7 +5088,7 @@ static bool js_scene_PipelineSharedSceneData_get_pipelinePostPass(se::State& s) SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_pipelinePostPass : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelinePostPass, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelinePostPass, s.thisObject(), s.rval()); @@ -5135,7 +5099,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_pipelinePostPass) static bool js_scene_PipelineSharedSceneData_set_pipelinePostPass(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_pipelinePostPass : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5151,7 +5115,7 @@ static bool js_scene_PipelineSharedSceneData_get_pipelinePostPassShader(se::Stat SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_get_pipelinePostPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->pipelinePostPassShader, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->pipelinePostPassShader, s.thisObject(), s.rval()); @@ -5162,7 +5126,7 @@ SE_BIND_PROP_GET(js_scene_PipelineSharedSceneData_get_pipelinePostPassShader) static bool js_scene_PipelineSharedSceneData_set_pipelinePostPassShader(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_PipelineSharedSceneData_set_pipelinePostPassShader : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5172,113 +5136,111 @@ static bool js_scene_PipelineSharedSceneData_set_pipelinePostPassShader(se::Stat } SE_BIND_PROP_SET(js_scene_PipelineSharedSceneData_set_pipelinePostPassShader) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::PipelineSharedSceneData * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::PipelineSharedSceneData* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("isHDR", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->isHDR), ctx); } json->getProperty("shadingScale", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadingScale), ctx); } json->getProperty("ambient", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->ambient), ctx); } json->getProperty("shadow", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shadow), ctx); } json->getProperty("skybox", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->skybox), ctx); } json->getProperty("fog", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->fog), ctx); } json->getProperty("octree", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->octree), ctx); } json->getProperty("geometryRendererPasses", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->geometryRendererPasses), ctx); } json->getProperty("geometryRendererShaders", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->geometryRendererShaders), ctx); } json->getProperty("occlusionQueryInputAssembler", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryInputAssembler), ctx); } json->getProperty("occlusionQueryPass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryPass), ctx); } json->getProperty("occlusionQueryShader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->occlusionQueryShader), ctx); } json->getProperty("deferredLightPass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->deferredLightPass), ctx); } json->getProperty("deferredLightPassShader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->deferredLightPassShader), ctx); } json->getProperty("bloomPrefilterPass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomPrefilterPass), ctx); } json->getProperty("bloomPrefilterPassShader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomPrefilterPassShader), ctx); } json->getProperty("bloomDownsamplePass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomDownsamplePass), ctx); } json->getProperty("bloomDownsamplePassShader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomDownsamplePassShader), ctx); } json->getProperty("bloomUpsamplePass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomUpsamplePass), ctx); } json->getProperty("bloomUpsamplePassShader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomUpsamplePassShader), ctx); } json->getProperty("bloomCombinePass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomCombinePass), ctx); } json->getProperty("bloomCombinePassShader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bloomCombinePassShader), ctx); } json->getProperty("pipelinePostPass", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelinePostPass), ctx); } json->getProperty("pipelinePostPassShader", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->pipelinePostPassShader), ctx); } return ok; @@ -5288,26 +5250,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_PipelineSharedSceneData_finalize) static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::PipelineSharedSceneData* cobj = JSB_ALLOC(cc::scene::PipelineSharedSceneData); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::PipelineSharedSceneData* cobj = JSB_ALLOC(cc::scene::PipelineSharedSceneData); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5392,7 +5352,7 @@ static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT ok &= sevalue_to_native(args[23], &(cobj->pipelinePostPassShader), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5404,13 +5364,10 @@ static bool js_scene_PipelineSharedSceneData_constructor(se::State& s) // NOLINT } SE_BIND_CTOR(js_scene_PipelineSharedSceneData_constructor, __jsb_cc_scene_PipelineSharedSceneData_class, js_cc_scene_PipelineSharedSceneData_finalize) - - static bool js_cc_scene_PipelineSharedSceneData_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5458,7 +5415,7 @@ bool js_register_scene_PipelineSharedSceneData(se::Object* obj) // NOLINT(readab return true; } se::Object* __jsb_cc_scene_Root_proto = nullptr; -se::Class* __jsb_cc_scene_Root_class = nullptr; +se::Class* __jsb_cc_scene_Root_class = nullptr; static bool js_scene_Root_get_cumulativeTime(se::State& s) // NOLINT(readability-identifier-naming) { @@ -5466,7 +5423,7 @@ static bool js_scene_Root_get_cumulativeTime(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Root_get_cumulativeTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->cumulativeTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->cumulativeTime, s.thisObject(), s.rval()); @@ -5477,7 +5434,7 @@ SE_BIND_PROP_GET(js_scene_Root_get_cumulativeTime) static bool js_scene_Root_set_cumulativeTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Root_set_cumulativeTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5493,7 +5450,7 @@ static bool js_scene_Root_get_frameTime(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Root_get_frameTime : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameTime, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameTime, s.thisObject(), s.rval()); @@ -5504,7 +5461,7 @@ SE_BIND_PROP_GET(js_scene_Root_get_frameTime) static bool js_scene_Root_set_frameTime(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Root_set_frameTime : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -5514,25 +5471,23 @@ static bool js_scene_Root_set_frameTime(se::State& s) // NOLINT(readability-iden } SE_BIND_PROP_SET(js_scene_Root_set_frameTime) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Root * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Root* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("cumulativeTime", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->cumulativeTime), ctx); } json->getProperty("frameTime", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frameTime), ctx); } return ok; @@ -5542,26 +5497,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Root_finalize) static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Root* cobj = JSB_ALLOC(cc::scene::Root); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Root* cobj = JSB_ALLOC(cc::scene::Root); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -5580,7 +5533,7 @@ static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identi ok &= sevalue_to_native(args[1], &(cobj->frameTime), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -5592,13 +5545,10 @@ static bool js_scene_Root_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Root_constructor, __jsb_cc_scene_Root_class, js_cc_scene_Root_finalize) - - static bool js_cc_scene_Root_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -5624,15 +5574,15 @@ bool js_register_scene_Root(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_SubModel_proto = nullptr; -se::Class* __jsb_cc_scene_SubModel_class = nullptr; +se::Class* __jsb_cc_scene_SubModel_class = nullptr; static bool js_scene_SubModel_getId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5649,9 +5599,9 @@ static bool js_scene_SubModel_getOwner(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getOwner : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::Model* result = cobj->getOwner(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5668,9 +5618,9 @@ static bool js_scene_SubModel_getPass(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPass : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5690,11 +5640,11 @@ static bool js_scene_SubModel_getPasses(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getPasses(); + const std::vector& result = cobj->getPasses(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_SubModel_getPasses : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5709,9 +5659,9 @@ static bool js_scene_SubModel_getPlanarInstanceShader(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPlanarInstanceShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getPlanarInstanceShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5728,9 +5678,9 @@ static bool js_scene_SubModel_getPlanarShader(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPlanarShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::Shader* result = cobj->getPlanarShader(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5747,9 +5697,9 @@ static bool js_scene_SubModel_getPriority(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPriority()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5766,9 +5716,9 @@ static bool js_scene_SubModel_getShader(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5788,11 +5738,11 @@ static bool js_scene_SubModel_getShaders(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getShaders : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::vector& result = cobj->getShaders(); + std::vector& result = cobj->getShaders(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_SubModel_getShaders : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5807,9 +5757,9 @@ static bool js_scene_SubModel_getWorldBoundDescriptorSet(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_getWorldBoundDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getWorldBoundDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5826,9 +5776,9 @@ static bool js_scene_SubModel_setDescriptorSet(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5845,9 +5795,9 @@ static bool js_scene_SubModel_setInputAssembler(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setInputAssembler : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5864,9 +5814,9 @@ static bool js_scene_SubModel_setOwner(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setOwner : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5883,11 +5833,11 @@ static bool js_scene_SubModel_setPasses(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPasses : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SubModel_setPasses : Error processing arguments"); cobj->setPasses(arg0.value()); @@ -5902,9 +5852,9 @@ static bool js_scene_SubModel_setPlanarInstanceShader(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPlanarInstanceShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5921,9 +5871,9 @@ static bool js_scene_SubModel_setPlanarShader(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPlanarShader : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5940,9 +5890,9 @@ static bool js_scene_SubModel_setPriority(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5959,11 +5909,11 @@ static bool js_scene_SubModel_setShaders(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setShaders : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SubModel_setShaders : Error processing arguments"); cobj->setShaders(arg0.value()); @@ -5978,9 +5928,9 @@ static bool js_scene_SubModel_setWorldBoundDescriptorSet(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_setWorldBoundDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5998,7 +5948,7 @@ static bool js_scene_SubModel_update(se::State& s) // NOLINT(readability-identif auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SubModel_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -6019,13 +5969,10 @@ static bool js_scene_SubModel_constructor(se::State& s) // NOLINT(readability-id } SE_BIND_CTOR(js_scene_SubModel_constructor, __jsb_cc_scene_SubModel_class, js_cc_scene_SubModel_finalize) - - static bool js_cc_scene_SubModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6069,15 +6016,15 @@ bool js_register_scene_SubModel(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_cc_scene_Pass_proto = nullptr; -se::Class* __jsb_cc_scene_Pass_class = nullptr; +se::Class* __jsb_cc_scene_Pass_class = nullptr; static bool js_scene_Pass_getBatchingScheme(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getBatchingScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getBatchingScheme()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6094,9 +6041,9 @@ static bool js_scene_Pass_getBlendState(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::BlendState* result = cobj->getBlendState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6113,9 +6060,9 @@ static bool js_scene_Pass_getDepthStencilState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DepthStencilState* result = cobj->getDepthStencilState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6132,9 +6079,9 @@ static bool js_scene_Pass_getDescriptorSet(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::DescriptorSet* result = cobj->getDescriptorSet(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6151,9 +6098,9 @@ static bool js_scene_Pass_getDynamicState(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getDynamicState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getDynamicState()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6170,9 +6117,9 @@ static bool js_scene_Pass_getHash(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6189,9 +6136,9 @@ static bool js_scene_Pass_getPhase(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPhase : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getPhase(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6208,9 +6155,9 @@ static bool js_scene_Pass_getPipelineLayout(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::PipelineLayout* result = cobj->getPipelineLayout(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6227,9 +6174,9 @@ static bool js_scene_Pass_getPrimitive(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPrimitive()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6246,9 +6193,9 @@ static bool js_scene_Pass_getPriority(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPriority()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6265,9 +6212,9 @@ static bool js_scene_Pass_getRasterizerState(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::gfx::RasterizerState* result = cobj->getRasterizerState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6284,9 +6231,9 @@ static bool js_scene_Pass_getStage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_getStage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getStage()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6303,9 +6250,9 @@ static bool js_scene_Pass_initWithData(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_initWithData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6322,9 +6269,9 @@ static bool js_scene_Pass_setBatchingScheme(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setBatchingScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6341,9 +6288,9 @@ static bool js_scene_Pass_setBlendState(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setBlendState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6360,9 +6307,9 @@ static bool js_scene_Pass_setDepthStencilState(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDepthStencilState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6379,9 +6326,9 @@ static bool js_scene_Pass_setDescriptorSet(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDescriptorSet : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6398,9 +6345,9 @@ static bool js_scene_Pass_setDynamicState(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setDynamicState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6417,9 +6364,9 @@ static bool js_scene_Pass_setHash(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6436,9 +6383,9 @@ static bool js_scene_Pass_setPhase(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPhase : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6455,9 +6402,9 @@ static bool js_scene_Pass_setPipelineLayout(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPipelineLayout : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6474,9 +6421,9 @@ static bool js_scene_Pass_setPrimitive(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPrimitive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6493,9 +6440,9 @@ static bool js_scene_Pass_setPriority(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setPriority : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6512,9 +6459,9 @@ static bool js_scene_Pass_setRasterizerState(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setRasterizerState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6531,9 +6478,9 @@ static bool js_scene_Pass_setRootBufferDirty(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setRootBufferDirty : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6550,9 +6497,9 @@ static bool js_scene_Pass_setStage(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_setStage : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6570,7 +6517,7 @@ static bool js_scene_Pass_update(se::State& s) // NOLINT(readability-identifier- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Pass_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -6591,13 +6538,10 @@ static bool js_scene_Pass_constructor(se::State& s) // NOLINT(readability-identi } SE_BIND_CTOR(js_scene_Pass_constructor, __jsb_cc_scene_Pass_class, js_cc_scene_Pass_finalize) - - static bool js_cc_scene_Pass_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6648,15 +6592,15 @@ bool js_register_scene_Pass(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_cc_scene_BakedAnimInfo_proto = nullptr; -se::Class* __jsb_cc_scene_BakedAnimInfo_class = nullptr; +se::Class* __jsb_cc_scene_BakedAnimInfo_class = nullptr; static bool js_scene_BakedAnimInfo_getDirty(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedAnimInfo_getDirty : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getDirty(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6669,29 +6613,27 @@ static bool js_scene_BakedAnimInfo_getDirty(se::State& s) // NOLINT(readability- } SE_BIND_FUNC(js_scene_BakedAnimInfo_getDirty) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::BakedAnimInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::BakedAnimInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("buffer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } json->getProperty("data", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->data), ctx); } json->getProperty("dirty", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->dirty), ctx); } return ok; @@ -6701,26 +6643,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_BakedAnimInfo_finalize) static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::BakedAnimInfo* cobj = JSB_ALLOC(cc::scene::BakedAnimInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::BakedAnimInfo* cobj = JSB_ALLOC(cc::scene::BakedAnimInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6742,7 +6682,7 @@ static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readabili ok &= sevalue_to_native(args[2], &(cobj->dirty), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6754,13 +6694,10 @@ static bool js_scene_BakedAnimInfo_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_scene_BakedAnimInfo_constructor, __jsb_cc_scene_BakedAnimInfo_class, js_cc_scene_BakedAnimInfo_finalize) - - static bool js_cc_scene_BakedAnimInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6785,35 +6722,33 @@ bool js_register_scene_BakedAnimInfo(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_scene_BakedJointInfo_proto = nullptr; -se::Class* __jsb_cc_scene_BakedJointInfo_class = nullptr; +se::Class* __jsb_cc_scene_BakedJointInfo_class = nullptr; - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::BakedJointInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::BakedJointInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("boundsInfo", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->boundsInfo), ctx); } json->getProperty("jointTextureInfo", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->jointTextureInfo), ctx); } json->getProperty("animInfo", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->animInfo), ctx); } json->getProperty("buffer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffer), ctx); } return ok; @@ -6823,26 +6758,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_BakedJointInfo_finalize) static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::BakedJointInfo* cobj = JSB_ALLOC(cc::scene::BakedJointInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::BakedJointInfo* cobj = JSB_ALLOC(cc::scene::BakedJointInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -6867,7 +6800,7 @@ static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readabil ok &= sevalue_to_native(args[3], &(cobj->buffer), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -6879,13 +6812,10 @@ static bool js_scene_BakedJointInfo_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_scene_BakedJointInfo_constructor, __jsb_cc_scene_BakedJointInfo_class, js_cc_scene_BakedJointInfo_finalize) - - static bool js_cc_scene_BakedJointInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -6909,15 +6839,15 @@ bool js_register_scene_BakedJointInfo(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_scene_BakedSkinningModel_proto = nullptr; -se::Class* __jsb_cc_scene_BakedSkinningModel_class = nullptr; +se::Class* __jsb_cc_scene_BakedSkinningModel_class = nullptr; static bool js_scene_BakedSkinningModel_setAnimInfoIdx(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_setAnimInfoIdx : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6934,11 +6864,11 @@ static bool js_scene_BakedSkinningModel_setJointMedium(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_setJointMedium : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -6955,9 +6885,9 @@ static bool js_scene_BakedSkinningModel_updateModelBounds(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_BakedSkinningModel_updateModelBounds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6981,13 +6911,10 @@ static bool js_scene_BakedSkinningModel_constructor(se::State& s) // NOLINT(read } SE_BIND_CTOR(js_scene_BakedSkinningModel_constructor, __jsb_cc_scene_BakedSkinningModel_class, js_cc_scene_BakedSkinningModel_finalize) - - static bool js_cc_scene_BakedSkinningModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7014,39 +6941,37 @@ bool js_register_scene_BakedSkinningModel(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_cc_scene_DrawBatch2D_proto = nullptr; -se::Class* __jsb_cc_scene_DrawBatch2D_class = nullptr; +se::Class* __jsb_cc_scene_DrawBatch2D_class = nullptr; - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::DrawBatch2D * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::DrawBatch2D* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("visFlags", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->visFlags), ctx); } json->getProperty("descriptorSet", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->descriptorSet), ctx); } json->getProperty("inputAssembler", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->inputAssembler), ctx); } json->getProperty("passes", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->passes), ctx); } json->getProperty("shaders", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->shaders), ctx); } return ok; @@ -7056,26 +6981,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_DrawBatch2D_finalize) static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::DrawBatch2D* cobj = JSB_ALLOC(cc::scene::DrawBatch2D); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::DrawBatch2D* cobj = JSB_ALLOC(cc::scene::DrawBatch2D); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7103,7 +7026,7 @@ static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability ok &= sevalue_to_native(args[4], &(cobj->shaders), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7115,13 +7038,10 @@ static bool js_scene_DrawBatch2D_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_DrawBatch2D_constructor, __jsb_cc_scene_DrawBatch2D_class, js_cc_scene_DrawBatch2D_finalize) - - static bool js_cc_scene_DrawBatch2D_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7145,35 +7065,33 @@ bool js_register_scene_DrawBatch2D(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_JointTransform_proto = nullptr; -se::Class* __jsb_cc_scene_JointTransform_class = nullptr; +se::Class* __jsb_cc_scene_JointTransform_class = nullptr; - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::JointTransform * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::JointTransform* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("node", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->node), ctx); } json->getProperty("local", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->local), ctx); } json->getProperty("world", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->world), ctx); } json->getProperty("stamp", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->stamp), ctx); } return ok; @@ -7183,26 +7101,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_JointTransform_finalize) static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::JointTransform* cobj = JSB_ALLOC(cc::scene::JointTransform); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::JointTransform* cobj = JSB_ALLOC(cc::scene::JointTransform); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7227,7 +7143,7 @@ static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readabil ok &= sevalue_to_native(args[3], &(cobj->stamp), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7239,13 +7155,10 @@ static bool js_scene_JointTransform_constructor(se::State& s) // NOLINT(readabil } SE_BIND_CTOR(js_scene_JointTransform_constructor, __jsb_cc_scene_JointTransform_class, js_cc_scene_JointTransform_finalize) - - static bool js_cc_scene_JointTransform_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7269,47 +7182,45 @@ bool js_register_scene_JointTransform(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_cc_scene_JointInfo_proto = nullptr; -se::Class* __jsb_cc_scene_JointInfo_class = nullptr; +se::Class* __jsb_cc_scene_JointInfo_class = nullptr; - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::JointInfo * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::JointInfo* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("bound", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bound), ctx); } json->getProperty("target", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->target), ctx); } json->getProperty("bindpose", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->bindpose), ctx); } json->getProperty("transform", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->transform), ctx); } json->getProperty("parents", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->parents), ctx); } json->getProperty("buffers", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->buffers), ctx); } json->getProperty("indices", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->indices), ctx); } return ok; @@ -7319,26 +7230,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_JointInfo_finalize) static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::JointInfo* cobj = JSB_ALLOC(cc::scene::JointInfo); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::JointInfo* cobj = JSB_ALLOC(cc::scene::JointInfo); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -7372,7 +7281,7 @@ static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-i ok &= sevalue_to_native(args[6], &(cobj->indices), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -7384,13 +7293,10 @@ static bool js_scene_JointInfo_constructor(se::State& s) // NOLINT(readability-i } SE_BIND_CTOR(js_scene_JointInfo_constructor, __jsb_cc_scene_JointInfo_class, js_cc_scene_JointInfo_finalize) - - static bool js_cc_scene_JointInfo_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7414,17 +7320,17 @@ bool js_register_scene_JointInfo(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_cc_scene_SkinningModel_proto = nullptr; -se::Class* __jsb_cc_scene_SkinningModel_class = nullptr; +se::Class* __jsb_cc_scene_SkinningModel_class = nullptr; static bool js_scene_SkinningModel_setBuffers(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setBuffers : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); SE_PRECONDITION2(ok, false, "js_scene_SkinningModel_setBuffers : Error processing arguments"); cobj->setBuffers(arg0.value()); @@ -7439,11 +7345,11 @@ static bool js_scene_SkinningModel_setIndicesAndJoints(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setIndicesAndJoints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; HolderType, false> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -7460,9 +7366,9 @@ static bool js_scene_SkinningModel_setNeedUpdate(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_setNeedUpdate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7479,11 +7385,11 @@ static bool js_scene_SkinningModel_updateLocalDescriptors(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_SkinningModel_updateLocalDescriptors : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -7507,13 +7413,10 @@ static bool js_scene_SkinningModel_constructor(se::State& s) // NOLINT(readabili } SE_BIND_CTOR(js_scene_SkinningModel_constructor, __jsb_cc_scene_SkinningModel_class, js_cc_scene_SkinningModel_finalize) - - static bool js_cc_scene_SkinningModel_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -7541,14 +7444,14 @@ bool js_register_scene_SkinningModel(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_cc_scene_RenderScene_proto = nullptr; -se::Class* __jsb_cc_scene_RenderScene_class = nullptr; +se::Class* __jsb_cc_scene_RenderScene_class = nullptr; static bool js_scene_RenderScene_activate(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_activate : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->activate(); return true; @@ -7562,9 +7465,9 @@ static bool js_scene_RenderScene_addBakedSkinningModel(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addBakedSkinningModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7581,9 +7484,9 @@ static bool js_scene_RenderScene_addBatch(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addBatch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7600,9 +7503,9 @@ static bool js_scene_RenderScene_addModel(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7619,9 +7522,9 @@ static bool js_scene_RenderScene_addSkinningModel(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSkinningModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7638,9 +7541,9 @@ static bool js_scene_RenderScene_addSphereLight(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSphereLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7657,9 +7560,9 @@ static bool js_scene_RenderScene_addSpotLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_addSpotLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7676,11 +7579,11 @@ static bool js_scene_RenderScene_getDrawBatch2Ds(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getDrawBatch2Ds : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getDrawBatch2Ds(); + const std::vector& result = cobj->getDrawBatch2Ds(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getDrawBatch2Ds : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7695,9 +7598,9 @@ static bool js_scene_RenderScene_getMainLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getMainLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::scene::DirectionalLight* result = cobj->getMainLight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7714,11 +7617,11 @@ static bool js_scene_RenderScene_getModels(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getModels : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getModels(); + const std::vector& result = cobj->getModels(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getModels : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7733,11 +7636,11 @@ static bool js_scene_RenderScene_getSphereLights(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getSphereLights : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSphereLights(); + const std::vector& result = cobj->getSphereLights(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getSphereLights : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7752,11 +7655,11 @@ static bool js_scene_RenderScene_getSpotLights(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_getSpotLights : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - const std::vector& result = cobj->getSpotLights(); + const std::vector& result = cobj->getSpotLights(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_scene_RenderScene_getSpotLights : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7769,32 +7672,38 @@ SE_BIND_FUNC(js_scene_RenderScene_getSpotLights) static bool js_scene_RenderScene_removeBatch(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_scene_RenderScene_removeBatch : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeBatch : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->removeBatch(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->removeBatch(arg0.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -7806,7 +7715,7 @@ static bool js_scene_RenderScene_removeBatches(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeBatches : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeBatches(); return true; @@ -7820,9 +7729,9 @@ static bool js_scene_RenderScene_removeModel(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeModel : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7840,7 +7749,7 @@ static bool js_scene_RenderScene_removeModels(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeModels : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeModels(); return true; @@ -7854,9 +7763,9 @@ static bool js_scene_RenderScene_removeSphereLight(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSphereLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7874,7 +7783,7 @@ static bool js_scene_RenderScene_removeSphereLights(se::State& s) // NOLINT(read auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSphereLights : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeSphereLights(); return true; @@ -7888,9 +7797,9 @@ static bool js_scene_RenderScene_removeSpotLight(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSpotLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7908,7 +7817,7 @@ static bool js_scene_RenderScene_removeSpotLights(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_removeSpotLights : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->removeSpotLights(); return true; @@ -7922,9 +7831,9 @@ static bool js_scene_RenderScene_setMainLight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_setMainLight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7941,9 +7850,9 @@ static bool js_scene_RenderScene_update(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderScene_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7967,13 +7876,10 @@ static bool js_scene_RenderScene_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_scene_RenderScene_constructor, __jsb_cc_scene_RenderScene_class, js_cc_scene_RenderScene_finalize) - - static bool js_cc_scene_RenderScene_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8019,15 +7925,15 @@ bool js_register_scene_RenderScene(se::Object* obj) // NOLINT(readability-identi return true; } se::Object* __jsb_cc_scene_RenderWindow_proto = nullptr; -se::Class* __jsb_cc_scene_RenderWindow_class = nullptr; +se::Class* __jsb_cc_scene_RenderWindow_class = nullptr; static bool js_scene_RenderWindow_getHeight(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8044,9 +7950,9 @@ static bool js_scene_RenderWindow_getWidth(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { unsigned int result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8065,7 +7971,7 @@ static bool js_scene_RenderWindow_get_swapchain(se::State& s) // NOLINT(readabil SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_get_swapchain : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->swapchain, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->swapchain, s.thisObject(), s.rval()); @@ -8076,7 +7982,7 @@ SE_BIND_PROP_GET(js_scene_RenderWindow_get_swapchain) static bool js_scene_RenderWindow_set_swapchain(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_set_swapchain : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8092,7 +7998,7 @@ static bool js_scene_RenderWindow_get_frameBuffer(se::State& s) // NOLINT(readab SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_get_frameBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frameBuffer, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frameBuffer, s.thisObject(), s.rval()); @@ -8103,7 +8009,7 @@ SE_BIND_PROP_GET(js_scene_RenderWindow_get_frameBuffer) static bool js_scene_RenderWindow_set_frameBuffer(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_RenderWindow_set_frameBuffer : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8113,25 +8019,23 @@ static bool js_scene_RenderWindow_set_frameBuffer(se::State& s) // NOLINT(readab } SE_BIND_PROP_SET(js_scene_RenderWindow_set_frameBuffer) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::RenderWindow * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::RenderWindow* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("swapchain", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->swapchain), ctx); } json->getProperty("frameBuffer", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frameBuffer), ctx); } return ok; @@ -8141,26 +8045,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_RenderWindow_finalize) static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::RenderWindow* cobj = JSB_ALLOC(cc::scene::RenderWindow); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::RenderWindow* cobj = JSB_ALLOC(cc::scene::RenderWindow); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -8179,7 +8081,7 @@ static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readabilit ok &= sevalue_to_native(args[1], &(cobj->frameBuffer), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -8191,13 +8093,10 @@ static bool js_scene_RenderWindow_constructor(se::State& s) // NOLINT(readabilit } SE_BIND_CTOR(js_scene_RenderWindow_constructor, __jsb_cc_scene_RenderWindow_class, js_cc_scene_RenderWindow_finalize) - - static bool js_cc_scene_RenderWindow_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -8225,7 +8124,7 @@ bool js_register_scene_RenderWindow(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_cc_scene_Camera_proto = nullptr; -se::Class* __jsb_cc_scene_Camera_class = nullptr; +se::Class* __jsb_cc_scene_Camera_class = nullptr; static bool js_scene_Camera_get_width(se::State& s) // NOLINT(readability-identifier-naming) { @@ -8233,7 +8132,7 @@ static bool js_scene_Camera_get_width(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_width : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->width, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->width, s.thisObject(), s.rval()); @@ -8244,7 +8143,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_width) static bool js_scene_Camera_set_width(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_width : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8260,7 +8159,7 @@ static bool js_scene_Camera_get_height(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_height : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->height, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->height, s.thisObject(), s.rval()); @@ -8271,7 +8170,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_height) static bool js_scene_Camera_set_height(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_height : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8287,7 +8186,7 @@ static bool js_scene_Camera_get_nearClip(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_nearClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->nearClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->nearClip, s.thisObject(), s.rval()); @@ -8298,7 +8197,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_nearClip) static bool js_scene_Camera_set_nearClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_nearClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8314,7 +8213,7 @@ static bool js_scene_Camera_get_farClip(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_farClip : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->farClip, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->farClip, s.thisObject(), s.rval()); @@ -8325,7 +8224,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_farClip) static bool js_scene_Camera_set_farClip(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_farClip : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8341,7 +8240,7 @@ static bool js_scene_Camera_get_clearFlag(se::State& s) // NOLINT(readability-id SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearFlag : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearFlag, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearFlag, s.thisObject(), s.rval()); @@ -8352,7 +8251,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearFlag) static bool js_scene_Camera_set_clearFlag(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearFlag : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8368,7 +8267,7 @@ static bool js_scene_Camera_get_exposure(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_exposure : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->exposure, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->exposure, s.thisObject(), s.rval()); @@ -8379,7 +8278,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_exposure) static bool js_scene_Camera_set_exposure(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_exposure : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8395,7 +8294,7 @@ static bool js_scene_Camera_get_clearDepth(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearDepth : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearDepth, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearDepth, s.thisObject(), s.rval()); @@ -8406,7 +8305,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearDepth) static bool js_scene_Camera_set_clearDepth(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearDepth : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8422,7 +8321,7 @@ static bool js_scene_Camera_get_fov(se::State& s) // NOLINT(readability-identifi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_fov : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->fov, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->fov, s.thisObject(), s.rval()); @@ -8433,7 +8332,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_fov) static bool js_scene_Camera_set_fov(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_fov : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8449,7 +8348,7 @@ static bool js_scene_Camera_get_aspect(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_aspect : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->aspect, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->aspect, s.thisObject(), s.rval()); @@ -8460,7 +8359,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_aspect) static bool js_scene_Camera_set_aspect(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_aspect : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8476,7 +8375,7 @@ static bool js_scene_Camera_get_viewPort(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_viewPort : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->viewPort, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->viewPort, s.thisObject(), s.rval()); @@ -8487,7 +8386,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_viewPort) static bool js_scene_Camera_set_viewPort(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_viewPort : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8503,7 +8402,7 @@ static bool js_scene_Camera_get_clearStencil(se::State& s) // NOLINT(readability SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearStencil : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearStencil, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearStencil, s.thisObject(), s.rval()); @@ -8514,7 +8413,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearStencil) static bool js_scene_Camera_set_clearStencil(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearStencil : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8530,7 +8429,7 @@ static bool js_scene_Camera_get_visibility(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_visibility : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->visibility, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->visibility, s.thisObject(), s.rval()); @@ -8541,7 +8440,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_visibility) static bool js_scene_Camera_set_visibility(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_visibility : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8557,7 +8456,7 @@ static bool js_scene_Camera_get_node(se::State& s) // NOLINT(readability-identif SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_node : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->node, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->node, s.thisObject(), s.rval()); @@ -8568,7 +8467,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_node) static bool js_scene_Camera_set_node(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_node : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8584,7 +8483,7 @@ static bool js_scene_Camera_get_scene(se::State& s) // NOLINT(readability-identi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_scene : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->scene, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->scene, s.thisObject(), s.rval()); @@ -8595,7 +8494,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_scene) static bool js_scene_Camera_set_scene(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_scene : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8611,7 +8510,7 @@ static bool js_scene_Camera_get_window(se::State& s) // NOLINT(readability-ident SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_window : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->window, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->window, s.thisObject(), s.rval()); @@ -8622,7 +8521,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_window) static bool js_scene_Camera_set_window(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_window : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8638,7 +8537,7 @@ static bool js_scene_Camera_get_frustum(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_frustum : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->frustum, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->frustum, s.thisObject(), s.rval()); @@ -8649,7 +8548,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_frustum) static bool js_scene_Camera_set_frustum(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_frustum : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8665,7 +8564,7 @@ static bool js_scene_Camera_get_forward(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_forward : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->forward, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->forward, s.thisObject(), s.rval()); @@ -8676,7 +8575,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_forward) static bool js_scene_Camera_set_forward(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_forward : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8692,7 +8591,7 @@ static bool js_scene_Camera_get_position(se::State& s) // NOLINT(readability-ide SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_position : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->position, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->position, s.thisObject(), s.rval()); @@ -8703,7 +8602,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_position) static bool js_scene_Camera_set_position(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_position : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8719,7 +8618,7 @@ static bool js_scene_Camera_get_clearColor(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_clearColor : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->clearColor, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->clearColor, s.thisObject(), s.rval()); @@ -8730,7 +8629,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_clearColor) static bool js_scene_Camera_set_clearColor(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_clearColor : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8746,7 +8645,7 @@ static bool js_scene_Camera_get_matView(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matView : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matView, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matView, s.thisObject(), s.rval()); @@ -8757,7 +8656,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matView) static bool js_scene_Camera_set_matView(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matView : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8773,7 +8672,7 @@ static bool js_scene_Camera_get_matViewProj(se::State& s) // NOLINT(readability- SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProj : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProj, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProj, s.thisObject(), s.rval()); @@ -8784,7 +8683,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProj) static bool js_scene_Camera_set_matViewProj(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProj : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8800,7 +8699,7 @@ static bool js_scene_Camera_get_matViewProjInv(se::State& s) // NOLINT(readabili SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjInv, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjInv, s.thisObject(), s.rval()); @@ -8811,7 +8710,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjInv) static bool js_scene_Camera_set_matViewProjInv(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8827,7 +8726,7 @@ static bool js_scene_Camera_get_matProj(se::State& s) // NOLINT(readability-iden SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProj : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProj, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProj, s.thisObject(), s.rval()); @@ -8838,7 +8737,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProj) static bool js_scene_Camera_set_matProj(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProj : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8854,7 +8753,7 @@ static bool js_scene_Camera_get_matProjInv(se::State& s) // NOLINT(readability-i SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjInv, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjInv, s.thisObject(), s.rval()); @@ -8865,7 +8764,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjInv) static bool js_scene_Camera_set_matProjInv(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjInv : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8881,7 +8780,7 @@ static bool js_scene_Camera_get_matViewProjOffscreen(se::State& s) // NOLINT(rea SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjOffscreen, s.thisObject(), s.rval()); @@ -8892,7 +8791,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjOffscreen) static bool js_scene_Camera_set_matViewProjOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8908,7 +8807,7 @@ static bool js_scene_Camera_get_matViewProjInvOffscreen(se::State& s) // NOLINT( SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matViewProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matViewProjInvOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matViewProjInvOffscreen, s.thisObject(), s.rval()); @@ -8919,7 +8818,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matViewProjInvOffscreen) static bool js_scene_Camera_set_matViewProjInvOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matViewProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8935,7 +8834,7 @@ static bool js_scene_Camera_get_matProjOffscreen(se::State& s) // NOLINT(readabi SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjOffscreen, s.thisObject(), s.rval()); @@ -8946,7 +8845,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjOffscreen) static bool js_scene_Camera_set_matProjOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8962,7 +8861,7 @@ static bool js_scene_Camera_get_matProjInvOffscreen(se::State& s) // NOLINT(read SE_PRECONDITION2(cobj, false, "js_scene_Camera_get_matProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->matProjInvOffscreen, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->matProjInvOffscreen, s.thisObject(), s.rval()); @@ -8973,7 +8872,7 @@ SE_BIND_PROP_GET(js_scene_Camera_get_matProjInvOffscreen) static bool js_scene_Camera_set_matProjInvOffscreen(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Camera_set_matProjInvOffscreen : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -8983,129 +8882,127 @@ static bool js_scene_Camera_set_matProjInvOffscreen(se::State& s) // NOLINT(read } SE_BIND_PROP_SET(js_scene_Camera_set_matProjInvOffscreen) - -template<> -bool sevalue_to_native(const se::Value &from, cc::scene::Camera * to, se::Object *ctx) -{ +template <> +bool sevalue_to_native(const se::Value& from, cc::scene::Camera* to, se::Object* ctx) { assert(from.isObject()); - se::Object *json = from.toObject(); - auto* data = reinterpret_cast(json->getPrivateData()); + se::Object* json = from.toObject(); + auto* data = reinterpret_cast(json->getPrivateData()); if (data) { *to = *data; return true; } se::Value field; - bool ok = true; + bool ok = true; json->getProperty("width", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->width), ctx); } json->getProperty("height", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->height), ctx); } json->getProperty("nearClip", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->nearClip), ctx); } json->getProperty("farClip", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->farClip), ctx); } json->getProperty("clearFlag", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearFlag), ctx); } json->getProperty("exposure", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->exposure), ctx); } json->getProperty("clearDepth", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearDepth), ctx); } json->getProperty("fov", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->fov), ctx); } json->getProperty("aspect", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->aspect), ctx); } json->getProperty("viewPort", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->viewPort), ctx); } json->getProperty("clearStencil", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearStencil), ctx); } json->getProperty("visibility", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->visibility), ctx); } json->getProperty("node", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->node), ctx); } json->getProperty("scene", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->scene), ctx); } json->getProperty("window", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->window), ctx); } json->getProperty("frustum", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->frustum), ctx); } json->getProperty("forward", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->forward), ctx); } json->getProperty("position", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->position), ctx); } json->getProperty("clearColor", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->clearColor), ctx); } json->getProperty("matView", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matView), ctx); } json->getProperty("matViewProj", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProj), ctx); } json->getProperty("matViewProjInv", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjInv), ctx); } json->getProperty("matProj", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProj), ctx); } json->getProperty("matProjInv", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjInv), ctx); } json->getProperty("matViewProjOffscreen", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjOffscreen), ctx); } json->getProperty("matViewProjInvOffscreen", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matViewProjInvOffscreen), ctx); } json->getProperty("matProjOffscreen", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjOffscreen), ctx); } json->getProperty("matProjInvOffscreen", &field); - if(!field.isNullOrUndefined()) { + if (!field.isNullOrUndefined()) { ok &= sevalue_to_native(field, &(to->matProjInvOffscreen), ctx); } return ok; @@ -9115,26 +9012,24 @@ SE_DECLARE_FINALIZE_FUNC(js_cc_scene_Camera_finalize) static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); - if(argc == 0) - { + if (argc == 0) { cc::scene::Camera* cobj = JSB_ALLOC(cc::scene::Camera); s.thisObject()->setPrivateData(cobj); se::NonRefNativePtrCreatedByCtorMap::emplace(cobj); return true; } - if(argc == 1 && args[0].isObject()) - { - se::Object *json = args[0].toObject(); - se::Value field; + if (argc == 1 && args[0].isObject()) { + se::Object* json = args[0].toObject(); + se::Value field; cc::scene::Camera* cobj = JSB_ALLOC(cc::scene::Camera); ok &= sevalue_to_native(args[0], cobj, s.thisObject()); - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("argument convertion error"); return false; @@ -9231,7 +9126,7 @@ static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-iden ok &= sevalue_to_native(args[27], &(cobj->matProjInvOffscreen), nullptr); } - if(!ok) { + if (!ok) { JSB_FREE(cobj); SE_REPORT_ERROR("Argument convertion error"); return false; @@ -9243,13 +9138,10 @@ static bool js_scene_Camera_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Camera_constructor, __jsb_cc_scene_Camera_class, js_cc_scene_Camera_finalize) - - static bool js_cc_scene_Camera_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9301,15 +9193,15 @@ bool js_register_scene_Camera(se::Object* obj) // NOLINT(readability-identifier- return true; } se::Object* __jsb_cc_scene_Sphere_proto = nullptr; -se::Class* __jsb_cc_scene_Sphere_class = nullptr; +se::Class* __jsb_cc_scene_Sphere_class = nullptr; static bool js_scene_Sphere_getCenter(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_getCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const cc::Vec3& result = cobj->getCenter(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9326,9 +9218,9 @@ static bool js_scene_Sphere_getRadius(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_getRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRadius(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9345,9 +9237,9 @@ static bool js_scene_Sphere_setCenter(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_setCenter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9364,9 +9256,9 @@ static bool js_scene_Sphere_setRadius(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_scene_Sphere_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9390,13 +9282,10 @@ static bool js_scene_Sphere_constructor(se::State& s) // NOLINT(readability-iden } SE_BIND_CTOR(js_scene_Sphere_constructor, __jsb_cc_scene_Sphere_class, js_cc_scene_Sphere_finalize) - - static bool js_cc_scene_Sphere_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -9423,12 +9312,10 @@ bool js_register_scene_Sphere(se::Object* obj) // NOLINT(readability-identifier- se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_scene(se::Object* obj) -{ +bool register_all_scene(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("ns", &nsVal)) - { + if (!obj->getProperty("ns", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("ns", nsVal); @@ -9468,4 +9355,3 @@ bool register_all_scene(se::Object* obj) js_register_scene_Sphere(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index babd985e18..7ce5795c15 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -1,30 +1,54 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include +#include "base/Config.h" +#include "cocos/bindings/auto/jsb_gfx_auto.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/bindings/auto/jsb_gfx_auto.h" -#include "cocos/scene/Node.h" +#include "cocos/scene/AABB.h" #include "cocos/scene/BaseNode.h" -#include "cocos/scene/Scene.h" -#include "cocos/scene/Light.h" -#include "cocos/scene/DirectionalLight.h" -#include "cocos/scene/SpotLight.h" -#include "cocos/scene/SphereLight.h" -#include "cocos/scene/Model.h" -#include "cocos/scene/SubModel.h" -#include "cocos/scene/Pass.h" -#include "cocos/scene/RenderScene.h" -#include "cocos/scene/DrawBatch2D.h" -#include "cocos/scene/Camera.h" -#include "cocos/scene/RenderWindow.h" #include "cocos/scene/Camera.h" #include "cocos/scene/Define.h" -#include "cocos/scene/AABB.h" +#include "cocos/scene/DirectionalLight.h" +#include "cocos/scene/DrawBatch2D.h" +#include "cocos/scene/Light.h" +#include "cocos/scene/Model.h" +#include "cocos/scene/Node.h" +#include "cocos/scene/Pass.h" +#include "cocos/scene/RenderScene.h" +#include "cocos/scene/RenderWindow.h" +#include "cocos/scene/Scene.h" #include "cocos/scene/Sphere.h" +#include "cocos/scene/SphereLight.h" +#include "cocos/scene/SpotLight.h" +#include "cocos/scene/SubModel.h" extern se::Object* __jsb_cc_scene_BaseNode_proto; -extern se::Class* __jsb_cc_scene_BaseNode_class; +extern se::Class* __jsb_cc_scene_BaseNode_class; bool js_register_cc_scene_BaseNode(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -35,7 +59,7 @@ SE_DECLARE_FUNC(js_scene_BaseNode_setParent); SE_DECLARE_FUNC(js_scene_BaseNode_BaseNode); extern se::Object* __jsb_cc_scene_Scene_proto; -extern se::Class* __jsb_cc_scene_Scene_class; +extern se::Class* __jsb_cc_scene_Scene_class; bool js_register_cc_scene_Scene(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -44,7 +68,7 @@ JSB_REGISTER_OBJECT_TYPE(cc::scene::Scene); SE_DECLARE_FUNC(js_scene_Scene_Scene); extern se::Object* __jsb_cc_scene_Node_proto; -extern se::Class* __jsb_cc_scene_Node_class; +extern se::Class* __jsb_cc_scene_Node_class; bool js_register_cc_scene_Node(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -54,7 +78,7 @@ SE_DECLARE_FUNC(js_scene_Node_initWithData); SE_DECLARE_FUNC(js_scene_Node_Node); extern se::Object* __jsb_cc_scene_Light_proto; -extern se::Class* __jsb_cc_scene_Light_class; +extern se::Class* __jsb_cc_scene_Light_class; bool js_register_cc_scene_Light(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -70,7 +94,7 @@ SE_DECLARE_FUNC(js_scene_Light_setUseColorTemperature); SE_DECLARE_FUNC(js_scene_Light_update); extern se::Object* __jsb_cc_scene_DirectionalLight_proto; -extern se::Class* __jsb_cc_scene_DirectionalLight_class; +extern se::Class* __jsb_cc_scene_DirectionalLight_class; bool js_register_cc_scene_DirectionalLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -104,26 +128,26 @@ SE_DECLARE_FUNC(js_scene_DirectionalLight_setShadowSaturation); SE_DECLARE_FUNC(js_scene_DirectionalLight_DirectionalLight); extern se::Object* __jsb_cc_scene_Plane_proto; -extern se::Class* __jsb_cc_scene_Plane_class; +extern se::Class* __jsb_cc_scene_Plane_class; bool js_register_cc_scene_Plane(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Plane *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Plane*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Plane); SE_DECLARE_FUNC(js_scene_Plane_clone); SE_DECLARE_FUNC(js_scene_Plane_define); SE_DECLARE_FUNC(js_scene_Plane_distance); extern se::Object* __jsb_cc_scene_Frustum_proto; -extern se::Class* __jsb_cc_scene_Frustum_class; +extern se::Class* __jsb_cc_scene_Frustum_class; bool js_register_cc_scene_Frustum(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Frustum *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Frustum*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Frustum); SE_DECLARE_FUNC(js_scene_Frustum_clone); SE_DECLARE_FUNC(js_scene_Frustum_createOrtho); @@ -131,7 +155,7 @@ SE_DECLARE_FUNC(js_scene_Frustum_split); SE_DECLARE_FUNC(js_scene_Frustum_transform); extern se::Object* __jsb_cc_scene_AABB_proto; -extern se::Class* __jsb_cc_scene_AABB_class; +extern se::Class* __jsb_cc_scene_AABB_class; bool js_register_cc_scene_AABB(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -143,7 +167,7 @@ SE_DECLARE_FUNC(js_scene_AABB_initWithData); SE_DECLARE_FUNC(js_scene_AABB_AABB); extern se::Object* __jsb_cc_scene_SpotLight_proto; -extern se::Class* __jsb_cc_scene_SpotLight_class; +extern se::Class* __jsb_cc_scene_SpotLight_class; bool js_register_cc_scene_SpotLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -171,7 +195,7 @@ SE_DECLARE_FUNC(js_scene_SpotLight_setSize); SE_DECLARE_FUNC(js_scene_SpotLight_SpotLight); extern se::Object* __jsb_cc_scene_SphereLight_proto; -extern se::Class* __jsb_cc_scene_SphereLight_class; +extern se::Class* __jsb_cc_scene_SphereLight_class; bool js_register_cc_scene_SphereLight(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -186,7 +210,7 @@ SE_DECLARE_FUNC(js_scene_SphereLight_setSize); SE_DECLARE_FUNC(js_scene_SphereLight_SphereLight); extern se::Object* __jsb_cc_scene_Model_proto; -extern se::Class* __jsb_cc_scene_Model_class; +extern se::Class* __jsb_cc_scene_Model_class; bool js_register_cc_scene_Model(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -226,77 +250,77 @@ SE_DECLARE_FUNC(js_scene_Model_updateWorldBoundUBOs); SE_DECLARE_FUNC(js_scene_Model_Model); extern se::Object* __jsb_cc_scene_Fog_proto; -extern se::Class* __jsb_cc_scene_Fog_class; +extern se::Class* __jsb_cc_scene_Fog_class; bool js_register_cc_scene_Fog(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Fog *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Fog*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Fog); extern se::Object* __jsb_cc_scene_Shadow_proto; -extern se::Class* __jsb_cc_scene_Shadow_class; +extern se::Class* __jsb_cc_scene_Shadow_class; bool js_register_cc_scene_Shadow(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Shadow *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Shadow*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Shadow); extern se::Object* __jsb_cc_scene_Skybox_proto; -extern se::Class* __jsb_cc_scene_Skybox_class; +extern se::Class* __jsb_cc_scene_Skybox_class; bool js_register_cc_scene_Skybox(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Skybox *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Skybox*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Skybox); extern se::Object* __jsb_cc_scene_Ambient_proto; -extern se::Class* __jsb_cc_scene_Ambient_class; +extern se::Class* __jsb_cc_scene_Ambient_class; bool js_register_cc_scene_Ambient(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Ambient *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Ambient*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Ambient); extern se::Object* __jsb_cc_scene_OctreeInfo_proto; -extern se::Class* __jsb_cc_scene_OctreeInfo_class; +extern se::Class* __jsb_cc_scene_OctreeInfo_class; bool js_register_cc_scene_OctreeInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::OctreeInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::OctreeInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::OctreeInfo); extern se::Object* __jsb_cc_scene_PipelineSharedSceneData_proto; -extern se::Class* __jsb_cc_scene_PipelineSharedSceneData_class; +extern se::Class* __jsb_cc_scene_PipelineSharedSceneData_class; bool js_register_cc_scene_PipelineSharedSceneData(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::PipelineSharedSceneData *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::PipelineSharedSceneData*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::PipelineSharedSceneData); extern se::Object* __jsb_cc_scene_Root_proto; -extern se::Class* __jsb_cc_scene_Root_class; +extern se::Class* __jsb_cc_scene_Root_class; bool js_register_cc_scene_Root(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Root *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Root*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Root); extern se::Object* __jsb_cc_scene_SubModel_proto; -extern se::Class* __jsb_cc_scene_SubModel_class; +extern se::Class* __jsb_cc_scene_SubModel_class; bool js_register_cc_scene_SubModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -325,7 +349,7 @@ SE_DECLARE_FUNC(js_scene_SubModel_update); SE_DECLARE_FUNC(js_scene_SubModel_SubModel); extern se::Object* __jsb_cc_scene_Pass_proto; -extern se::Class* __jsb_cc_scene_Pass_class; +extern se::Class* __jsb_cc_scene_Pass_class; bool js_register_cc_scene_Pass(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -361,28 +385,28 @@ SE_DECLARE_FUNC(js_scene_Pass_update); SE_DECLARE_FUNC(js_scene_Pass_Pass); extern se::Object* __jsb_cc_scene_BakedAnimInfo_proto; -extern se::Class* __jsb_cc_scene_BakedAnimInfo_class; +extern se::Class* __jsb_cc_scene_BakedAnimInfo_class; bool js_register_cc_scene_BakedAnimInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::BakedAnimInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::BakedAnimInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::BakedAnimInfo); SE_DECLARE_FUNC(js_scene_BakedAnimInfo_getDirty); extern se::Object* __jsb_cc_scene_BakedJointInfo_proto; -extern se::Class* __jsb_cc_scene_BakedJointInfo_class; +extern se::Class* __jsb_cc_scene_BakedJointInfo_class; bool js_register_cc_scene_BakedJointInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::BakedJointInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::BakedJointInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::BakedJointInfo); extern se::Object* __jsb_cc_scene_BakedSkinningModel_proto; -extern se::Class* __jsb_cc_scene_BakedSkinningModel_class; +extern se::Class* __jsb_cc_scene_BakedSkinningModel_class; bool js_register_cc_scene_BakedSkinningModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -394,37 +418,37 @@ SE_DECLARE_FUNC(js_scene_BakedSkinningModel_updateModelBounds); SE_DECLARE_FUNC(js_scene_BakedSkinningModel_BakedSkinningModel); extern se::Object* __jsb_cc_scene_DrawBatch2D_proto; -extern se::Class* __jsb_cc_scene_DrawBatch2D_class; +extern se::Class* __jsb_cc_scene_DrawBatch2D_class; bool js_register_cc_scene_DrawBatch2D(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::DrawBatch2D *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::DrawBatch2D*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::DrawBatch2D); extern se::Object* __jsb_cc_scene_JointTransform_proto; -extern se::Class* __jsb_cc_scene_JointTransform_class; +extern se::Class* __jsb_cc_scene_JointTransform_class; bool js_register_cc_scene_JointTransform(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::JointTransform *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::JointTransform*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::JointTransform); extern se::Object* __jsb_cc_scene_JointInfo_proto; -extern se::Class* __jsb_cc_scene_JointInfo_class; +extern se::Class* __jsb_cc_scene_JointInfo_class; bool js_register_cc_scene_JointInfo(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::JointInfo *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::JointInfo*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::JointInfo); extern se::Object* __jsb_cc_scene_SkinningModel_proto; -extern se::Class* __jsb_cc_scene_SkinningModel_class; +extern se::Class* __jsb_cc_scene_SkinningModel_class; bool js_register_cc_scene_SkinningModel(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -437,7 +461,7 @@ SE_DECLARE_FUNC(js_scene_SkinningModel_updateLocalDescriptors); SE_DECLARE_FUNC(js_scene_SkinningModel_SkinningModel); extern se::Object* __jsb_cc_scene_RenderScene_proto; -extern se::Class* __jsb_cc_scene_RenderScene_class; +extern se::Class* __jsb_cc_scene_RenderScene_class; bool js_register_cc_scene_RenderScene(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -468,29 +492,29 @@ SE_DECLARE_FUNC(js_scene_RenderScene_update); SE_DECLARE_FUNC(js_scene_RenderScene_RenderScene); extern se::Object* __jsb_cc_scene_RenderWindow_proto; -extern se::Class* __jsb_cc_scene_RenderWindow_class; +extern se::Class* __jsb_cc_scene_RenderWindow_class; bool js_register_cc_scene_RenderWindow(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::RenderWindow *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::RenderWindow*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::RenderWindow); SE_DECLARE_FUNC(js_scene_RenderWindow_getHeight); SE_DECLARE_FUNC(js_scene_RenderWindow_getWidth); extern se::Object* __jsb_cc_scene_Camera_proto; -extern se::Class* __jsb_cc_scene_Camera_class; +extern se::Class* __jsb_cc_scene_Camera_class; bool js_register_cc_scene_Camera(se::Object* obj); bool register_all_scene(se::Object* obj); -template<> -bool sevalue_to_native(const se::Value &, cc::scene::Camera *, se::Object *ctx); +template <> +bool sevalue_to_native(const se::Value&, cc::scene::Camera*, se::Object* ctx); JSB_REGISTER_OBJECT_TYPE(cc::scene::Camera); extern se::Object* __jsb_cc_scene_Sphere_proto; -extern se::Class* __jsb_cc_scene_Sphere_class; +extern se::Class* __jsb_cc_scene_Sphere_class; bool js_register_cc_scene_Sphere(se::Object* obj); bool register_all_scene(se::Object* obj); @@ -501,4 +525,3 @@ SE_DECLARE_FUNC(js_scene_Sphere_getRadius); SE_DECLARE_FUNC(js_scene_Sphere_setCenter); SE_DECLARE_FUNC(js_scene_Sphere_setRadius); SE_DECLARE_FUNC(js_scene_Sphere_Sphere); - diff --git a/native/cocos/bindings/auto/jsb_spine_auto.cpp b/native/cocos/bindings/auto/jsb_spine_auto.cpp index c2e9323927..37c36d97d0 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.cpp +++ b/native/cocos/bindings/auto/jsb_spine_auto.cpp @@ -1,25 +1,50 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_spine_auto.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" #include "spine-creator-support/spine-cocos2dx.h" #ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) #endif #ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr + #define JSB_FREE(ptr) delete ptr #endif se::Object* __jsb_spine_Animation_proto = nullptr; -se::Class* __jsb_spine_Animation_class = nullptr; +se::Class* __jsb_spine_Animation_class = nullptr; static bool js_spine_Animation_getDuration(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_getDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDuration(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -36,9 +61,9 @@ static bool js_spine_Animation_getName(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -55,11 +80,11 @@ static bool js_spine_Animation_getTimelines(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_getTimelines : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTimelines(); + spine::Vector& result = cobj->getTimelines(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Animation_getTimelines : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -74,9 +99,9 @@ static bool js_spine_Animation_hasTimeline(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_hasTimeline : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -96,9 +121,9 @@ static bool js_spine_Animation_setDuration(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Animation_setDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -111,8 +136,6 @@ static bool js_spine_Animation_setDuration(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_spine_Animation_setDuration) - - bool js_register_spine_Animation(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Animation", obj, nullptr, nullptr); @@ -132,15 +155,15 @@ bool js_register_spine_Animation(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_spine_TrackEntry_proto = nullptr; -se::Class* __jsb_spine_TrackEntry_class = nullptr; +se::Class* __jsb_spine_TrackEntry_class = nullptr; static bool js_spine_TrackEntry_getAlpha(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAlpha : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAlpha(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -157,9 +180,9 @@ static bool js_spine_TrackEntry_getAnimation(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Animation* result = cobj->getAnimation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -176,9 +199,9 @@ static bool js_spine_TrackEntry_getAnimationEnd(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationEnd(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -195,9 +218,9 @@ static bool js_spine_TrackEntry_getAnimationLast(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationLast : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationLast(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -214,9 +237,9 @@ static bool js_spine_TrackEntry_getAnimationStart(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationStart : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationStart(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -233,9 +256,9 @@ static bool js_spine_TrackEntry_getAnimationTime(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAnimationTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAnimationTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -252,9 +275,9 @@ static bool js_spine_TrackEntry_getAttachmentThreshold(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getAttachmentThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAttachmentThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -271,9 +294,9 @@ static bool js_spine_TrackEntry_getDelay(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getDelay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDelay(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -290,9 +313,9 @@ static bool js_spine_TrackEntry_getDrawOrderThreshold(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getDrawOrderThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDrawOrderThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -309,9 +332,9 @@ static bool js_spine_TrackEntry_getEventThreshold(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getEventThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getEventThreshold(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -328,9 +351,9 @@ static bool js_spine_TrackEntry_getHoldPrevious(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getHoldPrevious : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getHoldPrevious(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -347,9 +370,9 @@ static bool js_spine_TrackEntry_getLoop(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getLoop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getLoop(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -366,9 +389,9 @@ static bool js_spine_TrackEntry_getMixBlend(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixBlend : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getMixBlend()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -385,9 +408,9 @@ static bool js_spine_TrackEntry_getMixDuration(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMixDuration(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -404,9 +427,9 @@ static bool js_spine_TrackEntry_getMixTime(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMixTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -423,9 +446,9 @@ static bool js_spine_TrackEntry_getMixingFrom(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixingFrom : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getMixingFrom(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -442,9 +465,9 @@ static bool js_spine_TrackEntry_getMixingTo(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getMixingTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getMixingTo(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -461,9 +484,9 @@ static bool js_spine_TrackEntry_getNext(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getNext : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getNext(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -480,9 +503,9 @@ static bool js_spine_TrackEntry_getTimeScale(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -499,9 +522,9 @@ static bool js_spine_TrackEntry_getTrackEnd(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTrackEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTrackEnd(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -518,9 +541,9 @@ static bool js_spine_TrackEntry_getTrackIndex(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTrackIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getTrackIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -537,9 +560,9 @@ static bool js_spine_TrackEntry_getTrackTime(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_getTrackTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTrackTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -556,9 +579,9 @@ static bool js_spine_TrackEntry_isComplete(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_isComplete : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isComplete(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -576,7 +599,7 @@ static bool js_spine_TrackEntry_resetRotationDirections(se::State& s) // NOLINT( auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_resetRotationDirections : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->resetRotationDirections(); return true; @@ -590,9 +613,9 @@ static bool js_spine_TrackEntry_setAlpha(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAlpha : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -609,9 +632,9 @@ static bool js_spine_TrackEntry_setAnimationEnd(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAnimationEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -628,9 +651,9 @@ static bool js_spine_TrackEntry_setAnimationLast(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAnimationLast : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -647,9 +670,9 @@ static bool js_spine_TrackEntry_setAnimationStart(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAnimationStart : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -666,9 +689,9 @@ static bool js_spine_TrackEntry_setAttachmentThreshold(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setAttachmentThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -685,9 +708,9 @@ static bool js_spine_TrackEntry_setDelay(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setDelay : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -704,9 +727,9 @@ static bool js_spine_TrackEntry_setDrawOrderThreshold(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setDrawOrderThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -723,9 +746,9 @@ static bool js_spine_TrackEntry_setEventThreshold(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setEventThreshold : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -742,9 +765,9 @@ static bool js_spine_TrackEntry_setHoldPrevious(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setHoldPrevious : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -761,9 +784,9 @@ static bool js_spine_TrackEntry_setLoop(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setLoop : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -780,9 +803,9 @@ static bool js_spine_TrackEntry_setMixBlend(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setMixBlend : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -799,9 +822,9 @@ static bool js_spine_TrackEntry_setMixDuration(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setMixDuration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -818,9 +841,9 @@ static bool js_spine_TrackEntry_setMixTime(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setMixTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -837,9 +860,9 @@ static bool js_spine_TrackEntry_setTimeScale(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -856,9 +879,9 @@ static bool js_spine_TrackEntry_setTrackEnd(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setTrackEnd : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -875,9 +898,9 @@ static bool js_spine_TrackEntry_setTrackTime(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TrackEntry_setTrackTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -890,8 +913,6 @@ static bool js_spine_TrackEntry_setTrackTime(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_spine_TrackEntry_setTrackTime) - - bool js_register_spine_TrackEntry(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TrackEntry", obj, nullptr, nullptr); @@ -946,58 +967,76 @@ bool js_register_spine_TrackEntry(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_spine_AnimationState_proto = nullptr; -se::Class* __jsb_spine_AnimationState_class = nullptr; +se::Class* __jsb_spine_AnimationState_class = nullptr; static bool js_spine_AnimationState_addAnimation(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_AnimationState_addAnimation : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_addAnimation : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::TrackEntry* result = cobj->addAnimation(arg0.value(), arg1.value(), arg2.value(), arg3.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_addAnimation : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::TrackEntry* result = cobj->addAnimation(arg0.value(), arg1.value(), arg2.value(), arg3.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_addAnimation : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -1008,13 +1047,13 @@ static bool js_spine_AnimationState_addEmptyAnimation(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_addEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -1034,9 +1073,9 @@ static bool js_spine_AnimationState_clearTrack(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_clearTrack : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1054,7 +1093,7 @@ static bool js_spine_AnimationState_clearTracks(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_clearTracks : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearTracks(); return true; @@ -1069,7 +1108,7 @@ static bool js_spine_AnimationState_disableQueue(se::State& s) // NOLINT(readabi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_disableQueue : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->disableQueue(); return true; @@ -1084,7 +1123,7 @@ static bool js_spine_AnimationState_enableQueue(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_enableQueue : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->enableQueue(); return true; @@ -1098,9 +1137,9 @@ static bool js_spine_AnimationState_getCurrent(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getCurrent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1120,9 +1159,9 @@ static bool js_spine_AnimationState_getData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::AnimationStateData* result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1139,9 +1178,9 @@ static bool js_spine_AnimationState_getTimeScale(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1158,11 +1197,11 @@ static bool js_spine_AnimationState_getTracks(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_getTracks : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTracks(); + spine::Vector& result = cobj->getTracks(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_getTracks : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -1175,21 +1214,27 @@ SE_BIND_FUNC(js_spine_AnimationState_getTracks) static bool js_spine_AnimationState_setAnimation(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_AnimationState_setAnimation : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setAnimation : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); spine::TrackEntry* result = cobj->setAnimation(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); @@ -1197,18 +1242,24 @@ static bool js_spine_AnimationState_setAnimation(se::State& s) // NOLINT(readabi SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); spine::TrackEntry* result = cobj->setAnimation(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); @@ -1216,7 +1267,7 @@ static bool js_spine_AnimationState_setAnimation(se::State& s) // NOLINT(readabi SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -1227,12 +1278,12 @@ static bool js_spine_AnimationState_setEmptyAnimation(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_AnimationState_setEmptyAnimation : Error processing arguments"); @@ -1251,9 +1302,9 @@ static bool js_spine_AnimationState_setEmptyAnimations(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setEmptyAnimations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1270,9 +1321,9 @@ static bool js_spine_AnimationState_setTimeScale(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1289,9 +1340,9 @@ static bool js_spine_AnimationState_update(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationState_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1304,8 +1355,6 @@ static bool js_spine_AnimationState_update(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_spine_AnimationState_update) - - bool js_register_spine_AnimationState(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationState", obj, nullptr, nullptr); @@ -1335,15 +1384,15 @@ bool js_register_spine_AnimationState(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_AnimationStateData_proto = nullptr; -se::Class* __jsb_spine_AnimationStateData_class = nullptr; +se::Class* __jsb_spine_AnimationStateData_class = nullptr; static bool js_spine_AnimationStateData_getDefaultMix(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_getDefaultMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getDefaultMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1360,9 +1409,9 @@ static bool js_spine_AnimationStateData_getMix(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_getMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -1384,9 +1433,9 @@ static bool js_spine_AnimationStateData_getSkeletonData(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_getSkeletonData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonData* result = cobj->getSkeletonData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1403,9 +1452,9 @@ static bool js_spine_AnimationStateData_setDefaultMix(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_setDefaultMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1420,52 +1469,68 @@ SE_BIND_FUNC(js_spine_AnimationStateData_setDefaultMix) static bool js_spine_AnimationStateData_setMix(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_AnimationStateData_setMix : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_AnimationStateData_setMix : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setMix(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); do { if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setMix(arg0.value(), arg1.value(), arg2.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_FUNC(js_spine_AnimationStateData_setMix) - - bool js_register_spine_AnimationStateData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AnimationStateData", obj, nullptr, nullptr); @@ -1485,15 +1550,15 @@ bool js_register_spine_AnimationStateData(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_Attachment_proto = nullptr; -se::Class* __jsb_spine_Attachment_class = nullptr; +se::Class* __jsb_spine_Attachment_class = nullptr; static bool js_spine_Attachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1511,7 +1576,7 @@ static bool js_spine_Attachment_dereference(se::State& s) // NOLINT(readability- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_dereference : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->dereference(); return true; @@ -1525,9 +1590,9 @@ static bool js_spine_Attachment_getName(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1544,9 +1609,9 @@ static bool js_spine_Attachment_getRefCount(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_getRefCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getRefCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1564,7 +1629,7 @@ static bool js_spine_Attachment_reference(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Attachment_reference : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->reference(); return true; @@ -1574,8 +1639,6 @@ static bool js_spine_Attachment_reference(se::State& s) // NOLINT(readability-id } SE_BIND_FUNC(js_spine_Attachment_reference) - - bool js_register_spine_Attachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Attachment", obj, nullptr, nullptr); @@ -1595,15 +1658,15 @@ bool js_register_spine_Attachment(se::Object* obj) // NOLINT(readability-identif return true; } se::Object* __jsb_spine_Timeline_proto = nullptr; -se::Class* __jsb_spine_Timeline_class = nullptr; +se::Class* __jsb_spine_Timeline_class = nullptr; static bool js_spine_Timeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Timeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1616,8 +1679,6 @@ static bool js_spine_Timeline_getPropertyId(se::State& s) // NOLINT(readability- } SE_BIND_FUNC(js_spine_Timeline_getPropertyId) - - bool js_register_spine_Timeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Timeline", obj, nullptr, nullptr); @@ -1633,15 +1694,15 @@ bool js_register_spine_Timeline(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_AttachmentTimeline_proto = nullptr; -se::Class* __jsb_spine_AttachmentTimeline_class = nullptr; +se::Class* __jsb_spine_AttachmentTimeline_class = nullptr; static bool js_spine_AttachmentTimeline_getAttachmentNames(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getAttachmentNames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::Vector& result = cobj->getAttachmentNames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1658,9 +1719,9 @@ static bool js_spine_AttachmentTimeline_getFrameCount(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1677,9 +1738,9 @@ static bool js_spine_AttachmentTimeline_getFrames(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1696,9 +1757,9 @@ static bool js_spine_AttachmentTimeline_getPropertyId(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1715,9 +1776,9 @@ static bool js_spine_AttachmentTimeline_getSlotIndex(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1734,12 +1795,12 @@ static bool js_spine_AttachmentTimeline_setFrame(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -1757,9 +1818,9 @@ static bool js_spine_AttachmentTimeline_setSlotIndex(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_AttachmentTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -1772,8 +1833,6 @@ static bool js_spine_AttachmentTimeline_setSlotIndex(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_spine_AttachmentTimeline_setSlotIndex) - - bool js_register_spine_AttachmentTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("AttachmentTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -1795,15 +1854,15 @@ bool js_register_spine_AttachmentTimeline(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_Bone_proto = nullptr; -se::Class* __jsb_spine_Bone_class = nullptr; +se::Class* __jsb_spine_Bone_class = nullptr; static bool js_spine_Bone_getA(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getA(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1820,9 +1879,9 @@ static bool js_spine_Bone_getAScaleX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1839,9 +1898,9 @@ static bool js_spine_Bone_getAScaleY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1858,9 +1917,9 @@ static bool js_spine_Bone_getAShearX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAShearX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1877,9 +1936,9 @@ static bool js_spine_Bone_getAShearY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1896,9 +1955,9 @@ static bool js_spine_Bone_getAX(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1915,9 +1974,9 @@ static bool js_spine_Bone_getAY(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1934,9 +1993,9 @@ static bool js_spine_Bone_getAppliedRotation(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getAppliedRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAppliedRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1953,9 +2012,9 @@ static bool js_spine_Bone_getB(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1972,9 +2031,9 @@ static bool js_spine_Bone_getC(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getC : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getC(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -1991,11 +2050,11 @@ static bool js_spine_Bone_getChildren(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getChildren : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getChildren(); + spine::Vector& result = cobj->getChildren(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Bone_getChildren : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -2010,9 +2069,9 @@ static bool js_spine_Bone_getD(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getD : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getD(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2029,9 +2088,9 @@ static bool js_spine_Bone_getData(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2048,9 +2107,9 @@ static bool js_spine_Bone_getParent(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2067,9 +2126,9 @@ static bool js_spine_Bone_getRotation(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2086,9 +2145,9 @@ static bool js_spine_Bone_getScaleX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2105,9 +2164,9 @@ static bool js_spine_Bone_getScaleY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2124,9 +2183,9 @@ static bool js_spine_Bone_getShearX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2143,9 +2202,9 @@ static bool js_spine_Bone_getShearY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2162,9 +2221,9 @@ static bool js_spine_Bone_getSkeleton(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton& result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2181,9 +2240,9 @@ static bool js_spine_Bone_getWorldRotationX(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldRotationX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldRotationX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2200,9 +2259,9 @@ static bool js_spine_Bone_getWorldRotationY(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldRotationY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldRotationY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2219,9 +2278,9 @@ static bool js_spine_Bone_getWorldScaleX(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2238,9 +2297,9 @@ static bool js_spine_Bone_getWorldScaleY(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2257,9 +2316,9 @@ static bool js_spine_Bone_getWorldToLocalRotationX(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldToLocalRotationX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldToLocalRotationX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2276,9 +2335,9 @@ static bool js_spine_Bone_getWorldToLocalRotationY(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldToLocalRotationY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldToLocalRotationY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2295,9 +2354,9 @@ static bool js_spine_Bone_getWorldX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2314,9 +2373,9 @@ static bool js_spine_Bone_getWorldY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2333,9 +2392,9 @@ static bool js_spine_Bone_getX(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2352,9 +2411,9 @@ static bool js_spine_Bone_getY(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2371,9 +2430,9 @@ static bool js_spine_Bone_isActive(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2390,9 +2449,9 @@ static bool js_spine_Bone_isAppliedValid(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_isAppliedValid : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isAppliedValid(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2409,9 +2468,9 @@ static bool js_spine_Bone_rotateWorld(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_rotateWorld : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2428,9 +2487,9 @@ static bool js_spine_Bone_setA(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setA : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2447,9 +2506,9 @@ static bool js_spine_Bone_setAScaleX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2466,9 +2525,9 @@ static bool js_spine_Bone_setAScaleY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2485,9 +2544,9 @@ static bool js_spine_Bone_setAShearX(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2504,9 +2563,9 @@ static bool js_spine_Bone_setAShearY(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2523,9 +2582,9 @@ static bool js_spine_Bone_setAX(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2542,9 +2601,9 @@ static bool js_spine_Bone_setAY(se::State& s) // NOLINT(readability-identifier-n { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2561,9 +2620,9 @@ static bool js_spine_Bone_setActive(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2580,9 +2639,9 @@ static bool js_spine_Bone_setAppliedRotation(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAppliedRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2599,9 +2658,9 @@ static bool js_spine_Bone_setAppliedValid(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setAppliedValid : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2618,9 +2677,9 @@ static bool js_spine_Bone_setB(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2637,9 +2696,9 @@ static bool js_spine_Bone_setC(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setC : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2656,9 +2715,9 @@ static bool js_spine_Bone_setD(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setD : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2675,9 +2734,9 @@ static bool js_spine_Bone_setRotation(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2694,9 +2753,9 @@ static bool js_spine_Bone_setScaleX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2713,9 +2772,9 @@ static bool js_spine_Bone_setScaleY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2732,9 +2791,9 @@ static bool js_spine_Bone_setShearX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2751,9 +2810,9 @@ static bool js_spine_Bone_setShearY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2771,7 +2830,7 @@ static bool js_spine_Bone_setToSetupPose(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -2785,9 +2844,9 @@ static bool js_spine_Bone_setWorldX(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2804,9 +2863,9 @@ static bool js_spine_Bone_setWorldY(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2823,9 +2882,9 @@ static bool js_spine_Bone_setX(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2842,9 +2901,9 @@ static bool js_spine_Bone_setY(se::State& s) // NOLINT(readability-identifier-na { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -2862,7 +2921,7 @@ static bool js_spine_Bone_update(se::State& s) // NOLINT(readability-identifier- auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Bone_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -2874,11 +2933,11 @@ SE_BIND_FUNC(js_spine_Bone_update) static bool js_spine_Bone_updateWorldTransform(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_Bone_updateWorldTransform : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_Bone_updateWorldTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 7) { HolderType arg0 = {}; @@ -2890,31 +2949,51 @@ static bool js_spine_Bone_updateWorldTransform(se::State& s) // NOLINT(readabili HolderType arg6 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[5], &arg5, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[6], &arg6, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->updateWorldTransform(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value(), arg5.value(), arg6.value()); return true; } - } while(false); + } while (false); do { if (argc == 0) { - cobj->updateWorldTransform(); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -2923,9 +3002,9 @@ SE_BIND_FUNC(js_spine_Bone_updateWorldTransform) static bool js_spine_Bone_setYDown(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -2940,9 +3019,9 @@ SE_BIND_FUNC(js_spine_Bone_setYDown) static bool js_spine_Bone_isYDown(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = spine::Bone::isYDown(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -2955,8 +3034,6 @@ static bool js_spine_Bone_isYDown(se::State& s) // NOLINT(readability-identifier } SE_BIND_FUNC(js_spine_Bone_isYDown) - - bool js_register_spine_Bone(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Bone", obj, nullptr, nullptr); @@ -3031,15 +3108,15 @@ bool js_register_spine_Bone(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_spine_BoneData_proto = nullptr; -se::Class* __jsb_spine_BoneData_class = nullptr; +se::Class* __jsb_spine_BoneData_class = nullptr; static bool js_spine_BoneData_getIndex(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3056,9 +3133,9 @@ static bool js_spine_BoneData_getLength(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getLength(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3075,9 +3152,9 @@ static bool js_spine_BoneData_getName(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3094,9 +3171,9 @@ static bool js_spine_BoneData_getParent(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getParent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData* result = cobj->getParent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3113,9 +3190,9 @@ static bool js_spine_BoneData_getRotation(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3132,9 +3209,9 @@ static bool js_spine_BoneData_getScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3151,9 +3228,9 @@ static bool js_spine_BoneData_getScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3170,9 +3247,9 @@ static bool js_spine_BoneData_getShearX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3189,9 +3266,9 @@ static bool js_spine_BoneData_getShearY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3208,9 +3285,9 @@ static bool js_spine_BoneData_getTransformMode(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getTransformMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getTransformMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3227,9 +3304,9 @@ static bool js_spine_BoneData_getX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3246,9 +3323,9 @@ static bool js_spine_BoneData_getY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3265,9 +3342,9 @@ static bool js_spine_BoneData_isSkinRequired(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_isSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSkinRequired(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3284,9 +3361,9 @@ static bool js_spine_BoneData_setLength(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3303,9 +3380,9 @@ static bool js_spine_BoneData_setRotation(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3322,9 +3399,9 @@ static bool js_spine_BoneData_setScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3341,9 +3418,9 @@ static bool js_spine_BoneData_setScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3360,9 +3437,9 @@ static bool js_spine_BoneData_setShearX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setShearX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3379,9 +3456,9 @@ static bool js_spine_BoneData_setShearY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3398,9 +3475,9 @@ static bool js_spine_BoneData_setSkinRequired(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3417,9 +3494,9 @@ static bool js_spine_BoneData_setTransformMode(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setTransformMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3436,9 +3513,9 @@ static bool js_spine_BoneData_setX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3455,9 +3532,9 @@ static bool js_spine_BoneData_setY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoneData_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3470,8 +3547,6 @@ static bool js_spine_BoneData_setY(se::State& s) // NOLINT(readability-identifie } SE_BIND_FUNC(js_spine_BoneData_setY) - - bool js_register_spine_BoneData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BoneData", obj, nullptr, nullptr); @@ -3509,15 +3584,15 @@ bool js_register_spine_BoneData(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_VertexAttachment_proto = nullptr; -se::Class* __jsb_spine_VertexAttachment_class = nullptr; +se::Class* __jsb_spine_VertexAttachment_class = nullptr; static bool js_spine_VertexAttachment_copyTo(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_copyTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3534,9 +3609,9 @@ static bool js_spine_VertexAttachment_getDeformAttachment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getDeformAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::VertexAttachment* result = cobj->getDeformAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3553,9 +3628,9 @@ static bool js_spine_VertexAttachment_getId(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3572,9 +3647,9 @@ static bool js_spine_VertexAttachment_getVertices(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getVertices : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getVertices(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3591,9 +3666,9 @@ static bool js_spine_VertexAttachment_getWorldVerticesLength(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_getWorldVerticesLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getWorldVerticesLength(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3610,9 +3685,9 @@ static bool js_spine_VertexAttachment_setDeformAttachment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_setDeformAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3629,9 +3704,9 @@ static bool js_spine_VertexAttachment_setWorldVerticesLength(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexAttachment_setWorldVerticesLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3644,8 +3719,6 @@ static bool js_spine_VertexAttachment_setWorldVerticesLength(se::State& s) // NO } SE_BIND_FUNC(js_spine_VertexAttachment_setWorldVerticesLength) - - bool js_register_spine_VertexAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("VertexAttachment", obj, __jsb_spine_Attachment_proto, nullptr); @@ -3667,15 +3740,15 @@ bool js_register_spine_VertexAttachment(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_BoundingBoxAttachment_proto = nullptr; -se::Class* __jsb_spine_BoundingBoxAttachment_class = nullptr; +se::Class* __jsb_spine_BoundingBoxAttachment_class = nullptr; static bool js_spine_BoundingBoxAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_BoundingBoxAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3688,8 +3761,6 @@ static bool js_spine_BoundingBoxAttachment_copy(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_BoundingBoxAttachment_copy) - - bool js_register_spine_BoundingBoxAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("BoundingBoxAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -3705,15 +3776,15 @@ bool js_register_spine_BoundingBoxAttachment(se::Object* obj) // NOLINT(readabil return true; } se::Object* __jsb_spine_ClippingAttachment_proto = nullptr; -se::Class* __jsb_spine_ClippingAttachment_class = nullptr; +se::Class* __jsb_spine_ClippingAttachment_class = nullptr; static bool js_spine_ClippingAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ClippingAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3730,9 +3801,9 @@ static bool js_spine_ClippingAttachment_getEndSlot(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ClippingAttachment_getEndSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SlotData* result = cobj->getEndSlot(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3749,9 +3820,9 @@ static bool js_spine_ClippingAttachment_setEndSlot(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ClippingAttachment_setEndSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3764,8 +3835,6 @@ static bool js_spine_ClippingAttachment_setEndSlot(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_ClippingAttachment_setEndSlot) - - bool js_register_spine_ClippingAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ClippingAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -3783,15 +3852,15 @@ bool js_register_spine_ClippingAttachment(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_Color_proto = nullptr; -se::Class* __jsb_spine_Color_class = nullptr; +se::Class* __jsb_spine_Color_class = nullptr; static bool js_spine_Color_clamp(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_clamp : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->clamp(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -3810,7 +3879,7 @@ static bool js_spine_Color_get_r(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_r : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->r, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->r, s.thisObject(), s.rval()); @@ -3821,7 +3890,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_r) static bool js_spine_Color_set_r(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_r : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3837,7 +3906,7 @@ static bool js_spine_Color_get_g(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_g : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->g, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->g, s.thisObject(), s.rval()); @@ -3848,7 +3917,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_g) static bool js_spine_Color_set_g(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_g : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3864,7 +3933,7 @@ static bool js_spine_Color_get_b(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_b : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->b, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->b, s.thisObject(), s.rval()); @@ -3875,7 +3944,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_b) static bool js_spine_Color_set_b(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_b : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3891,7 +3960,7 @@ static bool js_spine_Color_get_a(se::State& s) // NOLINT(readability-identifier- SE_PRECONDITION2(cobj, false, "js_spine_Color_get_a : Invalid Native Object"); CC_UNUSED bool ok = true; - se::Value jsret; + se::Value jsret; ok &= nativevalue_to_se(cobj->a, jsret, s.thisObject() /*ctx*/); s.rval() = jsret; SE_HOLD_RETURN_VALUE(cobj->a, s.thisObject(), s.rval()); @@ -3902,7 +3971,7 @@ SE_BIND_PROP_GET(js_spine_Color_get_a) static bool js_spine_Color_set_a(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - auto* cobj = SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Color_set_a : Invalid Native Object"); CC_UNUSED bool ok = true; @@ -3912,8 +3981,6 @@ static bool js_spine_Color_set_a(se::State& s) // NOLINT(readability-identifier- } SE_BIND_PROP_SET(js_spine_Color_set_a) - - bool js_register_spine_Color(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Color", obj, nullptr, nullptr); @@ -3933,18 +4000,18 @@ bool js_register_spine_Color(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_spine_CurveTimeline_proto = nullptr; -se::Class* __jsb_spine_CurveTimeline_class = nullptr; +se::Class* __jsb_spine_CurveTimeline_class = nullptr; static bool js_spine_CurveTimeline_getCurvePercent(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getCurvePercent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_CurveTimeline_getCurvePercent : Error processing arguments"); @@ -3963,9 +4030,9 @@ static bool js_spine_CurveTimeline_getCurveType(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getCurveType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -3985,9 +4052,9 @@ static bool js_spine_CurveTimeline_getFrameCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4004,9 +4071,9 @@ static bool js_spine_CurveTimeline_getPropertyId(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4023,15 +4090,15 @@ static bool js_spine_CurveTimeline_setCurve(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_setCurve : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -4050,9 +4117,9 @@ static bool js_spine_CurveTimeline_setLinear(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_setLinear : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4069,9 +4136,9 @@ static bool js_spine_CurveTimeline_setStepped(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_CurveTimeline_setStepped : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4084,8 +4151,6 @@ static bool js_spine_CurveTimeline_setStepped(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_spine_CurveTimeline_setStepped) - - bool js_register_spine_CurveTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("CurveTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -4107,15 +4172,15 @@ bool js_register_spine_CurveTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_ColorTimeline_proto = nullptr; -se::Class* __jsb_spine_ColorTimeline_class = nullptr; +se::Class* __jsb_spine_ColorTimeline_class = nullptr; static bool js_spine_ColorTimeline_getFrames(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4132,9 +4197,9 @@ static bool js_spine_ColorTimeline_getPropertyId(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4151,9 +4216,9 @@ static bool js_spine_ColorTimeline_getSlotIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4170,11 +4235,11 @@ static bool js_spine_ColorTimeline_setFrame(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -4199,9 +4264,9 @@ static bool js_spine_ColorTimeline_setSlotIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ColorTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4214,8 +4279,6 @@ static bool js_spine_ColorTimeline_setSlotIndex(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_ColorTimeline_setSlotIndex) - - bool js_register_spine_ColorTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ColorTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -4235,15 +4298,15 @@ bool js_register_spine_ColorTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_ConstraintData_proto = nullptr; -se::Class* __jsb_spine_ConstraintData_class = nullptr; +se::Class* __jsb_spine_ConstraintData_class = nullptr; static bool js_spine_ConstraintData_getName(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4260,9 +4323,9 @@ static bool js_spine_ConstraintData_getOrder(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4279,9 +4342,9 @@ static bool js_spine_ConstraintData_isSkinRequired(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_isSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isSkinRequired(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4298,9 +4361,9 @@ static bool js_spine_ConstraintData_setOrder(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_setOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4317,9 +4380,9 @@ static bool js_spine_ConstraintData_setSkinRequired(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ConstraintData_setSkinRequired : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4332,8 +4395,6 @@ static bool js_spine_ConstraintData_setSkinRequired(se::State& s) // NOLINT(read } SE_BIND_FUNC(js_spine_ConstraintData_setSkinRequired) - - bool js_register_spine_ConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ConstraintData", obj, nullptr, nullptr); @@ -4353,15 +4414,15 @@ bool js_register_spine_ConstraintData(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_DeformTimeline_proto = nullptr; -se::Class* __jsb_spine_DeformTimeline_class = nullptr; +se::Class* __jsb_spine_DeformTimeline_class = nullptr; static bool js_spine_DeformTimeline_getAttachment(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::VertexAttachment* result = cobj->getAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4378,9 +4439,9 @@ static bool js_spine_DeformTimeline_getFrames(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4397,9 +4458,9 @@ static bool js_spine_DeformTimeline_getPropertyId(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4416,9 +4477,9 @@ static bool js_spine_DeformTimeline_getSlotIndex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4435,9 +4496,9 @@ static bool js_spine_DeformTimeline_setAttachment(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4454,9 +4515,9 @@ static bool js_spine_DeformTimeline_setSlotIndex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DeformTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4469,8 +4530,6 @@ static bool js_spine_DeformTimeline_setSlotIndex(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_DeformTimeline_setSlotIndex) - - bool js_register_spine_DeformTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("DeformTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -4491,15 +4550,15 @@ bool js_register_spine_DeformTimeline(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_DrawOrderTimeline_proto = nullptr; -se::Class* __jsb_spine_DrawOrderTimeline_class = nullptr; +se::Class* __jsb_spine_DrawOrderTimeline_class = nullptr; static bool js_spine_DrawOrderTimeline_getFrameCount(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DrawOrderTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4516,9 +4575,9 @@ static bool js_spine_DrawOrderTimeline_getFrames(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DrawOrderTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4535,9 +4594,9 @@ static bool js_spine_DrawOrderTimeline_getPropertyId(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_DrawOrderTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4550,8 +4609,6 @@ static bool js_spine_DrawOrderTimeline_getPropertyId(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_spine_DrawOrderTimeline_getPropertyId) - - bool js_register_spine_DrawOrderTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("DrawOrderTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -4569,15 +4626,15 @@ bool js_register_spine_DrawOrderTimeline(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_Event_proto = nullptr; -se::Class* __jsb_spine_Event_class = nullptr; +se::Class* __jsb_spine_Event_class = nullptr; static bool js_spine_Event_getBalance(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getBalance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4594,9 +4651,9 @@ static bool js_spine_Event_getData(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::EventData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4613,9 +4670,9 @@ static bool js_spine_Event_getFloatValue(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getFloatValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4632,9 +4689,9 @@ static bool js_spine_Event_getIntValue(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIntValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4651,9 +4708,9 @@ static bool js_spine_Event_getStringValue(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getStringValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4670,9 +4727,9 @@ static bool js_spine_Event_getTime(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4689,9 +4746,9 @@ static bool js_spine_Event_getVolume(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_getVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getVolume(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4708,9 +4765,9 @@ static bool js_spine_Event_setBalance(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4727,9 +4784,9 @@ static bool js_spine_Event_setFloatValue(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4746,9 +4803,9 @@ static bool js_spine_Event_setIntValue(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4765,9 +4822,9 @@ static bool js_spine_Event_setStringValue(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4784,9 +4841,9 @@ static bool js_spine_Event_setVolume(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Event_setVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4799,8 +4856,6 @@ static bool js_spine_Event_setVolume(se::State& s) // NOLINT(readability-identif } SE_BIND_FUNC(js_spine_Event_setVolume) - - bool js_register_spine_Event(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Event", obj, nullptr, nullptr); @@ -4827,15 +4882,15 @@ bool js_register_spine_Event(se::Object* obj) // NOLINT(readability-identifier-n return true; } se::Object* __jsb_spine_EventData_proto = nullptr; -se::Class* __jsb_spine_EventData_class = nullptr; +se::Class* __jsb_spine_EventData_class = nullptr; static bool js_spine_EventData_getAudioPath(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getAudioPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4852,9 +4907,9 @@ static bool js_spine_EventData_getBalance(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getBalance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4871,9 +4926,9 @@ static bool js_spine_EventData_getFloatValue(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getFloatValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4890,9 +4945,9 @@ static bool js_spine_EventData_getIntValue(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIntValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4909,9 +4964,9 @@ static bool js_spine_EventData_getName(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4928,9 +4983,9 @@ static bool js_spine_EventData_getStringValue(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getStringValue(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4947,9 +5002,9 @@ static bool js_spine_EventData_getVolume(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_getVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getVolume(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -4966,9 +5021,9 @@ static bool js_spine_EventData_setAudioPath(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -4985,9 +5040,9 @@ static bool js_spine_EventData_setBalance(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setBalance : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5004,9 +5059,9 @@ static bool js_spine_EventData_setFloatValue(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setFloatValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5023,9 +5078,9 @@ static bool js_spine_EventData_setIntValue(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setIntValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5042,9 +5097,9 @@ static bool js_spine_EventData_setStringValue(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setStringValue : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5061,9 +5116,9 @@ static bool js_spine_EventData_setVolume(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventData_setVolume : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5076,8 +5131,6 @@ static bool js_spine_EventData_setVolume(se::State& s) // NOLINT(readability-ide } SE_BIND_FUNC(js_spine_EventData_setVolume) - - bool js_register_spine_EventData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("EventData", obj, nullptr, nullptr); @@ -5105,17 +5158,17 @@ bool js_register_spine_EventData(se::Object* obj) // NOLINT(readability-identifi return true; } se::Object* __jsb_spine_EventTimeline_proto = nullptr; -se::Class* __jsb_spine_EventTimeline_class = nullptr; +se::Class* __jsb_spine_EventTimeline_class = nullptr; static bool js_spine_EventTimeline_getEvents(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getEvents : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getEvents(); + spine::Vector& result = cobj->getEvents(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_EventTimeline_getEvents : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5130,9 +5183,9 @@ static bool js_spine_EventTimeline_getFrameCount(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getFrameCount : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { size_t result = cobj->getFrameCount(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5149,9 +5202,9 @@ static bool js_spine_EventTimeline_getFrames(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5168,9 +5221,9 @@ static bool js_spine_EventTimeline_getPropertyId(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5187,11 +5240,11 @@ static bool js_spine_EventTimeline_setFrame(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_EventTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -5204,8 +5257,6 @@ static bool js_spine_EventTimeline_setFrame(se::State& s) // NOLINT(readability- } SE_BIND_FUNC(js_spine_EventTimeline_setFrame) - - bool js_register_spine_EventTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("EventTimeline", obj, __jsb_spine_Timeline_proto, nullptr); @@ -5225,15 +5276,15 @@ bool js_register_spine_EventTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_IkConstraint_proto = nullptr; -se::Class* __jsb_spine_IkConstraint_class = nullptr; +se::Class* __jsb_spine_IkConstraint_class = nullptr; static bool js_spine_IkConstraint_getBendDirection(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBendDirection(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5250,11 +5301,11 @@ static bool js_spine_IkConstraint_getBones(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_IkConstraint_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5269,9 +5320,9 @@ static bool js_spine_IkConstraint_getCompress(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getCompress(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5288,9 +5339,9 @@ static bool js_spine_IkConstraint_getData(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::IkConstraintData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5307,9 +5358,9 @@ static bool js_spine_IkConstraint_getMix(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5326,9 +5377,9 @@ static bool js_spine_IkConstraint_getOrder(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5345,9 +5396,9 @@ static bool js_spine_IkConstraint_getSoftness(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSoftness(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5364,9 +5415,9 @@ static bool js_spine_IkConstraint_getStretch(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getStretch(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5383,9 +5434,9 @@ static bool js_spine_IkConstraint_getTarget(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5402,9 +5453,9 @@ static bool js_spine_IkConstraint_isActive(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5421,9 +5472,9 @@ static bool js_spine_IkConstraint_setActive(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5440,9 +5491,9 @@ static bool js_spine_IkConstraint_setBendDirection(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5459,9 +5510,9 @@ static bool js_spine_IkConstraint_setCompress(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5478,9 +5529,9 @@ static bool js_spine_IkConstraint_setMix(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5497,9 +5548,9 @@ static bool js_spine_IkConstraint_setSoftness(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5516,9 +5567,9 @@ static bool js_spine_IkConstraint_setStretch(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5535,9 +5586,9 @@ static bool js_spine_IkConstraint_setTarget(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5555,7 +5606,7 @@ static bool js_spine_IkConstraint_update(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraint_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -5565,8 +5616,6 @@ static bool js_spine_IkConstraint_update(se::State& s) // NOLINT(readability-ide } SE_BIND_FUNC(js_spine_IkConstraint_update) - - bool js_register_spine_IkConstraint(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("IkConstraint", obj, nullptr, nullptr); @@ -5599,15 +5648,15 @@ bool js_register_spine_IkConstraint(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_spine_IkConstraintData_proto = nullptr; -se::Class* __jsb_spine_IkConstraintData_class = nullptr; +se::Class* __jsb_spine_IkConstraintData_class = nullptr; static bool js_spine_IkConstraintData_getBendDirection(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBendDirection(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5624,11 +5673,11 @@ static bool js_spine_IkConstraintData_getBones(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_IkConstraintData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -5643,9 +5692,9 @@ static bool js_spine_IkConstraintData_getCompress(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getCompress(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5662,9 +5711,9 @@ static bool js_spine_IkConstraintData_getMix(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5681,9 +5730,9 @@ static bool js_spine_IkConstraintData_getSoftness(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSoftness(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5700,9 +5749,9 @@ static bool js_spine_IkConstraintData_getStretch(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getStretch(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5719,9 +5768,9 @@ static bool js_spine_IkConstraintData_getTarget(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5738,9 +5787,9 @@ static bool js_spine_IkConstraintData_getUniform(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_getUniform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getUniform(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5757,9 +5806,9 @@ static bool js_spine_IkConstraintData_setBendDirection(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setBendDirection : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5776,9 +5825,9 @@ static bool js_spine_IkConstraintData_setCompress(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setCompress : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5795,9 +5844,9 @@ static bool js_spine_IkConstraintData_setMix(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5814,9 +5863,9 @@ static bool js_spine_IkConstraintData_setSoftness(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setSoftness : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5833,9 +5882,9 @@ static bool js_spine_IkConstraintData_setStretch(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setStretch : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5852,9 +5901,9 @@ static bool js_spine_IkConstraintData_setTarget(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5871,9 +5920,9 @@ static bool js_spine_IkConstraintData_setUniform(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintData_setUniform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -5886,8 +5935,6 @@ static bool js_spine_IkConstraintData_setUniform(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_IkConstraintData_setUniform) - - bool js_register_spine_IkConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("IkConstraintData", obj, __jsb_spine_ConstraintData_proto, nullptr); @@ -5917,15 +5964,15 @@ bool js_register_spine_IkConstraintData(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_IkConstraintTimeline_proto = nullptr; -se::Class* __jsb_spine_IkConstraintTimeline_class = nullptr; +se::Class* __jsb_spine_IkConstraintTimeline_class = nullptr; static bool js_spine_IkConstraintTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -5942,17 +5989,17 @@ static bool js_spine_IkConstraintTimeline_setFrame(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_IkConstraintTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 7) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; - HolderType arg6 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; + HolderType arg6 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -5969,8 +6016,6 @@ static bool js_spine_IkConstraintTimeline_setFrame(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_IkConstraintTimeline_setFrame) - - bool js_register_spine_IkConstraintTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("IkConstraintTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -5987,15 +6032,15 @@ bool js_register_spine_IkConstraintTimeline(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_spine_MeshAttachment_proto = nullptr; -se::Class* __jsb_spine_MeshAttachment_class = nullptr; +se::Class* __jsb_spine_MeshAttachment_class = nullptr; static bool js_spine_MeshAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6012,9 +6057,9 @@ static bool js_spine_MeshAttachment_getColor(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6031,9 +6076,9 @@ static bool js_spine_MeshAttachment_getEdges(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getEdges : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getEdges(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6050,9 +6095,9 @@ static bool js_spine_MeshAttachment_getHeight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6069,9 +6114,9 @@ static bool js_spine_MeshAttachment_getHullLength(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getHullLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getHullLength(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6088,9 +6133,9 @@ static bool js_spine_MeshAttachment_getParentMesh(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getParentMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::MeshAttachment* result = cobj->getParentMesh(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6107,9 +6152,9 @@ static bool js_spine_MeshAttachment_getPath(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6126,9 +6171,9 @@ static bool js_spine_MeshAttachment_getRegionDegrees(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionDegrees : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getRegionDegrees(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6145,9 +6190,9 @@ static bool js_spine_MeshAttachment_getRegionHeight(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6164,9 +6209,9 @@ static bool js_spine_MeshAttachment_getRegionOffsetX(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6183,9 +6228,9 @@ static bool js_spine_MeshAttachment_getRegionOffsetY(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6202,9 +6247,9 @@ static bool js_spine_MeshAttachment_getRegionOriginalHeight(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6221,9 +6266,9 @@ static bool js_spine_MeshAttachment_getRegionOriginalWidth(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6240,9 +6285,9 @@ static bool js_spine_MeshAttachment_getRegionRotate(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionRotate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->getRegionRotate(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6259,9 +6304,9 @@ static bool js_spine_MeshAttachment_getRegionU(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionU : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionU(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6278,9 +6323,9 @@ static bool js_spine_MeshAttachment_getRegionU2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionU2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionU2(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6297,9 +6342,9 @@ static bool js_spine_MeshAttachment_getRegionUVs(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getRegionUVs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6316,9 +6361,9 @@ static bool js_spine_MeshAttachment_getRegionV(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionV : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionV(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6335,9 +6380,9 @@ static bool js_spine_MeshAttachment_getRegionV2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionV2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionV2(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6354,9 +6399,9 @@ static bool js_spine_MeshAttachment_getRegionWidth(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6373,9 +6418,9 @@ static bool js_spine_MeshAttachment_getTriangles(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getTriangles : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getTriangles(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6392,9 +6437,9 @@ static bool js_spine_MeshAttachment_getUVs(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getUVs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6411,9 +6456,9 @@ static bool js_spine_MeshAttachment_getWidth(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6430,9 +6475,9 @@ static bool js_spine_MeshAttachment_newLinkedMesh(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_newLinkedMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::MeshAttachment* result = cobj->newLinkedMesh(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6449,9 +6494,9 @@ static bool js_spine_MeshAttachment_setHeight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6468,9 +6513,9 @@ static bool js_spine_MeshAttachment_setHullLength(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setHullLength : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6487,9 +6532,9 @@ static bool js_spine_MeshAttachment_setParentMesh(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setParentMesh : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6506,9 +6551,9 @@ static bool js_spine_MeshAttachment_setPath(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6525,9 +6570,9 @@ static bool js_spine_MeshAttachment_setRegionDegrees(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionDegrees : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6544,9 +6589,9 @@ static bool js_spine_MeshAttachment_setRegionHeight(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6563,9 +6608,9 @@ static bool js_spine_MeshAttachment_setRegionOffsetX(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6582,9 +6627,9 @@ static bool js_spine_MeshAttachment_setRegionOffsetY(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6601,9 +6646,9 @@ static bool js_spine_MeshAttachment_setRegionOriginalHeight(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6620,9 +6665,9 @@ static bool js_spine_MeshAttachment_setRegionOriginalWidth(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6639,9 +6684,9 @@ static bool js_spine_MeshAttachment_setRegionRotate(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionRotate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6658,9 +6703,9 @@ static bool js_spine_MeshAttachment_setRegionU(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionU : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6677,9 +6722,9 @@ static bool js_spine_MeshAttachment_setRegionU2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionU2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6696,9 +6741,9 @@ static bool js_spine_MeshAttachment_setRegionV(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionV : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6715,9 +6760,9 @@ static bool js_spine_MeshAttachment_setRegionV2(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionV2 : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6734,9 +6779,9 @@ static bool js_spine_MeshAttachment_setRegionWidth(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6753,9 +6798,9 @@ static bool js_spine_MeshAttachment_setWidth(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6773,7 +6818,7 @@ static bool js_spine_MeshAttachment_updateUVs(se::State& s) // NOLINT(readabilit auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_MeshAttachment_updateUVs : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateUVs(); return true; @@ -6783,8 +6828,6 @@ static bool js_spine_MeshAttachment_updateUVs(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_spine_MeshAttachment_updateUVs) - - bool js_register_spine_MeshAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("MeshAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -6841,15 +6884,15 @@ bool js_register_spine_MeshAttachment(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_PathAttachment_proto = nullptr; -se::Class* __jsb_spine_PathAttachment_class = nullptr; +se::Class* __jsb_spine_PathAttachment_class = nullptr; static bool js_spine_PathAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6866,9 +6909,9 @@ static bool js_spine_PathAttachment_getLengths(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_getLengths : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getLengths(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6885,9 +6928,9 @@ static bool js_spine_PathAttachment_isClosed(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_isClosed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isClosed(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6904,9 +6947,9 @@ static bool js_spine_PathAttachment_isConstantSpeed(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_isConstantSpeed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isConstantSpeed(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -6923,9 +6966,9 @@ static bool js_spine_PathAttachment_setClosed(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_setClosed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6942,9 +6985,9 @@ static bool js_spine_PathAttachment_setConstantSpeed(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathAttachment_setConstantSpeed : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -6957,8 +7000,6 @@ static bool js_spine_PathAttachment_setConstantSpeed(se::State& s) // NOLINT(rea } SE_BIND_FUNC(js_spine_PathAttachment_setConstantSpeed) - - bool js_register_spine_PathAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathAttachment", obj, __jsb_spine_VertexAttachment_proto, nullptr); @@ -6979,14 +7020,14 @@ bool js_register_spine_PathAttachment(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_PathConstraint_proto = nullptr; -se::Class* __jsb_spine_PathConstraint_class = nullptr; +se::Class* __jsb_spine_PathConstraint_class = nullptr; static bool js_spine_PathConstraint_apply(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_apply : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->apply(); return true; @@ -7000,11 +7041,11 @@ static bool js_spine_PathConstraint_getBones(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_PathConstraint_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7019,9 +7060,9 @@ static bool js_spine_PathConstraint_getData(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::PathConstraintData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7038,9 +7079,9 @@ static bool js_spine_PathConstraint_getOrder(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7057,9 +7098,9 @@ static bool js_spine_PathConstraint_getPosition(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPosition(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7076,9 +7117,9 @@ static bool js_spine_PathConstraint_getRotateMix(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7095,9 +7136,9 @@ static bool js_spine_PathConstraint_getSpacing(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSpacing(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7114,9 +7155,9 @@ static bool js_spine_PathConstraint_getTarget(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Slot* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7133,9 +7174,9 @@ static bool js_spine_PathConstraint_getTranslateMix(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7152,9 +7193,9 @@ static bool js_spine_PathConstraint_isActive(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7171,9 +7212,9 @@ static bool js_spine_PathConstraint_setActive(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7190,9 +7231,9 @@ static bool js_spine_PathConstraint_setPosition(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7209,9 +7250,9 @@ static bool js_spine_PathConstraint_setRotateMix(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7228,9 +7269,9 @@ static bool js_spine_PathConstraint_setSpacing(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7247,9 +7288,9 @@ static bool js_spine_PathConstraint_setTarget(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7266,9 +7307,9 @@ static bool js_spine_PathConstraint_setTranslateMix(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_setTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7286,7 +7327,7 @@ static bool js_spine_PathConstraint_update(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraint_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -7296,8 +7337,6 @@ static bool js_spine_PathConstraint_update(se::State& s) // NOLINT(readability-i } SE_BIND_FUNC(js_spine_PathConstraint_update) - - bool js_register_spine_PathConstraint(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraint", obj, nullptr, nullptr); @@ -7329,17 +7368,17 @@ bool js_register_spine_PathConstraint(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_PathConstraintData_proto = nullptr; -se::Class* __jsb_spine_PathConstraintData_class = nullptr; +se::Class* __jsb_spine_PathConstraintData_class = nullptr; static bool js_spine_PathConstraintData_getBones(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_PathConstraintData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -7354,9 +7393,9 @@ static bool js_spine_PathConstraintData_getOffsetRotation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getOffsetRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7373,9 +7412,9 @@ static bool js_spine_PathConstraintData_getPosition(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getPosition(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7392,9 +7431,9 @@ static bool js_spine_PathConstraintData_getPositionMode(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getPositionMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getPositionMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7411,9 +7450,9 @@ static bool js_spine_PathConstraintData_getRotateMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7430,9 +7469,9 @@ static bool js_spine_PathConstraintData_getRotateMode(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getRotateMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getRotateMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7449,9 +7488,9 @@ static bool js_spine_PathConstraintData_getSpacing(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getSpacing(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7468,9 +7507,9 @@ static bool js_spine_PathConstraintData_getSpacingMode(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getSpacingMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getSpacingMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7487,9 +7526,9 @@ static bool js_spine_PathConstraintData_getTarget(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SlotData* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7506,9 +7545,9 @@ static bool js_spine_PathConstraintData_getTranslateMix(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7525,9 +7564,9 @@ static bool js_spine_PathConstraintData_setOffsetRotation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setOffsetRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7544,9 +7583,9 @@ static bool js_spine_PathConstraintData_setPosition(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7563,9 +7602,9 @@ static bool js_spine_PathConstraintData_setPositionMode(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setPositionMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7582,9 +7621,9 @@ static bool js_spine_PathConstraintData_setRotateMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7601,9 +7640,9 @@ static bool js_spine_PathConstraintData_setRotateMode(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setRotateMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7620,9 +7659,9 @@ static bool js_spine_PathConstraintData_setSpacing(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setSpacing : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7639,9 +7678,9 @@ static bool js_spine_PathConstraintData_setSpacingMode(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setSpacingMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7658,9 +7697,9 @@ static bool js_spine_PathConstraintData_setTarget(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7677,9 +7716,9 @@ static bool js_spine_PathConstraintData_setTranslateMix(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintData_setTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7692,8 +7731,6 @@ static bool js_spine_PathConstraintData_setTranslateMix(se::State& s) // NOLINT( } SE_BIND_FUNC(js_spine_PathConstraintData_setTranslateMix) - - bool js_register_spine_PathConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintData", obj, __jsb_spine_ConstraintData_proto, nullptr); @@ -7727,15 +7764,15 @@ bool js_register_spine_PathConstraintData(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_PathConstraintMixTimeline_proto = nullptr; -se::Class* __jsb_spine_PathConstraintMixTimeline_class = nullptr; +se::Class* __jsb_spine_PathConstraintMixTimeline_class = nullptr; static bool js_spine_PathConstraintMixTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintMixTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7748,8 +7785,6 @@ static bool js_spine_PathConstraintMixTimeline_getPropertyId(se::State& s) // NO } SE_BIND_FUNC(js_spine_PathConstraintMixTimeline_getPropertyId) - - bool js_register_spine_PathConstraintMixTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintMixTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -7765,15 +7800,15 @@ bool js_register_spine_PathConstraintMixTimeline(se::Object* obj) // NOLINT(read return true; } se::Object* __jsb_spine_PathConstraintPositionTimeline_proto = nullptr; -se::Class* __jsb_spine_PathConstraintPositionTimeline_class = nullptr; +se::Class* __jsb_spine_PathConstraintPositionTimeline_class = nullptr; static bool js_spine_PathConstraintPositionTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintPositionTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7790,11 +7825,11 @@ static bool js_spine_PathConstraintPositionTimeline_setFrame(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintPositionTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7809,8 +7844,6 @@ static bool js_spine_PathConstraintPositionTimeline_setFrame(se::State& s) // NO } SE_BIND_FUNC(js_spine_PathConstraintPositionTimeline_setFrame) - - bool js_register_spine_PathConstraintPositionTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintPositionTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -7827,15 +7860,15 @@ bool js_register_spine_PathConstraintPositionTimeline(se::Object* obj) // NOLINT return true; } se::Object* __jsb_spine_PathConstraintSpacingTimeline_proto = nullptr; -se::Class* __jsb_spine_PathConstraintSpacingTimeline_class = nullptr; +se::Class* __jsb_spine_PathConstraintSpacingTimeline_class = nullptr; static bool js_spine_PathConstraintSpacingTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PathConstraintSpacingTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7848,8 +7881,6 @@ static bool js_spine_PathConstraintSpacingTimeline_getPropertyId(se::State& s) / } SE_BIND_FUNC(js_spine_PathConstraintSpacingTimeline_getPropertyId) - - bool js_register_spine_PathConstraintSpacingTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PathConstraintSpacingTimeline", obj, __jsb_spine_PathConstraintPositionTimeline_proto, nullptr); @@ -7865,15 +7896,15 @@ bool js_register_spine_PathConstraintSpacingTimeline(se::Object* obj) // NOLINT( return true; } se::Object* __jsb_spine_PointAttachment_proto = nullptr; -se::Class* __jsb_spine_PointAttachment_class = nullptr; +se::Class* __jsb_spine_PointAttachment_class = nullptr; static bool js_spine_PointAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7890,9 +7921,9 @@ static bool js_spine_PointAttachment_getRotation(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7909,9 +7940,9 @@ static bool js_spine_PointAttachment_getX(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7928,9 +7959,9 @@ static bool js_spine_PointAttachment_getY(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -7947,9 +7978,9 @@ static bool js_spine_PointAttachment_setRotation(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7966,9 +7997,9 @@ static bool js_spine_PointAttachment_setX(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -7985,9 +8016,9 @@ static bool js_spine_PointAttachment_setY(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_PointAttachment_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8000,8 +8031,6 @@ static bool js_spine_PointAttachment_setY(se::State& s) // NOLINT(readability-id } SE_BIND_FUNC(js_spine_PointAttachment_setY) - - bool js_register_spine_PointAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("PointAttachment", obj, __jsb_spine_Attachment_proto, nullptr); @@ -8023,15 +8052,15 @@ bool js_register_spine_PointAttachment(se::Object* obj) // NOLINT(readability-id return true; } se::Object* __jsb_spine_RegionAttachment_proto = nullptr; -se::Class* __jsb_spine_RegionAttachment_class = nullptr; +se::Class* __jsb_spine_RegionAttachment_class = nullptr; static bool js_spine_RegionAttachment_copy(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_copy : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->copy(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8048,9 +8077,9 @@ static bool js_spine_RegionAttachment_getColor(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8067,9 +8096,9 @@ static bool js_spine_RegionAttachment_getHeight(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8086,9 +8115,9 @@ static bool js_spine_RegionAttachment_getOffset(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8105,9 +8134,9 @@ static bool js_spine_RegionAttachment_getPath(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8124,9 +8153,9 @@ static bool js_spine_RegionAttachment_getRegionHeight(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8143,9 +8172,9 @@ static bool js_spine_RegionAttachment_getRegionOffsetX(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8162,9 +8191,9 @@ static bool js_spine_RegionAttachment_getRegionOffsetY(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOffsetY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8181,9 +8210,9 @@ static bool js_spine_RegionAttachment_getRegionOriginalHeight(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8200,9 +8229,9 @@ static bool js_spine_RegionAttachment_getRegionOriginalWidth(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionOriginalWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8219,9 +8248,9 @@ static bool js_spine_RegionAttachment_getRegionWidth(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRegionWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8238,9 +8267,9 @@ static bool js_spine_RegionAttachment_getRotation(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8257,9 +8286,9 @@ static bool js_spine_RegionAttachment_getScaleX(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8276,9 +8305,9 @@ static bool js_spine_RegionAttachment_getScaleY(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8295,9 +8324,9 @@ static bool js_spine_RegionAttachment_getUVs(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getUVs(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8314,9 +8343,9 @@ static bool js_spine_RegionAttachment_getWidth(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8333,9 +8362,9 @@ static bool js_spine_RegionAttachment_getX(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8352,9 +8381,9 @@ static bool js_spine_RegionAttachment_getY(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8371,9 +8400,9 @@ static bool js_spine_RegionAttachment_setHeight(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8390,9 +8419,9 @@ static bool js_spine_RegionAttachment_setPath(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8409,9 +8438,9 @@ static bool js_spine_RegionAttachment_setRegionHeight(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8428,9 +8457,9 @@ static bool js_spine_RegionAttachment_setRegionOffsetX(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8447,9 +8476,9 @@ static bool js_spine_RegionAttachment_setRegionOffsetY(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8466,9 +8495,9 @@ static bool js_spine_RegionAttachment_setRegionOriginalHeight(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOriginalHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8485,9 +8514,9 @@ static bool js_spine_RegionAttachment_setRegionOriginalWidth(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionOriginalWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8504,9 +8533,9 @@ static bool js_spine_RegionAttachment_setRegionWidth(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRegionWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8523,9 +8552,9 @@ static bool js_spine_RegionAttachment_setRotation(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8542,9 +8571,9 @@ static bool js_spine_RegionAttachment_setScaleX(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8561,9 +8590,9 @@ static bool js_spine_RegionAttachment_setScaleY(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8580,15 +8609,15 @@ static bool js_spine_RegionAttachment_setUVs(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setUVs : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 5) { HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -8607,9 +8636,9 @@ static bool js_spine_RegionAttachment_setWidth(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8626,9 +8655,9 @@ static bool js_spine_RegionAttachment_setX(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8645,9 +8674,9 @@ static bool js_spine_RegionAttachment_setY(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8665,7 +8694,7 @@ static bool js_spine_RegionAttachment_updateOffset(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RegionAttachment_updateOffset : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateOffset(); return true; @@ -8675,8 +8704,6 @@ static bool js_spine_RegionAttachment_updateOffset(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_RegionAttachment_updateOffset) - - bool js_register_spine_RegionAttachment(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RegionAttachment", obj, __jsb_spine_Attachment_proto, nullptr); @@ -8725,15 +8752,15 @@ bool js_register_spine_RegionAttachment(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_RotateTimeline_proto = nullptr; -se::Class* __jsb_spine_RotateTimeline_class = nullptr; +se::Class* __jsb_spine_RotateTimeline_class = nullptr; static bool js_spine_RotateTimeline_getBoneIndex(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_getBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getBoneIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8750,9 +8777,9 @@ static bool js_spine_RotateTimeline_getFrames(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_getFrames : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getFrames(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8769,9 +8796,9 @@ static bool js_spine_RotateTimeline_getPropertyId(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8788,9 +8815,9 @@ static bool js_spine_RotateTimeline_setBoneIndex(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_setBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8807,11 +8834,11 @@ static bool js_spine_RotateTimeline_setFrame(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_RotateTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -8826,8 +8853,6 @@ static bool js_spine_RotateTimeline_setFrame(se::State& s) // NOLINT(readability } SE_BIND_FUNC(js_spine_RotateTimeline_setFrame) - - bool js_register_spine_RotateTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("RotateTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -8847,15 +8872,15 @@ bool js_register_spine_RotateTimeline(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_TranslateTimeline_proto = nullptr; -se::Class* __jsb_spine_TranslateTimeline_class = nullptr; +se::Class* __jsb_spine_TranslateTimeline_class = nullptr; static bool js_spine_TranslateTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TranslateTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8872,11 +8897,11 @@ static bool js_spine_TranslateTimeline_setFrame(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TranslateTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -8893,8 +8918,6 @@ static bool js_spine_TranslateTimeline_setFrame(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_TranslateTimeline_setFrame) - - bool js_register_spine_TranslateTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TranslateTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -8911,15 +8934,15 @@ bool js_register_spine_TranslateTimeline(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_ScaleTimeline_proto = nullptr; -se::Class* __jsb_spine_ScaleTimeline_class = nullptr; +se::Class* __jsb_spine_ScaleTimeline_class = nullptr; static bool js_spine_ScaleTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ScaleTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8932,8 +8955,6 @@ static bool js_spine_ScaleTimeline_getPropertyId(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_ScaleTimeline_getPropertyId) - - bool js_register_spine_ScaleTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ScaleTimeline", obj, __jsb_spine_TranslateTimeline_proto, nullptr); @@ -8949,15 +8970,15 @@ bool js_register_spine_ScaleTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_ShearTimeline_proto = nullptr; -se::Class* __jsb_spine_ShearTimeline_class = nullptr; +se::Class* __jsb_spine_ShearTimeline_class = nullptr; static bool js_spine_ShearTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_ShearTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -8970,8 +8991,6 @@ static bool js_spine_ShearTimeline_getPropertyId(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_ShearTimeline_getPropertyId) - - bool js_register_spine_ShearTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("ShearTimeline", obj, __jsb_spine_TranslateTimeline_proto, nullptr); @@ -8987,15 +9006,15 @@ bool js_register_spine_ShearTimeline(se::Object* obj) // NOLINT(readability-iden return true; } se::Object* __jsb_spine_Skeleton_proto = nullptr; -se::Class* __jsb_spine_Skeleton_class = nullptr; +se::Class* __jsb_spine_Skeleton_class = nullptr; static bool js_spine_Skeleton_findBone(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9015,9 +9034,9 @@ static bool js_spine_Skeleton_findBoneIndex(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9037,9 +9056,9 @@ static bool js_spine_Skeleton_findIkConstraint(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findIkConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9059,9 +9078,9 @@ static bool js_spine_Skeleton_findPathConstraint(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findPathConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9081,9 +9100,9 @@ static bool js_spine_Skeleton_findSlot(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9103,9 +9122,9 @@ static bool js_spine_Skeleton_findSlotIndex(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9125,9 +9144,9 @@ static bool js_spine_Skeleton_findTransformConstraint(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_findTransformConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9145,27 +9164,33 @@ SE_BIND_FUNC(js_spine_Skeleton_findTransformConstraint) static bool js_spine_Skeleton_getAttachment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_Skeleton_getAttachment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getAttachment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::Attachment* result = cobj->getAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 2) { @@ -9173,16 +9198,22 @@ static bool js_spine_Skeleton_getAttachment(se::State& s) // NOLINT(readability- HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::Attachment* result = cobj->getAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -9193,11 +9224,11 @@ static bool js_spine_Skeleton_getBones(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9212,9 +9243,9 @@ static bool js_spine_Skeleton_getColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9231,9 +9262,9 @@ static bool js_spine_Skeleton_getData(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonData* result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9250,11 +9281,11 @@ static bool js_spine_Skeleton_getDrawOrder(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getDrawOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getDrawOrder(); + spine::Vector& result = cobj->getDrawOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getDrawOrder : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9269,11 +9300,11 @@ static bool js_spine_Skeleton_getIkConstraints(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getIkConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getIkConstraints(); + spine::Vector& result = cobj->getIkConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getIkConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9288,11 +9319,11 @@ static bool js_spine_Skeleton_getPathConstraints(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getPathConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getPathConstraints(); + spine::Vector& result = cobj->getPathConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getPathConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9307,9 +9338,9 @@ static bool js_spine_Skeleton_getRootBone(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getRootBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getRootBone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9326,9 +9357,9 @@ static bool js_spine_Skeleton_getScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9345,9 +9376,9 @@ static bool js_spine_Skeleton_getScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9364,9 +9395,9 @@ static bool js_spine_Skeleton_getSkin(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skin* result = cobj->getSkin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9383,11 +9414,11 @@ static bool js_spine_Skeleton_getSlots(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getSlots : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getSlots(); + spine::Vector& result = cobj->getSlots(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getSlots : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9402,9 +9433,9 @@ static bool js_spine_Skeleton_getTime(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9421,11 +9452,11 @@ static bool js_spine_Skeleton_getTransformConstraints(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getTransformConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTransformConstraints(); + spine::Vector& result = cobj->getTransformConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getTransformConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9440,11 +9471,11 @@ static bool js_spine_Skeleton_getUpdateCacheList(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getUpdateCacheList : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getUpdateCacheList(); + spine::Vector& result = cobj->getUpdateCacheList(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skeleton_getUpdateCacheList : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -9459,9 +9490,9 @@ static bool js_spine_Skeleton_getX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9478,9 +9509,9 @@ static bool js_spine_Skeleton_getY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9498,7 +9529,7 @@ static bool js_spine_Skeleton_printUpdateCache(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_printUpdateCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->printUpdateCache(); return true; @@ -9512,9 +9543,9 @@ static bool js_spine_Skeleton_setAttachment(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9534,7 +9565,7 @@ static bool js_spine_Skeleton_setBonesToSetupPose(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setBonesToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setBonesToSetupPose(); return true; @@ -9548,9 +9579,9 @@ static bool js_spine_Skeleton_setPosition(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setPosition : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9569,9 +9600,9 @@ static bool js_spine_Skeleton_setScaleX(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9588,9 +9619,9 @@ static bool js_spine_Skeleton_setScaleY(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9605,32 +9636,38 @@ SE_BIND_FUNC(js_spine_Skeleton_setScaleY) static bool js_spine_Skeleton_setSkin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_Skeleton_setSkin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setSkin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setSkin(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setSkin(arg0.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -9642,7 +9679,7 @@ static bool js_spine_Skeleton_setSlotsToSetupPose(se::State& s) // NOLINT(readab auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setSlotsToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setSlotsToSetupPose(); return true; @@ -9656,9 +9693,9 @@ static bool js_spine_Skeleton_setTime(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9676,7 +9713,7 @@ static bool js_spine_Skeleton_setToSetupPose(se::State& s) // NOLINT(readability auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -9690,9 +9727,9 @@ static bool js_spine_Skeleton_setX(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9709,9 +9746,9 @@ static bool js_spine_Skeleton_setY(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9728,9 +9765,9 @@ static bool js_spine_Skeleton_update(se::State& s) // NOLINT(readability-identif { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9748,7 +9785,7 @@ static bool js_spine_Skeleton_updateCache(se::State& s) // NOLINT(readability-id auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_updateCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateCache(); return true; @@ -9763,7 +9800,7 @@ static bool js_spine_Skeleton_updateWorldTransform(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skeleton_updateWorldTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldTransform(); return true; @@ -9773,8 +9810,6 @@ static bool js_spine_Skeleton_updateWorldTransform(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_Skeleton_updateWorldTransform) - - bool js_register_spine_Skeleton(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Skeleton", obj, nullptr, nullptr); @@ -9828,15 +9863,15 @@ bool js_register_spine_Skeleton(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_SkeletonBounds_proto = nullptr; -se::Class* __jsb_spine_SkeletonBounds_class = nullptr; +se::Class* __jsb_spine_SkeletonBounds_class = nullptr; static bool js_spine_SkeletonBounds_aabbcontainsPoint(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_aabbcontainsPoint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9858,9 +9893,9 @@ static bool js_spine_SkeletonBounds_aabbintersectsSegment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_aabbintersectsSegment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -9884,47 +9919,62 @@ SE_BIND_FUNC(js_spine_SkeletonBounds_aabbintersectsSegment) static bool js_spine_SkeletonBounds_containsPoint(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_SkeletonBounds_containsPoint : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_containsPoint : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::BoundingBoxAttachment* result = cobj->containsPoint(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_containsPoint : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->containsPoint(arg0.value(), arg1.value(), arg2.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_containsPoint : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -9935,9 +9985,9 @@ static bool js_spine_SkeletonBounds_getHeight(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9954,9 +10004,9 @@ static bool js_spine_SkeletonBounds_getPolygon(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_getPolygon : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -9976,9 +10026,9 @@ static bool js_spine_SkeletonBounds_getWidth(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -9993,36 +10043,51 @@ SE_BIND_FUNC(js_spine_SkeletonBounds_getWidth) static bool js_spine_SkeletonBounds_intersectsSegment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_SkeletonBounds_intersectsSegment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_SkeletonBounds_intersectsSegment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 5) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[4], &arg4, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->intersectsSegment(arg0.value(), arg1.value(), arg2.value(), arg3.value(), arg4.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_intersectsSegment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 4) { @@ -10032,28 +10097,38 @@ static bool js_spine_SkeletonBounds_intersectsSegment(se::State& s) // NOLINT(re HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::BoundingBoxAttachment* result = cobj->intersectsSegment(arg0.value(), arg1.value(), arg2.value(), arg3.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonBounds_intersectsSegment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_FUNC(js_spine_SkeletonBounds_intersectsSegment) - - bool js_register_spine_SkeletonBounds(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SkeletonBounds", obj, nullptr, nullptr); @@ -10075,9 +10150,7 @@ bool js_register_spine_SkeletonBounds(se::Object* obj) // NOLINT(readability-ide return true; } se::Object* __jsb_spine_Polygon_proto = nullptr; -se::Class* __jsb_spine_Polygon_class = nullptr; - - +se::Class* __jsb_spine_Polygon_class = nullptr; bool js_register_spine_Polygon(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -10093,15 +10166,15 @@ bool js_register_spine_Polygon(se::Object* obj) // NOLINT(readability-identifier return true; } se::Object* __jsb_spine_SkeletonData_proto = nullptr; -se::Class* __jsb_spine_SkeletonData_class = nullptr; +se::Class* __jsb_spine_SkeletonData_class = nullptr; static bool js_spine_SkeletonData_findAnimation(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10121,9 +10194,9 @@ static bool js_spine_SkeletonData_findBone(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10143,9 +10216,9 @@ static bool js_spine_SkeletonData_findBoneIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findBoneIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10165,9 +10238,9 @@ static bool js_spine_SkeletonData_findEvent(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10187,9 +10260,9 @@ static bool js_spine_SkeletonData_findIkConstraint(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findIkConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10209,9 +10282,9 @@ static bool js_spine_SkeletonData_findPathConstraint(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findPathConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10231,9 +10304,9 @@ static bool js_spine_SkeletonData_findPathConstraintIndex(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findPathConstraintIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10253,9 +10326,9 @@ static bool js_spine_SkeletonData_findSkin(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10275,9 +10348,9 @@ static bool js_spine_SkeletonData_findSlot(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10297,9 +10370,9 @@ static bool js_spine_SkeletonData_findSlotIndex(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10319,9 +10392,9 @@ static bool js_spine_SkeletonData_findTransformConstraint(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_findTransformConstraint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10341,11 +10414,11 @@ static bool js_spine_SkeletonData_getAnimations(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getAnimations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getAnimations(); + spine::Vector& result = cobj->getAnimations(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getAnimations : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10360,9 +10433,9 @@ static bool js_spine_SkeletonData_getAudioPath(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getAudioPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10379,11 +10452,11 @@ static bool js_spine_SkeletonData_getBones(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10398,9 +10471,9 @@ static bool js_spine_SkeletonData_getDefaultSkin(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skin* result = cobj->getDefaultSkin(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10417,11 +10490,11 @@ static bool js_spine_SkeletonData_getEvents(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getEvents : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getEvents(); + spine::Vector& result = cobj->getEvents(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getEvents : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10436,9 +10509,9 @@ static bool js_spine_SkeletonData_getFps(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getFps : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getFps(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10455,9 +10528,9 @@ static bool js_spine_SkeletonData_getHash(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getHash(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10474,9 +10547,9 @@ static bool js_spine_SkeletonData_getHeight(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getHeight(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10493,11 +10566,11 @@ static bool js_spine_SkeletonData_getIkConstraints(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getIkConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getIkConstraints(); + spine::Vector& result = cobj->getIkConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getIkConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10512,9 +10585,9 @@ static bool js_spine_SkeletonData_getImagesPath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getImagesPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getImagesPath(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10531,9 +10604,9 @@ static bool js_spine_SkeletonData_getName(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10550,11 +10623,11 @@ static bool js_spine_SkeletonData_getPathConstraints(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getPathConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getPathConstraints(); + spine::Vector& result = cobj->getPathConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getPathConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10569,11 +10642,11 @@ static bool js_spine_SkeletonData_getSkins(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getSkins : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getSkins(); + spine::Vector& result = cobj->getSkins(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getSkins : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10588,11 +10661,11 @@ static bool js_spine_SkeletonData_getSlots(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getSlots : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getSlots(); + spine::Vector& result = cobj->getSlots(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getSlots : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10607,11 +10680,11 @@ static bool js_spine_SkeletonData_getTransformConstraints(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getTransformConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getTransformConstraints(); + spine::Vector& result = cobj->getTransformConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonData_getTransformConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -10626,9 +10699,9 @@ static bool js_spine_SkeletonData_getVersion(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getVersion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getVersion(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10645,9 +10718,9 @@ static bool js_spine_SkeletonData_getWidth(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWidth(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10664,9 +10737,9 @@ static bool js_spine_SkeletonData_getX(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10683,9 +10756,9 @@ static bool js_spine_SkeletonData_getY(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_getY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -10702,9 +10775,9 @@ static bool js_spine_SkeletonData_setAudioPath(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setAudioPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10721,9 +10794,9 @@ static bool js_spine_SkeletonData_setDefaultSkin(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setDefaultSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10740,9 +10813,9 @@ static bool js_spine_SkeletonData_setFps(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setFps : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10759,9 +10832,9 @@ static bool js_spine_SkeletonData_setHash(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setHash : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10778,9 +10851,9 @@ static bool js_spine_SkeletonData_setHeight(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setHeight : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10797,9 +10870,9 @@ static bool js_spine_SkeletonData_setImagesPath(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setImagesPath : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10816,9 +10889,9 @@ static bool js_spine_SkeletonData_setName(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10835,9 +10908,9 @@ static bool js_spine_SkeletonData_setVersion(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setVersion : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10854,9 +10927,9 @@ static bool js_spine_SkeletonData_setWidth(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setWidth : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10873,9 +10946,9 @@ static bool js_spine_SkeletonData_setX(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10892,9 +10965,9 @@ static bool js_spine_SkeletonData_setY(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonData_setY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10907,8 +10980,6 @@ static bool js_spine_SkeletonData_setY(se::State& s) // NOLINT(readability-ident } SE_BIND_FUNC(js_spine_SkeletonData_setY) - - bool js_register_spine_SkeletonData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SkeletonData", obj, nullptr, nullptr); @@ -10964,15 +11035,15 @@ bool js_register_spine_SkeletonData(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_spine_Skin_proto = nullptr; -se::Class* __jsb_spine_Skin_class = nullptr; +se::Class* __jsb_spine_Skin_class = nullptr; static bool js_spine_Skin_addSkin(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_addSkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -10989,9 +11060,9 @@ static bool js_spine_Skin_copySkin(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_copySkin : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11008,11 +11079,11 @@ static bool js_spine_Skin_getAttachment(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -11032,11 +11103,11 @@ static bool js_spine_Skin_getBones(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skin_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -11051,11 +11122,11 @@ static bool js_spine_Skin_getConstraints(se::State& s) // NOLINT(readability-ide { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getConstraints : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getConstraints(); + spine::Vector& result = cobj->getConstraints(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_Skin_getConstraints : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -11070,9 +11141,9 @@ static bool js_spine_Skin_getName(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11089,11 +11160,11 @@ static bool js_spine_Skin_removeAttachment(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_removeAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -11110,12 +11181,12 @@ static bool js_spine_Skin_setAttachment(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Skin_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg0 = {}; + HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -11129,8 +11200,6 @@ static bool js_spine_Skin_setAttachment(se::State& s) // NOLINT(readability-iden } SE_BIND_FUNC(js_spine_Skin_setAttachment) - - bool js_register_spine_Skin(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Skin", obj, nullptr, nullptr); @@ -11153,15 +11222,15 @@ bool js_register_spine_Skin(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_spine_Slot_proto = nullptr; -se::Class* __jsb_spine_Slot_class = nullptr; +se::Class* __jsb_spine_Slot_class = nullptr; static bool js_spine_Slot_getAttachment(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Attachment* result = cobj->getAttachment(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11178,9 +11247,9 @@ static bool js_spine_Slot_getAttachmentTime(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getAttachmentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAttachmentTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11197,9 +11266,9 @@ static bool js_spine_Slot_getBone(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone& result = cobj->getBone(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11216,9 +11285,9 @@ static bool js_spine_Slot_getColor(se::State& s) // NOLINT(readability-identifie { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11235,9 +11304,9 @@ static bool js_spine_Slot_getDarkColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11254,9 +11323,9 @@ static bool js_spine_Slot_getData(se::State& s) // NOLINT(readability-identifier { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SlotData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11273,9 +11342,9 @@ static bool js_spine_Slot_getDeform(se::State& s) // NOLINT(readability-identifi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getDeform : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Vector& result = cobj->getDeform(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11292,9 +11361,9 @@ static bool js_spine_Slot_getSkeleton(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton& result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11311,9 +11380,9 @@ static bool js_spine_Slot_hasDarkColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_hasDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->hasDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11330,9 +11399,9 @@ static bool js_spine_Slot_setAttachment(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_setAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11349,9 +11418,9 @@ static bool js_spine_Slot_setAttachmentTime(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_setAttachmentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11369,7 +11438,7 @@ static bool js_spine_Slot_setToSetupPose(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_Slot_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -11379,8 +11448,6 @@ static bool js_spine_Slot_setToSetupPose(se::State& s) // NOLINT(readability-ide } SE_BIND_FUNC(js_spine_Slot_setToSetupPose) - - bool js_register_spine_Slot(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("Slot", obj, nullptr, nullptr); @@ -11407,15 +11474,15 @@ bool js_register_spine_Slot(se::Object* obj) // NOLINT(readability-identifier-na return true; } se::Object* __jsb_spine_SlotData_proto = nullptr; -se::Class* __jsb_spine_SlotData_class = nullptr; +se::Class* __jsb_spine_SlotData_class = nullptr; static bool js_spine_SlotData_getAttachmentName(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getAttachmentName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getAttachmentName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11432,9 +11499,9 @@ static bool js_spine_SlotData_getBlendMode(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = static_cast(cobj->getBlendMode()); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11451,9 +11518,9 @@ static bool js_spine_SlotData_getBoneData(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getBoneData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData& result = cobj->getBoneData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11470,9 +11537,9 @@ static bool js_spine_SlotData_getColor(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11489,9 +11556,9 @@ static bool js_spine_SlotData_getDarkColor(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Color& result = cobj->getDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11508,9 +11575,9 @@ static bool js_spine_SlotData_getIndex(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11527,9 +11594,9 @@ static bool js_spine_SlotData_getName(se::State& s) // NOLINT(readability-identi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_getName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const spine::String& result = cobj->getName(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11546,9 +11613,9 @@ static bool js_spine_SlotData_hasDarkColor(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_hasDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->hasDarkColor(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11565,9 +11632,9 @@ static bool js_spine_SlotData_setAttachmentName(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_setAttachmentName : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11584,9 +11651,9 @@ static bool js_spine_SlotData_setBlendMode(se::State& s) // NOLINT(readability-i { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_setBlendMode : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11603,9 +11670,9 @@ static bool js_spine_SlotData_setHasDarkColor(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SlotData_setHasDarkColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11618,8 +11685,6 @@ static bool js_spine_SlotData_setHasDarkColor(se::State& s) // NOLINT(readabilit } SE_BIND_FUNC(js_spine_SlotData_setHasDarkColor) - - bool js_register_spine_SlotData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SlotData", obj, nullptr, nullptr); @@ -11645,14 +11710,14 @@ bool js_register_spine_SlotData(se::Object* obj) // NOLINT(readability-identifie return true; } se::Object* __jsb_spine_TransformConstraint_proto = nullptr; -se::Class* __jsb_spine_TransformConstraint_class = nullptr; +se::Class* __jsb_spine_TransformConstraint_class = nullptr; static bool js_spine_TransformConstraint_apply(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_apply : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->apply(); return true; @@ -11666,11 +11731,11 @@ static bool js_spine_TransformConstraint_getBones(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_TransformConstraint_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -11685,9 +11750,9 @@ static bool js_spine_TransformConstraint_getData(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TransformConstraintData& result = cobj->getData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11704,9 +11769,9 @@ static bool js_spine_TransformConstraint_getOrder(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getOrder : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getOrder(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11723,9 +11788,9 @@ static bool js_spine_TransformConstraint_getRotateMix(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11742,9 +11807,9 @@ static bool js_spine_TransformConstraint_getScaleMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getScaleMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11761,9 +11826,9 @@ static bool js_spine_TransformConstraint_getShearMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getShearMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11780,9 +11845,9 @@ static bool js_spine_TransformConstraint_getTarget(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Bone* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11799,9 +11864,9 @@ static bool js_spine_TransformConstraint_getTranslateMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11818,9 +11883,9 @@ static bool js_spine_TransformConstraint_isActive(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_isActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isActive(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -11837,9 +11902,9 @@ static bool js_spine_TransformConstraint_setActive(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setActive : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11856,9 +11921,9 @@ static bool js_spine_TransformConstraint_setRotateMix(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11875,9 +11940,9 @@ static bool js_spine_TransformConstraint_setScaleMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setScaleMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11894,9 +11959,9 @@ static bool js_spine_TransformConstraint_setShearMix(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setShearMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11913,9 +11978,9 @@ static bool js_spine_TransformConstraint_setTarget(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11932,9 +11997,9 @@ static bool js_spine_TransformConstraint_setTranslateMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_setTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -11952,7 +12017,7 @@ static bool js_spine_TransformConstraint_update(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraint_update : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->update(); return true; @@ -11962,8 +12027,6 @@ static bool js_spine_TransformConstraint_update(se::State& s) // NOLINT(readabil } SE_BIND_FUNC(js_spine_TransformConstraint_update) - - bool js_register_spine_TransformConstraint(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformConstraint", obj, nullptr, nullptr); @@ -11995,17 +12058,17 @@ bool js_register_spine_TransformConstraint(se::Object* obj) // NOLINT(readabilit return true; } se::Object* __jsb_spine_TransformConstraintData_proto = nullptr; -se::Class* __jsb_spine_TransformConstraintData_class = nullptr; +se::Class* __jsb_spine_TransformConstraintData_class = nullptr; static bool js_spine_TransformConstraintData_getBones(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getBones : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - spine::Vector& result = cobj->getBones(); + spine::Vector& result = cobj->getBones(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_TransformConstraintData_getBones : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -12020,9 +12083,9 @@ static bool js_spine_TransformConstraintData_getOffsetRotation(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetRotation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetRotation(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12039,9 +12102,9 @@ static bool js_spine_TransformConstraintData_getOffsetScaleX(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetScaleX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetScaleX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12058,9 +12121,9 @@ static bool js_spine_TransformConstraintData_getOffsetScaleY(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetScaleY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetScaleY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12077,9 +12140,9 @@ static bool js_spine_TransformConstraintData_getOffsetShearY(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetShearY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetShearY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12096,9 +12159,9 @@ static bool js_spine_TransformConstraintData_getOffsetX(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12115,9 +12178,9 @@ static bool js_spine_TransformConstraintData_getOffsetY(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getOffsetY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getOffsetY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12134,9 +12197,9 @@ static bool js_spine_TransformConstraintData_getRotateMix(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getRotateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRotateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12153,9 +12216,9 @@ static bool js_spine_TransformConstraintData_getScaleMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getScaleMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getScaleMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12172,9 +12235,9 @@ static bool js_spine_TransformConstraintData_getShearMix(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getShearMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getShearMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12191,9 +12254,9 @@ static bool js_spine_TransformConstraintData_getTarget(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getTarget : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::BoneData* result = cobj->getTarget(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12210,9 +12273,9 @@ static bool js_spine_TransformConstraintData_getTranslateMix(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_getTranslateMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTranslateMix(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12229,9 +12292,9 @@ static bool js_spine_TransformConstraintData_isLocal(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_isLocal : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isLocal(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12248,9 +12311,9 @@ static bool js_spine_TransformConstraintData_isRelative(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintData_isRelative : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isRelative(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12263,8 +12326,6 @@ static bool js_spine_TransformConstraintData_isRelative(se::State& s) // NOLINT( } SE_BIND_FUNC(js_spine_TransformConstraintData_isRelative) - - bool js_register_spine_TransformConstraintData(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformConstraintData", obj, __jsb_spine_ConstraintData_proto, nullptr); @@ -12293,15 +12354,15 @@ bool js_register_spine_TransformConstraintData(se::Object* obj) // NOLINT(readab return true; } se::Object* __jsb_spine_TransformConstraintTimeline_proto = nullptr; -se::Class* __jsb_spine_TransformConstraintTimeline_class = nullptr; +se::Class* __jsb_spine_TransformConstraintTimeline_class = nullptr; static bool js_spine_TransformConstraintTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12318,16 +12379,16 @@ static bool js_spine_TransformConstraintTimeline_setFrame(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TransformConstraintTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 6) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; - HolderType arg4 = {}; - HolderType arg5 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; + HolderType arg4 = {}; + HolderType arg5 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -12343,8 +12404,6 @@ static bool js_spine_TransformConstraintTimeline_setFrame(se::State& s) // NOLIN } SE_BIND_FUNC(js_spine_TransformConstraintTimeline_setFrame) - - bool js_register_spine_TransformConstraintTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TransformConstraintTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -12361,15 +12420,15 @@ bool js_register_spine_TransformConstraintTimeline(se::Object* obj) // NOLINT(re return true; } se::Object* __jsb_spine_TwoColorTimeline_proto = nullptr; -se::Class* __jsb_spine_TwoColorTimeline_class = nullptr; +se::Class* __jsb_spine_TwoColorTimeline_class = nullptr; static bool js_spine_TwoColorTimeline_getPropertyId(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_getPropertyId : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getPropertyId(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12386,9 +12445,9 @@ static bool js_spine_TwoColorTimeline_getSlotIndex(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_getSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { int result = cobj->getSlotIndex(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12405,11 +12464,11 @@ static bool js_spine_TwoColorTimeline_setFrame(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 9) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -12440,9 +12499,9 @@ static bool js_spine_TwoColorTimeline_setSlotIndex(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_TwoColorTimeline_setSlotIndex : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12455,8 +12514,6 @@ static bool js_spine_TwoColorTimeline_setSlotIndex(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_TwoColorTimeline_setSlotIndex) - - bool js_register_spine_TwoColorTimeline(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("TwoColorTimeline", obj, __jsb_spine_CurveTimeline_proto, nullptr); @@ -12475,9 +12532,7 @@ bool js_register_spine_TwoColorTimeline(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_VertexEffect_proto = nullptr; -se::Class* __jsb_spine_VertexEffect_class = nullptr; - - +se::Class* __jsb_spine_VertexEffect_class = nullptr; bool js_register_spine_VertexEffect(se::Object* obj) // NOLINT(readability-identifier-naming) { @@ -12493,15 +12548,15 @@ bool js_register_spine_VertexEffect(se::Object* obj) // NOLINT(readability-ident return true; } se::Object* __jsb_spine_JitterVertexEffect_proto = nullptr; -se::Class* __jsb_spine_JitterVertexEffect_class = nullptr; +se::Class* __jsb_spine_JitterVertexEffect_class = nullptr; static bool js_spine_JitterVertexEffect_getJitterX(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_getJitterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getJitterX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12518,9 +12573,9 @@ static bool js_spine_JitterVertexEffect_getJitterY(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_getJitterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getJitterY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12537,9 +12592,9 @@ static bool js_spine_JitterVertexEffect_setJitterX(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_setJitterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12556,9 +12611,9 @@ static bool js_spine_JitterVertexEffect_setJitterY(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_JitterVertexEffect_setJitterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12571,8 +12626,6 @@ static bool js_spine_JitterVertexEffect_setJitterY(se::State& s) // NOLINT(reada } SE_BIND_FUNC(js_spine_JitterVertexEffect_setJitterY) - - bool js_register_spine_JitterVertexEffect(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("JitterVertexEffect", obj, __jsb_spine_VertexEffect_proto, nullptr); @@ -12591,15 +12644,15 @@ bool js_register_spine_JitterVertexEffect(se::Object* obj) // NOLINT(readability return true; } se::Object* __jsb_spine_SwirlVertexEffect_proto = nullptr; -se::Class* __jsb_spine_SwirlVertexEffect_class = nullptr; +se::Class* __jsb_spine_SwirlVertexEffect_class = nullptr; static bool js_spine_SwirlVertexEffect_getAngle(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getAngle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getAngle(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12616,9 +12669,9 @@ static bool js_spine_SwirlVertexEffect_getCenterX(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getCenterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getCenterX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12635,9 +12688,9 @@ static bool js_spine_SwirlVertexEffect_getCenterY(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getCenterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getCenterY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12654,9 +12707,9 @@ static bool js_spine_SwirlVertexEffect_getRadius(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getRadius(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12673,9 +12726,9 @@ static bool js_spine_SwirlVertexEffect_getWorldX(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldX(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12692,9 +12745,9 @@ static bool js_spine_SwirlVertexEffect_getWorldY(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_getWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getWorldY(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12711,9 +12764,9 @@ static bool js_spine_SwirlVertexEffect_setAngle(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setAngle : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12730,9 +12783,9 @@ static bool js_spine_SwirlVertexEffect_setCenterX(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setCenterX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12749,9 +12802,9 @@ static bool js_spine_SwirlVertexEffect_setCenterY(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setCenterY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12768,9 +12821,9 @@ static bool js_spine_SwirlVertexEffect_setRadius(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setRadius : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12787,9 +12840,9 @@ static bool js_spine_SwirlVertexEffect_setWorldX(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setWorldX : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12806,9 +12859,9 @@ static bool js_spine_SwirlVertexEffect_setWorldY(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SwirlVertexEffect_setWorldY : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -12821,8 +12874,6 @@ static bool js_spine_SwirlVertexEffect_setWorldY(se::State& s) // NOLINT(readabi } SE_BIND_FUNC(js_spine_SwirlVertexEffect_setWorldY) - - bool js_register_spine_SwirlVertexEffect(se::Object* obj) // NOLINT(readability-identifier-naming) { auto* cls = se::Class::create("SwirlVertexEffect", obj, __jsb_spine_VertexEffect_proto, nullptr); @@ -12849,14 +12900,14 @@ bool js_register_spine_SwirlVertexEffect(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_VertexEffectDelegate_proto = nullptr; -se::Class* __jsb_spine_VertexEffectDelegate_class = nullptr; +se::Class* __jsb_spine_VertexEffectDelegate_class = nullptr; static bool js_spine_VertexEffectDelegate_clear(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_clear : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clear(); return true; @@ -12870,9 +12921,9 @@ static bool js_spine_VertexEffectDelegate_getEffectType(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getEffectType : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { const std::string& result = cobj->getEffectType(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12889,9 +12940,9 @@ static bool js_spine_VertexEffectDelegate_getJitterVertexEffect(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getJitterVertexEffect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::JitterVertexEffect* result = cobj->getJitterVertexEffect(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12908,9 +12959,9 @@ static bool js_spine_VertexEffectDelegate_getSwirlVertexEffect(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getSwirlVertexEffect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SwirlVertexEffect* result = cobj->getSwirlVertexEffect(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12927,9 +12978,9 @@ static bool js_spine_VertexEffectDelegate_getVertexEffect(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_getVertexEffect : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::VertexEffect* result = cobj->getVertexEffect(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -12946,9 +12997,9 @@ static bool js_spine_VertexEffectDelegate_initJitter(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_initJitter : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -12970,12 +13021,12 @@ static bool js_spine_VertexEffectDelegate_initSwirlWithPow(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_initSwirlWithPow : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_VertexEffectDelegate_initSwirlWithPow : Error processing arguments"); @@ -12994,12 +13045,12 @@ static bool js_spine_VertexEffectDelegate_initSwirlWithPowOut(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_VertexEffectDelegate_initSwirlWithPowOut : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_VertexEffectDelegate_initSwirlWithPowOut : Error processing arguments"); @@ -13024,11 +13075,9 @@ static bool js_spine_VertexEffectDelegate_constructor(se::State& s) // NOLINT(re } SE_BIND_CTOR(js_spine_VertexEffectDelegate_constructor, __jsb_spine_VertexEffectDelegate_class, js_spine_VertexEffectDelegate_finalize) - - static bool js_spine_VertexEffectDelegate_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -13057,14 +13106,14 @@ bool js_register_spine_VertexEffectDelegate(se::Object* obj) // NOLINT(readabili return true; } se::Object* __jsb_spine_SkeletonRenderer_proto = nullptr; -se::Class* __jsb_spine_SkeletonRenderer_class = nullptr; +se::Class* __jsb_spine_SkeletonRenderer_class = nullptr; static bool js_spine_SkeletonRenderer_beginSchedule(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_beginSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginSchedule(); return true; @@ -13078,9 +13127,9 @@ static bool js_spine_SkeletonRenderer_findBone(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13100,9 +13149,9 @@ static bool js_spine_SkeletonRenderer_findSlot(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13122,9 +13171,9 @@ static bool js_spine_SkeletonRenderer_getAttachment(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -13146,9 +13195,9 @@ static bool js_spine_SkeletonRenderer_getBoundingBox(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getBoundingBox : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::Rect result = cobj->getBoundingBox(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13165,9 +13214,9 @@ static bool js_spine_SkeletonRenderer_getDebugData(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getDebugData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getDebugData(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13184,9 +13233,9 @@ static bool js_spine_SkeletonRenderer_getParamsBuffer(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13203,9 +13252,9 @@ static bool js_spine_SkeletonRenderer_getSharedBufferOffset(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13222,9 +13271,9 @@ static bool js_spine_SkeletonRenderer_getSkeleton(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton* result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13241,9 +13290,9 @@ static bool js_spine_SkeletonRenderer_getTimeScale(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13260,9 +13309,9 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_initWithSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13272,7 +13321,7 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r } if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonRenderer_initWithSkeleton : Error processing arguments"); @@ -13281,8 +13330,8 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -13292,9 +13341,9 @@ static bool js_spine_SkeletonRenderer_initWithSkeleton(se::State& s) // NOLINT(r } if (argc == 4) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -13312,9 +13361,9 @@ static bool js_spine_SkeletonRenderer_initWithUUID(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_initWithUUID : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13332,7 +13381,7 @@ static bool js_spine_SkeletonRenderer_initialize(se::State& s) // NOLINT(readabi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_initialize : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->initialize(); return true; @@ -13346,9 +13395,9 @@ static bool js_spine_SkeletonRenderer_isOpacityModifyRGB(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_isOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isOpacityModifyRGB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -13366,7 +13415,7 @@ static bool js_spine_SkeletonRenderer_onDisable(se::State& s) // NOLINT(readabil auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -13381,7 +13430,7 @@ static bool js_spine_SkeletonRenderer_onEnable(se::State& s) // NOLINT(readabili auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -13395,9 +13444,9 @@ static bool js_spine_SkeletonRenderer_paused(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_paused : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13414,9 +13463,9 @@ static bool js_spine_SkeletonRenderer_render(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_render : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13433,9 +13482,9 @@ static bool js_spine_SkeletonRenderer_setAttachEnabled(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13450,27 +13499,33 @@ SE_BIND_FUNC(js_spine_SkeletonRenderer_setAttachEnabled) static bool js_spine_SkeletonRenderer_setAttachment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_SkeletonRenderer_setAttachment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setAttachment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonRenderer_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 2) { @@ -13478,16 +13533,22 @@ static bool js_spine_SkeletonRenderer_setAttachment(se::State& s) // NOLINT(read HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonRenderer_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -13498,9 +13559,9 @@ static bool js_spine_SkeletonRenderer_setBatchEnabled(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13518,7 +13579,7 @@ static bool js_spine_SkeletonRenderer_setBonesToSetupPose(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setBonesToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setBonesToSetupPose(); return true; @@ -13532,9 +13593,9 @@ static bool js_spine_SkeletonRenderer_setColor(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -13557,9 +13618,9 @@ static bool js_spine_SkeletonRenderer_setDebugBonesEnabled(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setDebugBonesEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13576,9 +13637,9 @@ static bool js_spine_SkeletonRenderer_setDebugMeshEnabled(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setDebugMeshEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13595,9 +13656,9 @@ static bool js_spine_SkeletonRenderer_setDebugSlotsEnabled(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setDebugSlotsEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13614,9 +13675,9 @@ static bool js_spine_SkeletonRenderer_setOpacityModifyRGB(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13631,32 +13692,38 @@ SE_BIND_FUNC(js_spine_SkeletonRenderer_setOpacityModifyRGB) static bool js_spine_SkeletonRenderer_setSkin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_SkeletonRenderer_setSkin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setSkin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setSkin(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setSkin(arg0.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -13667,9 +13734,9 @@ static bool js_spine_SkeletonRenderer_setSlotsRange(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setSlotsRange : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -13689,7 +13756,7 @@ static bool js_spine_SkeletonRenderer_setSlotsToSetupPose(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setSlotsToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setSlotsToSetupPose(); return true; @@ -13703,9 +13770,9 @@ static bool js_spine_SkeletonRenderer_setTimeScale(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13723,7 +13790,7 @@ static bool js_spine_SkeletonRenderer_setToSetupPose(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -13737,9 +13804,9 @@ static bool js_spine_SkeletonRenderer_setUseTint(se::State& s) // NOLINT(readabi { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setUseTint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13756,9 +13823,9 @@ static bool js_spine_SkeletonRenderer_setVertexEffectDelegate(se::State& s) // N { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_setVertexEffectDelegate : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13776,7 +13843,7 @@ static bool js_spine_SkeletonRenderer_stopSchedule(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -13790,9 +13857,9 @@ static bool js_spine_SkeletonRenderer_update(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -13810,7 +13877,7 @@ static bool js_spine_SkeletonRenderer_updateWorldTransform(se::State& s) // NOLI auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonRenderer_updateWorldTransform : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateWorldTransform(); return true; @@ -13824,136 +13891,188 @@ SE_DECLARE_FINALIZE_FUNC(js_spine_SkeletonRenderer_finalize) static bool js_spine_SkeletonRenderer_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor_overloaded.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - size_t argc = args.size(); + CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 3) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg2 = {}; ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value(), arg2.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 4) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg2 = {}; ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg3 = {}; ok &= sevalue_to_native(args[3], &arg3, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value(), arg2.value(), arg3.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 0) { spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 2) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); do { if (argc == 3) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg1 = {}; ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } HolderType arg2 = {}; ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } spine::SkeletonRenderer* cobj = JSB_ALLOC(spine::SkeletonRenderer, arg0.value(), arg1.value(), arg2.value()); s.thisObject()->setPrivateData(cobj); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; } SE_BIND_CTOR(js_spine_SkeletonRenderer_constructor, __jsb_spine_SkeletonRenderer_class, js_spine_SkeletonRenderer_finalize) - - static bool js_spine_SkeletonRenderer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -14011,19 +14130,19 @@ bool js_register_spine_SkeletonRenderer(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_SkeletonAnimation_proto = nullptr; -se::Class* __jsb_spine_SkeletonAnimation_class = nullptr; +se::Class* __jsb_spine_SkeletonAnimation_class = nullptr; static bool js_spine_SkeletonAnimation_addAnimation(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_addAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14035,10 +14154,10 @@ static bool js_spine_SkeletonAnimation_addAnimation(se::State& s) // NOLINT(read return true; } if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; - HolderType arg3 = {}; + HolderType arg2 = {}; + HolderType arg3 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14059,11 +14178,11 @@ static bool js_spine_SkeletonAnimation_addEmptyAnimation(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_addEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -14075,7 +14194,7 @@ static bool js_spine_SkeletonAnimation_addEmptyAnimation(se::State& s) // NOLINT return true; } if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14097,9 +14216,9 @@ static bool js_spine_SkeletonAnimation_clearTrack(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_clearTrack : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cobj->clearTrack(); return true; @@ -14121,7 +14240,7 @@ static bool js_spine_SkeletonAnimation_clearTracks(se::State& s) // NOLINT(reada auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_clearTracks : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->clearTracks(); return true; @@ -14135,9 +14254,9 @@ static bool js_spine_SkeletonAnimation_findAnimation(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_findAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14157,9 +14276,9 @@ static bool js_spine_SkeletonAnimation_getCurrent(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_getCurrent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::TrackEntry* result = cobj->getCurrent(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -14186,9 +14305,9 @@ static bool js_spine_SkeletonAnimation_getState(se::State& s) // NOLINT(readabil { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_getState : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::AnimationState* result = cobj->getState(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -14205,13 +14324,13 @@ static bool js_spine_SkeletonAnimation_setAnimation(se::State& s) // NOLINT(read { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14231,9 +14350,9 @@ static bool js_spine_SkeletonAnimation_setAnimationStateData(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setAnimationStateData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14250,41 +14369,37 @@ static bool js_spine_SkeletonAnimation_setCompleteListener(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setCompleteListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setCompleteListener : Error processing arguments"); cobj->setCompleteListener(arg0.value()); return true; @@ -14298,41 +14413,37 @@ static bool js_spine_SkeletonAnimation_setDisposeListener(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setDisposeListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setDisposeListener : Error processing arguments"); cobj->setDisposeListener(arg0.value()); return true; @@ -14346,11 +14457,11 @@ static bool js_spine_SkeletonAnimation_setEmptyAnimation(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEmptyAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); @@ -14370,9 +14481,9 @@ static bool js_spine_SkeletonAnimation_setEmptyAnimations(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEmptyAnimations : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -14389,41 +14500,37 @@ static bool js_spine_SkeletonAnimation_setEndListener(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEndListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setEndListener : Error processing arguments"); cobj->setEndListener(arg0.value()); return true; @@ -14437,42 +14544,38 @@ static bool js_spine_SkeletonAnimation_setEventListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0, spine::Event* larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setEventListener : Error processing arguments"); cobj->setEventListener(arg0.value()); return true; @@ -14486,41 +14589,37 @@ static bool js_spine_SkeletonAnimation_setInterruptListener(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setInterruptListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setInterruptListener : Error processing arguments"); cobj->setInterruptListener(arg0.value()); return true; @@ -14534,13 +14633,13 @@ static bool js_spine_SkeletonAnimation_setMix(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setMix : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -14557,41 +14656,37 @@ static bool js_spine_SkeletonAnimation_setStartListener(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setStartListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setStartListener : Error processing arguments"); cobj->setStartListener(arg0.value()); return true; @@ -14605,43 +14700,39 @@ static bool js_spine_SkeletonAnimation_setTrackCompleteListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackCompleteListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackCompleteListener : Error processing arguments"); cobj->setTrackCompleteListener(arg0.value(), arg1.value()); return true; @@ -14655,43 +14746,39 @@ static bool js_spine_SkeletonAnimation_setTrackDisposeListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackDisposeListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackDisposeListener : Error processing arguments"); cobj->setTrackDisposeListener(arg0.value(), arg1.value()); return true; @@ -14705,43 +14792,39 @@ static bool js_spine_SkeletonAnimation_setTrackEndListener(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackEndListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackEndListener : Error processing arguments"); cobj->setTrackEndListener(arg0.value(), arg1.value()); return true; @@ -14755,44 +14838,40 @@ static bool js_spine_SkeletonAnimation_setTrackEventListener(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0, spine::Event* larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackEventListener : Error processing arguments"); cobj->setTrackEventListener(arg0.value(), arg1.value()); return true; @@ -14806,43 +14885,39 @@ static bool js_spine_SkeletonAnimation_setTrackInterruptListener(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackInterruptListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackInterruptListener : Error processing arguments"); cobj->setTrackInterruptListener(arg0.value(), arg1.value()); return true; @@ -14856,43 +14931,39 @@ static bool js_spine_SkeletonAnimation_setTrackStartListener(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonAnimation_setTrackStartListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](spine::TrackEntry* larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonAnimation_setTrackStartListener : Error processing arguments"); cobj->setTrackStartListener(arg0.value(), arg1.value()); return true; @@ -14904,9 +14975,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_setTrackStartListener) static bool js_spine_SkeletonAnimation_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = spine::SkeletonAnimation::create(); result->retain(); @@ -14922,9 +14993,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_create) static bool js_spine_SkeletonAnimation_createWithJsonFile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -14941,7 +15012,7 @@ static bool js_spine_SkeletonAnimation_createWithJsonFile(se::State& s) // NOLIN if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); ok &= sevalue_to_native(args[2], &arg2, nullptr); @@ -14960,9 +15031,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_createWithJsonFile) static bool js_spine_SkeletonAnimation_createWithBinaryFile(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -14979,7 +15050,7 @@ static bool js_spine_SkeletonAnimation_createWithBinaryFile(se::State& s) // NOL if (argc == 3) { HolderType arg0 = {}; HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); ok &= sevalue_to_native(args[1], &arg1, nullptr); ok &= sevalue_to_native(args[2], &arg2, nullptr); @@ -14998,9 +15069,9 @@ SE_BIND_FUNC(js_spine_SkeletonAnimation_createWithBinaryFile) static bool js_spine_SkeletonAnimation_setGlobalTimeScale(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, nullptr); @@ -15031,12 +15102,9 @@ static bool js_spine_SkeletonAnimation_ctor(se::State& s) // NOLINT(readability- } SE_BIND_SUB_CLS_CTOR(js_spine_SkeletonAnimation_ctor, __jsb_spine_SkeletonAnimation_class, js_spine_SkeletonAnimation_finalize) - - - static bool js_spine_SkeletonAnimation_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -15087,18 +15155,18 @@ bool js_register_spine_SkeletonAnimation(se::Object* obj) // NOLINT(readability- return true; } se::Object* __jsb_spine_SkeletonCacheAnimation_proto = nullptr; -se::Class* __jsb_spine_SkeletonCacheAnimation_class = nullptr; +se::Class* __jsb_spine_SkeletonCacheAnimation_class = nullptr; static bool js_spine_SkeletonCacheAnimation_addAnimation(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_addAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_addAnimation : Error processing arguments"); @@ -15107,8 +15175,8 @@ static bool js_spine_SkeletonCacheAnimation_addAnimation(se::State& s) // NOLINT } if (argc == 3) { HolderType arg0 = {}; - HolderType arg1 = {}; - HolderType arg2 = {}; + HolderType arg1 = {}; + HolderType arg2 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); ok &= sevalue_to_native(args[2], &arg2, s.thisObject()); @@ -15126,7 +15194,7 @@ static bool js_spine_SkeletonCacheAnimation_beginSchedule(se::State& s) // NOLIN auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_beginSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->beginSchedule(); return true; @@ -15140,9 +15208,9 @@ static bool js_spine_SkeletonCacheAnimation_findAnimation(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_findAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15162,9 +15230,9 @@ static bool js_spine_SkeletonCacheAnimation_findBone(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_findBone : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15184,9 +15252,9 @@ static bool js_spine_SkeletonCacheAnimation_findSlot(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_findSlot : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15206,9 +15274,9 @@ static bool js_spine_SkeletonCacheAnimation_getAttachment(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getAttachment : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -15230,9 +15298,9 @@ static bool js_spine_SkeletonCacheAnimation_getParamsBuffer(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getParamsBuffer : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getParamsBuffer(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15249,9 +15317,9 @@ static bool js_spine_SkeletonCacheAnimation_getSharedBufferOffset(se::State& s) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getSharedBufferOffset : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { se::Object* result = cobj->getSharedBufferOffset(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15268,9 +15336,9 @@ static bool js_spine_SkeletonCacheAnimation_getSkeleton(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getSkeleton : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::Skeleton* result = cobj->getSkeleton(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15287,9 +15355,9 @@ static bool js_spine_SkeletonCacheAnimation_getTimeScale(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_getTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->getTimeScale(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15306,9 +15374,9 @@ static bool js_spine_SkeletonCacheAnimation_isOpacityModifyRGB(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_isOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isOpacityModifyRGB(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15326,7 +15394,7 @@ static bool js_spine_SkeletonCacheAnimation_onDisable(se::State& s) // NOLINT(re auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_onDisable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onDisable(); return true; @@ -15341,7 +15409,7 @@ static bool js_spine_SkeletonCacheAnimation_onEnable(se::State& s) // NOLINT(rea auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_onEnable : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->onEnable(); return true; @@ -15355,9 +15423,9 @@ static bool js_spine_SkeletonCacheAnimation_paused(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_paused : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15374,12 +15442,12 @@ static bool js_spine_SkeletonCacheAnimation_setAnimation(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setAnimation : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setAnimation : Error processing arguments"); @@ -15395,9 +15463,9 @@ static bool js_spine_SkeletonCacheAnimation_setAttachEnabled(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setAttachEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15412,27 +15480,33 @@ SE_BIND_FUNC(js_spine_SkeletonCacheAnimation_setAttachEnabled) static bool js_spine_SkeletonCacheAnimation_setAttachment(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_SkeletonCacheAnimation_setAttachment : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setAttachment : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 2) { HolderType arg0 = {}; - HolderType arg1 = {}; + HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); do { if (argc == 2) { @@ -15440,16 +15514,22 @@ static bool js_spine_SkeletonCacheAnimation_setAttachment(se::State& s) // NOLIN HolderType arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } bool result = cobj->setAttachment(arg0.value(), arg1.value()); ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setAttachment : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -15460,9 +15540,9 @@ static bool js_spine_SkeletonCacheAnimation_setBatchEnabled(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setBatchEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15480,7 +15560,7 @@ static bool js_spine_SkeletonCacheAnimation_setBonesToSetupPose(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setBonesToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setBonesToSetupPose(); return true; @@ -15494,9 +15574,9 @@ static bool js_spine_SkeletonCacheAnimation_setColor(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setColor : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -15519,41 +15599,37 @@ static bool js_spine_SkeletonCacheAnimation_setCompleteListener(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setCompleteListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setCompleteListener : Error processing arguments"); cobj->setCompleteListener(arg0.value()); return true; @@ -15567,41 +15643,37 @@ static bool js_spine_SkeletonCacheAnimation_setEndListener(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setEndListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setEndListener : Error processing arguments"); cobj->setEndListener(arg0.value()); return true; @@ -15615,9 +15687,9 @@ static bool js_spine_SkeletonCacheAnimation_setOpacityModifyRGB(se::State& s) // { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setOpacityModifyRGB : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15632,32 +15704,38 @@ SE_BIND_FUNC(js_spine_SkeletonCacheAnimation_setOpacityModifyRGB) static bool js_spine_SkeletonCacheAnimation_setSkin(se::State& s) // NOLINT(readability-identifier-naming) { - CC_UNUSED bool ok = true; - auto* cobj = SE_THIS_OBJECT(s); - SE_PRECONDITION2( cobj, false, "js_spine_SkeletonCacheAnimation_setSkin : Invalid Native Object"); + CC_UNUSED bool ok = true; + auto* cobj = SE_THIS_OBJECT(s); + SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setSkin : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setSkin(arg0.value()); return true; } - } while(false); + } while (false); do { if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); - if (!ok) { ok = true; break; } + if (!ok) { + ok = true; + break; + } cobj->setSkin(arg0.value()); return true; } - } while(false); + } while (false); SE_REPORT_ERROR("wrong number of arguments: %d", (int)argc); return false; @@ -15669,7 +15747,7 @@ static bool js_spine_SkeletonCacheAnimation_setSlotsToSetupPose(se::State& s) // auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setSlotsToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setSlotsToSetupPose(); return true; @@ -15683,41 +15761,37 @@ static bool js_spine_SkeletonCacheAnimation_setStartListener(se::State& s) // NO { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setStartListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](std::string larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_setStartListener : Error processing arguments"); cobj->setStartListener(arg0.value()); return true; @@ -15731,9 +15805,9 @@ static bool js_spine_SkeletonCacheAnimation_setTimeScale(se::State& s) // NOLINT { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setTimeScale : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15751,7 +15825,7 @@ static bool js_spine_SkeletonCacheAnimation_setToSetupPose(se::State& s) // NOLI auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setToSetupPose : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->setToSetupPose(); return true; @@ -15765,9 +15839,9 @@ static bool js_spine_SkeletonCacheAnimation_setUseTint(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_setUseTint : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15785,7 +15859,7 @@ static bool js_spine_SkeletonCacheAnimation_stopSchedule(se::State& s) // NOLINT auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_stopSchedule : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopSchedule(); return true; @@ -15799,9 +15873,9 @@ static bool js_spine_SkeletonCacheAnimation_update(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_update : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15819,7 +15893,7 @@ static bool js_spine_SkeletonCacheAnimation_updateAllAnimationCache(se::State& s auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_updateAllAnimationCache : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->updateAllAnimationCache(); return true; @@ -15833,9 +15907,9 @@ static bool js_spine_SkeletonCacheAnimation_updateAnimationCache(se::State& s) / { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheAnimation_updateAnimationCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15852,10 +15926,10 @@ SE_DECLARE_FINALIZE_FUNC(js_spine_SkeletonCacheAnimation_finalize) static bool js_spine_SkeletonCacheAnimation_constructor(se::State& s) // NOLINT(readability-identifier-naming) constructor.c { - CC_UNUSED bool ok = true; - const auto& args = s.args(); - std::string arg0; - bool arg1; + CC_UNUSED bool ok = true; + const auto& args = s.args(); + std::string arg0; + bool arg1; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); ok &= sevalue_to_native(args[1], &arg1, s.thisObject()); SE_PRECONDITION2(ok, false, "js_spine_SkeletonCacheAnimation_constructor : Error processing arguments"); @@ -15865,11 +15939,9 @@ static bool js_spine_SkeletonCacheAnimation_constructor(se::State& s) // NOLINT( } SE_BIND_CTOR(js_spine_SkeletonCacheAnimation_constructor, __jsb_spine_SkeletonCacheAnimation_class, js_spine_SkeletonCacheAnimation_finalize) - - static bool js_spine_SkeletonCacheAnimation_finalize(se::State& s) // NOLINT(readability-identifier-naming) { - auto* cobj =SE_THIS_OBJECT(s); + auto* cobj = SE_THIS_OBJECT(s); cobj->release(); return true; } @@ -15923,15 +15995,15 @@ bool js_register_spine_SkeletonCacheAnimation(se::Object* obj) // NOLINT(readabi return true; } se::Object* __jsb_spine_SkeletonCacheMgr_proto = nullptr; -se::Class* __jsb_spine_SkeletonCacheMgr_class = nullptr; +se::Class* __jsb_spine_SkeletonCacheMgr_class = nullptr; static bool js_spine_SkeletonCacheMgr_buildSkeletonCache(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheMgr_buildSkeletonCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15951,9 +16023,9 @@ static bool js_spine_SkeletonCacheMgr_removeSkeletonCache(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonCacheMgr_removeSkeletonCache : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -15968,9 +16040,9 @@ SE_BIND_FUNC(js_spine_SkeletonCacheMgr_removeSkeletonCache) static bool js_spine_SkeletonCacheMgr_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonCacheMgr* result = spine::SkeletonCacheMgr::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -15986,7 +16058,7 @@ SE_BIND_FUNC(js_spine_SkeletonCacheMgr_getInstance) static bool js_spine_SkeletonCacheMgr_destroyInstance(se::State& s) // NOLINT(readability-identifier-naming) { const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { spine::SkeletonCacheMgr::destroyInstance(); return true; @@ -15996,12 +16068,10 @@ static bool js_spine_SkeletonCacheMgr_destroyInstance(se::State& s) // NOLINT(re } SE_BIND_FUNC(js_spine_SkeletonCacheMgr_destroyInstance) - static bool js_spine_SkeletonCacheMgr_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -16029,47 +16099,43 @@ bool js_register_spine_SkeletonCacheMgr(se::Object* obj) // NOLINT(readability-i return true; } se::Object* __jsb_spine_SkeletonDataMgr_proto = nullptr; -se::Class* __jsb_spine_SkeletonDataMgr_class = nullptr; +se::Class* __jsb_spine_SkeletonDataMgr_class = nullptr; static bool js_spine_SkeletonDataMgr_setDestroyCallback(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_spine_SkeletonDataMgr_setDestroyCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, false> arg0 = {}; + HolderType, false> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](int larg0) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(1); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_spine_SkeletonDataMgr_setDestroyCallback : Error processing arguments"); cobj->setDestroyCallback(arg0.value()); return true; @@ -16081,9 +16147,9 @@ SE_BIND_FUNC(js_spine_SkeletonDataMgr_setDestroyCallback) static bool js_spine_SkeletonDataMgr_getInstance(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { spine::SkeletonDataMgr* result = spine::SkeletonDataMgr::getInstance(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -16107,13 +16173,10 @@ static bool js_spine_SkeletonDataMgr_constructor(se::State& s) // NOLINT(readabi } SE_BIND_CTOR(js_spine_SkeletonDataMgr_constructor, __jsb_spine_SkeletonDataMgr_class, js_spine_SkeletonDataMgr_finalize) - - static bool js_spine_SkeletonDataMgr_finalize(se::State& s) // NOLINT(readability-identifier-naming) { auto iter = se::NonRefNativePtrCreatedByCtorMap::find(SE_THIS_OBJECT(s)); - if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) - { + if (iter != se::NonRefNativePtrCreatedByCtorMap::end()) { se::NonRefNativePtrCreatedByCtorMap::erase(iter); auto* cobj = SE_THIS_OBJECT(s); JSB_FREE(cobj); @@ -16138,12 +16201,10 @@ bool js_register_spine_SkeletonDataMgr(se::Object* obj) // NOLINT(readability-id se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_spine(se::Object* obj) -{ +bool register_all_spine(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("spine", &nsVal)) - { + if (!obj->getProperty("spine", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("spine", nsVal); @@ -16209,4 +16270,3 @@ bool register_all_spine(se::Object* obj) js_register_spine_SkeletonDataMgr(ns); return true; } - diff --git a/native/cocos/bindings/auto/jsb_spine_auto.h b/native/cocos/bindings/auto/jsb_spine_auto.h index f93e49071a..6a22d5591f 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.h +++ b/native/cocos/bindings/auto/jsb_spine_auto.h @@ -1,12 +1,37 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once -#include "base/Config.h" #include +#include "base/Config.h" #include "cocos/bindings/jswrapper/SeApi.h" #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/editor-support/spine-creator-support/spine-cocos2dx.h" extern se::Object* __jsb_spine_Animation_proto; -extern se::Class* __jsb_spine_Animation_class; +extern se::Class* __jsb_spine_Animation_class; bool js_register_spine_Animation(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -19,7 +44,7 @@ SE_DECLARE_FUNC(js_spine_Animation_hasTimeline); SE_DECLARE_FUNC(js_spine_Animation_setDuration); extern se::Object* __jsb_spine_TrackEntry_proto; -extern se::Class* __jsb_spine_TrackEntry_class; +extern se::Class* __jsb_spine_TrackEntry_class; bool js_register_spine_TrackEntry(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -67,7 +92,7 @@ SE_DECLARE_FUNC(js_spine_TrackEntry_setTrackEnd); SE_DECLARE_FUNC(js_spine_TrackEntry_setTrackTime); extern se::Object* __jsb_spine_AnimationState_proto; -extern se::Class* __jsb_spine_AnimationState_class; +extern se::Class* __jsb_spine_AnimationState_class; bool js_register_spine_AnimationState(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -90,7 +115,7 @@ SE_DECLARE_FUNC(js_spine_AnimationState_setTimeScale); SE_DECLARE_FUNC(js_spine_AnimationState_update); extern se::Object* __jsb_spine_AnimationStateData_proto; -extern se::Class* __jsb_spine_AnimationStateData_class; +extern se::Class* __jsb_spine_AnimationStateData_class; bool js_register_spine_AnimationStateData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -103,7 +128,7 @@ SE_DECLARE_FUNC(js_spine_AnimationStateData_setDefaultMix); SE_DECLARE_FUNC(js_spine_AnimationStateData_setMix); extern se::Object* __jsb_spine_Attachment_proto; -extern se::Class* __jsb_spine_Attachment_class; +extern se::Class* __jsb_spine_Attachment_class; bool js_register_spine_Attachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -116,7 +141,7 @@ SE_DECLARE_FUNC(js_spine_Attachment_getRefCount); SE_DECLARE_FUNC(js_spine_Attachment_reference); extern se::Object* __jsb_spine_Timeline_proto; -extern se::Class* __jsb_spine_Timeline_class; +extern se::Class* __jsb_spine_Timeline_class; bool js_register_spine_Timeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -125,7 +150,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::Timeline); SE_DECLARE_FUNC(js_spine_Timeline_getPropertyId); extern se::Object* __jsb_spine_AttachmentTimeline_proto; -extern se::Class* __jsb_spine_AttachmentTimeline_class; +extern se::Class* __jsb_spine_AttachmentTimeline_class; bool js_register_spine_AttachmentTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -140,7 +165,7 @@ SE_DECLARE_FUNC(js_spine_AttachmentTimeline_setFrame); SE_DECLARE_FUNC(js_spine_AttachmentTimeline_setSlotIndex); extern se::Object* __jsb_spine_Bone_proto; -extern se::Class* __jsb_spine_Bone_class; +extern se::Class* __jsb_spine_Bone_class; bool js_register_spine_Bone(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -208,7 +233,7 @@ SE_DECLARE_FUNC(js_spine_Bone_setYDown); SE_DECLARE_FUNC(js_spine_Bone_isYDown); extern se::Object* __jsb_spine_BoneData_proto; -extern se::Class* __jsb_spine_BoneData_class; +extern se::Class* __jsb_spine_BoneData_class; bool js_register_spine_BoneData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -239,7 +264,7 @@ SE_DECLARE_FUNC(js_spine_BoneData_setX); SE_DECLARE_FUNC(js_spine_BoneData_setY); extern se::Object* __jsb_spine_VertexAttachment_proto; -extern se::Class* __jsb_spine_VertexAttachment_class; +extern se::Class* __jsb_spine_VertexAttachment_class; bool js_register_spine_VertexAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -254,7 +279,7 @@ SE_DECLARE_FUNC(js_spine_VertexAttachment_setDeformAttachment); SE_DECLARE_FUNC(js_spine_VertexAttachment_setWorldVerticesLength); extern se::Object* __jsb_spine_BoundingBoxAttachment_proto; -extern se::Class* __jsb_spine_BoundingBoxAttachment_class; +extern se::Class* __jsb_spine_BoundingBoxAttachment_class; bool js_register_spine_BoundingBoxAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -263,7 +288,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::BoundingBoxAttachment); SE_DECLARE_FUNC(js_spine_BoundingBoxAttachment_copy); extern se::Object* __jsb_spine_ClippingAttachment_proto; -extern se::Class* __jsb_spine_ClippingAttachment_class; +extern se::Class* __jsb_spine_ClippingAttachment_class; bool js_register_spine_ClippingAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -274,7 +299,7 @@ SE_DECLARE_FUNC(js_spine_ClippingAttachment_getEndSlot); SE_DECLARE_FUNC(js_spine_ClippingAttachment_setEndSlot); extern se::Object* __jsb_spine_Color_proto; -extern se::Class* __jsb_spine_Color_class; +extern se::Class* __jsb_spine_Color_class; bool js_register_spine_Color(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -283,7 +308,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::Color); SE_DECLARE_FUNC(js_spine_Color_clamp); extern se::Object* __jsb_spine_CurveTimeline_proto; -extern se::Class* __jsb_spine_CurveTimeline_class; +extern se::Class* __jsb_spine_CurveTimeline_class; bool js_register_spine_CurveTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -298,7 +323,7 @@ SE_DECLARE_FUNC(js_spine_CurveTimeline_setLinear); SE_DECLARE_FUNC(js_spine_CurveTimeline_setStepped); extern se::Object* __jsb_spine_ColorTimeline_proto; -extern se::Class* __jsb_spine_ColorTimeline_class; +extern se::Class* __jsb_spine_ColorTimeline_class; bool js_register_spine_ColorTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -311,7 +336,7 @@ SE_DECLARE_FUNC(js_spine_ColorTimeline_setFrame); SE_DECLARE_FUNC(js_spine_ColorTimeline_setSlotIndex); extern se::Object* __jsb_spine_ConstraintData_proto; -extern se::Class* __jsb_spine_ConstraintData_class; +extern se::Class* __jsb_spine_ConstraintData_class; bool js_register_spine_ConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -324,7 +349,7 @@ SE_DECLARE_FUNC(js_spine_ConstraintData_setOrder); SE_DECLARE_FUNC(js_spine_ConstraintData_setSkinRequired); extern se::Object* __jsb_spine_DeformTimeline_proto; -extern se::Class* __jsb_spine_DeformTimeline_class; +extern se::Class* __jsb_spine_DeformTimeline_class; bool js_register_spine_DeformTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -338,7 +363,7 @@ SE_DECLARE_FUNC(js_spine_DeformTimeline_setAttachment); SE_DECLARE_FUNC(js_spine_DeformTimeline_setSlotIndex); extern se::Object* __jsb_spine_DrawOrderTimeline_proto; -extern se::Class* __jsb_spine_DrawOrderTimeline_class; +extern se::Class* __jsb_spine_DrawOrderTimeline_class; bool js_register_spine_DrawOrderTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -349,7 +374,7 @@ SE_DECLARE_FUNC(js_spine_DrawOrderTimeline_getFrames); SE_DECLARE_FUNC(js_spine_DrawOrderTimeline_getPropertyId); extern se::Object* __jsb_spine_Event_proto; -extern se::Class* __jsb_spine_Event_class; +extern se::Class* __jsb_spine_Event_class; bool js_register_spine_Event(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -369,7 +394,7 @@ SE_DECLARE_FUNC(js_spine_Event_setStringValue); SE_DECLARE_FUNC(js_spine_Event_setVolume); extern se::Object* __jsb_spine_EventData_proto; -extern se::Class* __jsb_spine_EventData_class; +extern se::Class* __jsb_spine_EventData_class; bool js_register_spine_EventData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -390,7 +415,7 @@ SE_DECLARE_FUNC(js_spine_EventData_setStringValue); SE_DECLARE_FUNC(js_spine_EventData_setVolume); extern se::Object* __jsb_spine_EventTimeline_proto; -extern se::Class* __jsb_spine_EventTimeline_class; +extern se::Class* __jsb_spine_EventTimeline_class; bool js_register_spine_EventTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -403,7 +428,7 @@ SE_DECLARE_FUNC(js_spine_EventTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_EventTimeline_setFrame); extern se::Object* __jsb_spine_IkConstraint_proto; -extern se::Class* __jsb_spine_IkConstraint_class; +extern se::Class* __jsb_spine_IkConstraint_class; bool js_register_spine_IkConstraint(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -429,7 +454,7 @@ SE_DECLARE_FUNC(js_spine_IkConstraint_setTarget); SE_DECLARE_FUNC(js_spine_IkConstraint_update); extern se::Object* __jsb_spine_IkConstraintData_proto; -extern se::Class* __jsb_spine_IkConstraintData_class; +extern se::Class* __jsb_spine_IkConstraintData_class; bool js_register_spine_IkConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -452,7 +477,7 @@ SE_DECLARE_FUNC(js_spine_IkConstraintData_setTarget); SE_DECLARE_FUNC(js_spine_IkConstraintData_setUniform); extern se::Object* __jsb_spine_IkConstraintTimeline_proto; -extern se::Class* __jsb_spine_IkConstraintTimeline_class; +extern se::Class* __jsb_spine_IkConstraintTimeline_class; bool js_register_spine_IkConstraintTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -462,7 +487,7 @@ SE_DECLARE_FUNC(js_spine_IkConstraintTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_IkConstraintTimeline_setFrame); extern se::Object* __jsb_spine_MeshAttachment_proto; -extern se::Class* __jsb_spine_MeshAttachment_class; +extern se::Class* __jsb_spine_MeshAttachment_class; bool js_register_spine_MeshAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -512,7 +537,7 @@ SE_DECLARE_FUNC(js_spine_MeshAttachment_setWidth); SE_DECLARE_FUNC(js_spine_MeshAttachment_updateUVs); extern se::Object* __jsb_spine_PathAttachment_proto; -extern se::Class* __jsb_spine_PathAttachment_class; +extern se::Class* __jsb_spine_PathAttachment_class; bool js_register_spine_PathAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -526,7 +551,7 @@ SE_DECLARE_FUNC(js_spine_PathAttachment_setClosed); SE_DECLARE_FUNC(js_spine_PathAttachment_setConstantSpeed); extern se::Object* __jsb_spine_PathConstraint_proto; -extern se::Class* __jsb_spine_PathConstraint_class; +extern se::Class* __jsb_spine_PathConstraint_class; bool js_register_spine_PathConstraint(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -551,7 +576,7 @@ SE_DECLARE_FUNC(js_spine_PathConstraint_setTranslateMix); SE_DECLARE_FUNC(js_spine_PathConstraint_update); extern se::Object* __jsb_spine_PathConstraintData_proto; -extern se::Class* __jsb_spine_PathConstraintData_class; +extern se::Class* __jsb_spine_PathConstraintData_class; bool js_register_spine_PathConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -578,7 +603,7 @@ SE_DECLARE_FUNC(js_spine_PathConstraintData_setTarget); SE_DECLARE_FUNC(js_spine_PathConstraintData_setTranslateMix); extern se::Object* __jsb_spine_PathConstraintMixTimeline_proto; -extern se::Class* __jsb_spine_PathConstraintMixTimeline_class; +extern se::Class* __jsb_spine_PathConstraintMixTimeline_class; bool js_register_spine_PathConstraintMixTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -587,7 +612,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::PathConstraintMixTimeline); SE_DECLARE_FUNC(js_spine_PathConstraintMixTimeline_getPropertyId); extern se::Object* __jsb_spine_PathConstraintPositionTimeline_proto; -extern se::Class* __jsb_spine_PathConstraintPositionTimeline_class; +extern se::Class* __jsb_spine_PathConstraintPositionTimeline_class; bool js_register_spine_PathConstraintPositionTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -597,7 +622,7 @@ SE_DECLARE_FUNC(js_spine_PathConstraintPositionTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_PathConstraintPositionTimeline_setFrame); extern se::Object* __jsb_spine_PathConstraintSpacingTimeline_proto; -extern se::Class* __jsb_spine_PathConstraintSpacingTimeline_class; +extern se::Class* __jsb_spine_PathConstraintSpacingTimeline_class; bool js_register_spine_PathConstraintSpacingTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -606,7 +631,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::PathConstraintSpacingTimeline); SE_DECLARE_FUNC(js_spine_PathConstraintSpacingTimeline_getPropertyId); extern se::Object* __jsb_spine_PointAttachment_proto; -extern se::Class* __jsb_spine_PointAttachment_class; +extern se::Class* __jsb_spine_PointAttachment_class; bool js_register_spine_PointAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -621,7 +646,7 @@ SE_DECLARE_FUNC(js_spine_PointAttachment_setX); SE_DECLARE_FUNC(js_spine_PointAttachment_setY); extern se::Object* __jsb_spine_RegionAttachment_proto; -extern se::Class* __jsb_spine_RegionAttachment_class; +extern se::Class* __jsb_spine_RegionAttachment_class; bool js_register_spine_RegionAttachment(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -663,7 +688,7 @@ SE_DECLARE_FUNC(js_spine_RegionAttachment_setY); SE_DECLARE_FUNC(js_spine_RegionAttachment_updateOffset); extern se::Object* __jsb_spine_RotateTimeline_proto; -extern se::Class* __jsb_spine_RotateTimeline_class; +extern se::Class* __jsb_spine_RotateTimeline_class; bool js_register_spine_RotateTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -676,7 +701,7 @@ SE_DECLARE_FUNC(js_spine_RotateTimeline_setBoneIndex); SE_DECLARE_FUNC(js_spine_RotateTimeline_setFrame); extern se::Object* __jsb_spine_TranslateTimeline_proto; -extern se::Class* __jsb_spine_TranslateTimeline_class; +extern se::Class* __jsb_spine_TranslateTimeline_class; bool js_register_spine_TranslateTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -686,7 +711,7 @@ SE_DECLARE_FUNC(js_spine_TranslateTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_TranslateTimeline_setFrame); extern se::Object* __jsb_spine_ScaleTimeline_proto; -extern se::Class* __jsb_spine_ScaleTimeline_class; +extern se::Class* __jsb_spine_ScaleTimeline_class; bool js_register_spine_ScaleTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -695,7 +720,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::ScaleTimeline); SE_DECLARE_FUNC(js_spine_ScaleTimeline_getPropertyId); extern se::Object* __jsb_spine_ShearTimeline_proto; -extern se::Class* __jsb_spine_ShearTimeline_class; +extern se::Class* __jsb_spine_ShearTimeline_class; bool js_register_spine_ShearTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -704,7 +729,7 @@ JSB_REGISTER_OBJECT_TYPE(spine::ShearTimeline); SE_DECLARE_FUNC(js_spine_ShearTimeline_getPropertyId); extern se::Object* __jsb_spine_Skeleton_proto; -extern se::Class* __jsb_spine_Skeleton_class; +extern se::Class* __jsb_spine_Skeleton_class; bool js_register_spine_Skeleton(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -751,7 +776,7 @@ SE_DECLARE_FUNC(js_spine_Skeleton_updateCache); SE_DECLARE_FUNC(js_spine_Skeleton_updateWorldTransform); extern se::Object* __jsb_spine_SkeletonBounds_proto; -extern se::Class* __jsb_spine_SkeletonBounds_class; +extern se::Class* __jsb_spine_SkeletonBounds_class; bool js_register_spine_SkeletonBounds(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -766,7 +791,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonBounds_getWidth); SE_DECLARE_FUNC(js_spine_SkeletonBounds_intersectsSegment); extern se::Object* __jsb_spine_Polygon_proto; -extern se::Class* __jsb_spine_Polygon_class; +extern se::Class* __jsb_spine_Polygon_class; bool js_register_spine_Polygon(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -774,7 +799,7 @@ bool register_all_spine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(spine::Polygon); extern se::Object* __jsb_spine_SkeletonData_proto; -extern se::Class* __jsb_spine_SkeletonData_class; +extern se::Class* __jsb_spine_SkeletonData_class; bool js_register_spine_SkeletonData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -823,7 +848,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonData_setX); SE_DECLARE_FUNC(js_spine_SkeletonData_setY); extern se::Object* __jsb_spine_Skin_proto; -extern se::Class* __jsb_spine_Skin_class; +extern se::Class* __jsb_spine_Skin_class; bool js_register_spine_Skin(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -839,7 +864,7 @@ SE_DECLARE_FUNC(js_spine_Skin_removeAttachment); SE_DECLARE_FUNC(js_spine_Skin_setAttachment); extern se::Object* __jsb_spine_Slot_proto; -extern se::Class* __jsb_spine_Slot_class; +extern se::Class* __jsb_spine_Slot_class; bool js_register_spine_Slot(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -859,7 +884,7 @@ SE_DECLARE_FUNC(js_spine_Slot_setAttachmentTime); SE_DECLARE_FUNC(js_spine_Slot_setToSetupPose); extern se::Object* __jsb_spine_SlotData_proto; -extern se::Class* __jsb_spine_SlotData_class; +extern se::Class* __jsb_spine_SlotData_class; bool js_register_spine_SlotData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -878,7 +903,7 @@ SE_DECLARE_FUNC(js_spine_SlotData_setBlendMode); SE_DECLARE_FUNC(js_spine_SlotData_setHasDarkColor); extern se::Object* __jsb_spine_TransformConstraint_proto; -extern se::Class* __jsb_spine_TransformConstraint_class; +extern se::Class* __jsb_spine_TransformConstraint_class; bool js_register_spine_TransformConstraint(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -903,7 +928,7 @@ SE_DECLARE_FUNC(js_spine_TransformConstraint_setTranslateMix); SE_DECLARE_FUNC(js_spine_TransformConstraint_update); extern se::Object* __jsb_spine_TransformConstraintData_proto; -extern se::Class* __jsb_spine_TransformConstraintData_class; +extern se::Class* __jsb_spine_TransformConstraintData_class; bool js_register_spine_TransformConstraintData(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -925,7 +950,7 @@ SE_DECLARE_FUNC(js_spine_TransformConstraintData_isLocal); SE_DECLARE_FUNC(js_spine_TransformConstraintData_isRelative); extern se::Object* __jsb_spine_TransformConstraintTimeline_proto; -extern se::Class* __jsb_spine_TransformConstraintTimeline_class; +extern se::Class* __jsb_spine_TransformConstraintTimeline_class; bool js_register_spine_TransformConstraintTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -935,7 +960,7 @@ SE_DECLARE_FUNC(js_spine_TransformConstraintTimeline_getPropertyId); SE_DECLARE_FUNC(js_spine_TransformConstraintTimeline_setFrame); extern se::Object* __jsb_spine_TwoColorTimeline_proto; -extern se::Class* __jsb_spine_TwoColorTimeline_class; +extern se::Class* __jsb_spine_TwoColorTimeline_class; bool js_register_spine_TwoColorTimeline(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -947,7 +972,7 @@ SE_DECLARE_FUNC(js_spine_TwoColorTimeline_setFrame); SE_DECLARE_FUNC(js_spine_TwoColorTimeline_setSlotIndex); extern se::Object* __jsb_spine_VertexEffect_proto; -extern se::Class* __jsb_spine_VertexEffect_class; +extern se::Class* __jsb_spine_VertexEffect_class; bool js_register_spine_VertexEffect(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -955,7 +980,7 @@ bool register_all_spine(se::Object* obj); JSB_REGISTER_OBJECT_TYPE(spine::VertexEffect); extern se::Object* __jsb_spine_JitterVertexEffect_proto; -extern se::Class* __jsb_spine_JitterVertexEffect_class; +extern se::Class* __jsb_spine_JitterVertexEffect_class; bool js_register_spine_JitterVertexEffect(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -967,7 +992,7 @@ SE_DECLARE_FUNC(js_spine_JitterVertexEffect_setJitterX); SE_DECLARE_FUNC(js_spine_JitterVertexEffect_setJitterY); extern se::Object* __jsb_spine_SwirlVertexEffect_proto; -extern se::Class* __jsb_spine_SwirlVertexEffect_class; +extern se::Class* __jsb_spine_SwirlVertexEffect_class; bool js_register_spine_SwirlVertexEffect(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -987,7 +1012,7 @@ SE_DECLARE_FUNC(js_spine_SwirlVertexEffect_setWorldX); SE_DECLARE_FUNC(js_spine_SwirlVertexEffect_setWorldY); extern se::Object* __jsb_spine_VertexEffectDelegate_proto; -extern se::Class* __jsb_spine_VertexEffectDelegate_class; +extern se::Class* __jsb_spine_VertexEffectDelegate_class; bool js_register_spine_VertexEffectDelegate(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1004,7 +1029,7 @@ SE_DECLARE_FUNC(js_spine_VertexEffectDelegate_initSwirlWithPowOut); SE_DECLARE_FUNC(js_spine_VertexEffectDelegate_VertexEffectDelegate); extern se::Object* __jsb_spine_SkeletonRenderer_proto; -extern se::Class* __jsb_spine_SkeletonRenderer_class; +extern se::Class* __jsb_spine_SkeletonRenderer_class; bool js_register_spine_SkeletonRenderer(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1050,7 +1075,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonRenderer_updateWorldTransform); SE_DECLARE_FUNC(js_spine_SkeletonRenderer_SkeletonRenderer); extern se::Object* __jsb_spine_SkeletonAnimation_proto; -extern se::Class* __jsb_spine_SkeletonAnimation_class; +extern se::Class* __jsb_spine_SkeletonAnimation_class; bool js_register_spine_SkeletonAnimation(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1087,7 +1112,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonAnimation_setGlobalTimeScale); SE_DECLARE_FUNC(js_spine_SkeletonAnimation_SkeletonAnimation); extern se::Object* __jsb_spine_SkeletonCacheAnimation_proto; -extern se::Class* __jsb_spine_SkeletonCacheAnimation_class; +extern se::Class* __jsb_spine_SkeletonCacheAnimation_class; bool js_register_spine_SkeletonCacheAnimation(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1129,7 +1154,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonCacheAnimation_updateAnimationCache); SE_DECLARE_FUNC(js_spine_SkeletonCacheAnimation_SkeletonCacheAnimation); extern se::Object* __jsb_spine_SkeletonCacheMgr_proto; -extern se::Class* __jsb_spine_SkeletonCacheMgr_class; +extern se::Class* __jsb_spine_SkeletonCacheMgr_class; bool js_register_spine_SkeletonCacheMgr(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1141,7 +1166,7 @@ SE_DECLARE_FUNC(js_spine_SkeletonCacheMgr_getInstance); SE_DECLARE_FUNC(js_spine_SkeletonCacheMgr_destroyInstance); extern se::Object* __jsb_spine_SkeletonDataMgr_proto; -extern se::Class* __jsb_spine_SkeletonDataMgr_class; +extern se::Class* __jsb_spine_SkeletonDataMgr_class; bool js_register_spine_SkeletonDataMgr(se::Object* obj); bool register_all_spine(se::Object* obj); @@ -1150,4 +1175,3 @@ JSB_REGISTER_OBJECT_TYPE(spine::SkeletonDataMgr); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_setDestroyCallback); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_getInstance); SE_DECLARE_FUNC(js_spine_SkeletonDataMgr_SkeletonDataMgr); - diff --git a/native/cocos/bindings/auto/jsb_video_auto.cpp b/native/cocos/bindings/auto/jsb_video_auto.cpp index 979b9d617f..c4ac38e957 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.cpp +++ b/native/cocos/bindings/auto/jsb_video_auto.cpp @@ -1,56 +1,77 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_video_auto.h" #if (USE_VIDEO > 0) -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/bindings/manual/jsb_global.h" -#include "ui/videoplayer/VideoPlayer.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/bindings/manual/jsb_global.h" + #include "ui/videoplayer/VideoPlayer.h" -#ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) -#endif + #ifndef JSB_ALLOC + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #endif -#ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr -#endif + #ifndef JSB_FREE + #define JSB_FREE(ptr) delete ptr + #endif se::Object* __jsb_cc_VideoPlayer_proto = nullptr; -se::Class* __jsb_cc_VideoPlayer_class = nullptr; +se::Class* __jsb_cc_VideoPlayer_class = nullptr; static bool js_video_VideoPlayer_addEventListener(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_addEventListener : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { - HolderType arg0 = {}; - HolderType, true> arg1 = {}; + HolderType arg0 = {}; + HolderType, true> arg1 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); do { - if (args[1].isObject() && args[1].toObject()->isFunction()) - { + if (args[1].isObject() && args[1].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[1]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=]() -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - - se::Value rval; + + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); + bool succeed = funcObj->call(se::EmptyValueArray, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg1.data = lambda; - } - else - { + } else { arg1.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_video_VideoPlayer_addEventListener : Error processing arguments"); cobj->addEventListener(arg0.value(), arg1.value()); return true; @@ -64,9 +85,9 @@ static bool js_video_VideoPlayer_currentTime(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_currentTime : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->currentTime(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -83,9 +104,9 @@ static bool js_video_VideoPlayer_duration(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_duration : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { float result = cobj->duration(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -102,9 +123,9 @@ static bool js_video_VideoPlayer_isKeepAspectRatioEnabled(se::State& s) // NOLIN { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_isKeepAspectRatioEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->isKeepAspectRatioEnabled(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -121,9 +142,9 @@ static bool js_video_VideoPlayer_onPlayEvent(se::State& s) // NOLINT(readability { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_onPlayEvent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -141,7 +162,7 @@ static bool js_video_VideoPlayer_pause(se::State& s) // NOLINT(readability-ident auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_pause : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->pause(); return true; @@ -156,7 +177,7 @@ static bool js_video_VideoPlayer_play(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_play : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->play(); return true; @@ -170,9 +191,9 @@ static bool js_video_VideoPlayer_seekTo(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_seekTo : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -189,9 +210,9 @@ static bool js_video_VideoPlayer_setFrame(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -214,9 +235,9 @@ static bool js_video_VideoPlayer_setFullScreenEnabled(se::State& s) // NOLINT(re { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setFullScreenEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -233,9 +254,9 @@ static bool js_video_VideoPlayer_setKeepAspectRatioEnabled(se::State& s) // NOLI { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setKeepAspectRatioEnabled : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -252,9 +273,9 @@ static bool js_video_VideoPlayer_setURL(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setURL : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -271,9 +292,9 @@ static bool js_video_VideoPlayer_setVisible(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -291,7 +312,7 @@ static bool js_video_VideoPlayer_stop(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_video_VideoPlayer_stop : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stop(); return true; @@ -311,8 +332,6 @@ static bool js_video_VideoPlayer_constructor(se::State& s) // NOLINT(readability } SE_BIND_CTOR(js_video_VideoPlayer_constructor, __jsb_cc_VideoPlayer_class, js_cc_VideoPlayer_finalize) - - static bool js_cc_VideoPlayer_finalize(se::State& s) // NOLINT(readability-identifier-naming) { // destructor is skipped @@ -325,8 +344,7 @@ static bool js_cc_VideoPlayer_destroy(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); cobj->release(); auto objIter = se::NativePtrToObjectMap::find(SE_THIS_OBJECT(s)); - if(objIter != se::NativePtrToObjectMap::end()) - { + if (objIter != se::NativePtrToObjectMap::end()) { objIter->second->clearPrivateData(true); } return true; @@ -362,12 +380,10 @@ bool js_register_video_VideoPlayer(se::Object* obj) // NOLINT(readability-identi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_video(se::Object* obj) -{ +bool register_all_video(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) - { + if (!obj->getProperty("jsb", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); diff --git a/native/cocos/bindings/auto/jsb_video_auto.h b/native/cocos/bindings/auto/jsb_video_auto.h index 7409e55cb1..464435f341 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.h +++ b/native/cocos/bindings/auto/jsb_video_auto.h @@ -1,13 +1,38 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if (USE_VIDEO > 0) -#include -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/ui/videoplayer/VideoPlayer.h" + #include + #include "cocos/bindings/jswrapper/SeApi.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/ui/videoplayer/VideoPlayer.h" extern se::Object* __jsb_cc_VideoPlayer_proto; -extern se::Class* __jsb_cc_VideoPlayer_class; +extern se::Class* __jsb_cc_VideoPlayer_class; bool js_register_cc_VideoPlayer(se::Object* obj); bool register_all_video(se::Object* obj); diff --git a/native/cocos/bindings/auto/jsb_webview_auto.cpp b/native/cocos/bindings/auto/jsb_webview_auto.cpp index 57f2044559..e30b440b89 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.cpp +++ b/native/cocos/bindings/auto/jsb_webview_auto.cpp @@ -1,26 +1,51 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/bindings/auto/jsb_webview_auto.h" #if USE_WEBVIEW > 0 -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/bindings/manual/jsb_global.h" -#include "ui/webview/WebView.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/bindings/manual/jsb_global.h" + #include "ui/webview/WebView.h" -#ifndef JSB_ALLOC -#define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) -#endif + #ifndef JSB_ALLOC + #define JSB_ALLOC(kls, ...) new (std::nothrow) kls(__VA_ARGS__) + #endif -#ifndef JSB_FREE -#define JSB_FREE(ptr) delete ptr -#endif + #ifndef JSB_FREE + #define JSB_FREE(ptr) delete ptr + #endif se::Object* __jsb_cc_WebView_proto = nullptr; -se::Class* __jsb_cc_WebView_class = nullptr; +se::Class* __jsb_cc_WebView_class = nullptr; static bool js_webview_WebView_canGoBack(se::State& s) // NOLINT(readability-identifier-naming) { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_canGoBack : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->canGoBack(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -37,9 +62,9 @@ static bool js_webview_WebView_canGoForward(se::State& s) // NOLINT(readability- { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_canGoForward : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { bool result = cobj->canGoForward(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -56,9 +81,9 @@ static bool js_webview_WebView_evaluateJS(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_evaluateJS : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -75,9 +100,9 @@ static bool js_webview_WebView_getOnDidFailLoading(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnDidFailLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::WebView::ccWebViewCallback result = cobj->getOnDidFailLoading(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -94,9 +119,9 @@ static bool js_webview_WebView_getOnDidFinishLoading(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnDidFinishLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::WebView::ccWebViewCallback result = cobj->getOnDidFinishLoading(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -113,9 +138,9 @@ static bool js_webview_WebView_getOnJSCallback(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnJSCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { cc::WebView::ccWebViewCallback result = cobj->getOnJSCallback(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); @@ -132,11 +157,11 @@ static bool js_webview_WebView_getOnShouldStartLoading(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_getOnShouldStartLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { - std::function result = cobj->getOnShouldStartLoading(); + std::function result = cobj->getOnShouldStartLoading(); ok &= nativevalue_to_se(result, s.rval(), nullptr /*ctx*/); SE_PRECONDITION2(ok, false, "js_webview_WebView_getOnShouldStartLoading : Error processing arguments"); SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval()); @@ -152,7 +177,7 @@ static bool js_webview_WebView_goBack(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_goBack : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->goBack(); return true; @@ -167,7 +192,7 @@ static bool js_webview_WebView_goForward(se::State& s) // NOLINT(readability-ide auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_goForward : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->goForward(); return true; @@ -181,11 +206,11 @@ static bool js_webview_WebView_loadData(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadData : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { - HolderType arg0 = {}; + HolderType arg0 = {}; HolderType arg1 = {}; HolderType arg2 = {}; HolderType arg3 = {}; @@ -206,9 +231,9 @@ static bool js_webview_WebView_loadFile(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadFile : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -225,9 +250,9 @@ static bool js_webview_WebView_loadHTMLString(se::State& s) // NOLINT(readabilit { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadHTMLString : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -253,9 +278,9 @@ static bool js_webview_WebView_loadURL(se::State& s) // NOLINT(readability-ident { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_loadURL : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -273,7 +298,7 @@ static bool js_webview_WebView_reload(se::State& s) // NOLINT(readability-identi auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_reload : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->reload(); return true; @@ -287,9 +312,9 @@ static bool js_webview_WebView_setBackgroundTransparent(se::State& s) // NOLINT( { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setBackgroundTransparent : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -306,9 +331,9 @@ static bool js_webview_WebView_setBounces(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setBounces : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -325,9 +350,9 @@ static bool js_webview_WebView_setFrame(se::State& s) // NOLINT(readability-iden { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setFrame : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 4) { HolderType arg0 = {}; HolderType arg1 = {}; @@ -350,9 +375,9 @@ static bool js_webview_WebView_setJavascriptInterfaceScheme(se::State& s) // NOL { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setJavascriptInterfaceScheme : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -369,42 +394,38 @@ static bool js_webview_WebView_setOnDidFailLoading(se::State& s) // NOLINT(reada { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnDidFailLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnDidFailLoading : Error processing arguments"); cobj->setOnDidFailLoading(arg0.value()); return true; @@ -418,42 +439,38 @@ static bool js_webview_WebView_setOnDidFinishLoading(se::State& s) // NOLINT(rea { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnDidFinishLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnDidFinishLoading : Error processing arguments"); cobj->setOnDidFinishLoading(arg0.value()); return true; @@ -467,42 +484,38 @@ static bool js_webview_WebView_setOnJSCallback(se::State& s) // NOLINT(readabili { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnJSCallback : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> void { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnJSCallback : Error processing arguments"); cobj->setOnJSCallback(arg0.value()); return true; @@ -516,30 +529,29 @@ static bool js_webview_WebView_setOnShouldStartLoading(se::State& s) // NOLINT(r { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setOnShouldStartLoading : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { - HolderType, true> arg0 = {}; + HolderType, true> arg0 = {}; do { - if (args[0].isObject() && args[0].toObject()->isFunction()) - { + if (args[0].isObject() && args[0].toObject()->isFunction()) { se::Value jsThis(s.thisObject()); se::Value jsFunc(args[0]); jsThis.toObject()->attachObject(jsFunc.toObject()); auto lambda = [=](cc::WebView* larg0, const std::string larg1) -> bool { se::ScriptEngine::getInstance()->clearException(); se::AutoHandleScope hs; - + CC_UNUSED bool ok = true; se::ValueArray args; args.resize(2); ok &= nativevalue_to_se(larg0, args[0], nullptr /*ctx*/); ok &= nativevalue_to_se(larg1, args[1], nullptr /*ctx*/); - se::Value rval; + se::Value rval; se::Object* thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object* funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -549,13 +561,10 @@ static bool js_webview_WebView_setOnShouldStartLoading(se::State& s) // NOLINT(r return result; }; arg0.data = lambda; - } - else - { + } else { arg0.data = nullptr; } - } while(false) - ; + } while (false); SE_PRECONDITION2(ok, false, "js_webview_WebView_setOnShouldStartLoading : Error processing arguments"); cobj->setOnShouldStartLoading(arg0.value()); return true; @@ -569,9 +578,9 @@ static bool js_webview_WebView_setScalesPageToFit(se::State& s) // NOLINT(readab { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setScalesPageToFit : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -588,9 +597,9 @@ static bool js_webview_WebView_setVisible(se::State& s) // NOLINT(readability-id { auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_setVisible : Invalid Native Object"); - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { HolderType arg0 = {}; ok &= sevalue_to_native(args[0], &arg0, s.thisObject()); @@ -608,7 +617,7 @@ static bool js_webview_WebView_stopLoading(se::State& s) // NOLINT(readability-i auto* cobj = SE_THIS_OBJECT(s); SE_PRECONDITION2(cobj, false, "js_webview_WebView_stopLoading : Invalid Native Object"); const auto& args = s.args(); - size_t argc = args.size(); + size_t argc = args.size(); if (argc == 0) { cobj->stopLoading(); return true; @@ -620,9 +629,9 @@ SE_BIND_FUNC(js_webview_WebView_stopLoading) static bool js_webview_WebView_create(se::State& s) // NOLINT(readability-identifier-naming) { - const auto& args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto& args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { auto result = cc::WebView::create(); result->retain(); @@ -636,7 +645,6 @@ static bool js_webview_WebView_create(se::State& s) // NOLINT(readability-identi } SE_BIND_FUNC(js_webview_WebView_create) - static bool js_cc_WebView_finalize(se::State& s) // NOLINT(readability-identifier-naming) { // destructor is skipped @@ -649,8 +657,7 @@ static bool js_cc_WebView_destroy(se::State& s) // NOLINT(readability-identifier auto* cobj = SE_THIS_OBJECT(s); cobj->release(); auto objIter = se::NativePtrToObjectMap::find(SE_THIS_OBJECT(s)); - if(objIter != se::NativePtrToObjectMap::end()) - { + if (objIter != se::NativePtrToObjectMap::end()) { objIter->second->clearPrivateData(true); } return true; @@ -698,12 +705,10 @@ bool js_register_webview_WebView(se::Object* obj) // NOLINT(readability-identifi se::ScriptEngine::getInstance()->clearException(); return true; } -bool register_all_webview(se::Object* obj) -{ +bool register_all_webview(se::Object* obj) { // Get the ns se::Value nsVal; - if (!obj->getProperty("jsb", &nsVal)) - { + if (!obj->getProperty("jsb", &nsVal)) { se::HandleObject jsobj(se::Object::createPlainObject()); nsVal.setObject(jsobj); obj->setProperty("jsb", nsVal); diff --git a/native/cocos/bindings/auto/jsb_webview_auto.h b/native/cocos/bindings/auto/jsb_webview_auto.h index 6ed2a2ef48..94e27d18ab 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.h +++ b/native/cocos/bindings/auto/jsb_webview_auto.h @@ -1,13 +1,38 @@ +/**************************************************************************** + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include "base/Config.h" #if USE_WEBVIEW > 0 -#include -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/ui/webview/WebView.h" + #include + #include "cocos/bindings/jswrapper/SeApi.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/ui/webview/WebView.h" extern se::Object* __jsb_cc_WebView_proto; -extern se::Class* __jsb_cc_WebView_class; +extern se::Class* __jsb_cc_WebView_class; bool js_register_cc_WebView(se::Object* obj); bool register_all_webview(se::Object* obj); diff --git a/native/cocos/bindings/dop/BufferAllocator.cpp b/native/cocos/bindings/dop/BufferAllocator.cpp index a7ba794149..5f8b9f1a0f 100644 --- a/native/cocos/bindings/dop/BufferAllocator.cpp +++ b/native/cocos/bindings/dop/BufferAllocator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/BufferAllocator.h b/native/cocos/bindings/dop/BufferAllocator.h index 1f6bc75e1b..867507672e 100644 --- a/native/cocos/bindings/dop/BufferAllocator.h +++ b/native/cocos/bindings/dop/BufferAllocator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -43,7 +43,7 @@ public: void free(uint index); private: - static constexpr uint BUFFER_MASK = ~(1 << 30); + static constexpr uint BUFFER_MASK = ~(1 << 30); cc::map _buffers; PoolType _type = PoolType::UNKNOWN; diff --git a/native/cocos/bindings/dop/BufferPool.cpp b/native/cocos/bindings/dop/BufferPool.cpp index 262f0af4ec..ccd2f9a73e 100644 --- a/native/cocos/bindings/dop/BufferPool.cpp +++ b/native/cocos/bindings/dop/BufferPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/BufferPool.h b/native/cocos/bindings/dop/BufferPool.h index bd914658d9..18fef82fd3 100644 --- a/native/cocos/bindings/dop/BufferPool.h +++ b/native/cocos/bindings/dop/BufferPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -39,7 +39,7 @@ class CC_DLL BufferPool final : public cc::Object { public: using Chunk = uint8_t *; - inline static uint getPoolFlag() { return POOL_FLAG; } + inline static uint getPoolFlag() { return POOL_FLAG; } BufferPool(PoolType type, uint entryBits, uint bytesPerEntry); ~BufferPool() override; @@ -55,7 +55,7 @@ public: Object *allocateNewChunk(); private: - static constexpr uint POOL_FLAG = 1 << 30; + static constexpr uint POOL_FLAG = 1 << 30; BufferAllocator _allocator; cc::vector _chunks; diff --git a/native/cocos/bindings/dop/PoolType.h b/native/cocos/bindings/dop/PoolType.h index b03148cba9..31068d9e46 100644 --- a/native/cocos/bindings/dop/PoolType.h +++ b/native/cocos/bindings/dop/PoolType.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,7 +27,7 @@ namespace se { -#define CAST_POOL_TYPE(type) static_cast(type) +#define CAST_POOL_TYPE(type) static_cast(type) #define GET_BUFFER_POOL_ID(type) CAST_POOL_TYPE(type) enum class PoolType { diff --git a/native/cocos/bindings/dop/jsb_dop.cpp b/native/cocos/bindings/dop/jsb_dop.cpp index e0440af432..586a5f8337 100644 --- a/native/cocos/bindings/dop/jsb_dop.cpp +++ b/native/cocos/bindings/dop/jsb_dop.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/dop/jsb_dop.h b/native/cocos/bindings/dop/jsb_dop.h index 062d188d8c..27e6a651d3 100644 --- a/native/cocos/bindings/dop/jsb_dop.h +++ b/native/cocos/bindings/dop/jsb_dop.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/event/CustomEventTypes.h b/native/cocos/bindings/event/CustomEventTypes.h index 582157d90e..e6c014687c 100644 --- a/native/cocos/bindings/event/CustomEventTypes.h +++ b/native/cocos/bindings/event/CustomEventTypes.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/event/EventDispatcher.cpp b/native/cocos/bindings/event/EventDispatcher.cpp index cf110ea6f5..d935ea57d6 100644 --- a/native/cocos/bindings/event/EventDispatcher.cpp +++ b/native/cocos/bindings/event/EventDispatcher.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/event/EventDispatcher.h b/native/cocos/bindings/event/EventDispatcher.h index ff9f0c5394..9a279167dc 100644 --- a/native/cocos/bindings/event/EventDispatcher.h +++ b/native/cocos/bindings/event/EventDispatcher.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -52,8 +52,7 @@ public: explicit OSEvent(OSEventType type) : _type(type) {} template - std::enable_if_t::value, const T &> - static castEvent(const cc::OSEvent &ev) { + std::enable_if_t::value, const T &> static castEvent(const cc::OSEvent &ev) { const T &evDetail = dynamic_cast(ev); return std::move(evDetail); } @@ -66,7 +65,8 @@ private: OSEventType _type = OSEventType::UNKNOWN_OSEVENT; }; -#define CONSTRUCT_EVENT(name, type) name() : OSEvent(type) {} +#define CONSTRUCT_EVENT(name, type) \ + name() : OSEvent(type) {} class AppEvent : public OSEvent { public: @@ -280,7 +280,6 @@ public: static void dispatchDestroyWindowEvent(); static void dispatchRecreateWindowEvent(); - using CustomEventListener = std::function; static uint32_t addCustomEventListener(const std::string &eventName, const CustomEventListener &listener); static void removeCustomEventListener(const std::string &eventName, uint32_t listenerID); diff --git a/native/cocos/bindings/jswrapper/HandleObject.cpp b/native/cocos/bindings/jswrapper/HandleObject.cpp index b4a3f80bc7..f3034254a3 100644 --- a/native/cocos/bindings/jswrapper/HandleObject.cpp +++ b/native/cocos/bindings/jswrapper/HandleObject.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/HandleObject.h b/native/cocos/bindings/jswrapper/HandleObject.h index 1510a56b2b..cf764897aa 100644 --- a/native/cocos/bindings/jswrapper/HandleObject.h +++ b/native/cocos/bindings/jswrapper/HandleObject.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -98,11 +98,11 @@ public: private: HandleObject(const HandleObject &) = delete; void operator=(const HandleObject &) = delete; - HandleObject(HandleObject &&) = delete; + HandleObject(HandleObject &&) = delete; void operator=(HandleObject &&) = delete; - void *operator new(size_t size) = delete; - void operator delete(void *, size_t) = delete; + void *operator new(size_t size) = delete; + void operator delete(void *, size_t) = delete; Object *_obj; friend class Object; diff --git a/native/cocos/bindings/jswrapper/MappingUtils.cpp b/native/cocos/bindings/jswrapper/MappingUtils.cpp index 8247b5989c..e103c6c39c 100644 --- a/native/cocos/bindings/jswrapper/MappingUtils.cpp +++ b/native/cocos/bindings/jswrapper/MappingUtils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/MappingUtils.h b/native/cocos/bindings/jswrapper/MappingUtils.h index 90b70f9d38..8ba0eaa078 100644 --- a/native/cocos/bindings/jswrapper/MappingUtils.h +++ b/native/cocos/bindings/jswrapper/MappingUtils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -42,9 +42,9 @@ public: static Map::iterator find(void *nativeObj); static Map::iterator erase(Map::iterator iter); - static void erase(void *nativeObj); - static void clear(); - static size_t size(); + static void erase(void *nativeObj); + static void clear(); + static size_t size(); static const Map &instance(); @@ -66,12 +66,12 @@ public: static bool init(); static void destroy(); - static void emplace(void *nativeObj); + static void emplace(void *nativeObj); static Map::iterator find(void *nativeObj); static Map::iterator erase(Map::iterator iter); - static void erase(void *nativeObj); - static void clear(); - static size_t size(); + static void erase(void *nativeObj); + static void clear(); + static size_t size(); static const Map &instance(); diff --git a/native/cocos/bindings/jswrapper/Object.h b/native/cocos/bindings/jswrapper/Object.h index 48e2e463c4..997e56a330 100644 --- a/native/cocos/bindings/jswrapper/Object.h +++ b/native/cocos/bindings/jswrapper/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/RefCounter.cpp b/native/cocos/bindings/jswrapper/RefCounter.cpp index e1d1840dc0..6f6f105b9f 100644 --- a/native/cocos/bindings/jswrapper/RefCounter.cpp +++ b/native/cocos/bindings/jswrapper/RefCounter.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/RefCounter.h b/native/cocos/bindings/jswrapper/RefCounter.h index 5fe3bc249a..0935087fbe 100644 --- a/native/cocos/bindings/jswrapper/RefCounter.h +++ b/native/cocos/bindings/jswrapper/RefCounter.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/SeApi.h b/native/cocos/bindings/jswrapper/SeApi.h index fb9263d8ee..f320cc66cc 100644 --- a/native/cocos/bindings/jswrapper/SeApi.h +++ b/native/cocos/bindings/jswrapper/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -44,8 +44,8 @@ #include "chakracore/SeApi.h" #endif -#include "Value.h" -#include "Object.h" -#include "State.h" #include "HandleObject.h" #include "MappingUtils.h" +#include "Object.h" +#include "State.h" +#include "Value.h" diff --git a/native/cocos/bindings/jswrapper/State.cpp b/native/cocos/bindings/jswrapper/State.cpp index 497ac03b3f..8330c13e49 100644 --- a/native/cocos/bindings/jswrapper/State.cpp +++ b/native/cocos/bindings/jswrapper/State.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/State.h b/native/cocos/bindings/jswrapper/State.h index b98b69ca1b..6227a01725 100644 --- a/native/cocos/bindings/jswrapper/State.h +++ b/native/cocos/bindings/jswrapper/State.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -104,9 +104,9 @@ private: State &operator=(const State &); State &operator=(State &&); - void *_nativeThisObject; //weak ref - Object *_thisObject; //weak ref - const ValueArray *_args; //weak ref - Value _retVal; //weak ref + void * _nativeThisObject; //weak ref + Object * _thisObject; //weak ref + const ValueArray *_args; //weak ref + Value _retVal; //weak ref }; } // namespace se diff --git a/native/cocos/bindings/jswrapper/Value.cpp b/native/cocos/bindings/jswrapper/Value.cpp index 2d70118671..8dc4014f0d 100644 --- a/native/cocos/bindings/jswrapper/Value.cpp +++ b/native/cocos/bindings/jswrapper/Value.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -443,7 +443,7 @@ float Value::toFloat() const { double Value::toDouble() const { assert(_type == Type::Number || _type == Type::Boolean || _type == Type::BigInt); - if(LIKELY(_type == Type::Number)) { + if (LIKELY(_type == Type::Number)) { return _u._number; } if (_type == Type::BigInt) { @@ -550,11 +550,11 @@ unsigned int Value::toUint() const { return CONVERT_TO_TYPE(unsigned int); } -long Value::toLong() const { // NOLINT(google-runtime-int) +long Value::toLong() const { // NOLINT(google-runtime-int) return CONVERT_TO_TYPE(long); } -unsigned long Value::toUlong() const { // NOLINT(google-runtime-int) +unsigned long Value::toUlong() const { // NOLINT(google-runtime-int) return CONVERT_TO_TYPE(unsigned long); } diff --git a/native/cocos/bindings/jswrapper/Value.h b/native/cocos/bindings/jswrapper/Value.h index db996ad805..5a4d3f1788 100644 --- a/native/cocos/bindings/jswrapper/Value.h +++ b/native/cocos/bindings/jswrapper/Value.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/chakracore/Base.h b/native/cocos/bindings/jswrapper/chakracore/Base.h index 4b989c356d..5a3b50d686 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Base.h +++ b/native/cocos/bindings/jswrapper/chakracore/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,11 +29,11 @@ #include "ChakraCore.h" #include "ChakraCoreVersion.h" -#include -#include -#include +#include #include #include -#include +#include +#include +#include #include "HelperMacros.h" diff --git a/native/cocos/bindings/jswrapper/chakracore/Class.cpp b/native/cocos/bindings/jswrapper/chakracore/Class.cpp index 7a2a4a8a96..40427e8200 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Class.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,11 +28,11 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_CHAKRACORE - #include "Object.h" - #include "Utils.h" - #include "State.h" - #include "ScriptEngine.h" #include "../HandleObject.h" + #include "Object.h" + #include "ScriptEngine.h" + #include "State.h" + #include "Utils.h" namespace se { @@ -53,7 +53,7 @@ JsValueRef emptyContructor(JsValueRef callee, bool isConstructCall, JsValueRef * void defaultFinalizeCallback(void *nativeThisObject) { if (nativeThisObject != nullptr) { - State state(nativeThisObject); + State state(nativeThisObject); Object *_thisObject = state.thisObject(); if (_thisObject) _thisObject->_cleanup(nativeThisObject); SAFE_DEC_REF(_thisObject); @@ -83,7 +83,7 @@ Class *Class::create(const std::string &className, Object *obj, Object *parentPr } bool Class::init(const std::string &clsName, Object *parent, Object *parentProto, JsNativeFunction ctor) { - _name = clsName; + _name = clsName; _parent = parent; if (_parent != nullptr) _parent->incRef(); diff --git a/native/cocos/bindings/jswrapper/chakracore/Class.h b/native/cocos/bindings/jswrapper/chakracore/Class.h index 9eca101a9f..979f0ad5fa 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Class.h +++ b/native/cocos/bindings/jswrapper/chakracore/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -126,20 +126,20 @@ private: static void cleanup(); struct JSFunctionSpec { - const char *name; + const char * name; JsNativeFunction func; }; struct JSPropertySpec { - const char *name; + const char * name; JsNativeFunction getter; JsNativeFunction setter; }; std::string _name; - Object *_parent; - Object *_proto; - Object *_parentProto; + Object * _parent; + Object * _proto; + Object * _parentProto; JsNativeFunction _ctor; @@ -147,7 +147,7 @@ private: std::vector _staticFuncs; std::vector _properties; std::vector _staticProperties; - JsFinalizeCallback _finalizeOp; + JsFinalizeCallback _finalizeOp; friend class ScriptEngine; friend class Object; diff --git a/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h b/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h index 53ad884838..a433547ddd 100644 --- a/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -53,11 +53,11 @@ JsValueRef funcName##Registry(JsValueRef _callee, bool _isConstructCall, JsValueRef *_argv, unsigned short argc, void *_callbackState) { \ assert(argc > 0); \ --argc; \ - JsValueRef _jsRet = JS_INVALID_REFERENCE; \ - bool ret = true; \ + JsValueRef _jsRet = JS_INVALID_REFERENCE; \ + bool ret = true; \ se::ValueArray args; \ se::internal::jsToSeArgs(argc, _argv + 1, &args); \ - void *nativeThisObject = se::internal::getPrivate(_argv[0]); \ + void * nativeThisObject = se::internal::getPrivate(_argv[0]); \ se::State state(nativeThisObject, args); \ ret = funcName(state); \ if (!ret) { \ @@ -72,8 +72,8 @@ if (nativeThisObject != nullptr) { \ auto se = se::ScriptEngine::getInstance(); \ se->_setGarbageCollecting(true); \ - bool ret = false; \ - se::State state(nativeThisObject); \ + bool ret = false; \ + se::State state(nativeThisObject); \ se::Object *_thisObject = state.thisObject(); \ if (_thisObject) _thisObject->_cleanup(nativeThisObject); \ ret = funcName(state); \ @@ -97,18 +97,18 @@ JsValueRef funcName##Registry(JsValueRef _callee, bool _isConstructCall, JsValueRef *_argv, unsigned short argc, void *_callbackState) { \ assert(argc > 0); \ --argc; \ - bool ret = true; \ + bool ret = true; \ se::ValueArray args; \ se::internal::jsToSeArgs(argc, _argv + 1, &args); \ - se::Value thisVal(se::Object::createObjectWithClass(cls), true); \ + se::Value thisVal(se::Object::createObjectWithClass(cls), true); \ se::Object *thisObject = thisVal.toObject(); \ - JsValueRef _jsRet = thisObject->_getJSObject(); \ - se::State state(thisObject, args); \ + JsValueRef _jsRet = thisObject->_getJSObject(); \ + se::State state(thisObject, args); \ ret = funcName(state); \ if (ret) { \ se::Value _property; \ - bool _found = false; \ - _found = thisObject->getProperty("_ctor", &_property); \ + bool _found = false; \ + _found = thisObject->getProperty("_ctor", &_property); \ if (_found) _property.toObject()->call(args, thisObject); \ } else { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -120,8 +120,8 @@ JsValueRef funcName##Registry(JsValueRef _callee, bool _isConstructCall, JsValueRef *_argv, unsigned short argc, void *_callbackState) { \ assert(argc > 0); \ --argc; \ - JsValueRef _jsRet = JS_INVALID_REFERENCE; \ - bool ret = true; \ + JsValueRef _jsRet = JS_INVALID_REFERENCE; \ + bool ret = true; \ se::ValueArray args; \ se::internal::jsToSeArgs(argc, _argv + 1, &args); \ se::Object *thisObject = se::Object::_createJSObject(cls, _argv[0]); \ @@ -130,8 +130,8 @@ ret = funcName(state); \ if (ret) { \ se::Value _property; \ - bool _found = false; \ - _found = thisObject->getProperty("_ctor", &_property); \ + bool _found = false; \ + _found = thisObject->getProperty("_ctor", &_property); \ if (_found) _property.toObject()->call(args, thisObject); \ } else { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -142,10 +142,10 @@ #define SE_BIND_PROP_GET(funcName) \ JsValueRef funcName##Registry(JsValueRef _callee, bool _isConstructCall, JsValueRef *_argv, unsigned short _argc, void *_callbackState) { \ assert(_argc == 1); \ - JsValueRef _jsRet = JS_INVALID_REFERENCE; \ - bool ret = true; \ - void *nativeThisObject = se::internal::getPrivate(_argv[0]); \ - se::State state(nativeThisObject); \ + JsValueRef _jsRet = JS_INVALID_REFERENCE; \ + bool ret = true; \ + void * nativeThisObject = se::internal::getPrivate(_argv[0]); \ + se::State state(nativeThisObject); \ ret = funcName(state); \ if (!ret) { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -157,8 +157,8 @@ #define SE_BIND_PROP_SET(funcName) \ JsValueRef funcName##Registry(JsValueRef _callee, bool _isConstructCall, JsValueRef *_argv, unsigned short _argc, void *_callbackState) { \ assert(_argc == 2); \ - bool ret = true; \ - void *nativeThisObject = se::internal::getPrivate(_argv[0]); \ + bool ret = true; \ + void * nativeThisObject = se::internal::getPrivate(_argv[0]); \ se::Value data; \ se::internal::jsToSeValue(_argv[1], &data); \ se::ValueArray args; \ diff --git a/native/cocos/bindings/jswrapper/chakracore/Object.cpp b/native/cocos/bindings/jswrapper/chakracore/Object.cpp index eac1534729..c70f395259 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Object.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Object.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,10 +28,10 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_CHAKRACORE - #include "Utils.h" + #include "../MappingUtils.h" #include "Class.h" #include "ScriptEngine.h" - #include "../MappingUtils.h" + #include "Utils.h" namespace se { @@ -64,11 +64,11 @@ Object *Object::createArrayObject(size_t length) { } Object *Object::createArrayBufferObject(void *data, size_t byteLength) { - Object *obj = nullptr; + Object * obj = nullptr; JsValueRef jsobj; _CHECK(JsCreateArrayBuffer((unsigned int)byteLength, &jsobj)); - ChakraBytePtr buffer = nullptr; - unsigned int bufferLength = 0; + ChakraBytePtr buffer = nullptr; + unsigned int bufferLength = 0; if (JsNoError == JsGetArrayBufferStorage(jsobj, &buffer, &bufferLength)) { if (data) { memcpy((void *)buffer, data, byteLength); @@ -93,53 +93,53 @@ Object *Object::createTypedArray(TypedArrayType type, const void *data, size_t b } JsTypedArrayType typedArrayType; - size_t elementLength = 0; + size_t elementLength = 0; switch (type) { case TypedArrayType::INT8: typedArrayType = JsArrayTypeInt8; - elementLength = byteLength; + elementLength = byteLength; break; case TypedArrayType::INT16: typedArrayType = JsArrayTypeInt16; - elementLength = byteLength / 2; + elementLength = byteLength / 2; break; case TypedArrayType::INT32: typedArrayType = JsArrayTypeInt32; - elementLength = byteLength / 4; + elementLength = byteLength / 4; break; case TypedArrayType::UINT8: typedArrayType = JsArrayTypeUint8; - elementLength = byteLength; + elementLength = byteLength; break; case TypedArrayType::UINT16: typedArrayType = JsArrayTypeUint16; - elementLength = byteLength / 2; + elementLength = byteLength / 2; break; case TypedArrayType::UINT32: typedArrayType = JsArrayTypeUint32; - elementLength = byteLength / 4; + elementLength = byteLength / 4; break; case TypedArrayType::FLOAT32: typedArrayType = JsArrayTypeFloat32; - elementLength = byteLength / 4; + elementLength = byteLength / 4; break; case TypedArrayType::FLOAT64: typedArrayType = JsArrayTypeFloat64; - elementLength = byteLength / 8; + elementLength = byteLength / 8; break; default: assert(false); // Should never go here. break; } - Object *obj = nullptr; + Object * obj = nullptr; JsValueRef jsobj; _CHECK(JsCreateTypedArray(typedArrayType, JS_INVALID_REFERENCE, 0, (unsigned int)elementLength, &jsobj)); - ChakraBytePtr buffer = nullptr; - unsigned int bufferLength = 0; + ChakraBytePtr buffer = nullptr; + unsigned int bufferLength = 0; JsTypedArrayType arrType; - int elementSize = 0; + int elementSize = 0; if (JsNoError == JsGetTypedArrayStorage(jsobj, &buffer, &bufferLength, &arrType, &elementSize)) { //If data has content,then will copy data into buffer,or will only clear buffer. if (data) { @@ -159,11 +159,11 @@ Object *Object::createUint8TypedArray(uint8_t *data, size_t dataCount) { } Object *Object::createJSONObject(const std::string &jsonStr) { - bool ok = false; + bool ok = false; Object *obj = nullptr; Object *global = ScriptEngine::getInstance()->getGlobalObject(); - Value jsonVal; + Value jsonVal; ok = global->getProperty("JSON", &jsonVal); assert(ok); @@ -171,7 +171,7 @@ Object *Object::createJSONObject(const std::string &jsonStr) { ok = jsonVal.toObject()->getProperty("parse", &parseVal); assert(ok); - Value ret; + Value ret; ValueArray args; args.push_back(Value(jsonStr)); if (parseVal.toObject()->call(args, jsonVal.toObject(), &ret)) { @@ -182,8 +182,8 @@ Object *Object::createJSONObject(const std::string &jsonStr) { } Object *Object::getObjectWithPtr(void *ptr) { - Object *obj = nullptr; - auto iter = NativePtrToObjectMap::find(ptr); + Object *obj = nullptr; + auto iter = NativePtrToObjectMap::find(ptr); if (iter != NativePtrToObjectMap::end()) { obj = iter->second; obj->incRef(); @@ -204,7 +204,7 @@ Object *Object::_createJSObject(Class *cls, JsValueRef obj) { Object *Object::createObjectWithClass(Class *cls) { JsValueRef jsobj = Class::_createJSObjectWithClass(cls); - Object *obj = Object::_createJSObject(cls, jsobj); + Object * obj = Object::_createJSObject(cls, jsobj); return obj; } @@ -252,9 +252,9 @@ void Object::_cleanup(void *nativeObject /* = nullptr*/) { void Object::cleanup() { ScriptEngine::getInstance()->addAfterCleanupHook([]() { const auto &instance = NativePtrToObjectMap::instance(); - se::Object *obj = nullptr; + se::Object *obj = nullptr; for (const auto &e : instance) { - obj = e.second; + obj = e.second; obj->_isCleanup = true; // _cleanup will invoke NativePtrToObjectMap::erase method which will break this for loop. It isn't needed at ScriptEngine::cleanup step. obj->decRef(); } @@ -329,7 +329,7 @@ bool Object::call(const ValueArray &args, Object *thisObject, Value *rval /* = n jsArgs[0] = contextObject; - JsValueRef rcValue = JS_INVALID_REFERENCE; + JsValueRef rcValue = JS_INVALID_REFERENCE; JsErrorCode errCode = JsCallFunction(_obj, jsArgs, args.size() + 1, &rcValue); free(jsArgs); @@ -375,20 +375,20 @@ static bool getArrayLengthOfObject(JsValueRef arrObj, uint32_t *length) { assert(isArrayOfObject(arrObj)); assert(length != nullptr); - JsErrorCode err = JsNoError; + JsErrorCode err = JsNoError; JsPropertyIdRef propertyId = JS_INVALID_REFERENCE; - const char *lengthName = "length"; - err = JsCreatePropertyId(lengthName, strlen(lengthName), &propertyId); + const char * lengthName = "length"; + err = JsCreatePropertyId(lengthName, strlen(lengthName), &propertyId); if (err != JsNoError) return false; JsValueRef jsLen = JS_INVALID_REFERENCE; - err = JsGetProperty(arrObj, propertyId, &jsLen); + err = JsGetProperty(arrObj, propertyId, &jsLen); if (err != JsNoError) return false; int intVal = 0; - err = JsNumberToInt(jsLen, &intVal); + err = JsNumberToInt(jsLen, &intVal); if (err != JsNoError) return false; @@ -409,10 +409,10 @@ bool Object::getArrayElement(uint32_t index, Value *data) const { assert(isArray()); assert(data != nullptr); - JsErrorCode err = JsNoError; - JsValueRef result = JS_INVALID_REFERENCE; - JsValueRef jsIndex = JS_INVALID_REFERENCE; - err = JsIntToNumber(index, &jsIndex); + JsErrorCode err = JsNoError; + JsValueRef result = JS_INVALID_REFERENCE; + JsValueRef jsIndex = JS_INVALID_REFERENCE; + err = JsIntToNumber(index, &jsIndex); if (err != JsNoError) return false; @@ -428,9 +428,9 @@ bool Object::getArrayElement(uint32_t index, Value *data) const { bool Object::setArrayElement(uint32_t index, const Value &data) { assert(isArray()); - JsErrorCode err = JsNoError; - JsValueRef jsIndex = JS_INVALID_REFERENCE; - err = JsIntToNumber(index, &jsIndex); + JsErrorCode err = JsNoError; + JsValueRef jsIndex = JS_INVALID_REFERENCE; + err = JsIntToNumber(index, &jsIndex); if (err != JsNoError) return false; @@ -447,22 +447,22 @@ bool Object::setArrayElement(uint32_t index, const Value &data) { bool Object::getAllKeys(std::vector *allKeys) const { assert(allKeys != nullptr); - JsErrorCode err = JsNoError; - JsValueRef keys = JS_INVALID_REFERENCE; - err = JsGetOwnPropertyNames(_obj, &keys); + JsErrorCode err = JsNoError; + JsValueRef keys = JS_INVALID_REFERENCE; + err = JsGetOwnPropertyNames(_obj, &keys); if (err != JsNoError) return false; uint32_t len = 0; - bool ok = false; - ok = getArrayLengthOfObject(keys, &len); + bool ok = false; + ok = getArrayLengthOfObject(keys, &len); if (!ok) return false; std::string key; for (uint32_t index = 0; index < len; ++index) { JsValueRef indexValue = JS_INVALID_REFERENCE; - err = JsIntToNumber(index, &indexValue); + err = JsIntToNumber(index, &indexValue); if (err != JsNoError) return false; @@ -510,9 +510,9 @@ Object::TypedArrayType Object::getTypedArrayType() const { return ret; JsTypedArrayType type; - JsValueRef arrayBuffer = JS_INVALID_REFERENCE; - unsigned int byteOffset = 0; - unsigned int byteLength = 0; + JsValueRef arrayBuffer = JS_INVALID_REFERENCE; + unsigned int byteOffset = 0; + unsigned int byteLength = 0; if (JsNoError == JsGetTypedArrayInfo(_obj, &type, &arrayBuffer, &byteOffset, &byteLength)) { if (type == JsArrayTypeInt8) @@ -541,16 +541,16 @@ Object::TypedArrayType Object::getTypedArrayType() const { bool Object::getTypedArrayData(uint8_t **ptr, size_t *length) const { assert(isTypedArray()); JsTypedArrayType arrayType; - ChakraBytePtr buffer = nullptr; - unsigned int bufferLength = 0; - int elementSize = 0; - bool ret = false; + ChakraBytePtr buffer = nullptr; + unsigned int bufferLength = 0; + int elementSize = 0; + bool ret = false; if (JsNoError == JsGetTypedArrayStorage(_obj, &buffer, &bufferLength, &arrayType, &elementSize)) { - *ptr = buffer; + *ptr = buffer; *length = bufferLength; - ret = true; + ret = true; } else { - *ptr = nullptr; + *ptr = nullptr; *length = 0; } return ret; @@ -566,15 +566,15 @@ bool Object::isArrayBuffer() const { bool Object::getArrayBufferData(uint8_t **ptr, size_t *length) const { assert(isArrayBuffer()); - ChakraBytePtr buffer = nullptr; - unsigned int bufferLength = 0; - bool ret = false; + ChakraBytePtr buffer = nullptr; + unsigned int bufferLength = 0; + bool ret = false; if (JsNoError == JsGetArrayBufferStorage(_obj, &buffer, &bufferLength)) { - *ptr = buffer; + *ptr = buffer; *length = bufferLength; - ret = true; + ret = true; } else { - *ptr = nullptr; + *ptr = nullptr; *length = 0; } return ret; @@ -652,7 +652,7 @@ bool Object::attachObject(Object *obj) { assert(obj); Object *global = ScriptEngine::getInstance()->getGlobalObject(); - Value jsbVal; + Value jsbVal; if (!global->getProperty("jsb", &jsbVal)) return false; Object *jsbObj = jsbVal.toObject(); @@ -672,7 +672,7 @@ bool Object::attachObject(Object *obj) { bool Object::detachObject(Object *obj) { assert(obj); Object *global = ScriptEngine::getInstance()->getGlobalObject(); - Value jsbVal; + Value jsbVal; if (!global->getProperty("jsb", &jsbVal)) return false; Object *jsbObj = jsbVal.toObject(); diff --git a/native/cocos/bindings/jswrapper/chakracore/Object.h b/native/cocos/bindings/jswrapper/chakracore/Object.h index 06611f9fb9..b204ea5657 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Object.h +++ b/native/cocos/bindings/jswrapper/chakracore/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,9 +30,9 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_CHAKRACORE - #include "Base.h" - #include "../Value.h" #include "../RefCounter.h" + #include "../Value.h" + #include "Base.h" namespace se { @@ -355,11 +355,11 @@ public: // Private API used in wrapper static Object *_createJSObject(Class *cls, JsValueRef obj); - JsValueRef _getJSObject() const; - Class *_getClass() const; - void _cleanup(void *nativeObject = nullptr); - void _setFinalizeCallback(JsFinalizeCallback finalizeCb); - bool _isNativeFunction() const; + JsValueRef _getJSObject() const; + Class * _getClass() const; + void _cleanup(void *nativeObject = nullptr); + void _setFinalizeCallback(JsFinalizeCallback finalizeCb); + bool _isNativeFunction() const; // private: static void cleanup(); @@ -368,14 +368,14 @@ private: virtual ~Object(); bool init(JsValueRef obj); - Class *_cls; - JsValueRef _obj; - void *_privateData; + Class * _cls; + JsValueRef _obj; + void * _privateData; JsFinalizeCallback _finalizeCb; uint32_t _rootCount; uint32_t _currentVMId; - bool _isCleanup; + bool _isCleanup; friend class ScriptEngine; }; diff --git a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp index 4b93fc14bf..5ea1c16ceb 100644 --- a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,11 +28,11 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_CHAKRACORE - #include "Object.h" - #include "Class.h" - #include "Utils.h" - #include "../State.h" #include "../MappingUtils.h" + #include "../State.h" + #include "Class.h" + #include "Object.h" + #include "Utils.h" namespace se { @@ -76,13 +76,13 @@ bool JSB_console_format_log(State &s, const char *prefix, int msgIndex = 0) { return false; const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if ((argc - msgIndex) == 1) { std::string msg = args[msgIndex].toStringForce(); SE_LOGD("JS: %s%s\n", prefix, msg.c_str()); } else if (argc > 1) { std::string msg = args[msgIndex].toStringForce(); - size_t pos; + size_t pos; for (int i = (msgIndex + 1); i < argc; ++i) { pos = msg.find("%"); if (pos != std::string::npos && pos != (msg.length() - 1) && (msg[pos + 1] == 'd' || msg[pos + 1] == 's' || msg[pos + 1] == 'f')) { @@ -198,7 +198,7 @@ bool ScriptEngine::init() { // ChakraCore isn't shipped with a console variable. Make a fake one. Value consoleVal; - bool hasConsole = _globalObj->getProperty("console", &consoleVal) && consoleVal.isObject(); + bool hasConsole = _globalObj->getProperty("console", &consoleVal) && consoleVal.isObject(); assert(!hasConsole); HandleObject consoleObj(Object::createPlainObject()); @@ -252,9 +252,9 @@ void ScriptEngine::cleanup() { _CHECK(JsSetCurrentContext(JS_INVALID_REFERENCE)); _CHECK(JsDisposeRuntime(_rt)); - _cx = nullptr; + _cx = nullptr; _globalObj = nullptr; - _isValid = false; + _isValid = false; _registerCallbackArray.clear(); @@ -274,7 +274,7 @@ ScriptEngine::ExceptionInfo ScriptEngine::formatException(JsValueRef exception) return ret; std::vector allKeys; - Object *exceptionObj = Object::_createJSObject(nullptr, exception); + Object * exceptionObj = Object::_createJSObject(nullptr, exception); exceptionObj->getAllKeys(&allKeys); for (const auto &key : allKeys) { @@ -325,7 +325,7 @@ bool ScriptEngine::start() { if (!init()) return false; - bool ok = false; + bool ok = false; _startTime = std::chrono::steady_clock::now(); for (auto cb : _registerCallbackArray) { diff --git a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h index 9d761e133c..9a4fffb702 100644 --- a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -276,18 +276,18 @@ private: ExceptionInfo formatException(JsValueRef exception); std::chrono::steady_clock::time_point _startTime; - std::vector _registerCallbackArray; - std::vector> _beforeInitHookArray; - std::vector> _afterInitHookArray; - std::vector> _beforeCleanupHookArray; - std::vector> _afterCleanupHookArray; + std::vector _registerCallbackArray; + std::vector> _beforeInitHookArray; + std::vector> _afterInitHookArray; + std::vector> _beforeCleanupHookArray; + std::vector> _afterCleanupHookArray; JsRuntimeHandle _rt; - JsContextRef _cx; - Object *_globalObj; + JsContextRef _cx; + Object * _globalObj; FileOperationDelegate _fileOperationDelegate; - ExceptionCallback _exceptionCallback; + ExceptionCallback _exceptionCallback; uint32_t _currentSourceContext; uint32_t _vmId; diff --git a/native/cocos/bindings/jswrapper/chakracore/SeApi.h b/native/cocos/bindings/jswrapper/chakracore/SeApi.h index b812e1c781..e66ccb97b5 100644 --- a/native/cocos/bindings/jswrapper/chakracore/SeApi.h +++ b/native/cocos/bindings/jswrapper/chakracore/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,8 +26,8 @@ #pragma once -#include "ScriptEngine.h" #include "Class.h" -#include "Object.h" #include "HelperMacros.h" +#include "Object.h" +#include "ScriptEngine.h" #include "Utils.h" diff --git a/native/cocos/bindings/jswrapper/chakracore/Utils.cpp b/native/cocos/bindings/jswrapper/chakracore/Utils.cpp index 69479cc309..1fc297a961 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Utils.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,9 +28,9 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_CHAKRACORE + #include "../HandleObject.h" #include "Object.h" #include "ScriptEngine.h" - #include "../HandleObject.h" namespace se { @@ -44,9 +44,9 @@ bool defineProperty(JsValueRef obj, const char *name, JsNativeFunction getter, J JsValueRef propertyDescriptor; _CHECK(JsCreateObject(&propertyDescriptor)); - const char *tmp = nullptr; - JsValueRef jsValue = JS_INVALID_REFERENCE; - JsPropertyIdRef id = JS_INVALID_REFERENCE; + const char * tmp = nullptr; + JsValueRef jsValue = JS_INVALID_REFERENCE; + JsPropertyIdRef id = JS_INVALID_REFERENCE; if (getter != nullptr) { tmp = "get"; @@ -113,8 +113,8 @@ void jsToSeValue(JsValueRef jsValue, Value *data) { forceConvertJsValueToStdString(jsValue, &str); data->setString(str); } else if (type == JsObject || type == JsFunction || type == JsArrayBuffer || type == JsTypedArray || type == JsArray) { - void *nativePtr = internal::getPrivate(jsValue); - Object *obj = nullptr; + void * nativePtr = internal::getPrivate(jsValue); + Object *obj = nullptr; if (nativePtr != nullptr) { obj = Object::getObjectWithPtr(nativePtr); } @@ -185,8 +185,8 @@ bool hasPrivate(JsValueRef obj) { return nullptr; } - bool isExist = false; - JsErrorCode err = JsHasExternalData(obj, &isExist); + bool isExist = false; + JsErrorCode err = JsHasExternalData(obj, &isExist); assert(err == JsNoError); if (isExist) return true; @@ -210,8 +210,8 @@ void setPrivate(JsValueRef obj, void *data, JsFinalizeCallback finalizeCb) { privateObj->root(); internal::PrivateData *privateData = (internal::PrivateData *)malloc(sizeof(internal::PrivateData)); - privateData->data = data; - privateData->finalizeCb = finalizeCb; + privateData->data = data; + privateData->finalizeCb = finalizeCb; _CHECK(JsSetExternalData(privateObj->_getJSObject(), privateData)); // SE_LOGD("setPrivate: %p\n", data); @@ -230,8 +230,8 @@ void *getPrivate(JsValueRef obj) { return nullptr; } - void *data = nullptr; - bool isExist = false; + void *data = nullptr; + bool isExist = false; _CHECK(JsHasExternalData(obj, &isExist)); if (isExist) { _CHECK(JsGetExternalData(obj, &data)); @@ -261,8 +261,8 @@ void clearPrivate(JsValueRef obj) { return; } - bool isExist = false; - JsErrorCode err = JsHasExternalData(obj, &isExist); + bool isExist = false; + JsErrorCode err = JsHasExternalData(obj, &isExist); assert(err == JsNoError); if (isExist) { _CHECK(JsSetExternalData(obj, nullptr)); diff --git a/native/cocos/bindings/jswrapper/chakracore/Utils.h b/native/cocos/bindings/jswrapper/chakracore/Utils.h index c26e27b26b..abe0d6c271 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Utils.h +++ b/native/cocos/bindings/jswrapper/chakracore/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -39,7 +39,7 @@ namespace se { namespace internal { struct PrivateData { - void *data; + void * data; JsFinalizeCallback finalizeCb; }; @@ -53,10 +53,10 @@ void seToJsValue(const Value &v, JsValueRef *jsval); void forceConvertJsValueToStdString(JsValueRef jsval, std::string *ret); void jsStringToStdString(JsValueRef jsStr, std::string *ret); -bool hasPrivate(JsValueRef obj); -void setPrivate(JsValueRef obj, void *data, JsFinalizeCallback finalizeCb); +bool hasPrivate(JsValueRef obj); +void setPrivate(JsValueRef obj, void *data, JsFinalizeCallback finalizeCb); void *getPrivate(JsValueRef obj); -void clearPrivate(JsValueRef obj); +void clearPrivate(JsValueRef obj); } // namespace internal } // namespace se diff --git a/native/cocos/bindings/jswrapper/config.cpp b/native/cocos/bindings/jswrapper/config.cpp index 96ac3bdc42..6cafbc1709 100644 --- a/native/cocos/bindings/jswrapper/config.cpp +++ b/native/cocos/bindings/jswrapper/config.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/config.h b/native/cocos/bindings/jswrapper/config.h index db19dc3c10..0b05413123 100644 --- a/native/cocos/bindings/jswrapper/config.h +++ b/native/cocos/bindings/jswrapper/config.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/Base.h b/native/cocos/bindings/jswrapper/jsc/Base.h index 05ff0e72be..dd3142d638 100644 --- a/native/cocos/bindings/jswrapper/jsc/Base.h +++ b/native/cocos/bindings/jswrapper/jsc/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,11 +28,11 @@ #include -#include -#include -#include #include #include +#include +#include +#include #include diff --git a/native/cocos/bindings/jswrapper/jsc/Class.cpp b/native/cocos/bindings/jswrapper/jsc/Class.cpp index 5a1af73f5d..1c778f2ed2 100644 --- a/native/cocos/bindings/jswrapper/jsc/Class.cpp +++ b/native/cocos/bindings/jswrapper/jsc/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,9 +29,9 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_JSC #include "Object.h" - #include "Utils.h" #include "ScriptEngine.h" #include "State.h" + #include "Utils.h" namespace se { @@ -44,13 +44,13 @@ namespace se { namespace { // std::unordered_map __clsMap; -JSContextRef __cx = nullptr; +JSContextRef __cx = nullptr; std::vector __allClasses; void defaultFinalizeCallback(JSObjectRef _obj) { void *nativeThisObject = JSObjectGetPrivate(_obj); if (nativeThisObject != nullptr) { - State state(nativeThisObject); + State state(nativeThisObject); Object *_thisObject = state.thisObject(); if (_thisObject) _thisObject->_cleanup(nativeThisObject); JSObjectSetPrivate(_obj, nullptr); @@ -83,7 +83,7 @@ Class *Class::create(const std::string &className, Object *obj, Object *parentPr } bool Class::init(const std::string &clsName, Object *parent, Object *parentProto, JSObjectCallAsConstructorCallback ctor) { - _name = clsName; + _name = clsName; _parent = parent; SAFE_INC_REF(_parent); _parentProto = parentProto; @@ -97,9 +97,9 @@ bool Class::install() { // // __clsMap.emplace(_name, this); - _jsClsDef.version = 0; + _jsClsDef.version = 0; _jsClsDef.attributes = kJSClassAttributeNone; - _jsClsDef.className = _name.c_str(); + _jsClsDef.className = _name.c_str(); if (_parentProto != nullptr) { _jsClsDef.parentClass = _parentProto->_getClass()->_jsCls; } @@ -121,7 +121,7 @@ bool Class::install() { _jsCls = JSClassCreate(&_jsClsDef); - JSObjectRef jsCtor = JSObjectMakeConstructor(__cx, _jsCls, _ctor); + JSObjectRef jsCtor = JSObjectMakeConstructor(__cx, _jsCls, _ctor); HandleObject ctorObj(Object::_createJSObject(nullptr, jsCtor)); Value functionCtor; @@ -141,11 +141,11 @@ bool Class::install() { JSStringRelease(name); } - JSValueRef prototypeObj = nullptr; + JSValueRef prototypeObj = nullptr; JSStringRef prototypeName = JSStringCreateWithUTF8CString("prototype"); - bool exist = JSObjectHasProperty(__cx, jsCtor, prototypeName); + bool exist = JSObjectHasProperty(__cx, jsCtor, prototypeName); if (exist) { - exception = nullptr; + exception = nullptr; prototypeObj = JSObjectGetProperty(__cx, jsCtor, prototypeName, &exception); if (exception != nullptr) { ScriptEngine::getInstance()->_clearException(exception); @@ -154,7 +154,7 @@ bool Class::install() { JSStringRelease(prototypeName); assert(prototypeObj != nullptr); - exception = nullptr; + exception = nullptr; JSObjectRef protoJSObj = JSValueToObject(__cx, prototypeObj, &exception); if (exception != nullptr) { ScriptEngine::getInstance()->_clearException(exception); diff --git a/native/cocos/bindings/jswrapper/jsc/Class.h b/native/cocos/bindings/jswrapper/jsc/Class.h index 78323c1086..c19bce5e51 100644 --- a/native/cocos/bindings/jswrapper/jsc/Class.h +++ b/native/cocos/bindings/jswrapper/jsc/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -126,27 +126,27 @@ private: static void cleanup(); struct JSPropertySpec { - const char *name; + const char * name; JSObjectCallAsFunctionCallback getter; JSObjectCallAsFunctionCallback setter; - JSPropertyAttributes attributes; + JSPropertyAttributes attributes; }; std::string _name; - Object *_parent; - Object *_proto; - Object *_parentProto; + Object * _parent; + Object * _proto; + Object * _parentProto; JSObjectCallAsConstructorCallback _ctor; - JSClassRef _jsCls; + JSClassRef _jsCls; JSClassDefinition _jsClsDef; std::vector _funcs; std::vector _staticFuncs; - std::vector _properties; - std::vector _staticProperties; - JSObjectFinalizeCallback _finalizeOp; + std::vector _properties; + std::vector _staticProperties; + JSObjectFinalizeCallback _finalizeOp; friend class ScriptEngine; friend class Object; diff --git a/native/cocos/bindings/jswrapper/jsc/EJConvert.h b/native/cocos/bindings/jswrapper/jsc/EJConvert.h index 22a6b2aac3..4b94262d85 100644 --- a/native/cocos/bindings/jswrapper/jsc/EJConvert.h +++ b/native/cocos/bindings/jswrapper/jsc/EJConvert.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,12 +30,12 @@ extern "C" { #endif -NSString *JSValueToNSString(JSContextRef ctx, JSValueRef v); +NSString * JSValueToNSString(JSContextRef ctx, JSValueRef v); JSValueRef NSStringToJSValue(JSContextRef ctx, NSString *string); -double JSValueToNumberFast(JSContextRef ctx, JSValueRef v); -void JSValueUnprotectSafe(JSContextRef ctx, JSValueRef v); +double JSValueToNumberFast(JSContextRef ctx, JSValueRef v); +void JSValueUnprotectSafe(JSContextRef ctx, JSValueRef v); JSValueRef NSObjectToJSValue(JSContextRef ctx, NSObject *obj); -NSObject *JSValueToNSObject(JSContextRef ctx, JSValueRef value); +NSObject * JSValueToNSObject(JSContextRef ctx, JSValueRef value); static inline void *JSValueGetPrivate(JSValueRef v) { // On 64bit systems we can not safely call JSObjectGetPrivate with any diff --git a/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h b/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h index 07c5383766..61b712e799 100644 --- a/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h +++ b/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -46,17 +46,17 @@ extern "C" { @constant kEJJSTypedArrayTypeArrayBuffer ArrayBuffer */ typedef enum { - kEJJSTypedArrayTypeNone = 0, - kEJJSTypedArrayTypeInt8Array = 1, - kEJJSTypedArrayTypeInt16Array = 2, - kEJJSTypedArrayTypeInt32Array = 3, - kEJJSTypedArrayTypeUint8Array = 4, + kEJJSTypedArrayTypeNone = 0, + kEJJSTypedArrayTypeInt8Array = 1, + kEJJSTypedArrayTypeInt16Array = 2, + kEJJSTypedArrayTypeInt32Array = 3, + kEJJSTypedArrayTypeUint8Array = 4, kEJJSTypedArrayTypeUint8ClampedArray = 5, - kEJJSTypedArrayTypeUint16Array = 6, - kEJJSTypedArrayTypeUint32Array = 7, - kEJJSTypedArrayTypeFloat32Array = 8, - kEJJSTypedArrayTypeFloat64Array = 9, - kEJJSTypedArrayTypeArrayBuffer = 10 + kEJJSTypedArrayTypeUint16Array = 6, + kEJJSTypedArrayTypeUint32Array = 7, + kEJJSTypedArrayTypeFloat32Array = 8, + kEJJSTypedArrayTypeFloat64Array = 9, + kEJJSTypedArrayTypeArrayBuffer = 10 } EJJSTypedArrayType; /*! diff --git a/native/cocos/bindings/jswrapper/jsc/HelperMacros.h b/native/cocos/bindings/jswrapper/jsc/HelperMacros.h index 979c3deff6..4792ba7bc8 100644 --- a/native/cocos/bindings/jswrapper/jsc/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/jsc/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -51,11 +51,11 @@ #define SE_BIND_FUNC(funcName) \ JSValueRef funcName##Registry(JSContextRef _cx, JSObjectRef _function, JSObjectRef _thisObject, size_t _argc, const JSValueRef _argv[], JSValueRef *_exception) { \ - unsigned short argc = (unsigned short)_argc; \ - JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ - void *nativeThisObject = se::internal::getPrivate(_thisObject); \ + unsigned short argc = (unsigned short)_argc; \ + JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ + void * nativeThisObject = se::internal::getPrivate(_thisObject); \ if (nativeThisObject != (void *)std::numeric_limits::max()) { \ - bool ret = true; \ + bool ret = true; \ se::ValueArray args; \ se::internal::jsToSeArgs(_cx, argc, _argv, &args); \ se::State state(nativeThisObject, args); \ @@ -74,8 +74,8 @@ se->_setGarbageCollecting(true); \ void *nativeThisObject = JSObjectGetPrivate(_obj); \ if (nativeThisObject != nullptr) { \ - bool ret = false; \ - se::State state(nativeThisObject); \ + bool ret = false; \ + se::State state(nativeThisObject); \ se::Object *_thisObject = state.thisObject(); \ if (_thisObject) _thisObject->_cleanup(nativeThisObject); \ ret = funcName(state); \ @@ -98,19 +98,19 @@ // HOW TO FIX: Use a rooted se::Value to save the se::Object poiner returned by se::Object::createObjectWithClass. #define SE_BIND_CTOR(funcName, cls, finalizeCb) \ JSObjectRef funcName##Registry(JSContextRef _cx, JSObjectRef _constructor, size_t argc, const JSValueRef _argv[], JSValueRef *_exception) { \ - bool ret = true; \ + bool ret = true; \ se::ValueArray args; \ se::internal::jsToSeArgs(_cx, argc, _argv, &args); \ - se::Value thisVal(se::Object::createObjectWithClass(cls), true); \ + se::Value thisVal(se::Object::createObjectWithClass(cls), true); \ se::Object *thisObject = thisVal.toObject(); \ - JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ - se::State state(thisObject, args); \ + JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ + se::State state(thisObject, args); \ ret = funcName(state); \ if (ret) { \ _jsRet = thisObject->_getJSObject(); \ se::Value _property; \ - bool _found = false; \ - _found = thisObject->getProperty("_ctor", &_property); \ + bool _found = false; \ + _found = thisObject->getProperty("_ctor", &_property); \ if (_found) _property.toObject()->call(args, thisObject); \ } else { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -120,8 +120,8 @@ #define SE_BIND_SUB_CLS_CTOR(funcName, cls, finalizeCb) \ JSValueRef funcName##Registry(JSContextRef _cx, JSObjectRef _function, JSObjectRef _thisObject, size_t argc, const JSValueRef _argv[], JSValueRef *_exception) { \ - bool ret = true; \ - JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ + bool ret = true; \ + JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ se::ValueArray args; \ se::internal::jsToSeArgs(_cx, argc, _argv, &args); \ se::Object *thisObject = se::Object::_createJSObject(cls, _thisObject); \ @@ -130,8 +130,8 @@ ret = funcName(state); \ if (ret) { \ se::Value _property; \ - bool _found = false; \ - _found = thisObject->getProperty("_ctor", &_property); \ + bool _found = false; \ + _found = thisObject->getProperty("_ctor", &_property); \ if (_found) _property.toObject()->call(args, thisObject); \ } else { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -142,8 +142,8 @@ #define SE_BIND_PROP_GET(funcName) \ JSValueRef funcName##Registry(JSContextRef _cx, JSObjectRef _function, JSObjectRef _thisObject, size_t argc, const JSValueRef _argv[], JSValueRef *_exception) { \ assert(argc == 0); \ - JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ - void *nativeThisObject = se::internal::getPrivate(_thisObject); \ + JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ + void * nativeThisObject = se::internal::getPrivate(_thisObject); \ if (nativeThisObject != (void *)std::numeric_limits::max()) { \ se::State state(nativeThisObject); \ if (funcName(state)) { \ @@ -158,10 +158,10 @@ #define SE_BIND_PROP_SET(funcName) \ JSValueRef funcName##Registry(JSContextRef _cx, JSObjectRef _function, JSObjectRef _thisObject, size_t argc, const JSValueRef _argv[], JSValueRef *_exception) { \ assert(argc == 1); \ - JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ - void *nativeThisObject = se::internal::getPrivate(_thisObject); \ + JSValueRef _jsRet = JSValueMakeUndefined(_cx); \ + void * nativeThisObject = se::internal::getPrivate(_thisObject); \ if (nativeThisObject != (void *)std::numeric_limits::max()) { \ - bool ret = true; \ + bool ret = true; \ se::Value data; \ se::internal::jsToSeValue(_cx, _argv[0], &data); \ se::ValueArray args; \ diff --git a/native/cocos/bindings/jswrapper/jsc/Object.h b/native/cocos/bindings/jswrapper/jsc/Object.h index f2ad63b005..215362e320 100644 --- a/native/cocos/bindings/jswrapper/jsc/Object.h +++ b/native/cocos/bindings/jswrapper/jsc/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,9 +30,9 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_JSC - #include "Base.h" - #include "../Value.h" #include "../RefCounter.h" + #include "../Value.h" + #include "Base.h" namespace se { @@ -363,9 +363,9 @@ public: // Private API used in wrapper static Object *_createJSObject(Class *cls, JSObjectRef obj); - JSObjectRef _getJSObject() const; - Class *_getClass() const; - void _setFinalizeCallback(JSObjectFinalizeCallback finalizeCb); + JSObjectRef _getJSObject() const; + Class * _getClass() const; + void _setFinalizeCallback(JSObjectFinalizeCallback finalizeCb); void _cleanup(void *nativeObject = nullptr); bool _isNativeFunction() const; @@ -397,9 +397,9 @@ private: FUNCTION }; - Class *_cls; - JSObjectRef _obj; - void *_privateData; + Class * _cls; + JSObjectRef _obj; + void * _privateData; JSObjectFinalizeCallback _finalizeCb; uint32_t _rootCount; diff --git a/native/cocos/bindings/jswrapper/jsc/Object.mm b/native/cocos/bindings/jswrapper/jsc/Object.mm index 500f9865b0..356d38616c 100644 --- a/native/cocos/bindings/jswrapper/jsc/Object.mm +++ b/native/cocos/bindings/jswrapper/jsc/Object.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h index 3a9c2387e7..f14838906b 100644 --- a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h +++ b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm index f02132829e..2bff8996d9 100644 --- a/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm +++ b/native/cocos/bindings/jswrapper/jsc/PlatformUtils.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h index 3dc755834d..d3c8baa839 100644 --- a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,8 +30,8 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_JSC - #include "Base.h" #include + #include "Base.h" namespace se { @@ -273,9 +273,9 @@ public: uint32_t getVMId() const { return _vmId; } // Private API used in wrapper - void _clearException(JSValueRef exception); + void _clearException(JSValueRef exception); JSContextRef _getContext() const { return _cx; } - void _setGarbageCollecting(bool isGarbageCollecting); + void _setGarbageCollecting(bool isGarbageCollecting); // private: ScriptEngine(); @@ -288,7 +288,7 @@ private: // For compatibility std::string filePath; - uint32_t lineno; + uint32_t lineno; ExceptionInfo() : lineno(0) {} @@ -302,19 +302,19 @@ private: void callExceptionCallback(const char *, const char *, const char *); std::chrono::steady_clock::time_point _startTime; - std::vector _registerCallbackArray; - std::vector> _beforeInitHookArray; - std::vector> _afterInitHookArray; + std::vector _registerCallbackArray; + std::vector> _beforeInitHookArray; + std::vector> _afterInitHookArray; std::vector> _beforeCleanupHookArray; std::vector> _afterCleanupHookArray; JSGlobalContextRef _cx; - Object *_globalObj; + Object * _globalObj; FileOperationDelegate _fileOperationDelegate; - ExceptionCallback _nativeExceptionCallback = nullptr; - ExceptionCallback _jsExceptionCallback = nullptr; + ExceptionCallback _nativeExceptionCallback = nullptr; + ExceptionCallback _jsExceptionCallback = nullptr; uint32_t _vmId; diff --git a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm index 72be0eb75f..15b8cc7dbd 100644 --- a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm +++ b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/jsc/SeApi.h b/native/cocos/bindings/jswrapper/jsc/SeApi.h index 77a80f751e..3d7d769f6d 100644 --- a/native/cocos/bindings/jswrapper/jsc/SeApi.h +++ b/native/cocos/bindings/jswrapper/jsc/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,10 +26,10 @@ #pragma once -#include "ScriptEngine.h" -#include "Class.h" -#include "Object.h" -#include "../Value.h" #include "../State.h" +#include "../Value.h" +#include "Class.h" #include "HelperMacros.h" +#include "Object.h" +#include "ScriptEngine.h" #include "Utils.h" diff --git a/native/cocos/bindings/jswrapper/jsc/Utils.cpp b/native/cocos/bindings/jswrapper/jsc/Utils.cpp index a23e712e69..6a17b43a09 100644 --- a/native/cocos/bindings/jswrapper/jsc/Utils.cpp +++ b/native/cocos/bindings/jswrapper/jsc/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,9 +28,9 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_JSC + #include "../HandleObject.h" #include "Object.h" #include "ScriptEngine.h" - #include "../HandleObject.h" namespace se { @@ -45,9 +45,9 @@ void setContext(JSContextRef cx) { } bool defineProperty(Object *obj, const char *name, JSObjectCallAsFunctionCallback jsGetter, JSObjectCallAsFunctionCallback jsSetter) { - bool ok = true; + bool ok = true; Object *globalObject = ScriptEngine::getInstance()->getGlobalObject(); - Value v; + Value v; ok = globalObject->getProperty("Object", &v); if (!ok || !v.isObject()) { SE_LOGD("ERROR: couldn't find Object\n"); @@ -118,7 +118,7 @@ void jsToSeValue(JSContextRef cx, JSValueRef jsValue, Value *data) { data->setUndefined(); } else if (JSValueIsNumber(cx, jsValue)) { JSValueRef exception = nullptr; - double number = JSValueToNumber(cx, jsValue, &exception); + double number = JSValueToNumber(cx, jsValue, &exception); if (exception != nullptr) { ScriptEngine::getInstance()->_clearException(exception); } else { @@ -131,13 +131,13 @@ void jsToSeValue(JSContextRef cx, JSValueRef jsValue, Value *data) { forceConvertJsValueToStdString(cx, jsValue, &str); data->setString(str); } else if (JSValueIsObject(cx, jsValue)) { - JSValueRef exception = nullptr; - JSObjectRef jsobj = JSValueToObject(cx, jsValue, &exception); + JSValueRef exception = nullptr; + JSObjectRef jsobj = JSValueToObject(cx, jsValue, &exception); if (exception != nullptr) { ScriptEngine::getInstance()->_clearException(exception); } else { - void *nativePtr = internal::getPrivate(jsobj); - Object *obj = nullptr; + void * nativePtr = internal::getPrivate(jsobj); + Object *obj = nullptr; if (nativePtr != nullptr) { obj = Object::getObjectWithPtr(nativePtr); } @@ -165,7 +165,7 @@ void seToJsValue(JSContextRef cx, const Value &v, JSValueRef *jsval) { case Value::Type::String: { JSStringRef str = JSStringCreateWithUTF8CString(v.toString().c_str()); - *jsval = JSValueMakeString(cx, str); + *jsval = JSValueMakeString(cx, str); JSStringRelease(str); } break; @@ -184,8 +184,8 @@ void seToJsValue(JSContextRef cx, const Value &v, JSValueRef *jsval) { } void forceConvertJsValueToStdString(JSContextRef cx, JSValueRef jsval, std::string *ret, bool ignoreException /* = false */) { - JSValueRef exception = nullptr; - JSStringRef jsstr = JSValueToStringCopy(cx, jsval, &exception); + JSValueRef exception = nullptr; + JSStringRef jsstr = JSValueToStringCopy(cx, jsval, &exception); if (exception != nullptr) { // NOTE: ignoreException is true in ScriptEngine::_formatException because it's already in the _clearException process. // Adds this flag to avoid infinite loop of _clearException -> _formatException -> forceConvertJsValueToStdString -> _clearException -> ... @@ -202,9 +202,9 @@ void forceConvertJsValueToStdString(JSContextRef cx, JSValueRef jsval, std::stri } void jsStringToStdString(JSContextRef cx, JSStringRef jsStr, std::string *ret) { - size_t len = JSStringGetLength(jsStr); + size_t len = JSStringGetLength(jsStr); const size_t BUF_SIZE = len * 4 + 1; - char *buf = (char *)malloc(BUF_SIZE); + char * buf = (char *)malloc(BUF_SIZE); memset(buf, 0, BUF_SIZE); JSStringGetUTF8CString(jsStr, buf, BUF_SIZE); *ret = buf; @@ -218,8 +218,8 @@ bool hasPrivate(JSObjectRef obj) { if (data != nullptr) return true; - JSStringRef key = JSStringCreateWithUTF8CString(KEY_PRIVATE_DATA); - bool found = JSObjectHasProperty(__cx, obj, key); + JSStringRef key = JSStringCreateWithUTF8CString(KEY_PRIVATE_DATA); + bool found = JSObjectHasProperty(__cx, obj, key); JSStringRelease(key); return found; @@ -236,13 +236,13 @@ void setPrivate(JSObjectRef obj, void *data, JSObjectFinalizeCallback finalizeCb privateObj->root(); internal::PrivateData *privateData = (internal::PrivateData *)malloc(sizeof(internal::PrivateData)); - privateData->data = data; - privateData->finalizeCb = finalizeCb; - ok = JSObjectSetPrivate(privateObj->_getJSObject(), privateData); + privateData->data = data; + privateData->finalizeCb = finalizeCb; + ok = JSObjectSetPrivate(privateObj->_getJSObject(), privateData); assert(ok); - JSStringRef key = JSStringCreateWithUTF8CString(KEY_PRIVATE_DATA); - JSValueRef exception = nullptr; + JSStringRef key = JSStringCreateWithUTF8CString(KEY_PRIVATE_DATA); + JSValueRef exception = nullptr; JSObjectSetProperty(__cx, obj, key, privateObj->_getJSObject(), kJSPropertyAttributeDontEnum, &exception); if (exception != nullptr) { ScriptEngine::getInstance()->_clearException(exception); @@ -258,10 +258,10 @@ void *getPrivate(JSObjectRef obj) { if (data != nullptr) return data; - JSStringRef key = JSStringCreateWithUTF8CString(KEY_PRIVATE_DATA); - bool found = JSObjectHasProperty(__cx, obj, key); + JSStringRef key = JSStringCreateWithUTF8CString(KEY_PRIVATE_DATA); + bool found = JSObjectHasProperty(__cx, obj, key); if (found) { - JSValueRef exception = nullptr; + JSValueRef exception = nullptr; JSValueRef privateDataVal = JSObjectGetProperty(__cx, obj, key, &exception); do { if (exception != nullptr) diff --git a/native/cocos/bindings/jswrapper/jsc/Utils.h b/native/cocos/bindings/jswrapper/jsc/Utils.h index b1160e6ccf..aedb000652 100644 --- a/native/cocos/bindings/jswrapper/jsc/Utils.h +++ b/native/cocos/bindings/jswrapper/jsc/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -39,7 +39,7 @@ namespace se { namespace internal { struct PrivateData { - void *data; + void * data; JSObjectFinalizeCallback finalizeCb; }; @@ -55,10 +55,10 @@ void seToJsValue(JSContextRef cx, const Value &v, JSValueRef *jsval); void forceConvertJsValueToStdString(JSContextRef cx, JSValueRef jsval, std::string *ret, bool ignoreException = false); void jsStringToStdString(JSContextRef cx, JSStringRef jsStr, std::string *ret); -bool hasPrivate(JSObjectRef obj); -void setPrivate(JSObjectRef obj, void *data, JSObjectFinalizeCallback finalizeCb); +bool hasPrivate(JSObjectRef obj); +void setPrivate(JSObjectRef obj, void *data, JSObjectFinalizeCallback finalizeCb); void *getPrivate(JSObjectRef obj); -void clearPrivate(JSObjectRef obj); +void clearPrivate(JSObjectRef obj); } // namespace internal } // namespace se diff --git a/native/cocos/bindings/jswrapper/sm/Base.h b/native/cocos/bindings/jswrapper/sm/Base.h index 8c5ba834c3..d75a1b88a3 100644 --- a/native/cocos/bindings/jswrapper/sm/Base.h +++ b/native/cocos/bindings/jswrapper/sm/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,16 +30,16 @@ #define UINT64_C(value) __CONCAT(value, ULL) #endif +#include "js/Conversions.h" +#include "js/Initialization.h" #include "jsapi.h" #include "jsfriendapi.h" -#include "js/Initialization.h" -#include "js/Conversions.h" -#include -#include -#include +#include #include #include -#include +#include +#include +#include #include "HelperMacros.h" diff --git a/native/cocos/bindings/jswrapper/sm/Class.cpp b/native/cocos/bindings/jswrapper/sm/Class.cpp index c33a9573de..12a8507795 100644 --- a/native/cocos/bindings/jswrapper/sm/Class.cpp +++ b/native/cocos/bindings/jswrapper/sm/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,8 +26,8 @@ #include "Class.h" #include "Object.h" -#include "Utils.h" #include "ScriptEngine.h" +#include "Utils.h" #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_SM @@ -104,7 +104,7 @@ bool Class::install() { _jsCls.name = _name; if (_finalizeOp != nullptr) { - _jsCls.flags = JSCLASS_HAS_PRIVATE | JSCLASS_FOREGROUND_FINALIZE; //IDEA: Use JSCLASS_BACKGROUND_FINALIZE to improve GC performance + _jsCls.flags = JSCLASS_HAS_PRIVATE | JSCLASS_FOREGROUND_FINALIZE; //IDEA: Use JSCLASS_BACKGROUND_FINALIZE to improve GC performance _classOps.finalize = _finalizeOp; } else { _jsCls.flags = JSCLASS_HAS_PRIVATE; @@ -112,7 +112,7 @@ bool Class::install() { _jsCls.cOps = &_classOps; - JSObject *parentObj = _parentProto != nullptr ? _parentProto->_getJSObject() : nullptr; + JSObject * parentObj = _parentProto != nullptr ? _parentProto->_getJSObject() : nullptr; JS::RootedObject parent(__cx, _parent->_getJSObject()); JS::RootedObject parentProto(__cx, parentObj); @@ -177,7 +177,7 @@ bool Class::defineFinalizeFunction(JSFinalizeOp func) { // } JSObject *Class::_createJSObjectWithClass(Class *cls) { - JSObject *proto = cls->_proto != nullptr ? cls->_proto->_getJSObject() : nullptr; + JSObject * proto = cls->_proto != nullptr ? cls->_proto->_getJSObject() : nullptr; JS::RootedObject jsProto(__cx, proto); JS::RootedObject obj(__cx, JS_NewObjectWithGivenProto(__cx, &cls->_jsCls, jsProto)); return obj; diff --git a/native/cocos/bindings/jswrapper/sm/Class.h b/native/cocos/bindings/jswrapper/sm/Class.h index c4dad43d9d..d3466d97c9 100644 --- a/native/cocos/bindings/jswrapper/sm/Class.h +++ b/native/cocos/bindings/jswrapper/sm/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -130,20 +130,20 @@ private: static void cleanup(); const char *_name; - Object *_parent; - Object *_proto; - Object *_parentProto; + Object * _parent; + Object * _proto; + Object * _parentProto; JSNative _ctor; - JSClass _jsCls; + JSClass _jsCls; JSClassOps _classOps; std::vector _funcs; std::vector _staticFuncs; std::vector _properties; std::vector _staticProperties; - JSFinalizeOp _finalizeOp; + JSFinalizeOp _finalizeOp; friend class ScriptEngine; friend class Object; diff --git a/native/cocos/bindings/jswrapper/sm/HelperMacros.h b/native/cocos/bindings/jswrapper/sm/HelperMacros.h index bc345a961b..0e5a746e8e 100644 --- a/native/cocos/bindings/jswrapper/sm/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/sm/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -48,14 +48,14 @@ extern uint32_t __jsbInvocationCount; #define SE_BIND_FUNC(funcName) \ bool funcName##Registry(JSContext *_cx, unsigned argc, JS::Value *_vp) { \ ++__jsbInvocationCount; \ - bool ret = false; \ - JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ - JS::Value _thiz = _argv.computeThis(_cx); \ + bool ret = false; \ + JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ + JS::Value _thiz = _argv.computeThis(_cx); \ se::ValueArray args; \ se::internal::jsToSeArgs(_cx, argc, _argv, &args); \ JS::RootedObject _thizObj(_cx, _thiz.toObjectOrNull()); \ - void *nativeThisObject = se::internal::getPrivate(_cx, _thizObj); \ - se::State state(nativeThisObject, args); \ + void * nativeThisObject = se::internal::getPrivate(_cx, _thizObj); \ + se::State state(nativeThisObject, args); \ ret = funcName(state); \ if (!ret) { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -70,7 +70,7 @@ extern uint32_t __jsbInvocationCount; #define SE_BIND_FINALIZE_FUNC(funcName) \ void funcName##Registry(JSFreeOp *_fop, JSObject *_obj) { \ void *nativeThisObject = JS_GetPrivate(_obj); \ - bool ret = false; \ + bool ret = false; \ if (nativeThisObject == nullptr) \ return; \ se::State state(nativeThisObject); \ @@ -83,8 +83,8 @@ extern uint32_t __jsbInvocationCount; #define SE_BIND_CTOR(funcName, cls, finalizeCb) \ bool funcName##Registry(JSContext *_cx, unsigned argc, JS::Value *_vp) { \ ++__jsbInvocationCount; \ - bool ret = false; \ - JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ + bool ret = false; \ + JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ se::ValueArray args; \ se::internal::jsToSeArgs(_cx, argc, _argv, &args); \ se::Object *thisObject = se::Object::createObjectWithClass(cls); \ @@ -93,8 +93,8 @@ extern uint32_t __jsbInvocationCount; ret = funcName(state); \ if (ret) { \ se::Value _property; \ - bool _found = false; \ - _found = thisObject->getProperty("_ctor", &_property); \ + bool _found = false; \ + _found = thisObject->getProperty("_ctor", &_property); \ if (_found) _property.toObject()->call(args, thisObject); \ } else { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -105,9 +105,9 @@ extern uint32_t __jsbInvocationCount; #define SE_BIND_SUB_CLS_CTOR(funcName, cls, finalizeCb) \ bool funcName##Registry(JSContext *_cx, unsigned argc, JS::Value *_vp) { \ ++__jsbInvocationCount; \ - bool ret = false; \ - JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ - JS::Value _thiz = _argv.computeThis(_cx); \ + bool ret = false; \ + JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ + JS::Value _thiz = _argv.computeThis(_cx); \ se::ValueArray args; \ se::internal::jsToSeArgs(_cx, argc, _argv, &args); \ se::Object *thisObject = se::Object::_createJSObject(cls, _thiz.toObjectOrNull()); \ @@ -116,8 +116,8 @@ extern uint32_t __jsbInvocationCount; ret = funcName(state); \ if (ret) { \ se::Value _property; \ - bool _found = false; \ - _found = thisObject->getProperty("_ctor", &_property); \ + bool _found = false; \ + _found = thisObject->getProperty("_ctor", &_property); \ if (_found) _property.toObject()->call(args, thisObject); \ } else { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -128,12 +128,12 @@ extern uint32_t __jsbInvocationCount; #define SE_BIND_PROP_GET(funcName) \ bool funcName##Registry(JSContext *_cx, unsigned argc, JS::Value *_vp) { \ ++__jsbInvocationCount; \ - bool ret = false; \ - JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ - JS::Value _thiz = _argv.computeThis(_cx); \ + bool ret = false; \ + JS::CallArgs _argv = JS::CallArgsFromVp(argc, _vp); \ + JS::Value _thiz = _argv.computeThis(_cx); \ JS::RootedObject _thizObj(_cx, _thiz.toObjectOrNull()); \ - void *nativeThisObject = se::internal::getPrivate(_cx, _thizObj); \ - se::State state(nativeThisObject); \ + void * nativeThisObject = se::internal::getPrivate(_cx, _thizObj); \ + se::State state(nativeThisObject); \ ret = funcName(state); \ if (!ret) { \ SE_LOGE("[ERROR] Failed to invoke %s, location: %s:%d\n", #funcName, __FILE__, __LINE__); \ @@ -145,12 +145,12 @@ extern uint32_t __jsbInvocationCount; #define SE_BIND_PROP_SET(funcName) \ bool funcName##Registry(JSContext *_cx, unsigned _argc, JS::Value *_vp) { \ ++__jsbInvocationCount; \ - bool ret = false; \ - JS::CallArgs _argv = JS::CallArgsFromVp(_argc, _vp); \ - JS::Value _thiz = _argv.computeThis(_cx); \ + bool ret = false; \ + JS::CallArgs _argv = JS::CallArgsFromVp(_argc, _vp); \ + JS::Value _thiz = _argv.computeThis(_cx); \ JS::RootedObject _thizObj(_cx, _thiz.toObjectOrNull()); \ - void *nativeThisObject = se::internal::getPrivate(_cx, _thizObj); \ - se::Value data; \ + void * nativeThisObject = se::internal::getPrivate(_cx, _thizObj); \ + se::Value data; \ se::internal::jsToSeValue(_cx, _argv[0], &data); \ se::ValueArray args; \ args.push_back(std::move(data)); \ diff --git a/native/cocos/bindings/jswrapper/sm/Object.cpp b/native/cocos/bindings/jswrapper/sm/Object.cpp index 4f754dd011..f8045e395e 100644 --- a/native/cocos/bindings/jswrapper/sm/Object.cpp +++ b/native/cocos/bindings/jswrapper/sm/Object.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/sm/Object.h b/native/cocos/bindings/jswrapper/sm/Object.h index 92bee1afbc..a56277d70f 100644 --- a/native/cocos/bindings/jswrapper/sm/Object.h +++ b/native/cocos/bindings/jswrapper/sm/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,9 +30,9 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_SM - #include "Base.h" - #include "../Value.h" #include "../RefCounter.h" + #include "../Value.h" + #include "Base.h" namespace se { @@ -356,10 +356,10 @@ public: // Private API used in wrapper static Object *_createJSObject(Class *cls, JSObject *obj); - void _setFinalizeCallback(JSFinalizeOp finalizeCb); - bool _isNativeFunction(JSNative func) const; - JSObject *_getJSObject() const; - Class *_getClass() const { return _cls; } + void _setFinalizeCallback(JSFinalizeOp finalizeCb); + bool _isNativeFunction(JSNative func) const; + JSObject * _getJSObject() const; + Class * _getClass() const { return _cls; } // private: @@ -377,12 +377,12 @@ private: void unprotect(); void reset(); - JS::Heap _heap; /* should be untouched if in rooted mode */ + JS::Heap _heap; /* should be untouched if in rooted mode */ JS::PersistentRootedObject *_root; /* should be null if not in rooted mode */ void *_privateData; - Class *_cls; + Class * _cls; JSFinalizeOp _finalizeCb; uint32_t _rootCount; diff --git a/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp b/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp index 9746cdd352..609d3b1462 100644 --- a/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,25 +28,25 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_SM - #include "Object.h" - #include "Class.h" - #include "Utils.h" #include "../MappingUtils.h" #include "../State.h" + #include "Class.h" + #include "Object.h" + #include "Utils.h" // for debug socket #ifdef _WIN32 - #include #include + #include #else + #include #include #include - #include #endif #include - #include #include + #include #if SE_DEBUG #define TRACE_DEBUGGER_SERVER(...) SE_LOGD(__VA_ARGS__) @@ -104,7 +104,7 @@ bool __log(JSContext *cx, uint32_t argc, JS::Value *vp) { JSString *string = JS::ToString(cx, args[0]); if (string) { JS::RootedString jsstr(cx, string); - char *buffer = JS_EncodeStringToUTF8(cx, jsstr); + char * buffer = JS_EncodeStringToUTF8(cx, jsstr); SE_LOGD("JS: %s\n", buffer); @@ -155,8 +155,8 @@ struct PromiseState { explicit PromiseState(JSContext *cx); JS::PersistentRooted jobQueue; - bool drainingJobQueue; - bool quitting; + bool drainingJobQueue; + bool quitting; }; PromiseState::PromiseState(JSContext *cx) @@ -181,16 +181,16 @@ bool onEnqueuePromiseJobCallback(JSContext *cx, JS::HandleObject job, JS::Handle } bool drainJobQueue() { - JSContext *cx = ScriptEngine::getInstance()->_getContext(); + JSContext * cx = ScriptEngine::getInstance()->_getContext(); PromiseState *sc = getPromiseState(cx); if (sc->quitting || sc->drainingJobQueue) return true; sc->drainingJobQueue = true; - JS::RootedObject job(cx); + JS::RootedObject job(cx); JS::HandleValueArray args(JS::HandleValueArray::empty()); - JS::RootedValue rval(cx); + JS::RootedValue rval(cx); // Execute jobs in a loop until we've reached the end of the queue. // Since executing a job can trigger enqueuing of additional jobs, // it's crucial to re-check the queue length during each iteration. @@ -217,7 +217,7 @@ std::string removeFileExt(const std::string &filePath) { bool getBytecodeBuildId(JS::BuildIdCharVector *buildId) { static const char *buildid = "cocos_xdr"; - bool ok = buildId->append(buildid, strlen(buildid)); + bool ok = buildId->append(buildid, strlen(buildid)); return ok; } @@ -227,13 +227,13 @@ bool JSB_console_format_log(State &s, const char *prefix, int msgIndex = 0) { return false; const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if ((argc - msgIndex) == 1) { std::string msg = args[msgIndex].toStringForce(); SE_LOGD("JS: %s%s\n", prefix, msg.c_str()); } else if (argc > 1) { std::string msg = args[msgIndex].toStringForce(); - size_t pos; + size_t pos; for (int i = (msgIndex + 1); i < argc; ++i) { pos = msg.find("%"); if (pos != std::string::npos && pos != (msg.length() - 1) && (msg[pos + 1] == 'd' || msg[pos + 1] == 's' || msg[pos + 1] == 'f')) { @@ -334,24 +334,24 @@ void ScriptEngine::onWeakPointerCompartmentCallback(JSContext *cx, JSCompartment /* static */ void ScriptEngine::onWeakPointerZoneGroupCallback(JSContext *cx, void *data) { - bool isInCleanup = getInstance()->isInCleanup(); - bool isIterUpdated = false; - Object *obj = nullptr; - auto iter = NativePtrToObjectMap::begin(); + bool isInCleanup = getInstance()->isInCleanup(); + bool isIterUpdated = false; + Object *obj = nullptr; + auto iter = NativePtrToObjectMap::begin(); while (iter != NativePtrToObjectMap::end()) { - obj = iter->second; + obj = iter->second; isIterUpdated = false; if (!obj->isRooted()) { if (obj->updateAfterGC(data)) { obj->decRef(); - iter = NativePtrToObjectMap::erase(iter); + iter = NativePtrToObjectMap::erase(iter); isIterUpdated = true; } } else if (isInCleanup) // Rooted and in cleanup step { obj->unprotect(); obj->decRef(); - iter = NativePtrToObjectMap::erase(iter); + iter = NativePtrToObjectMap::erase(iter); isIterUpdated = true; } @@ -444,7 +444,7 @@ bool ScriptEngine::init() { // SpiderMonkey isn't shipped with a console variable. Make a fake one. Value consoleVal; - bool hasConsole = _globalObj->getProperty("console", &consoleVal) && consoleVal.isObject(); + bool hasConsole = _globalObj->getProperty("console", &consoleVal) && consoleVal.isObject(); assert(!hasConsole); HandleObject consoleObj(Object::createPlainObject()); @@ -501,7 +501,7 @@ void ScriptEngine::cleanup() { } _beforeCleanupHookArray.clear(); - auto sc = getPromiseState(_cx); + auto sc = getPromiseState(_cx); sc->quitting = true; SAFE_DEC_REF(_globalObj); @@ -521,10 +521,10 @@ void ScriptEngine::cleanup() { JS_DestroyContext(_cx); delete sc; - _cx = nullptr; - _globalObj = nullptr; + _cx = nullptr; + _globalObj = nullptr; _oldCompartment = nullptr; - _isValid = false; + _isValid = false; _registerCallbackArray.clear(); @@ -575,13 +575,13 @@ void ScriptEngine::addRegisterCallback(RegisterCallback cb) { #pragma mark - Debug -static std::string inData; -static std::string outData; +static std::string inData; +static std::string outData; static std::vector g_queue; -static std::mutex g_qMutex; -static std::mutex g_rwMutex; -static int clientSocket = -1; -static uint32_t s_nestedLoopLevel = 0; +static std::mutex g_qMutex; +static std::mutex g_rwMutex; +static int clientSocket = -1; +static uint32_t s_nestedLoopLevel = 0; static void cc_closesocket(int fd) { #ifdef _WIN32 @@ -593,7 +593,7 @@ static void cc_closesocket(int fd) { void ScriptEngine::_debugProcessInput(const std::string &str) { JS::RootedObject debugGlobal(_cx, _debugGlobalObj->_getJSObject()); - JSCompartment *globalCpt = JS_EnterCompartment(_cx, debugGlobal); + JSCompartment * globalCpt = JS_EnterCompartment(_cx, debugGlobal); Value func; if (_debugGlobalObj->getProperty("processInput", &func) && func.isObject() && func.toObject()->isFunction()) { @@ -607,13 +607,13 @@ void ScriptEngine::_debugProcessInput(const std::string &str) { static bool NS_ProcessNextEvent() { std::string message; - size_t messageCount = 0; + size_t messageCount = 0; while (true) { g_qMutex.lock(); messageCount = g_queue.size(); if (messageCount > 0) { auto first = g_queue.begin(); - message = *first; + message = *first; g_queue.erase(first); --messageCount; } @@ -699,11 +699,11 @@ static void clearBuffers() { static void serverEntryPoint(uint32_t port) { // start a server, accept the connection and keep reading data from it struct addrinfo hints, *result = nullptr, *rp = nullptr; - int s = 0; + int s = 0; memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_family = AF_UNSPEC; + hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; // TCP stream sockets - hints.ai_flags = AI_PASSIVE; // fill in my IP for me + hints.ai_flags = AI_PASSIVE; // fill in my IP for me std::stringstream portstr; portstr << port; @@ -757,7 +757,7 @@ static void serverEntryPoint(uint32_t port) { #define BUF_SIZE MAX_RECEIVED_SIZE + 1 char buf[BUF_SIZE] = {0}; - int readBytes = 0; + int readBytes = 0; while (true) { clientSocket = accept(s, NULL, NULL); @@ -792,7 +792,7 @@ static void serverEntryPoint(uint32_t port) { static bool JSBDebug_require(State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc >= 1) { ScriptEngine::getInstance()->runScript(args[0].toString()); @@ -806,7 +806,7 @@ SE_BIND_FUNC(JSBDebug_require) static bool JSBDebug_BufferWrite(State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc == 1) { // this is safe because we're already inside a lock (from clearBuffers) outData.append(args[0].toString()); @@ -862,7 +862,7 @@ bool ScriptEngine::start() { JS_LeaveCompartment(_cx, globalCpt); } - bool ok = false; + bool ok = false; _startTime = std::chrono::steady_clock::now(); for (auto cb : _registerCallbackArray) { @@ -879,7 +879,7 @@ bool ScriptEngine::start() { bool ScriptEngine::getScript(const std::string &path, JS::MutableHandleScript script) { std::string fullPath = _fileOperationDelegate.onGetFullPath(path); - auto iter = _filenameScriptMap.find(fullPath); + auto iter = _filenameScriptMap.find(fullPath); if (iter != _filenameScriptMap.end()) { JS::PersistentRootedScript *rootedScript = iter->second; script.set(rootedScript->get()); @@ -947,7 +947,7 @@ bool ScriptEngine::compileScript(const std::string &path, JS::MutableHandleScrip /* Clear any pending exception from previous failed decoding. */ clearException(); - ok = false; + ok = false; std::string jsFileContent = _fileOperationDelegate.onGetStringFromFile(path); if (!jsFileContent.empty()) { JS::CompileOptions op(_cx); @@ -955,8 +955,8 @@ bool ScriptEngine::compileScript(const std::string &path, JS::MutableHandleScrip op.setFileAndLine(path.c_str(), 1); ok = JS::Compile(_cx, op, jsFileContent.c_str(), jsFileContent.size(), script); if (ok) { - compileSucceed = true; - std::string fullPath = _fileOperationDelegate.onGetFullPath(path); + compileSucceed = true; + std::string fullPath = _fileOperationDelegate.onGetFullPath(path); _filenameScriptMap[fullPath] = new (std::nothrow) JS::PersistentRootedScript(_cx, script.get()); } assert(compileSucceed); @@ -987,7 +987,7 @@ bool ScriptEngine::evalString(const char *script, ssize_t length /* = -1 */, Val .setVersion(JSVERSION_LATEST); JS::RootedValue rval(_cx); - bool ok = JS::Evaluate(_cx, options, script, length, &rval); + bool ok = JS::Evaluate(_cx, options, script, length, &rval); if (!ok) { clearException(); } @@ -1015,7 +1015,7 @@ bool ScriptEngine::runScript(const std::string &path, Value *ret /* = nullptr */ assert(_fileOperationDelegate.isValid()); JS::RootedScript script(_cx); - bool ok = compileScript(path, &script); + bool ok = compileScript(path, &script); if (ok) { JS::RootedValue rval(_cx); ok = JS_ExecuteScript(_cx, script, &rval); @@ -1042,11 +1042,11 @@ void ScriptEngine::clearException() { JS_ClearPendingException(_cx); assert(exceptionValue.isObject()); - JS::RootedObject exceptionObj(_cx, exceptionValue.toObjectOrNull()); - JSErrorReport *report = JS_ErrorFromException(_cx, exceptionObj); - const char *message = report->message().c_str(); + JS::RootedObject exceptionObj(_cx, exceptionValue.toObjectOrNull()); + JSErrorReport * report = JS_ErrorFromException(_cx, exceptionObj); + const char * message = report->message().c_str(); const std::string filePath = report->filename != nullptr ? report->filename : "(no filename)"; - char line[50] = {0}; + char line[50] = {0}; snprintf(line, sizeof(line), "%u", report->lineno); char column[50] = {0}; snprintf(column, sizeof(column), "%u", report->column); @@ -1112,13 +1112,13 @@ bool ScriptEngine::isDebuggerEnabled() const { void ScriptEngine::mainLoopUpdate() { std::string message; - size_t messageCount = 0; + size_t messageCount = 0; while (true) { g_qMutex.lock(); messageCount = g_queue.size(); if (messageCount > 0) { auto first = g_queue.begin(); - message = *first; + message = *first; g_queue.erase(first); --messageCount; } diff --git a/native/cocos/bindings/jswrapper/sm/ScriptEngine.h b/native/cocos/bindings/jswrapper/sm/ScriptEngine.h index 2830b1dc7c..6c73860b09 100644 --- a/native/cocos/bindings/jswrapper/sm/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/sm/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -254,8 +254,8 @@ public: // Private API used in wrapper JSContext *_getContext() { return _cx; } - void _setGarbageCollecting(bool isGarbageCollecting); - void _debugProcessInput(const std::string &str); + void _setGarbageCollecting(bool isGarbageCollecting); + void _debugProcessInput(const std::string &str); // private: ScriptEngine(); @@ -267,7 +267,7 @@ private: bool getScript(const std::string &path, JS::MutableHandleScript script); bool compileScript(const std::string &path, JS::MutableHandleScript script); - JSContext *_cx; + JSContext * _cx; JSCompartment *_oldCompartment; Object *_globalObj; @@ -275,7 +275,7 @@ private: FileOperationDelegate _fileOperationDelegate; - std::vector _registerCallbackArray; + std::vector _registerCallbackArray; std::chrono::steady_clock::time_point _startTime; std::vector> _beforeInitHookArray; @@ -289,7 +289,7 @@ private: std::unordered_map _filenameScriptMap; std::string _debuggerServerAddr; - uint32_t _debuggerServerPort; + uint32_t _debuggerServerPort; uint32_t _vmId; diff --git a/native/cocos/bindings/jswrapper/sm/SeApi.h b/native/cocos/bindings/jswrapper/sm/SeApi.h index 77a80f751e..3d7d769f6d 100644 --- a/native/cocos/bindings/jswrapper/sm/SeApi.h +++ b/native/cocos/bindings/jswrapper/sm/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,10 +26,10 @@ #pragma once -#include "ScriptEngine.h" -#include "Class.h" -#include "Object.h" -#include "../Value.h" #include "../State.h" +#include "../Value.h" +#include "Class.h" #include "HelperMacros.h" +#include "Object.h" +#include "ScriptEngine.h" #include "Utils.h" diff --git a/native/cocos/bindings/jswrapper/sm/Utils.cpp b/native/cocos/bindings/jswrapper/sm/Utils.cpp index 1cf35ee4ed..1d73e6369b 100644 --- a/native/cocos/bindings/jswrapper/sm/Utils.cpp +++ b/native/cocos/bindings/jswrapper/sm/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -43,7 +43,7 @@ void forceConvertJsValueToStdString(JSContext *cx, JS::HandleValue jsval, std::s } std::string jsToStdString(JSContext *cx, JS::HandleString jsStr) { - char *str = JS_EncodeStringToUTF8(cx, jsStr); + char * str = JS_EncodeStringToUTF8(cx, jsStr); std::string ret(str); JS_free(cx, str); return ret; @@ -75,8 +75,8 @@ void seToJsValue(JSContext *cx, const Value &arg, JS::MutableHandleValue outVal) } break; case Value::Type::String: { - JS::UTF8Chars utf8Str(arg.toString().c_str(), arg.toString().length()); - JSString *string = JS_NewStringCopyUTF8N(cx, utf8Str); + JS::UTF8Chars utf8Str(arg.toString().c_str(), arg.toString().length()); + JSString * string = JS_NewStringCopyUTF8N(cx, utf8Str); JS::RootedValue value(cx); value.setString(string); outVal.set(value); @@ -122,7 +122,7 @@ void jsToSeValue(JSContext *cx, JS::HandleValue jsval, Value *v) { Object *object = nullptr; JS::RootedObject jsobj(cx, jsval.toObjectOrNull()); - void *nativeObj = getPrivate(cx, jsobj); + void * nativeObj = getPrivate(cx, jsobj); if (nativeObj != nullptr) { object = Object::getObjectWithPtr(nativeObj); @@ -151,9 +151,9 @@ void setReturnValue(JSContext *cx, const Value &data, const JS::CallArgs &argv) const char *KEY_PRIVATE_DATA = "__cc_private_data"; bool hasPrivate(JSContext *cx, JS::HandleObject obj) { - bool found = false; - const JSClass *cls = JS_GetClass(obj); - found = !!(cls->flags & JSCLASS_HAS_PRIVATE); + bool found = false; + const JSClass *cls = JS_GetClass(obj); + found = !!(cls->flags & JSCLASS_HAS_PRIVATE); if (!found) { JS::RootedObject jsobj(cx, obj); @@ -166,9 +166,9 @@ bool hasPrivate(JSContext *cx, JS::HandleObject obj) { } void *getPrivate(JSContext *cx, JS::HandleObject obj) { - bool found = false; - const JSClass *cls = JS_GetClass(obj); - found = !!(cls->flags & JSCLASS_HAS_PRIVATE); + bool found = false; + const JSClass *cls = JS_GetClass(obj); + found = !!(cls->flags & JSCLASS_HAS_PRIVATE); if (found) { return JS_GetPrivate(obj); @@ -186,18 +186,18 @@ void *getPrivate(JSContext *cx, JS::HandleObject obj) { } void setPrivate(JSContext *cx, JS::HandleObject obj, void *data, JSFinalizeOp finalizeCb) { - bool found = false; + bool found = false; const JSClass *jsCls = JS_GetClass(obj); - found = !!(jsCls->flags & JSCLASS_HAS_PRIVATE); + found = !!(jsCls->flags & JSCLASS_HAS_PRIVATE); if (found) { JS_SetPrivate(obj, data); } else { assert(finalizeCb); - Object *privateObj = Object::createObjectWithClass(__jsb_CCPrivateData_class); + Object * privateObj = Object::createObjectWithClass(__jsb_CCPrivateData_class); PrivateData *privateData = (PrivateData *)malloc(sizeof(PrivateData)); - privateData->data = data; - privateData->finalizeCb = finalizeCb; + privateData->data = data; + privateData->finalizeCb = finalizeCb; JS_SetPrivate(privateObj->_getJSObject(), privateData); JS::RootedValue privateVal(cx, JS::ObjectValue(*privateObj->_getJSObject())); @@ -207,9 +207,9 @@ void setPrivate(JSContext *cx, JS::HandleObject obj, void *data, JSFinalizeOp fi } void clearPrivate(JSContext *cx, JS::HandleObject obj) { - bool found = false; - const JSClass *cls = JS_GetClass(obj); - found = !!(cls->flags & JSCLASS_HAS_PRIVATE); + bool found = false; + const JSClass *cls = JS_GetClass(obj); + found = !!(cls->flags & JSCLASS_HAS_PRIVATE); if (found) { JS_SetPrivate(obj, nullptr); diff --git a/native/cocos/bindings/jswrapper/sm/Utils.h b/native/cocos/bindings/jswrapper/sm/Utils.h index b9f1e484ad..627538bb79 100644 --- a/native/cocos/bindings/jswrapper/sm/Utils.h +++ b/native/cocos/bindings/jswrapper/sm/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,11 +41,11 @@ class Class; namespace internal { struct PrivateData { - void *data; + void * data; JSFinalizeOp finalizeCb; }; -void forceConvertJsValueToStdString(JSContext *cx, JS::HandleValue jsval, std::string *ret); +void forceConvertJsValueToStdString(JSContext *cx, JS::HandleValue jsval, std::string *ret); std::string jsToStdString(JSContext *cx, JS::HandleString jsStr); void jsToSeArgs(JSContext *cx, int argc, const JS::CallArgs &argv, ValueArray *outArr); @@ -55,10 +55,10 @@ void seToJsValue(JSContext *cx, const Value &v, JS::MutableHandleValue outVal); void setReturnValue(JSContext *cx, const Value &data, const JS::CallArgs &argv); -bool hasPrivate(JSContext *cx, JS::HandleObject obj); +bool hasPrivate(JSContext *cx, JS::HandleObject obj); void *getPrivate(JSContext *cx, JS::HandleObject obj); -void setPrivate(JSContext *cx, JS::HandleObject obj, void *data, JSFinalizeOp finalizeCb); -void clearPrivate(JSContext *cx, JS::HandleObject obj); +void setPrivate(JSContext *cx, JS::HandleObject obj, void *data, JSFinalizeOp finalizeCb); +void clearPrivate(JSContext *cx, JS::HandleObject obj); } // namespace internal diff --git a/native/cocos/bindings/jswrapper/v8/Base.h b/native/cocos/bindings/jswrapper/v8/Base.h index 3ca1c92e5d..a8567c0083 100644 --- a/native/cocos/bindings/jswrapper/v8/Base.h +++ b/native/cocos/bindings/jswrapper/v8/Base.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -34,14 +34,14 @@ #include "v8.h" -#include -#include // Resolves that memset, memcpy aren't found while APP_PLATFORM >= 22 on Android -#include -#include -#include +#include +#include // Resolves that memset, memcpy aren't found while APP_PLATFORM >= 22 on Android #include // for std::find #include -#include +#include +#include +#include +#include #include "HelperMacros.h" diff --git a/native/cocos/bindings/jswrapper/v8/Class.cpp b/native/cocos/bindings/jswrapper/v8/Class.cpp index e9f1ceaf84..55ea98db44 100644 --- a/native/cocos/bindings/jswrapper/v8/Class.cpp +++ b/native/cocos/bindings/jswrapper/v8/Class.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,15 +29,15 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 #include "Object.h" - #include "Utils.h" #include "ScriptEngine.h" + #include "Utils.h" namespace se { // ------------------------------------------------------- Object namespace { // std::unordered_map __clsMap; -v8::Isolate *__isolate = nullptr; +v8::Isolate * __isolate = nullptr; std::vector __allClasses; } // namespace @@ -121,13 +121,13 @@ bool Class::install() { _ctorTemplate.Get(__isolate)->Inherit(_parentProto->_getClass()->_ctorTemplate.Get(__isolate)); } - v8::Local context = __isolate->GetCurrentContext(); - v8::MaybeLocal ctor = _ctorTemplate.Get(__isolate)->GetFunction(context); + v8::Local context = __isolate->GetCurrentContext(); + v8::MaybeLocal ctor = _ctorTemplate.Get(__isolate)->GetFunction(context); if (ctor.IsEmpty()) return false; - v8::Local ctorChecked = ctor.ToLocalChecked(); - v8::MaybeLocal name = v8::String::NewFromUtf8(__isolate, _name.c_str(), v8::NewStringType::kNormal); + v8::Local ctorChecked = ctor.ToLocalChecked(); + v8::MaybeLocal name = v8::String::NewFromUtf8(__isolate, _name.c_str(), v8::NewStringType::kNormal); if (name.IsEmpty()) return false; diff --git a/native/cocos/bindings/jswrapper/v8/Class.h b/native/cocos/bindings/jswrapper/v8/Class.h index c703463781..7eb7de5a23 100644 --- a/native/cocos/bindings/jswrapper/v8/Class.h +++ b/native/cocos/bindings/jswrapper/v8/Class.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -128,17 +128,17 @@ private: static void cleanup(); // static v8::Local _createJSObject(const std::string &clsName, Class** outCls); static v8::Local _createJSObjectWithClass(Class *cls); - static void setIsolate(v8::Isolate *isolate); + static void setIsolate(v8::Isolate *isolate); std::string _name; - Object *_parent; - Object *_parentProto; - Object *_proto; + Object * _parent; + Object * _parentProto; + Object * _proto; - v8::FunctionCallback _ctor; + v8::FunctionCallback _ctor; v8::UniquePersistent _ctorTemplate; - V8FinalizeFunc _finalizeFunc; - bool _createProto; + V8FinalizeFunc _finalizeFunc; + bool _createProto; friend class ScriptEngine; friend class Object; diff --git a/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp b/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp index 2981fda643..2d43d22656 100644 --- a/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp +++ b/native/cocos/bindings/jswrapper/v8/HelperMacros.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/HelperMacros.h b/native/cocos/bindings/jswrapper/v8/HelperMacros.h index df047ae248..36ebede090 100644 --- a/native/cocos/bindings/jswrapper/v8/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/v8/HelperMacros.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -31,9 +31,9 @@ #include #include #include -#include #include #include +#include #include "../config.h" #include "base/Log.h" diff --git a/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp b/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp index 595d357af7..3c8fb7187b 100644 --- a/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp +++ b/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,18 +22,18 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 -//TODO(PatriceJiang): modify this when OHOS llvm upgrade -#if CC_PLATFORM == CC_PLATFORM_OHOS -#include + //TODO(PatriceJiang): modify this when OHOS llvm upgrade + #if CC_PLATFORM == CC_PLATFORM_OHOS + #include extern "C" { int local_bcmp(const void *cs, const void *ct, size_t count) { -return memcmp(cs, ct, count); + return memcmp(cs, ct, count); } int bcmp(const void *cs, const void *ct, size_t count) __attribute__((weak, alias("local_bcmp"))); } // extern "C" -#endif - + #endif #endif // #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 \ No newline at end of file diff --git a/native/cocos/bindings/jswrapper/v8/MissingSymbols.h b/native/cocos/bindings/jswrapper/v8/MissingSymbols.h index fc92dd989f..a68086020c 100644 --- a/native/cocos/bindings/jswrapper/v8/MissingSymbols.h +++ b/native/cocos/bindings/jswrapper/v8/MissingSymbols.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,13 +22,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ -#include + #include +#include #include #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 -#if CC_PLATFORM == CC_PLATFORM_ANDROID -#if __ANDROID_API__ < 21 + #if CC_PLATFORM == CC_PLATFORM_ANDROID + #if __ANDROID_API__ < 21 extern "C" { int localSigemptyset(void *set) { if (set == NULL) { // NOLINT(modernize-use-nullptr) @@ -41,6 +42,6 @@ int localSigemptyset(void *set) { int sigemptyset(void *set) __attribute__((weak, alias("localSigemptyset"))); } -#endif -#endif + #endif + #endif #endif // #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 \ No newline at end of file diff --git a/native/cocos/bindings/jswrapper/v8/Object.cpp b/native/cocos/bindings/jswrapper/v8/Object.cpp index 072981c307..45149abc68 100644 --- a/native/cocos/bindings/jswrapper/v8/Object.cpp +++ b/native/cocos/bindings/jswrapper/v8/Object.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/Object.h b/native/cocos/bindings/jswrapper/v8/Object.h index ec2a3b5b1e..d867890d20 100644 --- a/native/cocos/bindings/jswrapper/v8/Object.h +++ b/native/cocos/bindings/jswrapper/v8/Object.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp b/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp index 814e1f5f45..53bbd3ba72 100644 --- a/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp +++ b/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -50,8 +50,8 @@ namespace se { ObjectWrap::ObjectWrap() { - refs_ = 0; - _nativeObj = nullptr; + refs_ = 0; + _nativeObj = nullptr; _finalizeCb = nullptr; } diff --git a/native/cocos/bindings/jswrapper/v8/ObjectWrap.h b/native/cocos/bindings/jswrapper/v8/ObjectWrap.h index eb814a974c..2c899bb2fd 100644 --- a/native/cocos/bindings/jswrapper/v8/ObjectWrap.h +++ b/native/cocos/bindings/jswrapper/v8/ObjectWrap.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -63,11 +63,11 @@ public: bool init(v8::Local handle); void setFinalizeCallback(V8FinalizeFunc finalizeCb); - v8::Local handle(); - v8::Local handle(v8::Isolate *isolate); + v8::Local handle(); + v8::Local handle(v8::Isolate *isolate); v8::Persistent &persistent(); - void wrap(void *nativeObj); + void wrap(void *nativeObj); static void *unwrap(v8::Local handle); /* Ref() marks the object as being attached to an event loop. @@ -89,12 +89,12 @@ public: private: static void weakCallback(const v8::WeakCallbackInfo &data); - void makeWeak(); + void makeWeak(); - int refs_; // ro + int refs_; // ro v8::Persistent handle_; - void *_nativeObj; - V8FinalizeFunc _finalizeCb; + void * _nativeObj; + V8FinalizeFunc _finalizeCb; }; } // namespace se diff --git a/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp b/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp index dbf97e996b..2c2349dd23 100644 --- a/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,9 +30,9 @@ #include "../MappingUtils.h" #include "../State.h" #include "Class.h" + #include "MissingSymbols.h" #include "Object.h" #include "Utils.h" - #include "MissingSymbols.h" #include "platform/FileUtils.h" #include @@ -339,8 +339,8 @@ void ScriptEngine::onPromiseRejectCallback(v8::PromiseRejectMessage msg) { // prepend error object to stack message v8::MaybeLocal maybeStr = value->ToString(isolate->GetCurrentContext()); v8::Local str = maybeStr.IsEmpty() ? v8::String::NewFromUtf8(isolate, "[empty string]").ToLocalChecked() : maybeStr.ToLocalChecked(); - v8::String::Utf8Value valueUtf8(isolate, str); - auto * strp = *valueUtf8; + v8::String::Utf8Value valueUtf8(isolate, str); + auto * strp = *valueUtf8; if (strp == nullptr) { ss << "value: null" << std::endl; auto tn = value->TypeOf(isolate); diff --git a/native/cocos/bindings/jswrapper/v8/ScriptEngine.h b/native/cocos/bindings/jswrapper/v8/ScriptEngine.h index 1ce9e007be..1268134c0e 100644 --- a/native/cocos/bindings/jswrapper/v8/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/v8/ScriptEngine.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/jswrapper/v8/SeApi.h b/native/cocos/bindings/jswrapper/v8/SeApi.h index 8188bb150f..e66ccb97b5 100644 --- a/native/cocos/bindings/jswrapper/v8/SeApi.h +++ b/native/cocos/bindings/jswrapper/v8/SeApi.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,8 +26,8 @@ #pragma once -#include "ScriptEngine.h" #include "Class.h" -#include "Object.h" -#include "Utils.h" #include "HelperMacros.h" +#include "Object.h" +#include "ScriptEngine.h" +#include "Utils.h" diff --git a/native/cocos/bindings/jswrapper/v8/Utils.cpp b/native/cocos/bindings/jswrapper/v8/Utils.cpp index 44ea8c6422..55eeb9d234 100644 --- a/native/cocos/bindings/jswrapper/v8/Utils.cpp +++ b/native/cocos/bindings/jswrapper/v8/Utils.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -308,4 +308,3 @@ void clearPrivate(v8::Isolate *isolate, ObjectWrap &wrap) { } // namespace internal } // namespace se #endif // #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 - diff --git a/native/cocos/bindings/jswrapper/v8/Utils.h b/native/cocos/bindings/jswrapper/v8/Utils.h index 77b3369506..1c5e1c7df1 100644 --- a/native/cocos/bindings/jswrapper/v8/Utils.h +++ b/native/cocos/bindings/jswrapper/v8/Utils.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,8 +30,8 @@ #if SCRIPT_ENGINE_TYPE == SCRIPT_ENGINE_V8 - #include "Base.h" #include "../Value.h" + #include "Base.h" #include "ObjectWrap.h" namespace se { @@ -39,7 +39,7 @@ namespace se { namespace internal { struct PrivateData { - void *data; + void * data; Object *seObj; }; @@ -51,10 +51,10 @@ void seToJsValue(v8::Isolate *isolate, const Value &v, v8::Local *out void setReturnValue(const Value &data, const v8::FunctionCallbackInfo &argv); void setReturnValue(const Value &data, const v8::PropertyCallbackInfo &argv); -bool hasPrivate(v8::Isolate *isolate, v8::Local value); -void setPrivate(v8::Isolate *isolate, ObjectWrap &wrap, void *data, PrivateData **outInternalData); +bool hasPrivate(v8::Isolate *isolate, v8::Local value); +void setPrivate(v8::Isolate *isolate, ObjectWrap &wrap, void *data, PrivateData **outInternalData); void *getPrivate(v8::Isolate *isolate, v8::Local value); -void clearPrivate(v8::Isolate *isolate, ObjectWrap &wrap); +void clearPrivate(v8::Isolate *isolate, ObjectWrap &wrap); } // namespace internal } // namespace se diff --git a/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp b/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp index c0e7aee050..9f435819a0 100644 --- a/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp +++ b/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/JavaScriptJavaBridge.h b/native/cocos/bindings/manual/JavaScriptJavaBridge.h index 2066994d43..78125870d4 100644 --- a/native/cocos/bindings/manual/JavaScriptJavaBridge.h +++ b/native/cocos/bindings/manual/JavaScriptJavaBridge.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,13 +26,12 @@ #pragma once #include #include -#include "platform/java/jni/JniHelper.h" #include "cocos/bindings/jswrapper/SeApi.h" +#include "platform/java/jni/JniHelper.h" namespace se { class Object; } - -bool register_javascript_java_bridge(se::Object *obj); // NOLINT(readability-identifier-naming) -bool register_script_native_bridge(se::Object *obj); // NOLINT(readability-identifier-naming) +bool register_javascript_java_bridge(se::Object *obj); // NOLINT(readability-identifier-naming) +bool register_script_native_bridge(se::Object *obj); // NOLINT(readability-identifier-naming) void callPlatformStringMethod(const std::string &arg0, const std::string &arg1); // NOLINT(readability-identifier-naming) diff --git a/native/cocos/bindings/manual/JavaScriptObjCBridge.h b/native/cocos/bindings/manual/JavaScriptObjCBridge.h index e970476579..53ce6c9654 100644 --- a/native/cocos/bindings/manual/JavaScriptObjCBridge.h +++ b/native/cocos/bindings/manual/JavaScriptObjCBridge.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,8 +24,8 @@ ****************************************************************************/ #pragma once -#include "cocos/bindings/jswrapper/SeApi.h" #include +#include "cocos/bindings/jswrapper/SeApi.h" namespace se { class Object; } @@ -33,4 +33,4 @@ class Object; bool register_javascript_objc_bridge(se::Object *obj); bool register_script_native_bridge(se::Object *obj); // NOLINT(readability-identifier-naming) bool callPlatformStringMethod(const std::string &arg0, const std::string &arg1); -void callScript(const std::string &arg0, const std::string& arg1); +void callScript(const std::string &arg0, const std::string &arg1); diff --git a/native/cocos/bindings/manual/JavaScriptObjCBridge.mm b/native/cocos/bindings/manual/JavaScriptObjCBridge.mm index 84f50aa0d0..053213cc22 100644 --- a/native/cocos/bindings/manual/JavaScriptObjCBridge.mm +++ b/native/cocos/bindings/manual/JavaScriptObjCBridge.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_classtype.cpp b/native/cocos/bindings/manual/jsb_classtype.cpp index 54c07a2371..9614b1a0e9 100644 --- a/native/cocos/bindings/manual/jsb_classtype.cpp +++ b/native/cocos/bindings/manual/jsb_classtype.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_classtype.h b/native/cocos/bindings/manual/jsb_classtype.h index 3a96b9c7c9..5f8e5ff3ed 100644 --- a/native/cocos/bindings/manual/jsb_classtype.h +++ b/native/cocos/bindings/manual/jsb_classtype.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_cocos_manual.cpp b/native/cocos/bindings/manual/jsb_cocos_manual.cpp index 8bb2c14b45..9eea983e5a 100644 --- a/native/cocos/bindings/manual/jsb_cocos_manual.cpp +++ b/native/cocos/bindings/manual/jsb_cocos_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -329,8 +329,8 @@ static bool register_sys_localStorage(se::Object *obj) { // NOLINT(readability-i localStorageObj->defineProperty("length", _SE(JSB_localStorage_getLength), nullptr); std::string strFilePath = cc::FileUtils::getInstance()->getWritablePath(); -#if defined(__QNX__) - // In the QNX environment, the execution of this statement will not take effect. +#if defined(__QNX__) + // In the QNX environment, the execution of this statement will not take effect. // Not sure why // strFilePath += "/jsb.sqlite"; @@ -643,7 +643,7 @@ static bool js_se_setExceptionCallback(se::State &s) { // NOLINT(readability-ide se::ScriptEngine::getInstance()->setJSExceptionCallback([objFunc](const char *location, const char *message, const char *stack) { se::AutoHandleScope scope; - se::ValueArray jsArgs; + se::ValueArray jsArgs; jsArgs.resize(3); jsArgs[0] = se::Value(location); jsArgs[1] = se::Value(message); diff --git a/native/cocos/bindings/manual/jsb_cocos_manual.h b/native/cocos/bindings/manual/jsb_cocos_manual.h index 5e414cf1c8..938d515b0a 100644 --- a/native/cocos/bindings/manual/jsb_cocos_manual.h +++ b/native/cocos/bindings/manual/jsb_cocos_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_conversions.cpp b/native/cocos/bindings/manual/jsb_conversions.cpp index 1e9130403e..dace5f94b2 100644 --- a/native/cocos/bindings/manual/jsb_conversions.cpp +++ b/native/cocos/bindings/manual/jsb_conversions.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_conversions.h b/native/cocos/bindings/manual/jsb_conversions.h index c261e5b2cb..69a05f5afe 100644 --- a/native/cocos/bindings/manual/jsb_conversions.h +++ b/native/cocos/bindings/manual/jsb_conversions.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp b/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp index 2a599ef935..1c7974a2af 100644 --- a/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp +++ b/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,13 +28,13 @@ #if USE_DRAGONBONES > 0 -#include "cocos/bindings/auto/jsb_dragonbones_auto.h" -#include "cocos/bindings/auto/jsb_editor_support_auto.h" -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/bindings/manual/jsb_global.h" -#include "cocos/bindings/manual/jsb_helper.h" -#include "cocos/editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" + #include "cocos/bindings/auto/jsb_dragonbones_auto.h" + #include "cocos/bindings/auto/jsb_editor_support_auto.h" + #include "cocos/bindings/jswrapper/SeApi.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/bindings/manual/jsb_global.h" + #include "cocos/bindings/manual/jsb_helper.h" + #include "cocos/editor-support/dragonbones-creator-support/CCDragonBonesHeaders.h" using namespace cc; @@ -42,9 +42,9 @@ using namespace cc; static bool js_cocos2dx_dragonbones_Slot_get_globalTransformMatrix(se::State &s) { dragonBones::Slot *cobj = (dragonBones::Slot *)s.nativeThisObject(); SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_Slot_get_globalTransformMatrix : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { dragonBones::Matrix *result = cobj->getGlobalTransformMatrix(); ok &= native_ptr_to_seval((dragonBones::Matrix *)result, &s.rval()); @@ -59,9 +59,9 @@ SE_BIND_PROP_GET(js_cocos2dx_dragonbones_Slot_get_globalTransformMatrix) // add by fins static bool js_cocos2dx_dragonbones_Animation_get_animations(se::State &s) { dragonBones::Animation *cobj = (dragonBones::Animation *)s.nativeThisObject(); - se::HandleObject retObj(se::Object::createPlainObject()); - bool ok = false; - se::Value tmp; + se::HandleObject retObj(se::Object::createPlainObject()); + bool ok = false; + se::Value tmp; for (const auto &e : cobj->getAnimations()) { if (!e.first.empty()) { ok = native_ptr_to_seval(e.second, __jsb_dragonBones_AnimationData_class, &tmp); @@ -76,8 +76,8 @@ SE_BIND_PROP_GET(js_cocos2dx_dragonbones_Animation_get_animations) static bool js_cocos2dx_dragonbones_Armature_getDisplay(se::State &s) { if (s.args().size() == 0) { - dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); - dragonBones::CCArmatureDisplay *ret = (dragonBones::CCArmatureDisplay *)(cobj->getDisplay()); + dragonBones::Armature * cobj = (dragonBones::Armature *)s.nativeThisObject(); + dragonBones::CCArmatureDisplay *ret = (dragonBones::CCArmatureDisplay *)(cobj->getDisplay()); if (ret != nullptr) { bool ok = native_ptr_to_seval(ret, __jsb_dragonBones_CCArmatureDisplay_class, &s.rval()); SE_PRECONDITION2(ok, false, "Convert dragonBones::Animation to se::Value failed!"); @@ -93,13 +93,13 @@ static bool js_cocos2dx_dragonbones_Armature_getDisplay(se::State &s) { SE_BIND_FUNC(js_cocos2dx_dragonbones_Armature_getDisplay) static bool js_cocos2dx_dragonbones_Armature_getSlots(se::State &s) { - dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); - const auto &result = cobj->getSlots(); - se::HandleObject arr(se::Object::createArrayObject(result.size())); + dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); + const auto & result = cobj->getSlots(); + se::HandleObject arr(se::Object::createArrayObject(result.size())); - uint32_t i = 0; + uint32_t i = 0; se::Value tmp; - bool ok = true; + bool ok = true; for (const auto &slot : result) { if (!native_ptr_to_seval(slot, &tmp)) { ok = false; @@ -117,13 +117,13 @@ static bool js_cocos2dx_dragonbones_Armature_getSlots(se::State &s) { SE_BIND_FUNC(js_cocos2dx_dragonbones_Armature_getSlots) static bool js_cocos2dx_dragonbones_Armature_getBones(se::State &s) { - dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); - const auto &result = cobj->getBones(); - se::HandleObject arr(se::Object::createArrayObject(result.size())); + dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); + const auto & result = cobj->getBones(); + se::HandleObject arr(se::Object::createArrayObject(result.size())); - uint32_t i = 0; + uint32_t i = 0; se::Value tmp; - bool ok = true; + bool ok = true; for (const auto &bone : result) { if (!native_ptr_to_seval(bone, &tmp)) { ok = false; @@ -143,12 +143,12 @@ SE_BIND_FUNC(js_cocos2dx_dragonbones_Armature_getBones) static bool js_cocos2dx_dragonbones_Armature_getBoneByDisplay(se::State &s) { dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_Armature_getBoneByDisplay : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { dragonBones::CCArmatureDisplay *display = nullptr; - ok = seval_to_native_ptr(args[0], &display); + ok = seval_to_native_ptr(args[0], &display); SE_PRECONDITION2(ok, false, "js_cocos2dx_dragonbones_Armature_getBoneByDisplay : Error processing arguments"); dragonBones::Bone *result = cobj->getBoneByDisplay(display); ok &= native_ptr_to_seval((dragonBones::Bone *)result, &s.rval()); @@ -163,12 +163,12 @@ SE_BIND_FUNC(js_cocos2dx_dragonbones_Armature_getBoneByDisplay) static bool js_cocos2dx_dragonbones_Armature_getSlotByDisplay(se::State &s) { dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_Armature_getSlotByDisplay : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { dragonBones::CCArmatureDisplay *display = nullptr; - ok = seval_to_native_ptr(args[0], &display); + ok = seval_to_native_ptr(args[0], &display); SE_PRECONDITION2(ok, false, "js_cocos2dx_dragonbones_Armature_getSlotByDisplay : Error processing arguments"); dragonBones::Slot *result = cobj->getSlotByDisplay(display); ok &= native_ptr_to_seval((dragonBones::Slot *)result, &s.rval()); @@ -183,12 +183,12 @@ SE_BIND_FUNC(js_cocos2dx_dragonbones_Armature_getSlotByDisplay) static bool js_cocos2dx_dragonbones_Armature_setReplacedTexture(se::State &s) { dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_Armature_setReplacedTexture : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { middleware::Texture2D *texture = nullptr; - ok = seval_to_native_ptr(args[0], &texture); + ok = seval_to_native_ptr(args[0], &texture); SE_PRECONDITION2(ok, false, "js_cocos2dx_dragonbones_Armature_setReplacedTexture : Error processing arguments"); cobj->setReplacedTexture(texture); return true; @@ -201,12 +201,12 @@ SE_BIND_FUNC(js_cocos2dx_dragonbones_Armature_setReplacedTexture) static bool js_cocos2dx_dragonbones_Armature_getReplacedTexture(se::State &s) { dragonBones::Armature *cobj = (dragonBones::Armature *)s.nativeThisObject(); SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_Armature_getReplacedTexture : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 0) { middleware::Texture2D *result = (middleware::Texture2D *)cobj->getReplacedTexture(); - ok = native_ptr_to_seval(result, __jsb_cc_middleware_Texture2D_class, &s.rval()); + ok = native_ptr_to_seval(result, __jsb_cc_middleware_Texture2D_class, &s.rval()); SE_PRECONDITION2(ok, false, "js_cocos2dx_dragonbones_Armature_getReplacedTexture : Error processing arguments"); return true; } @@ -217,9 +217,9 @@ SE_BIND_FUNC(js_cocos2dx_dragonbones_Armature_getReplacedTexture) static bool js_cocos2dx_dragonbones_ArmatureData_get_animations(se::State &s) { dragonBones::ArmatureData *cobj = (dragonBones::ArmatureData *)s.nativeThisObject(); - se::HandleObject retObj(se::Object::createPlainObject()); - bool ok = false; - se::Value tmp; + se::HandleObject retObj(se::Object::createPlainObject()); + bool ok = false; + se::Value tmp; for (const auto &e : cobj->animations) { if (!e.first.empty()) { ok = native_ptr_to_seval(e.second, __jsb_dragonBones_AnimationData_class, &tmp); @@ -234,9 +234,9 @@ SE_BIND_PROP_GET(js_cocos2dx_dragonbones_ArmatureData_get_animations) static bool js_cocos2dx_dragonbones_ArmatureData_get_bones(se::State &s) { dragonBones::ArmatureData *cobj = (dragonBones::ArmatureData *)s.nativeThisObject(); - se::HandleObject retObj(se::Object::createPlainObject()); - bool ok = false; - se::Value tmp; + se::HandleObject retObj(se::Object::createPlainObject()); + bool ok = false; + se::Value tmp; for (const auto &e : cobj->bones) { if (!e.first.empty()) { ok = native_ptr_to_seval(e.second, __jsb_dragonBones_BoneData_class, &tmp); @@ -251,9 +251,9 @@ SE_BIND_PROP_GET(js_cocos2dx_dragonbones_ArmatureData_get_bones) static bool js_cocos2dx_dragonbones_ArmatureData_get_skins(se::State &s) { dragonBones::ArmatureData *cobj = (dragonBones::ArmatureData *)s.nativeThisObject(); - se::HandleObject retObj(se::Object::createPlainObject()); - bool ok = false; - se::Value tmp; + se::HandleObject retObj(se::Object::createPlainObject()); + bool ok = false; + se::Value tmp; for (const auto &e : cobj->skins) { if (!e.first.empty()) { ok = native_ptr_to_seval(e.second, __jsb_dragonBones_SkinData_class, &tmp); @@ -268,9 +268,9 @@ SE_BIND_PROP_GET(js_cocos2dx_dragonbones_ArmatureData_get_skins) static bool js_cocos2dx_dragonbones_ArmatureData_get_slots(se::State &s) { dragonBones::ArmatureData *cobj = (dragonBones::ArmatureData *)s.nativeThisObject(); - se::HandleObject retObj(se::Object::createPlainObject()); - bool ok = false; - se::Value tmp; + se::HandleObject retObj(se::Object::createPlainObject()); + bool ok = false; + se::Value tmp; for (const auto &e : cobj->slots) { if (!e.first.empty()) { ok = native_ptr_to_seval(e.second, __jsb_dragonBones_SlotData_class, &tmp); @@ -287,28 +287,28 @@ static bool js_cocos2dx_dragonbones_DragonBonesData_get_armatureNames(se::State dragonBones::DragonBonesData *cobj = (dragonBones::DragonBonesData *)s.nativeThisObject(); const auto &ret = cobj->getArmatureNames(); - bool ok = std_vector_string_to_seval(ret, &s.rval()); + bool ok = std_vector_string_to_seval(ret, &s.rval()); SE_PRECONDITION2(ok, false, "Convert ArmatureNames to se::Value failed!"); return true; } SE_BIND_PROP_GET(js_cocos2dx_dragonbones_DragonBonesData_get_armatureNames) static bool js_cocos2dx_dragonbones_Slot_getDisplay(se::State &s) { - dragonBones::Slot *cobj = (dragonBones::Slot *)s.nativeThisObject(); - dragonBones::CCArmatureDisplay *ret = static_cast(cobj->getDisplay()); - bool ok = native_ptr_to_seval(ret, __jsb_dragonBones_CCArmatureDisplay_class, &s.rval()); + dragonBones::Slot * cobj = (dragonBones::Slot *)s.nativeThisObject(); + dragonBones::CCArmatureDisplay *ret = static_cast(cobj->getDisplay()); + bool ok = native_ptr_to_seval(ret, __jsb_dragonBones_CCArmatureDisplay_class, &s.rval()); SE_PRECONDITION2(ok, false, "Convert dragonBones::DBCCSprite to se::Value failed!"); return true; } SE_BIND_FUNC(js_cocos2dx_dragonbones_Slot_getDisplay) static bool js_cocos2dx_dragonbones_Slot_set_displayIndex(se::State &s) { - const auto &args = s.args(); + const auto & args = s.args(); dragonBones::Slot *cobj = (dragonBones::Slot *)s.nativeThisObject(); SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_Slot_set_displayIndex : Invalid Native Object"); CC_UNUSED bool ok = true; - int32_t arg0; + int32_t arg0; ok &= seval_to_int32(args[0], &arg0); SE_PRECONDITION2(ok, false, "js_cocos2dx_dragonbones_Slot_set_displayIndex : Error processing new value"); cobj->setDisplayIndex(arg0); @@ -321,7 +321,7 @@ static bool js_cocos2dx_dragonbones_Slot_get_displayIndex(se::State &s) { SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_Slot_get_displayIndex : Invalid Native Object"); const int32_t ret = cobj->getDisplayIndex(); - bool ok = int32_to_seval(ret, &s.rval()); + bool ok = int32_to_seval(ret, &s.rval()); SE_PRECONDITION2(ok, false, "js_cocos2dx_dragonbones_Slot_get_displayIndex to se::Value failed!"); return true; } @@ -329,12 +329,12 @@ SE_BIND_PROP_GET(js_cocos2dx_dragonbones_Slot_get_displayIndex) static bool js_cocos2dx_dragonbones_Slot_setDisplay(se::State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc == 2) { - dragonBones::Slot *cobj = (dragonBones::Slot *)s.nativeThisObject(); + dragonBones::Slot * cobj = (dragonBones::Slot *)s.nativeThisObject(); dragonBones::CCArmatureDisplay *dbSprite = nullptr; - bool ok = seval_to_native_ptr(args[0], &dbSprite); + bool ok = seval_to_native_ptr(args[0], &dbSprite); SE_PRECONDITION2(ok, false, "Convert se::Value to dragonBones::DBCCSprite failed!"); dragonBones::DisplayType type; ok = seval_to_int32(args[1], (int32_t *)&type); @@ -351,12 +351,12 @@ SE_BIND_FUNC(js_cocos2dx_dragonbones_Slot_setDisplay) static bool js_cocos2dx_dragonbones_BaseFactory_parseTextureAtlasData(se::State &s) { dragonBones::BaseFactory *cobj = (dragonBones::BaseFactory *)s.nativeThisObject(); SE_PRECONDITION2(cobj, false, "js_cocos2dx_dragonbones_BaseFactory_parseTextureAtlasData : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { const char *arg0 = nullptr; - void *arg1 = nullptr; + void * arg1 = nullptr; std::string arg0_tmp; ok &= seval_to_std_string(args[0], &arg0_tmp); arg0 = arg0_tmp.c_str(); @@ -369,7 +369,7 @@ static bool js_cocos2dx_dragonbones_BaseFactory_parseTextureAtlasData(se::State } if (argc == 3) { const char *arg0 = nullptr; - void *arg1 = nullptr; + void * arg1 = nullptr; std::string arg2; std::string arg0_tmp; ok &= seval_to_std_string(args[0], &arg0_tmp); @@ -385,9 +385,9 @@ static bool js_cocos2dx_dragonbones_BaseFactory_parseTextureAtlasData(se::State } if (argc == 4) { const char *arg0 = nullptr; - void *arg1 = nullptr; + void * arg1 = nullptr; std::string arg2; - float arg3 = 0; + float arg3 = 0; std::string arg0_tmp; ok &= seval_to_std_string(args[0], &arg0_tmp); arg0 = arg0_tmp.c_str(); diff --git a/native/cocos/bindings/manual/jsb_dragonbones_manual.h b/native/cocos/bindings/manual/jsb_dragonbones_manual.h index d7c3384625..d6178eb503 100644 --- a/native/cocos/bindings/manual/jsb_dragonbones_manual.h +++ b/native/cocos/bindings/manual/jsb_dragonbones_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_extension_manual.cpp b/native/cocos/bindings/manual/jsb_extension_manual.cpp index a62b8504fd..f19d08f11c 100644 --- a/native/cocos/bindings/manual/jsb_extension_manual.cpp +++ b/native/cocos/bindings/manual/jsb_extension_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,12 +23,12 @@ THE SOFTWARE. ****************************************************************************/ -#include "jsb_cocos2dx_extension_manual.h" +#include "cocos/base/CCThreadPool.h" +#include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.h" #include "cocos/scripting/js-bindings/jswrapper/SeApi.h" #include "cocos/scripting/js-bindings/manual/jsb_conversions.h" #include "cocos/scripting/js-bindings/manual/jsb_global.h" -#include "cocos/scripting/js-bindings/auto/jsb_cocos2dx_extension_auto.h" -#include "cocos/base/CCThreadPool.h" +#include "jsb_cocos2dx_extension_manual.h" #include "cocos2d.h" #include "extensions/cocos-ext.h" @@ -38,10 +38,10 @@ using namespace cc::extension; static bool js_cocos2dx_extension_loadRemoteImage(se::State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc == 2) { - bool ok = false; + bool ok = false; std::string url; ok = seval_to_std_string(args[0], &url); SE_PRECONDITION2(ok, false, "Converting 'url' failed!"); @@ -84,9 +84,9 @@ static bool js_cocos2dx_extension_loadRemoteImage(se::State &s) { if (texture != nullptr) { onSuccess(texture); } else { - auto downloader = new (std::nothrow) cc::network::Downloader(); + auto downloader = new (std::nothrow) cc::network::Downloader(); downloader->onDataTaskSuccess = [downloader, url, onSuccess, onError](const cc::network::DownloadTask &task, std::vector &data) { - Image *img = new (std::nothrow) Image(); + Image * img = new (std::nothrow) Image(); Texture2D *tex = nullptr; do { if (!img->initWithImageData(data.data(), data.size())) @@ -130,7 +130,7 @@ SE_BIND_FUNC(js_cocos2dx_extension_loadRemoteImage) static bool js_cocos2dx_extension_initRemoteImage(se::State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc != 3) { SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", argc, 3); return false; @@ -140,7 +140,7 @@ static bool js_cocos2dx_extension_initRemoteImage(se::State &s) { // get texture cc::Texture2D *texture = nullptr; - ok = seval_to_native_ptr(args[0], &texture); + ok = seval_to_native_ptr(args[0], &texture); SE_PRECONDITION2(ok, false, "Converting 'texture' failed!"); // get url @@ -164,7 +164,7 @@ static bool js_cocos2dx_extension_initRemoteImage(se::State &s) { func.toObject()->call(args, nullptr); }; - auto downloader = new (std::nothrow) cc::network::Downloader(); + auto downloader = new (std::nothrow) cc::network::Downloader(); downloader->onDataTaskSuccess = [=](const cc::network::DownloadTask &task, std::vector &data) { bool success = false; @@ -196,11 +196,11 @@ static bool js_cocos2dx_extension_initRemoteImage(se::State &s) { } SE_BIND_FUNC(js_cocos2dx_extension_initRemoteImage) -static ThreadPool *_threadPool = nullptr; +static ThreadPool * _threadPool = nullptr; static EventListenerCustom *_resetThreadPoolListener = nullptr; -static ThreadPool *getThreadPool() { +static ThreadPool * getThreadPool() { if (_threadPool == nullptr) { - _threadPool = ThreadPool::newSingleThreadPool(); + _threadPool = ThreadPool::newSingleThreadPool(); _resetThreadPoolListener = Director::getInstance()->getEventDispatcher()->addCustomEventListener(Director::EVENT_RESET, [](cc::EventCustom *) { CC_SAFE_DELETE(_threadPool); cc::Director::getInstance()->getEventDispatcher()->removeEventListener(_resetThreadPoolListener); diff --git a/native/cocos/bindings/manual/jsb_extension_manual.h b/native/cocos/bindings/manual/jsb_extension_manual.h index a065f6fc17..3182338209 100644 --- a/native/cocos/bindings/manual/jsb_extension_manual.h +++ b/native/cocos/bindings/manual/jsb_extension_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_gfx_manual.cpp b/native/cocos/bindings/manual/jsb_gfx_manual.cpp index 1515eb993e..abb13b684a 100644 --- a/native/cocos/bindings/manual/jsb_gfx_manual.cpp +++ b/native/cocos/bindings/manual/jsb_gfx_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_gfx_manual.h b/native/cocos/bindings/manual/jsb_gfx_manual.h index cbee35c69e..f382768953 100644 --- a/native/cocos/bindings/manual/jsb_gfx_manual.h +++ b/native/cocos/bindings/manual/jsb_gfx_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_global.cpp b/native/cocos/bindings/manual/jsb_global.cpp index a1974d22ed..b9bfceb1a8 100644 --- a/native/cocos/bindings/manual/jsb_global.cpp +++ b/native/cocos/bindings/manual/jsb_global.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -345,7 +345,7 @@ static bool JSBCore_os(se::State &s) { //NOLINT SE_BIND_FUNC(JSBCore_os) static bool JSBCore_getCurrentLanguage(se::State &s) { //NOLINT - ISystem * systemIntf = CC_GET_PLATFORM_INTERFACE(ISystem); + ISystem *systemIntf = CC_GET_PLATFORM_INTERFACE(ISystem); CCASSERT(systemIntf != nullptr, "System interface does not exist"); std::string languageStr = systemIntf->getCurrentLanguageToString(); s.rval().setString(languageStr); @@ -354,16 +354,16 @@ static bool JSBCore_getCurrentLanguage(se::State &s) { //NOLINT SE_BIND_FUNC(JSBCore_getCurrentLanguage) static bool JSBCore_getCurrentLanguageCode(se::State &s) { //NOLINT - ISystem * systemIntf = CC_GET_PLATFORM_INTERFACE(ISystem); + ISystem *systemIntf = CC_GET_PLATFORM_INTERFACE(ISystem); CCASSERT(systemIntf != nullptr, "System interface does not exist"); - std::string language = systemIntf->getCurrentLanguageCode(); + std::string language = systemIntf->getCurrentLanguageCode(); s.rval().setString(language); return true; } SE_BIND_FUNC(JSBCore_getCurrentLanguageCode) static bool JSB_getOSVersion(se::State &s) { //NOLINT - ISystem * systemIntf = CC_GET_PLATFORM_INTERFACE(ISystem); + ISystem *systemIntf = CC_GET_PLATFORM_INTERFACE(ISystem); CCASSERT(systemIntf != nullptr, "System interface does not exist"); std::string systemVersion = systemIntf->getSystemVersion(); s.rval().setString(systemVersion); diff --git a/native/cocos/bindings/manual/jsb_global.h b/native/cocos/bindings/manual/jsb_global.h index b1610e28d9..7ccc6d067b 100644 --- a/native/cocos/bindings/manual/jsb_global.h +++ b/native/cocos/bindings/manual/jsb_global.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_global_init.cpp b/native/cocos/bindings/manual/jsb_global_init.cpp index 28e8e62d12..a9f6a54e69 100644 --- a/native/cocos/bindings/manual/jsb_global_init.cpp +++ b/native/cocos/bindings/manual/jsb_global_init.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_global_init.h b/native/cocos/bindings/manual/jsb_global_init.h index 467f1fe5ce..f5698b2d4e 100644 --- a/native/cocos/bindings/manual/jsb_global_init.h +++ b/native/cocos/bindings/manual/jsb_global_init.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_helper.cpp b/native/cocos/bindings/manual/jsb_helper.cpp index 1160a5f5de..c063b98ad1 100644 --- a/native/cocos/bindings/manual/jsb_helper.cpp +++ b/native/cocos/bindings/manual/jsb_helper.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_helper.h b/native/cocos/bindings/manual/jsb_helper.h index 1e43edfb21..3dff2995f7 100644 --- a/native/cocos/bindings/manual/jsb_helper.h +++ b/native/cocos/bindings/manual/jsb_helper.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_module_register.cpp b/native/cocos/bindings/manual/jsb_module_register.cpp index e29d1fbca5..54b6fa5996 100644 --- a/native/cocos/bindings/manual/jsb_module_register.cpp +++ b/native/cocos/bindings/manual/jsb_module_register.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_module_register.h b/native/cocos/bindings/manual/jsb_module_register.h index c0123167d5..e430b8f706 100644 --- a/native/cocos/bindings/manual/jsb_module_register.h +++ b/native/cocos/bindings/manual/jsb_module_register.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_network_manual.cpp b/native/cocos/bindings/manual/jsb_network_manual.cpp index 38479a2e69..fac7943d14 100644 --- a/native/cocos/bindings/manual/jsb_network_manual.cpp +++ b/native/cocos/bindings/manual/jsb_network_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,20 +23,20 @@ THE SOFTWARE. ****************************************************************************/ -#include "base/Config.h" #include "jsb_network_manual.h" +#include "base/Config.h" +#include "bindings/auto/jsb_network_auto.h" #include "bindings/manual/jsb_conversions.h" #include "bindings/manual/jsb_global.h" #include "network/Downloader.h" -#include "bindings/auto/jsb_network_auto.h" static bool js_cocos2dx_network_Downloader_createDownloadFileTask(se::State &s) { // NOLINT(readability-identifier-naming) auto *cobj = static_cast(s.nativeThisObject()); SE_PRECONDITION2(cobj, false, "js_network_Downloader_createDownloadFileTask : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 2) { std::string arg0; std::string arg1; @@ -82,9 +82,9 @@ SE_BIND_FUNC(js_cocos2dx_network_Downloader_createDownloadFileTask) static bool js_network_Downloader_setOnFileTaskSuccess(se::State &s) { // NOLINT(readability-identifier-naming) auto *cobj = static_cast(s.nativeThisObject()); SE_PRECONDITION2(cobj, false, "js_network_Downloader_setOnFileTaskSuccess : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { std::function arg0; do { @@ -100,10 +100,10 @@ static bool js_network_Downloader_setOnFileTaskSuccess(se::State &s) { // NOLINT se::ValueArray args; args.resize(1); ok &= DownloadTask_to_seval(larg0, &args[0]); - se::Value rval; + se::Value rval; se::Object *funcObj = jsFunc.toObject(); se::Object *thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } @@ -128,9 +128,9 @@ SE_BIND_FUNC(js_network_Downloader_setOnFileTaskSuccess) // NOLINT(readability-i static bool js_network_Downloader_setOnTaskError(se::State &s) { // NOLINT(readability-identifier-naming) auto *cobj = static_cast(s.nativeThisObject()); SE_PRECONDITION2(cobj, false, "js_network_Downloader_setOnTaskError : Invalid Native Object"); - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc == 1) { std::function arg0; do { @@ -149,10 +149,10 @@ static bool js_network_Downloader_setOnTaskError(se::State &s) { // NOLINT(reada ok &= int32_to_seval(larg1, &args[1]); ok &= int32_to_seval(larg2, &args[2]); ok &= std_string_to_seval(larg3, &args[3]); - se::Value rval; + se::Value rval; se::Object *thisObj = jsThis.isObject() ? jsThis.toObject() : nullptr; se::Object *funcObj = jsFunc.toObject(); - bool succeed = funcObj->call(args, thisObj, &rval); + bool succeed = funcObj->call(args, thisObj, &rval); if (!succeed) { se::ScriptEngine::getInstance()->clearException(); } diff --git a/native/cocos/bindings/manual/jsb_network_manual.h b/native/cocos/bindings/manual/jsb_network_manual.h index 7a23e2108e..e859f064d6 100644 --- a/native/cocos/bindings/manual/jsb_network_manual.h +++ b/native/cocos/bindings/manual/jsb_network_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_pipeline_manual.cpp b/native/cocos/bindings/manual/jsb_pipeline_manual.cpp index efd832ba1c..05eb202299 100644 --- a/native/cocos/bindings/manual/jsb_pipeline_manual.cpp +++ b/native/cocos/bindings/manual/jsb_pipeline_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_pipeline_manual.h b/native/cocos/bindings/manual/jsb_pipeline_manual.h index 9fdcedc89b..08a247524d 100644 --- a/native/cocos/bindings/manual/jsb_pipeline_manual.h +++ b/native/cocos/bindings/manual/jsb_pipeline_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platform.h b/native/cocos/bindings/manual/jsb_platform.h index d2495a14d7..420472c8e3 100644 --- a/native/cocos/bindings/manual/jsb_platform.h +++ b/native/cocos/bindings/manual/jsb_platform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -31,5 +31,5 @@ namespace se { class Object; } -bool register_platform_bindings(se::Object *obj); // NOLINT[readability-identifier-naming] +bool register_platform_bindings(se::Object *obj); // NOLINT[readability-identifier-naming] const std::unordered_map &getFontFamilyNameMap(); diff --git a/native/cocos/bindings/manual/jsb_platform_android.cpp b/native/cocos/bindings/manual/jsb_platform_android.cpp index e1e642d81c..c9db5c34e3 100644 --- a/native/cocos/bindings/manual/jsb_platform_android.cpp +++ b/native/cocos/bindings/manual/jsb_platform_android.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -46,9 +46,9 @@ const std::unordered_map &getFontFamilyNameMap() { } static bool JSB_loadFont(se::State &s) { - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc >= 1) { s.rval().setNull(); @@ -60,8 +60,8 @@ static bool JSB_loadFont(se::State &s) { ok &= seval_to_std_string(args[1], &source); SE_PRECONDITION2(ok, false, "JSB_loadFont : Error processing argument: source"); - std::string fontFilePath; - std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); + std::string fontFilePath; + std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); std::match_results results; if (std::regex_search(source.cbegin(), source.cend(), results, re)) { fontFilePath = results[1].str(); diff --git a/native/cocos/bindings/manual/jsb_platform_ohos.cpp b/native/cocos/bindings/manual/jsb_platform_ohos.cpp index 3872131ade..b720e221f8 100644 --- a/native/cocos/bindings/manual/jsb_platform_ohos.cpp +++ b/native/cocos/bindings/manual/jsb_platform_ohos.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "jsb_platform.h" #include "cocos/bindings/jswrapper/SeApi.h" diff --git a/native/cocos/bindings/manual/jsb_platfrom_apple.mm b/native/cocos/bindings/manual/jsb_platfrom_apple.mm index dc8dc7dcfc..755fdcbe0a 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_apple.mm +++ b/native/cocos/bindings/manual/jsb_platfrom_apple.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_platfrom_linux.cpp b/native/cocos/bindings/manual/jsb_platfrom_linux.cpp index 2ac6b300da..1ef7164534 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_linux.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,9 +41,9 @@ const std::unordered_map &getFontFamilyNameMap() { } static bool JSB_loadFont(se::State &s) { - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc >= 1) { s.rval().setNull(); @@ -55,8 +55,8 @@ static bool JSB_loadFont(se::State &s) { ok &= seval_to_std_string(args[1], &source); SE_PRECONDITION2(ok, false, "JSB_loadFont : Error processing argument: source"); - std::string fontFilePath; - std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); + std::string fontFilePath; + std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); std::match_results results; if (std::regex_search(source.cbegin(), source.cend(), results, re)) { fontFilePath = results[1].str(); diff --git a/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp b/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp index 2ac6b300da..1ef7164534 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,9 +41,9 @@ const std::unordered_map &getFontFamilyNameMap() { } static bool JSB_loadFont(se::State &s) { - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc >= 1) { s.rval().setNull(); @@ -55,8 +55,8 @@ static bool JSB_loadFont(se::State &s) { ok &= seval_to_std_string(args[1], &source); SE_PRECONDITION2(ok, false, "JSB_loadFont : Error processing argument: source"); - std::string fontFilePath; - std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); + std::string fontFilePath; + std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); std::match_results results; if (std::regex_search(source.cbegin(), source.cend(), results, re)) { fontFilePath = results[1].str(); diff --git a/native/cocos/bindings/manual/jsb_platfrom_win32.cpp b/native/cocos/bindings/manual/jsb_platfrom_win32.cpp index 6bb9106432..fe9d3f4dc7 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_win32.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_win32.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,9 +41,9 @@ const std::unordered_map &getFontFamilyNameMap() { } static bool JSB_loadFont(se::State &s) { - const auto &args = s.args(); - size_t argc = args.size(); - CC_UNUSED bool ok = true; + const auto & args = s.args(); + size_t argc = args.size(); + CC_UNUSED bool ok = true; if (argc >= 1) { s.rval().setNull(); @@ -55,8 +55,8 @@ static bool JSB_loadFont(se::State &s) { ok &= seval_to_std_string(args[1], &source); SE_PRECONDITION2(ok, false, "JSB_loadFont : Error processing argument: source"); - std::string fontFilePath; - std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); + std::string fontFilePath; + std::regex re("url\\(\\s*'\\s*(.*?)\\s*'\\s*\\)"); std::match_results results; if (std::regex_search(source.cbegin(), source.cend(), results, re)) { fontFilePath = results[1].str(); diff --git a/native/cocos/bindings/manual/jsb_scene_manual.cpp b/native/cocos/bindings/manual/jsb_scene_manual.cpp index dd5817b567..d36f75410c 100644 --- a/native/cocos/bindings/manual/jsb_scene_manual.cpp +++ b/native/cocos/bindings/manual/jsb_scene_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "jsb_scene_manual.h" #include "bindings/auto/jsb_scene_auto.h" diff --git a/native/cocos/bindings/manual/jsb_scene_manual.h b/native/cocos/bindings/manual/jsb_scene_manual.h index 668820a3d0..7e92175a03 100644 --- a/native/cocos/bindings/manual/jsb_scene_manual.h +++ b/native/cocos/bindings/manual/jsb_scene_manual.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp b/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp index 3fb560e3e4..8420285f5e 100644 --- a/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp +++ b/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp @@ -1,3 +1,27 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ #include "bindings/auto/jsb_scene_auto.h" #include "jsb_scene_manual.h" diff --git a/native/cocos/bindings/manual/jsb_socketio.cpp b/native/cocos/bindings/manual/jsb_socketio.cpp index a4ac511d98..6a70423b75 100644 --- a/native/cocos/bindings/manual/jsb_socketio.cpp +++ b/native/cocos/bindings/manual/jsb_socketio.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -71,7 +71,7 @@ public: } } - void onError(cc::network::SIOClient *client, const std::string &data) override {// NOLINT + void onError(cc::network::SIOClient *client, const std::string &data) override { // NOLINT CC_LOG_DEBUG("JSB SocketIO::SIODelegate->onError method called from native with data: %s", data.c_str()); this->fireEventToScript(client, "error", data); @@ -81,7 +81,7 @@ public: } } - void fireEventToScript(cc::network::SIOClient * client, const std::string & eventName, const std::string & data) override { // NOLINT + void fireEventToScript(cc::network::SIOClient *client, const std::string &eventName, const std::string &data) override { // NOLINT CC_LOG_DEBUG("JSB SocketIO::SIODelegate->fireEventToScript method called from native with name '%s' data: %s", eventName.c_str(), data.c_str()); se::ScriptEngine::getInstance()->clearException(); diff --git a/native/cocos/bindings/manual/jsb_socketio.h b/native/cocos/bindings/manual/jsb_socketio.h index cbf1808c83..687608684b 100644 --- a/native/cocos/bindings/manual/jsb_socketio.h +++ b/native/cocos/bindings/manual/jsb_socketio.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_spine_manual.cpp b/native/cocos/bindings/manual/jsb_spine_manual.cpp index 0a06f5b3c3..b08ef99329 100644 --- a/native/cocos/bindings/manual/jsb_spine_manual.cpp +++ b/native/cocos/bindings/manual/jsb_spine_manual.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,25 +28,25 @@ #if USE_SPINE > 0 -#include "cocos/bindings/auto/jsb_spine_auto.h" -#include "cocos/bindings/jswrapper/SeApi.h" -#include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/bindings/manual/jsb_global.h" -#include "cocos/bindings/manual/jsb_helper.h" + #include "cocos/bindings/auto/jsb_spine_auto.h" + #include "cocos/bindings/jswrapper/SeApi.h" + #include "cocos/bindings/manual/jsb_conversions.h" + #include "cocos/bindings/manual/jsb_global.h" + #include "cocos/bindings/manual/jsb_helper.h" -#include "middleware-adapter.h" -#include "spine-creator-support/SkeletonDataMgr.h" -#include "spine-creator-support/SkeletonRenderer.h" -#include "spine-creator-support/spine-cocos2dx.h" + #include "middleware-adapter.h" + #include "spine-creator-support/SkeletonDataMgr.h" + #include "spine-creator-support/SkeletonRenderer.h" + #include "spine-creator-support/spine-cocos2dx.h" -#include "cocos/editor-support/spine-creator-support/spine-cocos2dx.h" -#include "cocos/editor-support/spine/spine.h" + #include "cocos/editor-support/spine-creator-support/spine-cocos2dx.h" + #include "cocos/editor-support/spine/spine.h" using namespace cc; -static spine::Cocos2dTextureLoader textureLoader; +static spine::Cocos2dTextureLoader textureLoader; static cc::Map *_preloadedAtlasTextures = nullptr; -static middleware::Texture2D *_getPreloadedAtlasTexture(const char *path) { +static middleware::Texture2D * _getPreloadedAtlasTexture(const char *path) { assert(_preloadedAtlasTextures); auto it = _preloadedAtlasTextures->find(path); return it != _preloadedAtlasTextures->end() ? it->second : nullptr; @@ -54,7 +54,7 @@ static middleware::Texture2D *_getPreloadedAtlasTexture(const char *path) { static bool js_register_spine_initSkeletonData(se::State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc != 5) { SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", argc, 5); return false; @@ -65,7 +65,7 @@ static bool js_register_spine_initSkeletonData(se::State &s) { ok = seval_to_std_string(args[0], &uuid); SE_PRECONDITION2(ok, false, "js_register_spine_initSkeletonData: Invalid uuid content!"); - auto mgr = spine::SkeletonDataMgr::getInstance(); + auto mgr = spine::SkeletonDataMgr::getInstance(); bool hasSkeletonData = mgr->hasSkeletonData(uuid); if (hasSkeletonData) { spine::SkeletonData *skeletonData = mgr->retainByUUID(uuid); @@ -86,7 +86,7 @@ static bool js_register_spine_initSkeletonData(se::State &s) { SE_PRECONDITION2(ok, false, "js_register_spine_initSkeletonData: Invalid textures!"); float scale = 1.0f; - ok = seval_to_float(args[4], &scale); + ok = seval_to_float(args[4], &scale); SE_PRECONDITION2(ok, false, "js_register_spine_initSkeletonData: Invalid scale!"); // create atlas from preloaded texture @@ -100,16 +100,16 @@ static bool js_register_spine_initSkeletonData(se::State &s) { spine::spAtlasPage_setCustomTextureLoader(nullptr); spine::AttachmentLoader *attachmentLoader = new (__FILE__, __LINE__) spine::Cocos2dAtlasAttachmentLoader(atlas); - spine::SkeletonData *skeletonData = nullptr; + spine::SkeletonData * skeletonData = nullptr; std::size_t length = skeletonDataFile.length(); - auto binPos = skeletonDataFile.find(".skel", length - 5); + auto binPos = skeletonDataFile.find(".skel", length - 5); if (binPos == std::string::npos) binPos = skeletonDataFile.find(".bin", length - 4); if (binPos != std::string::npos) { auto fileUtils = cc::FileUtils::getInstance(); if (fileUtils->isFileExist(skeletonDataFile)) { - cc::Data cocos2dData; + cc::Data cocos2dData; const auto fullpath = fileUtils->fullPathForFilename(skeletonDataFile); fileUtils->getContents(fullpath, &cocos2dData); @@ -148,7 +148,7 @@ SE_BIND_FUNC(js_register_spine_initSkeletonData) static bool js_register_spine_disposeSkeletonData(se::State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc != 1) { SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", argc, 5); return false; @@ -159,7 +159,7 @@ static bool js_register_spine_disposeSkeletonData(se::State &s) { ok = seval_to_std_string(args[0], &uuid); SE_PRECONDITION2(ok, false, "js_register_spine_disposeSkeletonData: Invalid uuid content!"); - auto mgr = spine::SkeletonDataMgr::getInstance(); + auto mgr = spine::SkeletonDataMgr::getInstance(); bool hasSkeletonData = mgr->hasSkeletonData(uuid); if (!hasSkeletonData) return true; mgr->releaseByUUID(uuid); @@ -170,7 +170,7 @@ SE_BIND_FUNC(js_register_spine_disposeSkeletonData) static bool js_register_spine_initSkeletonRenderer(se::State &s) { // renderer, jsonPath, atlasText, textures, scale const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc != 2) { SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", argc, 5); return false; @@ -178,14 +178,14 @@ static bool js_register_spine_initSkeletonRenderer(se::State &s) { bool ok = false; spine::SkeletonRenderer *node = nullptr; - ok = seval_to_native_ptr(args[0], &node); + ok = seval_to_native_ptr(args[0], &node); SE_PRECONDITION2(ok, false, "js_register_spine_initSkeletonData: Converting SpineRenderer failed!"); std::string uuid; ok = seval_to_std_string(args[1], &uuid); SE_PRECONDITION2(ok, false, "js_register_spine_initSkeletonData: Invalid uuid content!"); - auto mgr = spine::SkeletonDataMgr::getInstance(); + auto mgr = spine::SkeletonDataMgr::getInstance(); bool hasSkeletonData = mgr->hasSkeletonData(uuid); if (hasSkeletonData) { node->initWithUUID(uuid); @@ -196,7 +196,7 @@ SE_BIND_FUNC(js_register_spine_initSkeletonRenderer) static bool js_register_spine_retainSkeletonData(se::State &s) { const auto &args = s.args(); - int argc = (int)args.size(); + int argc = (int)args.size(); if (argc != 1) { SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", argc, 1); return false; @@ -207,7 +207,7 @@ static bool js_register_spine_retainSkeletonData(se::State &s) { ok = seval_to_std_string(args[0], &uuid); SE_PRECONDITION2(ok, false, "js_register_spine_hasSkeletonData: Invalid uuid content!"); - auto mgr = spine::SkeletonDataMgr::getInstance(); + auto mgr = spine::SkeletonDataMgr::getInstance(); bool hasSkeletonData = mgr->hasSkeletonData(uuid); if (hasSkeletonData) { spine::SkeletonData *skeletonData = mgr->retainByUUID(uuid); diff --git a/native/cocos/bindings/manual/jsb_spine_manual.h b/native/cocos/bindings/manual/jsb_spine_manual.h index 53cfb0048f..c0d322fa78 100644 --- a/native/cocos/bindings/manual/jsb_spine_manual.h +++ b/native/cocos/bindings/manual/jsb_spine_manual.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_websocket.cpp b/native/cocos/bindings/manual/jsb_websocket.cpp index 5b447ad3e6..55bdbe7f18 100644 --- a/native/cocos/bindings/manual/jsb_websocket.cpp +++ b/native/cocos/bindings/manual/jsb_websocket.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,8 +30,8 @@ #include "cocos/bindings/manual/jsb_conversions.h" #include "cocos/bindings/manual/jsb_global.h" - #include "base/UTF8.h" #include "application/ApplicationManager.h" + #include "base/UTF8.h" /* [Constructor(in DOMString url, in optional DOMString protocols)] diff --git a/native/cocos/bindings/manual/jsb_websocket.h b/native/cocos/bindings/manual/jsb_websocket.h index 1bdc20dd22..cc0d78c41d 100644 --- a/native/cocos/bindings/manual/jsb_websocket.h +++ b/native/cocos/bindings/manual/jsb_websocket.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_websocket_server.cpp b/native/cocos/bindings/manual/jsb_websocket_server.cpp index 25e5fc1697..023be458a0 100644 --- a/native/cocos/bindings/manual/jsb_websocket_server.cpp +++ b/native/cocos/bindings/manual/jsb_websocket_server.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_websocket_server.h b/native/cocos/bindings/manual/jsb_websocket_server.h index cb703aa311..48ed12ab6a 100644 --- a/native/cocos/bindings/manual/jsb_websocket_server.h +++ b/native/cocos/bindings/manual/jsb_websocket_server.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp index 21e60f36f9..58937fd753 100644 --- a/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp +++ b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -232,7 +232,7 @@ XMLHttpRequest::~XMLHttpRequest() { if (!_scheduler.expired()) { _scheduler.lock()->unscheduleAllForTarget(this); } - + // Avoid HttpClient response call a released object! _httpRequest->setResponseCallback(nullptr); CC_SAFE_RELEASE(_httpRequest); @@ -384,7 +384,7 @@ void XMLHttpRequest::onResponse(HttpClient * /*client*/, HttpResponse *response) if (!_scheduler.expired()) { _scheduler.lock()->unscheduleAllForTarget(this); } - + _isSending = false; if (_isTimeout) { @@ -484,7 +484,7 @@ void XMLHttpRequest::sendRequest() { } _isSending = true; _isTimeout = false; - + _scheduler.reset(); _scheduler = CC_CURRENT_ENGINE()->getScheduler(); @@ -497,7 +497,7 @@ void XMLHttpRequest::sendRequest() { _isTimeout = true; _readyState = ReadyState::UNSENT; }, - this, _timeoutInMilliseconds / 1000.0F, 0, 0.0F, false, "XMLHttpRequest"); + this, _timeoutInMilliseconds / 1000.0F, 0, 0.0F, false, "XMLHttpRequest"); } } setHttpRequestHeader(); diff --git a/native/cocos/bindings/manual/jsb_xmlhttprequest.h b/native/cocos/bindings/manual/jsb_xmlhttprequest.h index e89db48772..97aea39b81 100644 --- a/native/cocos/bindings/manual/jsb_xmlhttprequest.h +++ b/native/cocos/bindings/manual/jsb_xmlhttprequest.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/IOBuffer.cpp b/native/cocos/editor-support/IOBuffer.cpp index f3d9c0fedb..bb21f0a57d 100644 --- a/native/cocos/editor-support/IOBuffer.cpp +++ b/native/cocos/editor-support/IOBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,9 +35,9 @@ void IOBuffer::resize(std::size_t newLen, bool needCopy) { } delete[] _buffer; - _buffer = newBuffer; + _buffer = newBuffer; _bufferSize = newLen; - _outRange = false; + _outRange = false; } } diff --git a/native/cocos/editor-support/IOBuffer.h b/native/cocos/editor-support/IOBuffer.h index 1fc392840a..596218de5e 100644 --- a/native/cocos/editor-support/IOBuffer.h +++ b/native/cocos/editor-support/IOBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,14 +24,14 @@ ****************************************************************************/ #pragma once -#include "MiddlewareMacro.h" -#include "base/Macros.h" +#include +#include #include #include #include -#include #include -#include +#include "MiddlewareMacro.h" +#include "base/Macros.h" MIDDLEWARE_BEGIN /** @@ -43,7 +43,7 @@ class IOBuffer { public: IOBuffer(std::size_t defaultSize) { _bufferSize = defaultSize; - _buffer = new uint8_t[_bufferSize]; + _buffer = new uint8_t[_bufferSize]; } IOBuffer() {} @@ -61,7 +61,7 @@ public: return; } uint32_t *buffer = (uint32_t *)(_buffer + pos); - *buffer = val; + *buffer = val; } inline void writeFloat32(std::size_t pos, float val) { @@ -70,7 +70,7 @@ public: return; } float *buffer = (float *)(_buffer + pos); - *buffer = val; + *buffer = val; } inline void writeBytes(const char *bytes, std::size_t bytesLen) { @@ -88,7 +88,7 @@ public: return; } uint32_t *buffer = (uint32_t *)(_buffer + _curPos); - *buffer = val; + *buffer = val; _curPos += sizeof(val); } @@ -98,7 +98,7 @@ public: return; } float *buffer = (float *)(_buffer + _curPos); - *buffer = val; + *buffer = val; _curPos += sizeof(val); } @@ -108,7 +108,7 @@ public: return; } uint16_t *buffer = (uint16_t *)(_buffer + _curPos); - *buffer = val; + *buffer = val; _curPos += sizeof(val); } @@ -137,7 +137,7 @@ public: } inline void reset() { - _curPos = 0; + _curPos = 0; _readPos = 0; } @@ -179,7 +179,7 @@ public: inline int checkSpace(std::size_t needSize, bool needCopy = false) { auto needLen = _curPos + needSize; - auto isFull = 0; + auto isFull = 0; if (_maxSize > 0 && needLen > _maxSize) { isFull = 1; if (_fullCallback) { @@ -204,12 +204,12 @@ public: } typedef std::function fullCallback; - void setFullCallback(fullCallback callback) { + void setFullCallback(fullCallback callback) { _fullCallback = callback; } typedef std::function resizeCallback; - void setResizeCallback(resizeCallback callback) { + void setResizeCallback(resizeCallback callback) { _resizeCallback = callback; } @@ -221,13 +221,13 @@ public: virtual void resize(std::size_t newLen, bool needCopy = false); protected: - uint8_t *_buffer = nullptr; - std::size_t _bufferSize = 0; - std::size_t _curPos = 0; - std::size_t _readPos = 0; - bool _outRange = false; - std::size_t _maxSize = 0; - fullCallback _fullCallback = nullptr; + uint8_t * _buffer = nullptr; + std::size_t _bufferSize = 0; + std::size_t _curPos = 0; + std::size_t _readPos = 0; + bool _outRange = false; + std::size_t _maxSize = 0; + fullCallback _fullCallback = nullptr; resizeCallback _resizeCallback = nullptr; }; diff --git a/native/cocos/editor-support/IOTypedArray.cpp b/native/cocos/editor-support/IOTypedArray.cpp index 68ddfcb841..7df69991cd 100644 --- a/native/cocos/editor-support/IOTypedArray.cpp +++ b/native/cocos/editor-support/IOTypedArray.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -31,9 +31,9 @@ MIDDLEWARE_BEGIN IOTypedArray::IOTypedArray(se::Object::TypedArrayType arrayType, std::size_t defaultSize, bool usePool) { - _arrayType = arrayType; + _arrayType = arrayType; _bufferSize = defaultSize; - _usePool = usePool; + _usePool = usePool; if (_usePool) { _typeArray = TypedArrayPool::getInstance()->pop(_arrayType, _bufferSize); @@ -55,7 +55,7 @@ IOTypedArray::~IOTypedArray() { _typeArray->decRef(); } _typeArray = nullptr; - _buffer = nullptr; + _buffer = nullptr; } void IOTypedArray::resize(std::size_t newLen, bool needCopy) { @@ -71,7 +71,7 @@ void IOTypedArray::resize(std::size_t newLen, bool needCopy) { newTypeBuffer->root(); } - uint8_t *newBuffer = nullptr; + uint8_t * newBuffer = nullptr; se::AutoHandleScope hs; newTypeBuffer->getTypedArrayData(&newBuffer, (size_t *)&newLen); @@ -86,10 +86,10 @@ void IOTypedArray::resize(std::size_t newLen, bool needCopy) { _typeArray->decRef(); } - _typeArray = newTypeBuffer; - _buffer = newBuffer; + _typeArray = newTypeBuffer; + _buffer = newBuffer; _bufferSize = newLen; - _outRange = false; + _outRange = false; } MIDDLEWARE_END diff --git a/native/cocos/editor-support/IOTypedArray.h b/native/cocos/editor-support/IOTypedArray.h index d5a65af44b..34deb41e57 100644 --- a/native/cocos/editor-support/IOTypedArray.h +++ b/native/cocos/editor-support/IOTypedArray.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -53,8 +53,8 @@ public: private: se::Object::TypedArrayType _arrayType = se::Object::TypedArrayType::NONE; - se::Object *_typeArray = nullptr; - bool _usePool = false; + se::Object * _typeArray = nullptr; + bool _usePool = false; }; MIDDLEWARE_END diff --git a/native/cocos/editor-support/MeshBuffer.cpp b/native/cocos/editor-support/MeshBuffer.cpp index 0d7a975da1..bb1b17b795 100644 --- a/native/cocos/editor-support/MeshBuffer.cpp +++ b/native/cocos/editor-support/MeshBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/MeshBuffer.h b/native/cocos/editor-support/MeshBuffer.h index 76066a4188..23dc64832e 100644 --- a/native/cocos/editor-support/MeshBuffer.h +++ b/native/cocos/editor-support/MeshBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,9 +25,9 @@ #pragma once +#include #include "IOBuffer.h" #include "IOTypedArray.h" -#include MIDDLEWARE_BEGIN @@ -83,13 +83,13 @@ private: void clear(); void init(); void afterCleanupHandle(); - + std::vector _ibArr; std::vector _vbArr; - std::size_t _bufferPos = 0; - IOBuffer _vb; - IOBuffer _ib; - int _vertexFormat = 0; + std::size_t _bufferPos = 0; + IOBuffer _vb; + IOBuffer _ib; + int _vertexFormat = 0; }; MIDDLEWARE_END diff --git a/native/cocos/editor-support/MiddlewareMacro.h b/native/cocos/editor-support/MiddlewareMacro.h index ac7d292081..f609ffa95c 100644 --- a/native/cocos/editor-support/MiddlewareMacro.h +++ b/native/cocos/editor-support/MiddlewareMacro.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -37,17 +37,21 @@ #define MIN_TYPE_ARRAY_SIZE 1024 #ifndef MIDDLEWARE_BEGIN -#define MIDDLEWARE_BEGIN namespace cc { namespace middleware { + #define MIDDLEWARE_BEGIN \ + namespace cc { \ + namespace middleware { #endif // MIDDLEWARE_BEGIN #ifndef MIDDLEWARE_END -#define MIDDLEWARE_END }} + #define MIDDLEWARE_END \ + } \ + } #endif // MIDDLEWARE_END #ifndef USING_NS_MW -#define USING_NS_MW using namespace cc::middleware + #define USING_NS_MW using namespace cc::middleware #endif // R G B A �ֱ�ռ��32λ -#define VF_XYZUVC 9 +#define VF_XYZUVC 9 #define VF_XYZUVCC 13 diff --git a/native/cocos/editor-support/MiddlewareManager.cpp b/native/cocos/editor-support/MiddlewareManager.cpp index 6bdb396b9a..8dd79c683e 100644 --- a/native/cocos/editor-support/MiddlewareManager.cpp +++ b/native/cocos/editor-support/MiddlewareManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,8 +24,8 @@ ****************************************************************************/ #include "MiddlewareManager.h" -#include "SeApi.h" #include +#include "SeApi.h" MIDDLEWARE_BEGIN @@ -48,7 +48,7 @@ MiddlewareManager::~MiddlewareManager() { MeshBuffer *MiddlewareManager::getMeshBuffer(int format) { MeshBuffer *mb = _mbMap[format]; if (!mb) { - mb = new MeshBuffer(format); + mb = new MeshBuffer(format); _mbMap[format] = mb; } return mb; @@ -57,7 +57,7 @@ MeshBuffer *MiddlewareManager::getMeshBuffer(int format) { void MiddlewareManager::_clearRemoveList() { for (std::size_t i = 0; i < _removeList.size(); i++) { auto editor = _removeList[i]; - auto it = std::find(_updateList.begin(), _updateList.end(), editor); + auto it = std::find(_updateList.begin(), _updateList.end(), editor); if (it != _updateList.end()) { _updateList.erase(it); } @@ -81,10 +81,10 @@ void MiddlewareManager::update(float dt) { attachBuffer->writeUint32(0); } - auto isOrderDirty = false; + auto isOrderDirty = false; uint32_t maxRenderOrder = 0; for (std::size_t i = 0, n = _updateList.size(); i < n; i++) { - auto editor = _updateList[i]; + auto editor = _updateList[i]; uint32_t renderOrder = maxRenderOrder; if (_removeList.size() > 0) { auto removeIt = std::find(_removeList.begin(), _removeList.end(), editor); diff --git a/native/cocos/editor-support/MiddlewareManager.h b/native/cocos/editor-support/MiddlewareManager.h index 7f3f4ae84b..94b436f20f 100644 --- a/native/cocos/editor-support/MiddlewareManager.h +++ b/native/cocos/editor-support/MiddlewareManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,12 +25,12 @@ #pragma once +#include +#include #include "MeshBuffer.h" #include "MiddlewareMacro.h" #include "SharedBufferManager.h" #include "base/Ref.h" -#include -#include MIDDLEWARE_BEGIN @@ -41,8 +41,8 @@ class IMiddleware { public: IMiddleware() {} virtual ~IMiddleware() {} - virtual void update(float dt) = 0; - virtual void render(float dt) = 0; + virtual void update(float dt) = 0; + virtual void render(float dt) = 0; virtual uint32_t getRenderOrder() const = 0; }; @@ -100,9 +100,9 @@ public: se_object_ptr getVBTypedArray(int format, int bufferPos); se_object_ptr getIBTypedArray(int format, int bufferPos); - std::size_t getBufferCount(int format); - std::size_t getVBTypedArrayLength(int format, std::size_t bufferPos); - std::size_t getIBTypedArrayLength(int format, std::size_t bufferPos); + std::size_t getBufferCount(int format); + std::size_t getVBTypedArrayLength(int format, std::size_t bufferPos); + std::size_t getIBTypedArrayLength(int format, std::size_t bufferPos); SharedBufferManager *getRenderInfoMgr(); SharedBufferManager *getAttachInfoMgr(); @@ -112,14 +112,14 @@ public: // If manager is traversing _updateMap, will set the flag untill traverse is finished. bool isRendering = false; - bool isUpdating = false; + bool isUpdating = false; private: void _clearRemoveList(); private: - std::vector _updateList; - std::vector _removeList; + std::vector _updateList; + std::vector _removeList; std::map _mbMap; SharedBufferManager _renderInfo; diff --git a/native/cocos/editor-support/SharedBufferManager.cpp b/native/cocos/editor-support/SharedBufferManager.cpp index d757983c12..a62084d19e 100644 --- a/native/cocos/editor-support/SharedBufferManager.cpp +++ b/native/cocos/editor-support/SharedBufferManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/editor-support/SharedBufferManager.h b/native/cocos/editor-support/SharedBufferManager.h index b272fdb3fc..3fff983cd9 100644 --- a/native/cocos/editor-support/SharedBufferManager.h +++ b/native/cocos/editor-support/SharedBufferManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,8 +25,8 @@ #pragma once -#include "IOTypedArray.h" #include +#include "IOTypedArray.h" MIDDLEWARE_BEGIN @@ -44,7 +44,7 @@ public: } typedef std::function resizeCallback; - void setResizeCallback(resizeCallback callback) { + void setResizeCallback(resizeCallback callback) { _resizeCallback = callback; } @@ -58,8 +58,8 @@ private: private: se::Object::TypedArrayType _arrayType; - IOTypedArray *_buffer = nullptr; - resizeCallback _resizeCallback = nullptr; + IOTypedArray * _buffer = nullptr; + resizeCallback _resizeCallback = nullptr; }; MIDDLEWARE_END diff --git a/native/cocos/editor-support/TypedArrayPool.cpp b/native/cocos/editor-support/TypedArrayPool.cpp index 5191182f62..ed953054f3 100644 --- a/native/cocos/editor-support/TypedArrayPool.cpp +++ b/native/cocos/editor-support/TypedArrayPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,22 +24,22 @@ ****************************************************************************/ #include "TypedArrayPool.h" +#include +#include #include "MiddlewareMacro.h" #include "base/Log.h" #include "base/Macros.h" -#include -#include #define POOL_DEBUG 0 #if POOL_DEBUG > 0 -#define PoolLog(...) \ - do { \ - fprintf(stdout, __VA_ARGS__); \ - fflush(stdout); \ - } while (false) + #define PoolLog(...) \ + do { \ + fprintf(stdout, __VA_ARGS__); \ + fflush(stdout); \ + } while (false) #else -#define POOL_LOG(...) + #define POOL_LOG(...) #endif MIDDLEWARE_BEGIN @@ -71,14 +71,14 @@ void TypedArrayPool::clearPool() { POOL_LOG("*****clearPool TypeArray pool begin"); //map - for (auto & it : _pool) { + for (auto &it : _pool) { //map fitMap &mapPool = *(it.second); - for (auto & itMapPool : mapPool) { + for (auto &itMapPool : mapPool) { //vector objPool &itFitPool = *(itMapPool.second); POOL_LOG("clear arrayType:%d,fitSize:%lu,objSize:%lu\n", it->first, itMapPool->first, itFitPool.size()); - for (auto & itFit : itFitPool) { + for (auto &itFit : itFitPool) { itFit->unroot(); itFit->decRef(); } @@ -93,10 +93,10 @@ void TypedArrayPool::clearPool() { void TypedArrayPool::dump() { //map - for (auto & it : _pool) { + for (auto &it : _pool) { //map fitMap &mapPool = *(it.second); - for (auto & itMapPool : mapPool) { + for (auto &itMapPool : mapPool) { //vector CC_UNUSED objPool &itFitPool = *(itMapPool.second); POOL_LOG("arrayType:%d,fitSize:%lu,objSize:%lu\n", it->first, itMapPool->first, itFitPool.size()); @@ -105,7 +105,7 @@ void TypedArrayPool::dump() { } se::Object *TypedArrayPool::pop(arrayType type, std::size_t size) { - auto fitSize = static_cast(std::ceil(size / float(MIN_TYPE_ARRAY_SIZE)) * MIN_TYPE_ARRAY_SIZE); + auto fitSize = static_cast(std::ceil(size / float(MIN_TYPE_ARRAY_SIZE)) * MIN_TYPE_ARRAY_SIZE); objPool *objPoolPtr = getObjPool(type, fitSize); if (!objPoolPtr->empty()) { @@ -117,25 +117,25 @@ se::Object *TypedArrayPool::pop(arrayType type, std::size_t size) { POOL_LOG("TypedArrayPool:pop result:empty,type:%d,fitSize:%lu,objSize:%lu\n", (int)type, fitSize, objPoolPtr->size()); se::AutoHandleScope hs; - auto *typeArray = se::Object::createTypedArray(type, nullptr, fitSize); + auto * typeArray = se::Object::createTypedArray(type, nullptr, fitSize); typeArray->root(); return typeArray; } TypedArrayPool::objPool *TypedArrayPool::getObjPool(arrayType type, std::size_t fitSize) { - auto it = _pool.find(type); + auto it = _pool.find(type); fitMap *fitMapPtr = nullptr; if (it == _pool.end()) { - fitMapPtr = new fitMap(); + fitMapPtr = new fitMap(); _pool[type] = fitMapPtr; } else { fitMapPtr = it->second; } - auto itPool = fitMapPtr->find(fitSize); + auto itPool = fitMapPtr->find(fitSize); objPool *objPoolPtr = nullptr; if (itPool == fitMapPtr->end()) { - objPoolPtr = new objPool(); + objPoolPtr = new objPool(); (*fitMapPtr)[fitSize] = objPoolPtr; } else { objPoolPtr = itPool->second; @@ -157,7 +157,7 @@ void TypedArrayPool::push(arrayType type, std::size_t arrayCapacity, se::Object } objPool *objPoolPtr = getObjPool(type, arrayCapacity); - auto it = std::find(objPoolPtr->begin(), objPoolPtr->end(), object); + auto it = std::find(objPoolPtr->begin(), objPoolPtr->end(), object); if (it != objPoolPtr->end()) { POOL_LOG("TypedArrayPool:push result:repeat\n"); return; diff --git a/native/cocos/editor-support/TypedArrayPool.h b/native/cocos/editor-support/TypedArrayPool.h index 85bebbc780..49aa00d7e3 100644 --- a/native/cocos/editor-support/TypedArrayPool.h +++ b/native/cocos/editor-support/TypedArrayPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,10 +24,10 @@ ****************************************************************************/ #pragma once -#include "MiddlewareMacro.h" -#include "SeApi.h" #include #include +#include "MiddlewareMacro.h" +#include "SeApi.h" MIDDLEWARE_BEGIN /** @@ -54,9 +54,9 @@ public: private: using arrayType = se::Object::TypedArrayType; - using objPool = std::vector; - using fitMap = std::map; - using typeMap = std::map; + using objPool = std::vector; + using fitMap = std::map; + using typeMap = std::map; objPool *getObjPool(arrayType type, std::size_t size); @@ -72,9 +72,8 @@ private: void afterCleanupHandle(); void afterInitHandle(); - typeMap _pool; - bool _allowPush = true; + bool _allowPush = true; public: /** diff --git a/native/cocos/editor-support/middleware-adapter.cpp b/native/cocos/editor-support/middleware-adapter.cpp index 2cc426f9ed..e33be17389 100644 --- a/native/cocos/editor-support/middleware-adapter.cpp +++ b/native/cocos/editor-support/middleware-adapter.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,7 +35,7 @@ Color4F::Color4F(float _r, float _g, float _b, float _a) : r(_r), g(_g), b(_b), a(_a) {} Color4F::Color4F() {} -Color4F& Color4F::operator=(const Color4B &right) { +Color4F &Color4F::operator=(const Color4B &right) { r = right.r / 255.0f; g = right.g / 255.0f; b = right.b / 255.0f; @@ -47,7 +47,7 @@ Color4B::Color4B() {} Color4B::Color4B(uint32_t _r, uint32_t _g, uint32_t _b, uint32_t _a) : r(_r), g(_g), b(_b), a(_a) {} -Color4B& Color4B::operator=(const Color4B &right) { +Color4B &Color4B::operator=(const Color4B &right) { r = right.r; g = right.g; b = right.b; @@ -139,11 +139,11 @@ bool SpriteFrame::initWithTexture(Texture2D *texture, const cc::Rect &rect, bool texture->retain(); } - _rectInPixels = rect; - _offsetInPixels = offset; + _rectInPixels = rect; + _offsetInPixels = offset; _originalSizeInPixels = originalSize; - _rotated = rotated; - _anchorPoint = cc::Vec2(NAN, NAN); + _rotated = rotated; + _anchorPoint = cc::Vec2(NAN, NAN); return true; } diff --git a/native/cocos/editor-support/middleware-adapter.h b/native/cocos/editor-support/middleware-adapter.h index 5dff899a4e..5865b6e73f 100644 --- a/native/cocos/editor-support/middleware-adapter.h +++ b/native/cocos/editor-support/middleware-adapter.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,20 +25,20 @@ #pragma once +#include #include "MiddlewareMacro.h" #include "base/Ref.h" #include "math/Geometry.h" #include "math/Vec3.h" -#include MIDDLEWARE_BEGIN struct Color4B { Color4B(uint32_t _r, uint32_t _g, uint32_t _b, uint32_t _a); Color4B(); - bool operator==(const Color4B &right) const; - bool operator!=(const Color4B &right) const; - Color4B& operator=(const Color4B &right); + bool operator==(const Color4B &right) const; + bool operator!=(const Color4B &right) const; + Color4B &operator=(const Color4B &right); uint32_t r = 0; uint32_t g = 0; @@ -51,10 +51,10 @@ struct Color4B { struct Color4F { Color4F(float _r, float _g, float _b, float _a); Color4F(); - bool operator==(const Color4F &right) const; - bool operator!=(const Color4F &right) const; - Color4F& operator=(const Color4B &right); - + bool operator==(const Color4F &right) const; + bool operator!=(const Color4F &right) const; + Color4F &operator=(const Color4B &right); + float r = 0.0f; float g = 0.0f; float b = 0.0f; @@ -227,11 +227,11 @@ public: void setTexture(Texture2D *pobTexture); protected: - cc::Vec2 _anchorPoint; - cc::Rect _rectInPixels; - bool _rotated = false; - cc::Vec2 _offsetInPixels; - cc::Size _originalSizeInPixels; + cc::Vec2 _anchorPoint; + cc::Rect _rectInPixels; + bool _rotated = false; + cc::Vec2 _offsetInPixels; + cc::Size _originalSizeInPixels; Texture2D *_texture = nullptr; }; MIDDLEWARE_END diff --git a/native/cocos/engine/BaseEngine.cpp b/native/cocos/engine/BaseEngine.cpp index e0db55ac56..2c13d8a872 100644 --- a/native/cocos/engine/BaseEngine.cpp +++ b/native/cocos/engine/BaseEngine.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/engine/BaseEngine.h b/native/cocos/engine/BaseEngine.h index 55257f5276..0aced13e2c 100644 --- a/native/cocos/engine/BaseEngine.h +++ b/native/cocos/engine/BaseEngine.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -36,7 +36,7 @@ namespace cc { class BaseEngine : public std::enable_shared_from_this { public: virtual ~BaseEngine(); - using Ptr = std::shared_ptr; + using Ptr = std::shared_ptr; /** @brief Get operating system interface template. diff --git a/native/cocos/engine/Engine.cpp b/native/cocos/engine/Engine.cpp index f905f7bd2e..e9cf019a10 100644 --- a/native/cocos/engine/Engine.cpp +++ b/native/cocos/engine/Engine.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -110,7 +110,7 @@ int32_t Engine::init() { BasePlatform* platform = BasePlatform::getPlatform(); platform->setHandleEventCallback( - std::bind(&Engine::handleEvent, this, std::placeholders::_1));// NOLINT(modernize-avoid-bind) + std::bind(&Engine::handleEvent, this, std::placeholders::_1)); // NOLINT(modernize-avoid-bind) se::ScriptEngine::getInstance()->addPermanentRegisterCallback(setCanvasCallback); return 0; @@ -148,9 +148,9 @@ void Engine::close() { // NOLINT #if USE_AUDIO cc::AudioEngine::stopAll(); #endif -//#if USE_SOCKET -// cc::network::WebSocket::closeAllConnections(); -//#endif + //#if USE_SOCKET + // cc::network::WebSocket::closeAllConnections(); + //#endif cc::network::HttpClient::destroyInstance(); _scheduler->removeAllFunctionsToBePerformedInCocosThread(); @@ -239,9 +239,9 @@ int32_t Engine::restartVM() { #if USE_AUDIO cc::AudioEngine::stopAll(); #endif -//#if USE_SOCKET -// cc::network::WebSocket::closeAllConnections(); -//#endif + //#if USE_SOCKET + // cc::network::WebSocket::closeAllConnections(); + //#endif cc::network::HttpClient::destroyInstance(); _scheduler->removeAllFunctionsToBePerformedInCocosThread(); diff --git a/native/cocos/engine/Engine.h b/native/cocos/engine/Engine.h index 319ae49d57..3f3d97ebd6 100644 --- a/native/cocos/engine/Engine.h +++ b/native/cocos/engine/Engine.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/main/main-ios.mm b/native/cocos/main/main-ios.mm index 0bc826ccd7..c6cb21b4dd 100644 --- a/native/cocos/main/main-ios.mm +++ b/native/cocos/main/main-ios.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/main/main-linux.cpp b/native/cocos/main/main-linux.cpp index 91c465d44a..f183ca7baf 100644 --- a/native/cocos/main/main-linux.cpp +++ b/native/cocos/main/main-linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,10 +22,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include -#include "platform/BasePlatform.h" #include "SDL2/SDL_main.h" +#include "platform/BasePlatform.h" int main(int argc, char** argv) { START_PLATFORM(argc, (const char**)argv); diff --git a/native/cocos/main/main-mac.mm b/native/cocos/main/main-mac.mm index 4de010d156..da58115bd4 100644 --- a/native/cocos/main/main-mac.mm +++ b/native/cocos/main/main-mac.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/main/main-qnx.cpp b/native/cocos/main/main-qnx.cpp index 91c465d44a..f183ca7baf 100644 --- a/native/cocos/main/main-qnx.cpp +++ b/native/cocos/main/main-qnx.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,10 +22,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include -#include "platform/BasePlatform.h" #include "SDL2/SDL_main.h" +#include "platform/BasePlatform.h" int main(int argc, char** argv) { START_PLATFORM(argc, (const char**)argv); diff --git a/native/cocos/main/main-win32.cpp b/native/cocos/main/main-win32.cpp index 9911742d79..f16fa21df3 100644 --- a/native/cocos/main/main-win32.cpp +++ b/native/cocos/main/main-win32.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/BasePlatform.h" diff --git a/native/cocos/network/Downloader-curl.cpp b/native/cocos/network/Downloader-curl.cpp index ea145228a6..7701a95b77 100644 --- a/native/cocos/network/Downloader-curl.cpp +++ b/native/cocos/network/Downloader-curl.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,15 +26,15 @@ #include "network/Downloader-curl.h" -#include #include -#include -#include #include +#include +#include +#include +#include "application/ApplicationManager.h" #include "base/Scheduler.h" #include "platform/FileUtils.h" -#include "application/ApplicationManager.h" #include "network/Downloader.h" @@ -92,15 +92,15 @@ public: } // file task - _fileName = filename; + _fileName = filename; _tempFileName = filename; _tempFileName.append(tempSuffix); if (_sStoragePathSet.end() != _sStoragePathSet.find(_tempFileName)) { // there is another task uses this storage path - _errCode = DownloadTask::ERROR_FILE_OP_FAILED; + _errCode = DownloadTask::ERROR_FILE_OP_FAILED; _errCodeInternal = 0; - _errDescription = "More than one download file task write to same file:"; + _errDescription = "More than one download file task write to same file:"; _errDescription.append(_tempFileName); return false; } @@ -112,20 +112,20 @@ public: string dir; size_t found = _tempFileName.find_last_of("/\\"); if (found == string::npos) { - _errCode = DownloadTask::ERROR_INVALID_PARAMS; + _errCode = DownloadTask::ERROR_INVALID_PARAMS; _errCodeInternal = 0; - _errDescription = "Can't find dirname in storagePath."; + _errDescription = "Can't find dirname in storagePath."; break; } // ensure directory is exist auto util = FileUtils::getInstance(); - dir = _tempFileName.substr(0, found + 1); + dir = _tempFileName.substr(0, found + 1); if (false == util->isDirectoryExist(dir)) { if (false == util->createDirectory(dir)) { - _errCode = DownloadTask::ERROR_FILE_OP_FAILED; + _errCode = DownloadTask::ERROR_FILE_OP_FAILED; _errCodeInternal = 0; - _errDescription = "Can't create dir:"; + _errDescription = "Can't create dir:"; _errDescription.append(dir); break; } @@ -134,9 +134,9 @@ public: // open file _fp = fopen(util->getSuitableFOpen(_tempFileName).c_str(), "ab"); if (nullptr == _fp) { - _errCode = DownloadTask::ERROR_FILE_OP_FAILED; + _errCode = DownloadTask::ERROR_FILE_OP_FAILED; _errCodeInternal = 0; - _errDescription = "Can't open file:"; + _errDescription = "Can't open file:"; _errDescription.append(_tempFileName); } ret = true; @@ -152,19 +152,19 @@ public: void setErrorProc(int code, int codeInternal, const char *desc) { lock_guard lock(_mutex); - _errCode = code; + _errCode = code; _errCodeInternal = codeInternal; - _errDescription = desc; + _errDescription = desc; } size_t writeDataProc(unsigned char *buffer, size_t size, size_t count) { lock_guard lock(_mutex); - size_t ret = 0; + size_t ret = 0; if (_fp) { ret = fwrite(buffer, size, count, _fp); } else { - ret = size * count; - auto cap = _buf.capacity(); + ret = size * count; + auto cap = _buf.capacity(); auto bufSize = _buf.size(); if (cap < bufSize + ret) { _buf.reserve(bufSize * 2); @@ -185,8 +185,8 @@ private: mutex _mutex; // header info - bool _acceptRanges; - bool _headerAchieved; + bool _acceptRanges; + bool _headerAchieved; int64_t _totalBytesExpected; string _header; // temp buffer for receive header string, only used in thread proc @@ -196,29 +196,29 @@ private: int64_t _totalBytesReceived; // error - int _errCode; - int _errCodeInternal; + int _errCode; + int _errCodeInternal; string _errDescription; // for saving data - string _fileName; - string _tempFileName; + string _fileName; + string _tempFileName; vector _buf; - FILE *_fp; + FILE * _fp; void _initInternal() { - _acceptRanges = (false); - _headerAchieved = (false); - _bytesReceived = (0); + _acceptRanges = (false); + _headerAchieved = (false); + _bytesReceived = (0); _totalBytesReceived = (0); _totalBytesExpected = (0); - _errCode = (DownloadTask::ERROR_NO_ERROR); - _errCodeInternal = (CURLE_OK); + _errCode = (DownloadTask::ERROR_NO_ERROR); + _errCodeInternal = (CURLE_OK); _header.resize(0); _header.reserve(384); // pre alloc header string buffer } }; -int DownloadTaskCURL::_sSerialId; +int DownloadTaskCURL::_sSerialId; set DownloadTaskCURL::_sStoragePathSet; typedef pair, DownloadTaskCURL *> TaskWrapper; @@ -304,7 +304,7 @@ private: // the curl handle destroyed in _threadProc // handle inited for get header void _initCurlHandleProc(CURL *handle, TaskWrapper &wrapper, bool forContent = false) { - const DownloadTask &task = *wrapper.first; + const DownloadTask & task = *wrapper.first; const DownloadTaskCURL *coTask = wrapper.second; // set url @@ -345,7 +345,7 @@ private: } static const long LOW_SPEED_LIMIT = 1; - static const long LOW_SPEED_TIME = 10; + static const long LOW_SPEED_TIME = 10; curl_easy_setopt(handle, CURLOPT_LOW_SPEED_LIMIT, LOW_SPEED_LIMIT); curl_easy_setopt(handle, CURLOPT_LOW_SPEED_TIME, LOW_SPEED_TIME); @@ -362,10 +362,10 @@ private: // get header info, if success set handle to content download state bool _getHeaderInfoProc(CURL *handle, TaskWrapper &wrapper) { DownloadTaskCURL &coTask = *wrapper.second; - CURLcode rc = CURLE_OK; + CURLcode rc = CURLE_OK; do { long httpResponseCode = 0; - rc = curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &httpResponseCode); + rc = curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &httpResponseCode); if (CURLE_OK != rc) { break; } @@ -378,7 +378,7 @@ private: // curl_easy_getinfo(handle, CURLINFO_EFFECTIVE_URL, &effectiveUrl); // curl_easy_getinfo(handle, CURLINFO_CONTENT_TYPE, &contentType); double contentLen = 0; - rc = curl_easy_getinfo(handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &contentLen); + rc = curl_easy_getinfo(handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &contentLen); if (CURLE_OK != rc) { break; } @@ -394,7 +394,7 @@ private: // set header info to coTask lock_guard lock(coTask._mutex); coTask._totalBytesExpected = (int64_t)contentLen; - coTask._acceptRanges = acceptRanges; + coTask._acceptRanges = acceptRanges; if (acceptRanges && fileSize > 0) { coTask._totalBytesReceived = fileSize; } @@ -410,15 +410,15 @@ private: void _threadProc() { DLLOG("++++DownloaderCURL::Impl::_threadProc begin %p", this); // the holder prevent DownloaderCURL::Impl class instance be destruct in main thread - auto holder = this->shared_from_this(); - auto thisThreadId = this_thread::get_id(); + auto holder = this->shared_from_this(); + auto thisThreadId = this_thread::get_id(); uint32_t countOfMaxProcessingTasks = this->hints.countOfMaxProcessingTasks; // init curl content - CURLM *curlmHandle = curl_multi_init(); + CURLM * curlmHandle = curl_multi_init(); unordered_map coTaskMap; - int runningHandles = 0; - CURLMcode mcode = CURLM_OK; - int rc = 0; // select return code + int runningHandles = 0; + CURLMcode mcode = CURLM_OK; + int rc = 0; // select return code do { // check the thread should exit or not @@ -443,7 +443,7 @@ private: fd_set fdread; fd_set fdwrite; fd_set fdexcep; - int maxfd = -1; + int maxfd = -1; FD_ZERO(&fdread); FD_ZERO(&fdwrite); @@ -461,7 +461,7 @@ private: } else { struct timeval timeout; - timeout.tv_sec = timeoutMS / 1000; + timeout.tv_sec = timeoutMS / 1000; timeout.tv_usec = (timeoutMS % 1000) * 1000; rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); @@ -484,10 +484,10 @@ private: struct CURLMsg *m; do { int msgq = 0; - m = curl_multi_info_read(curlmHandle, &msgq); + m = curl_multi_info_read(curlmHandle, &msgq); if (m && (m->msg == CURLMSG_DONE)) { - CURL *curlHandle = m->easy_handle; - CURLcode errCode = m->data.result; + CURL * curlHandle = m->easy_handle; + CURLcode errCode = m->data.result; TaskWrapper wrapper = coTaskMap[curlHandle]; @@ -612,9 +612,9 @@ private: DLLOG("----DownloaderCURL::Impl::_threadProc end"); } - thread _thread; + thread _thread; deque _requestQueue; - set _processSet; + set _processSet; deque _finishedQueue; mutex _threadMutex; @@ -633,8 +633,8 @@ DownloaderCURL::DownloaderCURL(const DownloaderHints &hints) _scheduler = CC_CURRENT_ENGINE()->getScheduler(); _transferDataToBuffer = [this](void *buf, int64_t len) -> int64_t { - DownloadTaskCURL &coTask = *_currTask; - int64_t dataLen = coTask._buf.size(); + DownloadTaskCURL &coTask = *_currTask; + int64_t dataLen = coTask._buf.size(); if (len < dataLen) { return 0; } @@ -693,8 +693,8 @@ void DownloaderCURL::_onSchedule(float) { // update processing tasks _impl->getProcessTasks(tasks); for (auto &wrapper : tasks) { - const DownloadTask &task = *wrapper.first; - DownloadTaskCURL &coTask = *wrapper.second; + const DownloadTask &task = *wrapper.first; + DownloadTaskCURL & coTask = *wrapper.second; lock_guard lock(coTask._mutex); if (coTask._bytesReceived) { @@ -704,7 +704,7 @@ void DownloaderCURL::_onSchedule(float) { coTask._totalBytesReceived, coTask._totalBytesExpected, _transferDataToBuffer); - _currTask = nullptr; + _currTask = nullptr; coTask._bytesReceived = 0; } } @@ -719,8 +719,8 @@ void DownloaderCURL::_onSchedule(float) { } for (auto &wrapper : tasks) { - const DownloadTask &task = *wrapper.first; - DownloadTaskCURL &coTask = *wrapper.second; + const DownloadTask &task = *wrapper.first; + DownloadTaskCURL & coTask = *wrapper.second; // if there is bytesReceived, call progress update first if (coTask._bytesReceived) { @@ -731,7 +731,7 @@ void DownloaderCURL::_onSchedule(float) { coTask._totalBytesExpected, _transferDataToBuffer); coTask._bytesReceived = 0; - _currTask = nullptr; + _currTask = nullptr; } // if file task, close file handle and rename file if needed @@ -747,9 +747,9 @@ void DownloaderCURL::_onSchedule(float) { // if file already exist, remove it if (util->isFileExist(coTask._fileName)) { if (false == util->removeFile(coTask._fileName)) { - coTask._errCode = DownloadTask::ERROR_FILE_OP_FAILED; + coTask._errCode = DownloadTask::ERROR_FILE_OP_FAILED; coTask._errCodeInternal = 0; - coTask._errDescription = "Can't remove old file: "; + coTask._errDescription = "Can't remove old file: "; coTask._errDescription.append(coTask._fileName); break; } @@ -762,9 +762,9 @@ void DownloaderCURL::_onSchedule(float) { break; } // failed - coTask._errCode = DownloadTask::ERROR_FILE_OP_FAILED; + coTask._errCode = DownloadTask::ERROR_FILE_OP_FAILED; coTask._errCodeInternal = 0; - coTask._errDescription = "Can't renamefile from: "; + coTask._errDescription = "Can't renamefile from: "; coTask._errDescription.append(coTask._tempFileName); coTask._errDescription.append(" to: "); coTask._errDescription.append(coTask._fileName); diff --git a/native/cocos/network/Downloader-curl.h b/native/cocos/network/Downloader-curl.h index 697959f961..a86d974629 100644 --- a/native/cocos/network/Downloader-curl.h +++ b/native/cocos/network/Downloader-curl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -51,12 +51,12 @@ protected: std::shared_ptr _impl; // for transfer data on schedule - DownloadTaskCURL *_currTask; // temp ref + DownloadTaskCURL * _currTask; // temp ref std::function _transferDataToBuffer; // scheduler for update processing and finished task in main schedule - void _onSchedule(float); - std::string _schedulerKey; + void _onSchedule(float); + std::string _schedulerKey; std::weak_ptr _scheduler; }; diff --git a/native/cocos/network/Downloader-java.cpp b/native/cocos/network/Downloader-java.cpp index 96b99d4d29..7c853111ac 100644 --- a/native/cocos/network/Downloader-java.cpp +++ b/native/cocos/network/Downloader-java.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,11 +26,11 @@ #include "network/Downloader-java.h" +#include +#include "application/ApplicationManager.h" #include "network/Downloader.h" #include "platform/java/jni/JniHelper.h" #include "platform/java/jni/JniImp.h" -#include "application/ApplicationManager.h" -#include #ifndef JCLS_DOWNLOADER #define JCLS_DOWNLOADER "com/cocos/lib/CocosDownloader" diff --git a/native/cocos/network/Downloader-java.h b/native/cocos/network/Downloader-java.h index 250d4337b3..c036f5df9b 100644 --- a/native/cocos/network/Downloader-java.h +++ b/native/cocos/network/Downloader-java.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/Downloader.cpp b/native/cocos/network/Downloader.cpp index 05a94c986e..b108db6b52 100644 --- a/native/cocos/network/Downloader.cpp +++ b/native/cocos/network/Downloader.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015-2016 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/Downloader.h b/native/cocos/network/Downloader.h index 99a8fb4853..b7032c29e0 100644 --- a/native/cocos/network/Downloader.h +++ b/native/cocos/network/Downloader.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015-2016 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,8 +29,8 @@ #include #include -#include #include +#include #include #include "base/Macros.h" @@ -44,15 +44,15 @@ class Downloader; class CC_DLL DownloadTask final { public: - const static int ERROR_NO_ERROR = 0; + const static int ERROR_NO_ERROR = 0; const static int ERROR_INVALID_PARAMS = -1; const static int ERROR_FILE_OP_FAILED = -2; - const static int ERROR_IMPL_INTERNAL = -3; - const static int ERROR_ABORT = -4; + const static int ERROR_IMPL_INTERNAL = -3; + const static int ERROR_ABORT = -4; - std::string identifier; - std::string requestURL; - std::string storagePath; + std::string identifier; + std::string requestURL; + std::string storagePath; std::map header; DownloadTask(); @@ -64,8 +64,8 @@ private: }; struct CC_DLL DownloaderHints { - uint32_t countOfMaxProcessingTasks; - uint32_t timeoutInSeconds; + uint32_t countOfMaxProcessingTasks; + uint32_t timeoutInSeconds; std::string tempFileNameSuffix; }; @@ -75,35 +75,35 @@ public: Downloader(const DownloaderHints &hints); ~Downloader(); - std::function &data)> onDataTaskSuccess; std::function onFileTaskSuccess; std::function + int64_t bytesReceived, + int64_t totalBytesReceived, + int64_t totalBytesExpected)> onTaskProgress; std::function + int errorCode, + int errorCodeInternal, + const std::string & errorStr)> onTaskError; void setOnFileTaskSuccess(const std::function &callback) { onFileTaskSuccess = callback; }; void setOnTaskProgress(const std::function &callback) { onTaskProgress = callback; }; + int64_t bytesReceived, + int64_t totalBytesReceived, + int64_t totalBytesExpected)> &callback) { onTaskProgress = callback; }; void setOnTaskError(const std::function &callback) { onTaskError = callback; }; + int errorCode, + int errorCodeInternal, + const std::string & errorStr)> &callback) { onTaskError = callback; }; std::shared_ptr createDownloadDataTask(const std::string &srcUrl, const std::string &identifier = ""); diff --git a/native/cocos/network/DownloaderImpl-apple.h b/native/cocos/network/DownloaderImpl-apple.h index 97c3ab7222..f3030076a4 100644 --- a/native/cocos/network/DownloaderImpl-apple.h +++ b/native/cocos/network/DownloaderImpl-apple.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/DownloaderImpl-apple.mm b/native/cocos/network/DownloaderImpl-apple.mm index 905cc30490..b38396d7b1 100644 --- a/native/cocos/network/DownloaderImpl-apple.mm +++ b/native/cocos/network/DownloaderImpl-apple.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/DownloaderImpl.h b/native/cocos/network/DownloaderImpl.h index 232262dbc1..96cf46c36a 100644 --- a/native/cocos/network/DownloaderImpl.h +++ b/native/cocos/network/DownloaderImpl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2015-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,11 +26,11 @@ #pragma once +#include +#include #include #include -#include #include -#include #include "base/Macros.h" @@ -56,17 +56,17 @@ class IDownloaderImpl { public: virtual ~IDownloaderImpl() {} - std::function &transferDataToBuffer)> onTaskProgress; - std::function &data)> onTaskFinish; diff --git a/native/cocos/network/HttpAsynConnection-apple.h b/native/cocos/network/HttpAsynConnection-apple.h index c9edd71e86..ddb52d34b4 100644 --- a/native/cocos/network/HttpAsynConnection-apple.h +++ b/native/cocos/network/HttpAsynConnection-apple.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpClient-apple.mm b/native/cocos/network/HttpClient-apple.mm index 2e70b9abb1..71e0aef75d 100644 --- a/native/cocos/network/HttpClient-apple.mm +++ b/native/cocos/network/HttpClient-apple.mm @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpClient-java.cpp b/native/cocos/network/HttpClient-java.cpp index 10de1d4567..7aea4c81d8 100644 --- a/native/cocos/network/HttpClient-java.cpp +++ b/native/cocos/network/HttpClient-java.cpp @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -545,8 +545,8 @@ private: return nullptr; } std::string strValue = cc::StringUtils::getStringUTFCharsJNI(env, jstr); - size_t size = strValue.size() + 1; - char* retVal = static_cast(malloc(size)); + size_t size = strValue.size() + 1; + char * retVal = static_cast(malloc(size)); if (retVal == nullptr) { return nullptr; } diff --git a/native/cocos/network/HttpClient.cpp b/native/cocos/network/HttpClient.cpp index 3c958ec2f9..35cd34c829 100644 --- a/native/cocos/network/HttpClient.cpp +++ b/native/cocos/network/HttpClient.cpp @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,13 +27,13 @@ ****************************************************************************/ #include "network/HttpClient.h" -#include -#include #include -#include "platform/FileUtils.h" +#include +#include #include "application/ApplicationManager.h" -#include "platform/StdC.h" #include "base/Log.h" +#include "platform/FileUtils.h" +#include "platform/StdC.h" namespace cc { @@ -50,7 +50,7 @@ typedef size_t (*write_callback)(void *ptr, size_t size, size_t nmemb, void *str // Callback function used by libcurl for collect response data static size_t writeData(void *ptr, size_t size, size_t nmemb, void *stream) { std::vector *recvBuffer = (std::vector *)stream; - size_t sizes = size * nmemb; + size_t sizes = size * nmemb; // add data to the end of recvBuffer // write data maybe called more than once in a single request @@ -62,7 +62,7 @@ static size_t writeData(void *ptr, size_t size, size_t nmemb, void *stream) { // Callback function used by libcurl for collect header data static size_t writeHeaderData(void *ptr, size_t size, size_t nmemb, void *stream) { std::vector *recvBuffer = (std::vector *)stream; - size_t sizes = size * nmemb; + size_t sizes = size * nmemb; // add data to the end of recvBuffer // write data maybe called more than once in a single request @@ -271,35 +271,35 @@ public: //Process Get Request static int processGetTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode); + bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode); return ok ? 0 : 1; } //Process POST Request static int processPostTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_POST, 1) && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) && curl.perform(responseCode); + bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_POST, 1) && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) && curl.perform(responseCode); return ok ? 0 : 1; } //Process PUT Request static int processPutTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_CUSTOMREQUEST, "PUT") && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) && curl.perform(responseCode); + bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_CUSTOMREQUEST, "PUT") && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) && curl.perform(responseCode); return ok ? 0 : 1; } //Process HEAD Request static int processHeadTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_NOBODY, "HEAD") && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) && curl.perform(responseCode); + bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_NOBODY, "HEAD") && curl.setOption(CURLOPT_POSTFIELDS, request->getRequestData()) && curl.setOption(CURLOPT_POSTFIELDSIZE, request->getRequestDataSize()) && curl.perform(responseCode); return ok ? 0 : 1; } //Process DELETE Request static int processDeleteTask(HttpClient *client, HttpRequest *request, write_callback callback, void *stream, long *responseCode, write_callback headerCallback, void *headerStream, char *errorBuffer) { CURLRaii curl; - bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_CUSTOMREQUEST, "DELETE") && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode); + bool ok = curl.init(client, request, callback, stream, headerCallback, headerStream, errorBuffer) && curl.setOption(CURLOPT_CUSTOMREQUEST, "DELETE") && curl.setOption(CURLOPT_FOLLOWLOCATION, true) && curl.perform(responseCode); return ok ? 0 : 1; } @@ -319,7 +319,7 @@ void HttpClient::destroyInstance() { } CC_LOG_DEBUG("HttpClient::destroyInstance begin"); - auto thiz = _httpClient; + auto thiz = _httpClient; _httpClient = nullptr; if (auto sche = thiz->_scheduler.lock()) { @@ -432,7 +432,7 @@ void HttpClient::dispatchResponseCallbacks() { _responseQueueMutex.unlock(); if (response) { - HttpRequest *request = response->getHttpRequest(); + HttpRequest * request = response->getHttpRequest(); const ccHttpRequestCallback &callback = request->getResponseCallback(); if (callback != nullptr) { @@ -447,9 +447,9 @@ void HttpClient::dispatchResponseCallbacks() { // Process Response void HttpClient::processResponse(HttpResponse *response, char *responseMessage) { - auto request = response->getHttpRequest(); + auto request = response->getHttpRequest(); long responseCode = -1; - int retValue = 0; + int retValue = 0; // Process the request -> get response packet switch (request->getRequestType()) { diff --git a/native/cocos/network/HttpClient.h b/native/cocos/network/HttpClient.h index b102493ca9..5302bc765b 100644 --- a/native/cocos/network/HttpClient.h +++ b/native/cocos/network/HttpClient.h @@ -2,7 +2,7 @@ Copyright (c) 2012 greathqy Copyright (c) 2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,12 +28,12 @@ #pragma once -#include #include +#include #include "base/Vector.h" +#include "network/HttpCookie.h" #include "network/HttpRequest.h" #include "network/HttpResponse.h" -#include "network/HttpCookie.h" /** * @addtogroup network @@ -173,29 +173,29 @@ private: private: // NOLINT(readability-redundant-access-specifiers) bool _isInited; - int _timeoutForConnect; + int _timeoutForConnect; std::mutex _timeoutForConnectMutex; - int _timeoutForRead; + int _timeoutForRead; std::mutex _timeoutForReadMutex; - int _threadCount; + int _threadCount; std::mutex _threadCountMutex; std::weak_ptr _scheduler; - std::mutex _schedulerMutex; + std::mutex _schedulerMutex; Vector _requestQueue; - std::mutex _requestQueueMutex; + std::mutex _requestQueueMutex; Vector _responseQueue; - std::mutex _responseQueueMutex; + std::mutex _responseQueueMutex; std::string _cookieFilename; - std::mutex _cookieFileMutex; + std::mutex _cookieFileMutex; std::string _sslCaFilename; - std::mutex _sslCaFileMutex; + std::mutex _sslCaFileMutex; HttpCookie *_cookie; diff --git a/native/cocos/network/HttpCookie.cpp b/native/cocos/network/HttpCookie.cpp index e200dce638..29b84aec19 100644 --- a/native/cocos/network/HttpCookie.cpp +++ b/native/cocos/network/HttpCookie.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/HttpCookie.h b/native/cocos/network/HttpCookie.h index 2dd2b1d639..fb4a0e6f71 100644 --- a/native/cocos/network/HttpCookie.h +++ b/native/cocos/network/HttpCookie.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -33,9 +33,9 @@ struct CookiesInfo { std::string domain; - bool tailmatch; + bool tailmatch; std::string path; - bool secure; + bool secure; std::string name; std::string value; std::string expires; @@ -49,11 +49,11 @@ public: void setCookieFileName(const std::string &fileName); const std::vector *getCookies() const; - const CookiesInfo *getMatchCookie(const std::string &url) const; - void updateOrAddCookie(CookiesInfo *cookie); + const CookiesInfo * getMatchCookie(const std::string &url) const; + void updateOrAddCookie(CookiesInfo *cookie); private: - std::string _cookieFileName; + std::string _cookieFileName; std::vector _cookies; }; diff --git a/native/cocos/network/HttpRequest.h b/native/cocos/network/HttpRequest.h index ae28776fb2..f91eef3f74 100644 --- a/native/cocos/network/HttpRequest.h +++ b/native/cocos/network/HttpRequest.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,12 +28,12 @@ #ifndef __HTTP_REQUEST_H__ #define __HTTP_REQUEST_H__ -#include "base/Ref.h" #include "base/Macros.h" +#include "base/Ref.h" +#include #include #include -#include /** * @addtogroup network @@ -102,7 +102,8 @@ public: * @return Ref* always return nullptr. */ Ref *autorelease() { - CCASSERT(false, "HttpResponse is used between network thread and ui thread \ + CCASSERT(false, + "HttpResponse is used between network thread and ui thread \ therefore, autorelease is forbidden here"); return nullptr; } @@ -265,14 +266,14 @@ public: protected: // properties - Type _requestType; /// kHttpRequestGet, kHttpRequestPost or other enums - std::string _url; /// target url that this request is sent to - std::vector _requestData; /// used for POST - std::string _tag; /// user defined tag, to identify different requests in response callback - ccHttpRequestCallback _callback; /// C++11 style callbacks - void *_userData; /// You can add your customed data here - std::vector _headers; /// custom http headers - float _timeoutInSeconds; + Type _requestType; /// kHttpRequestGet, kHttpRequestPost or other enums + std::string _url; /// target url that this request is sent to + std::vector _requestData; /// used for POST + std::string _tag; /// user defined tag, to identify different requests in response callback + ccHttpRequestCallback _callback; /// C++11 style callbacks + void * _userData; /// You can add your customed data here + std::vector _headers; /// custom http headers + float _timeoutInSeconds; }; } // namespace network diff --git a/native/cocos/network/HttpResponse.h b/native/cocos/network/HttpResponse.h index fd85586626..2dc295a856 100644 --- a/native/cocos/network/HttpResponse.h +++ b/native/cocos/network/HttpResponse.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -76,7 +76,8 @@ public: * @return cc::Ref* always return nullptr. */ cc::Ref *autorelease() { - CCASSERT(false, "HttpResponse is used between network thread and ui thread \ + CCASSERT(false, + "HttpResponse is used between network thread and ui thread \ therefore, autorelease is forbidden here"); return nullptr; } @@ -204,13 +205,13 @@ protected: bool initWithRequest(HttpRequest *request); // properties - HttpRequest *_pHttpRequest; /// the corresponding HttpRequest pointer who leads to this response - bool _succeed; /// to indicate if the http request is successful simply - std::vector _responseData; /// the returned raw data. You can also dump it as a string - std::vector _responseHeader; /// the returned raw header data. You can also dump it as a string - long _responseCode; /// the status code returned from libcurl, e.g. 200, 404 - std::string _errorBuffer; /// if _responseCode != 200, please read _errorBuffer to find the reason - std::string _responseDataString; // the returned raw data. You can also dump it as a string + HttpRequest * _pHttpRequest; /// the corresponding HttpRequest pointer who leads to this response + bool _succeed; /// to indicate if the http request is successful simply + std::vector _responseData; /// the returned raw data. You can also dump it as a string + std::vector _responseHeader; /// the returned raw header data. You can also dump it as a string + long _responseCode; /// the status code returned from libcurl, e.g. 200, 404 + std::string _errorBuffer; /// if _responseCode != 200, please read _errorBuffer to find the reason + std::string _responseDataString; // the returned raw data. You can also dump it as a string }; } // namespace network diff --git a/native/cocos/network/SocketIO.cpp b/native/cocos/network/SocketIO.cpp index 3192aac380..31426c972a 100644 --- a/native/cocos/network/SocketIO.cpp +++ b/native/cocos/network/SocketIO.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015 Chris Hannon http://www.channon.us Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,12 +30,12 @@ #include #include #include +#include "application/ApplicationManager.h" #include "base/Log.h" #include "base/UTF8.h" #include "network/HttpClient.h" #include "network/Uri.h" #include "network/WebSocket.h" -#include "application/ApplicationManager.h" #include "json/document-wrapper.h" #include "json/rapidjson.h" @@ -393,7 +393,7 @@ void SIOClientImpl::handshakeResponse(HttpClient * /*sender*/, HttpResponse *res } int32_t statusCode = response->getResponseCode(); - char statusString[64] = {}; + char statusString[64] = {}; sprintf(statusString, "HTTP Status Code: %d, tag = %s", statusCode, response->getHttpRequest()->getTag()); CC_LOG_INFO("response code: %ld", statusCode); @@ -654,7 +654,7 @@ void SIOClientImpl::onOpen(WebSocket * /*ws*/) { _ws->send(s); } - CC_CURRENT_ENGINE()->getScheduler()->schedule([this](auto &&pH1) { this->heartbeat(std::forward(pH1)); }, this, (static_cast(_heartbeat) * .9F), false, "heartbeat"); + CC_CURRENT_ENGINE()->getScheduler()->schedule([this](auto &&pH1) { this->heartbeat(std::forward(pH1)); }, this, (static_cast(_heartbeat) * .9F), false, "heartbeat"); for (auto &client : _clients) { client.second->onOpen(); @@ -746,7 +746,7 @@ void SIOClientImpl::onMessage(WebSocket * /*ws*/, const WebSocket::Data &data) { pos2 = sData.find(','); if (pos2 > pos) { eventname = sData.substr(pos + 2, pos2 - (pos + 3)); - sData = sData.substr(pos2 + 9, sData.size() - (pos2 + 11)); + sData = sData.substr(pos2 + 9, sData.size() - (pos2 + 11)); } c->fireEvent(eventname, sData); diff --git a/native/cocos/network/SocketIO.h b/native/cocos/network/SocketIO.h index 4ba4a727da..8f9c91e016 100644 --- a/native/cocos/network/SocketIO.h +++ b/native/cocos/network/SocketIO.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2015 Chris Hannon http://www.channon.us Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/WebSocket-apple.mm b/native/cocos/network/WebSocket-apple.mm index 8770bc932e..5f0b72f483 100644 --- a/native/cocos/network/WebSocket-apple.mm +++ b/native/cocos/network/WebSocket-apple.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/network/WebSocket-libwebsockets.cpp b/native/cocos/network/WebSocket-libwebsockets.cpp index 36247bb2f0..86a5d2cb63 100644 --- a/native/cocos/network/WebSocket-libwebsockets.cpp +++ b/native/cocos/network/WebSocket-libwebsockets.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -53,10 +53,10 @@ #include #include #include +#include "application/ApplicationManager.h" #include "base/Scheduler.h" #include "network/Uri.h" #include "network/WebSocket.h" -#include "application/ApplicationManager.h" #include "platform/FileUtils.h" #include "platform/StdC.h" diff --git a/native/cocos/network/WebSocket.h b/native/cocos/network/WebSocket.h index 7dbcf3ed4f..b2e96d1574 100644 --- a/native/cocos/network/WebSocket.h +++ b/native/cocos/network/WebSocket.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -31,9 +31,9 @@ #include "base/Ref.h" #include "platform/StdC.h" +#include #include #include -#include #ifndef OBJC_CLASS #ifdef __OBJC__ #define OBJC_CLASS(name) @class name @@ -87,10 +87,10 @@ public: */ struct Data { Data() = default; - char *bytes{nullptr}; + char * bytes{nullptr}; ssize_t len{0}, issued{0}; - bool isBinary{false}; - void *ext{nullptr}; + bool isBinary{false}; + void * ext{nullptr}; ssize_t getRemain() const { return std::max(static_cast(0), len - issued); } }; @@ -166,10 +166,10 @@ public: * @return true: Success, false: Failure. * @lua NA */ - bool init(const Delegate &delegate, - const std::string &url, - const std::vector *protocols = nullptr, - const std::string &caFilePath = ""); + bool init(const Delegate & delegate, + const std::string & url, + const std::vector *protocols = nullptr, + const std::string & caFilePath = ""); /** * @brief Sends string data to websocket server. diff --git a/native/cocos/network/WebSocketServer.cpp b/native/cocos/network/WebSocketServer.cpp index 4517d5a5c2..7ad8660c3a 100644 --- a/native/cocos/network/WebSocketServer.cpp +++ b/native/cocos/network/WebSocketServer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,14 +27,14 @@ #if (USE_SOCKET > 0) && (USE_WEBSOCKET_SERVER > 0) - #include - #include #include + #include + #include - #include "cocos/network/WebSocketServer.h" #include "cocos/application/ApplicationManager.h" - #include "cocos/base/Scheduler.h" #include "cocos/base/Log.h" + #include "cocos/base/Scheduler.h" + #include "cocos/network/WebSocketServer.h" #define MAX_MSG_PAYLOAD 2048 #define SEND_BUFF 1024 @@ -60,13 +60,13 @@ const struct lws_extension exts[] = { {nullptr, nullptr, nullptr}}; struct AsyncTaskData { - std::mutex mtx; + std::mutex mtx; std::list> tasks; }; // run in server thread loop void flush_tasks_in_server_loop_cb(uv_async_t *asyn) { - AsyncTaskData *data = (AsyncTaskData *)asyn->data; + AsyncTaskData * data = (AsyncTaskData *)asyn->data; std::lock_guard guard(data->mtx); while (!data->tasks.empty()) { // fetch task, run task @@ -83,7 +83,6 @@ void init_libuv_async_handle(uv_loop_t *loop, uv_async_t *async) { // run in game thread, dispatch runnable object into server loop void schedule_task_into_server_thread_task_queue(uv_async_t *asyn, std::function func) { - AsyncTaskData *data = (AsyncTaskData *)asyn->data; if (data) { std::lock_guard guard(data->mtx); @@ -97,12 +96,12 @@ void schedule_task_into_server_thread_task_queue(uv_async_t *asyn, std::function namespace cc { namespace network { - - #define RUN_IN_GAMETHREAD(task) \ - do { \ - CC_CURRENT_ENGINE()->getScheduler()->performFunctionInCocosThread([=]() { \ - task; \ - }); \ + + #define RUN_IN_GAMETHREAD(task) \ + do { \ + CC_CURRENT_ENGINE()->getScheduler()->performFunctionInCocosThread([=]() { \ + task; \ + }); \ } while (0) #define DISPATCH_CALLBACK_IN_GAMETHREAD() \ @@ -216,16 +215,16 @@ void WebSocketServer::listen(std::shared_ptr server, int port, struct lws_context_creation_info info; memset(&info, 0, sizeof(info)); - info.port = port; - info.iface = server->_host.empty() ? nullptr : server->_host.c_str(); - info.protocols = protocols; - info.gid = -1; - info.uid = -1; - info.extensions = exts; - info.options = LWS_SERVER_OPTION_VALIDATE_UTF8 | LWS_SERVER_OPTION_LIBUV | LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME; - info.timeout_secs = 60; // + info.port = port; + info.iface = server->_host.empty() ? nullptr : server->_host.c_str(); + info.protocols = protocols; + info.gid = -1; + info.uid = -1; + info.extensions = exts; + info.options = LWS_SERVER_OPTION_VALIDATE_UTF8 | LWS_SERVER_OPTION_LIBUV | LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME; + info.timeout_secs = 60; // info.max_http_header_pool = 1; - info.user = server.get(); + info.user = server.get(); server->_ctx = lws_create_context(&info); @@ -275,7 +274,7 @@ void WebSocketServer::listenAsync(std::shared_ptr &server, int } std::vector> WebSocketServer::getConnections() const { - std::lock_guard guard(_connsMtx); + std::lock_guard guard(_connsMtx); std::vector> ret; for (auto itr : _conns) { ret.emplace_back(itr.second); @@ -316,13 +315,13 @@ void WebSocketServer::onCloseClient(struct lws *wsi) { void WebSocketServer::onCloseClientInit(struct lws *wsi, void *in, int len) { int16_t code; - char *msg = nullptr; + char * msg = nullptr; std::shared_ptr conn = findConnection(wsi); if (conn && len > 2) { code = ntohs(*(int16_t *)in); - msg = (char *)in + sizeof(code); + msg = (char *)in + sizeof(code); std::string cp(msg, len - sizeof(code)); conn->onClientCloseInit(code, cp); } else { @@ -354,11 +353,10 @@ void WebSocketServer::onClientHTTP(struct lws *wsi) { } std::shared_ptr WebSocketServer::findConnection(struct lws *wsi) { - std::shared_ptr conn; { std::lock_guard guard(_connsMtx); - auto itr = _conns.find(wsi); + auto itr = _conns.find(wsi); if (itr != _conns.end()) { conn = itr->second; } @@ -418,9 +416,9 @@ void WebSocketServerConnection::sendBinaryAsync(const void *in, size_t len, std: bool WebSocketServerConnection::close(int code, std::string message) { if (!_wsi) return false; - _readyState = ReadyState::CLOSING; + _readyState = ReadyState::CLOSING; _closeReason = message; - _closeCode = code; + _closeCode = code; onClientCloseInit(); //trigger callback to return -1 which indicates connection closed lws_callback_on_writable(_wsi); @@ -437,7 +435,7 @@ void WebSocketServerConnection::onConnected() { } void WebSocketServerConnection::onDataReceive(void *in, int len) { - bool isFinal = (bool)lws_is_final_fragment(_wsi); + bool isFinal = (bool)lws_is_final_fragment(_wsi); bool isBinary = (bool)lws_frame_is_binary(_wsi); if (!_prevPkg) { @@ -469,10 +467,10 @@ int WebSocketServerConnection::onDrainData() { return -1; } if (_readyState != ReadyState::OPEN) return 0; - unsigned char *p = nullptr; - int send_len = 0; - int finish_len = 0; - int flags = 0; + unsigned char *p = nullptr; + int send_len = 0; + int finish_len = 0; + int flags = 0; std::vector buff(SEND_BUFF + LWS_PRE); @@ -527,13 +525,12 @@ void WebSocketServerConnection::onHTTP() { _headers.clear(); - int n = 0, len; + int n = 0, len; std::vector buf(256); - const char *c; + const char * c; do { - lws_token_indexes idx = static_cast(n); - c = (const char *)lws_token_to_string(idx); + c = (const char *)lws_token_to_string(idx); if (!c) { n++; break; @@ -553,7 +550,7 @@ void WebSocketServerConnection::onHTTP() { } void WebSocketServerConnection::onClientCloseInit(int code, const std::string &msg) { - _closeCode = code; + _closeCode = code; _closeReason = msg; } @@ -594,9 +591,9 @@ std::map WebSocketServerConnection::getHeaders() { int WebSocketServer::_websocketServerCallback(struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len) { - int ret = 0; + int ret = 0; WebSocketServer *server = nullptr; - lws_context *ctx = nullptr; + lws_context * ctx = nullptr; if (wsi) ctx = lws_get_context(wsi); diff --git a/native/cocos/network/WebSocketServer.h b/native/cocos/network/WebSocketServer.h index b90ebe5ab0..1404314b1d 100644 --- a/native/cocos/network/WebSocketServer.h +++ b/native/cocos/network/WebSocketServer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/PhysicsSDK.h b/native/cocos/physics/PhysicsSDK.h index 433e865de6..9b27a61542 100644 --- a/native/cocos/physics/PhysicsSDK.h +++ b/native/cocos/physics/PhysicsSDK.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,7 +25,7 @@ #pragma once -#include "physics/sdk/World.h" +#include "physics/sdk/Joint.h" #include "physics/sdk/RigidBody.h" #include "physics/sdk/Shape.h" -#include "physics/sdk/Joint.h" +#include "physics/sdk/World.h" diff --git a/native/cocos/physics/PhysicsSelector.h b/native/cocos/physics/PhysicsSelector.h index 6fdf4ba78d..0dc6b78efb 100644 --- a/native/cocos/physics/PhysicsSelector.h +++ b/native/cocos/physics/PhysicsSelector.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,15 +29,15 @@ #include "physics/bullet/Bullet.h" #else #include "physics/physx/PhysX.h" - #define WrappedWorld PhysXWorld - #define WrappedRigidBody PhysXRigidBody - #define WrappedSphereShape PhysXSphere - #define WrappedBoxShape PhysXBox - #define WrappedPlaneShape PhysXPlane - #define WrappedCapsuleShape PhysXCapsule - #define WrappedTrimeshShape PhysXTrimesh - #define WrappedTerrainShape PhysXTerrain - #define WrappedConeShape PhysXCone + #define WrappedWorld PhysXWorld + #define WrappedRigidBody PhysXRigidBody + #define WrappedSphereShape PhysXSphere + #define WrappedBoxShape PhysXBox + #define WrappedPlaneShape PhysXPlane + #define WrappedCapsuleShape PhysXCapsule + #define WrappedTrimeshShape PhysXTrimesh + #define WrappedTerrainShape PhysXTerrain + #define WrappedConeShape PhysXCone #define WrappedCylinderShape PhysXCylinder #define WrappedRevoluteJoint PhysXRevolute #define WrappedDistanceJoint PhysXDistance diff --git a/native/cocos/physics/physx/PhysX.h b/native/cocos/physics/physx/PhysX.h index f7ed2e8057..db44d4b747 100644 --- a/native/cocos/physics/physx/PhysX.h +++ b/native/cocos/physics/physx/PhysX.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXEventManager.cpp b/native/cocos/physics/physx/PhysXEventManager.cpp index ae818ab72f..6705c0451d 100644 --- a/native/cocos/physics/physx/PhysXEventManager.cpp +++ b/native/cocos/physics/physx/PhysXEventManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXEventManager.h b/native/cocos/physics/physx/PhysXEventManager.h index 9b1f5695d6..21282f0aba 100644 --- a/native/cocos/physics/physx/PhysXEventManager.h +++ b/native/cocos/physics/physx/PhysXEventManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,11 +25,11 @@ #pragma once -#include "physics/spec/IWorld.h" -#include "physics/physx/PhysXInc.h" -#include "base/Macros.h" #include #include +#include "base/Macros.h" +#include "physics/physx/PhysXInc.h" +#include "physics/spec/IWorld.h" namespace cc { namespace physics { @@ -45,27 +45,27 @@ public: } struct SimulationEventCallback : public physx::PxSimulationEventCallback { - void onConstraintBreak(physx::PxConstraintInfo * /*constraints*/, physx::PxU32 /*count*/) override{}; - void onWake(physx::PxActor ** /*actors*/, physx::PxU32 /*count*/) override{}; - void onSleep(physx::PxActor ** /*actors*/, physx::PxU32 /*count*/) override{}; - void onTrigger(physx::PxTriggerPair * /*pairs*/, physx::PxU32 /*count*/) override; - void onContact(const physx::PxContactPairHeader & /*pairHeader*/, const physx::PxContactPair * /*pairs*/, physx::PxU32 /*nbPairs*/) override; - void onAdvance(const physx::PxRigidBody *const * /*bodyBuffer*/, const physx::PxTransform * /*poseBuffer*/, const physx::PxU32 /*count*/) override{}; + void onConstraintBreak(physx::PxConstraintInfo * /*constraints*/, physx::PxU32 /*count*/) override{}; + void onWake(physx::PxActor ** /*actors*/, physx::PxU32 /*count*/) override{}; + void onSleep(physx::PxActor ** /*actors*/, physx::PxU32 /*count*/) override{}; + void onTrigger(physx::PxTriggerPair * /*pairs*/, physx::PxU32 /*count*/) override; + void onContact(const physx::PxContactPairHeader & /*pairHeader*/, const physx::PxContactPair * /*pairs*/, physx::PxU32 /*nbPairs*/) override; + void onAdvance(const physx::PxRigidBody *const * /*bodyBuffer*/, const physx::PxTransform * /*poseBuffer*/, const physx::PxU32 /*count*/) override{}; PhysXEventManager *mManager; public: explicit SimulationEventCallback(PhysXEventManager *m) : mManager(m) {} }; - inline SimulationEventCallback &getEventCallback() { return *_mCallback; } + inline SimulationEventCallback & getEventCallback() { return *_mCallback; } inline std::vector> &getTriggerPairs() { return _mTriggerPairs; } inline std::vector> &getConatctPairs() { return _mConatctPairs; } - void refreshPairs(); + void refreshPairs(); private: std::vector> _mTriggerPairs; std::vector> _mConatctPairs; - SimulationEventCallback *_mCallback; + SimulationEventCallback * _mCallback; }; } // namespace physics diff --git a/native/cocos/physics/physx/PhysXFilterShader.cpp b/native/cocos/physics/physx/PhysXFilterShader.cpp index 83b63a5406..bacb975118 100644 --- a/native/cocos/physics/physx/PhysXFilterShader.cpp +++ b/native/cocos/physics/physx/PhysXFilterShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,8 +23,8 @@ THE SOFTWARE. ****************************************************************************/ -#include "physics/physx/PhysXInc.h" #include "physics/physx/PhysXFilterShader.h" +#include "physics/physx/PhysXInc.h" namespace cc { namespace physics { @@ -32,7 +32,7 @@ namespace physics { physx::PxFilterFlags simpleFilterShader( physx::PxFilterObjectAttributes attributes0, physx::PxFilterData fd0, physx::PxFilterObjectAttributes attributes1, physx::PxFilterData fd1, - physx::PxPairFlags &pairFlags, const void* constantBlock, physx::PxU32 constantBlockSize){ + physx::PxPairFlags& pairFlags, const void* constantBlock, physx::PxU32 constantBlockSize) { PX_UNUSED(constantBlock); PX_UNUSED(constantBlockSize); // group mask filter @@ -56,7 +56,7 @@ physx::PxFilterFlags simpleFilterShader( physx::PxFilterFlags advanceFilterShader( physx::PxFilterObjectAttributes attributes0, physx::PxFilterData fd0, physx::PxFilterObjectAttributes attributes1, physx::PxFilterData fd1, - physx::PxPairFlags &pairFlags, const void* constantBlock, physx::PxU32 constantBlockSize){ + physx::PxPairFlags& pairFlags, const void* constantBlock, physx::PxU32 constantBlockSize) { PX_UNUSED(constantBlock); PX_UNUSED(constantBlockSize); // group mask filter diff --git a/native/cocos/physics/physx/PhysXFilterShader.h b/native/cocos/physics/physx/PhysXFilterShader.h index b6fbf50df8..ba537b848e 100644 --- a/native/cocos/physics/physx/PhysXFilterShader.h +++ b/native/cocos/physics/physx/PhysXFilterShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,18 +41,18 @@ constexpr physx::PxU32 DETECT_CONTACT_CCD = 1 << 6; physx::PxFilterFlags simpleFilterShader( physx::PxFilterObjectAttributes attributes0, physx::PxFilterData fd0, physx::PxFilterObjectAttributes attributes1, physx::PxFilterData fd1, - physx::PxPairFlags &pairFlags, const void* constantBlock, physx::PxU32 constantBlockSize); + physx::PxPairFlags &pairFlags, const void *constantBlock, physx::PxU32 constantBlockSize); physx::PxFilterFlags advanceFilterShader( physx::PxFilterObjectAttributes attributes0, physx::PxFilterData fd0, physx::PxFilterObjectAttributes attributes1, physx::PxFilterData fd1, - physx::PxPairFlags &pairFlags, const void* constantBlock, physx::PxU32 constantBlockSize); + physx::PxPairFlags &pairFlags, const void *constantBlock, physx::PxU32 constantBlockSize); class QueryFilterShader : public physx::PxSceneQueryFilterCallback { public: physx::PxQueryHitType::Enum preFilter(const physx::PxFilterData &filterData, const physx::PxShape *shape, - const physx::PxRigidActor *actor, physx::PxHitFlags &queryFlags) override; - physx::PxQueryHitType::Enum postFilter(const physx::PxFilterData & filterData, const physx::PxQueryHit & hit) override { + const physx::PxRigidActor *actor, physx::PxHitFlags &queryFlags) override; + physx::PxQueryHitType::Enum postFilter(const physx::PxFilterData &filterData, const physx::PxQueryHit &hit) override { PX_UNUSED(filterData); PX_UNUSED(hit); return physx::PxQueryHitType::eNONE; diff --git a/native/cocos/physics/physx/PhysXInc.h b/native/cocos/physics/physx/PhysXInc.h index e4bc9a3ef4..805d42d33a 100644 --- a/native/cocos/physics/physx/PhysXInc.h +++ b/native/cocos/physics/physx/PhysXInc.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXRigidBody.cpp b/native/cocos/physics/physx/PhysXRigidBody.cpp index dcb728e40a..ba1ccbfef1 100644 --- a/native/cocos/physics/physx/PhysXRigidBody.cpp +++ b/native/cocos/physics/physx/PhysXRigidBody.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXRigidBody.h b/native/cocos/physics/physx/PhysXRigidBody.h index fca5837884..6b37b85e4c 100644 --- a/native/cocos/physics/physx/PhysXRigidBody.h +++ b/native/cocos/physics/physx/PhysXRigidBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,7 +41,7 @@ public: inline const PhysXSharedBody &getSharedBody() const { return *_mSharedBody; } inline PhysXSharedBody & getSharedBody() { return *_mSharedBody; } inline uintptr_t getImpl() override { return reinterpret_cast(this); } - inline uintptr_t getNodeHandle() override { return reinterpret_cast(this->_mSharedBody->getNode());} + inline uintptr_t getNodeHandle() override { return reinterpret_cast(this->_mSharedBody->getNode()); } void initialize(scene::Node *node, ERigidBodyType t, uint32_t g) override; void onEnable() override; void onDisable() override; diff --git a/native/cocos/physics/physx/PhysXSharedBody.cpp b/native/cocos/physics/physx/PhysXSharedBody.cpp index 2b636cb908..6d7e3aa28d 100644 --- a/native/cocos/physics/physx/PhysXSharedBody.cpp +++ b/native/cocos/physics/physx/PhysXSharedBody.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -105,7 +105,7 @@ void PhysXSharedBody::setType(ERigidBodyType v) { } else { _mImpl.ptr = reinterpret_cast(_mDynamicActor); _mImpl.rigidDynamic->setRigidBodyFlag(physx::PxRigidBodyFlag::eKINEMATIC, _mType == ERigidBodyType::KINEMATIC); - } + } } void PhysXSharedBody::reference(bool v) { diff --git a/native/cocos/physics/physx/PhysXSharedBody.h b/native/cocos/physics/physx/PhysXSharedBody.h index e14ebc3e66..64350f0db9 100644 --- a/native/cocos/physics/physx/PhysXSharedBody.h +++ b/native/cocos/physics/physx/PhysXSharedBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXUtils.cpp b/native/cocos/physics/physx/PhysXUtils.cpp index 202be7d443..228911d76c 100644 --- a/native/cocos/physics/physx/PhysXUtils.cpp +++ b/native/cocos/physics/physx/PhysXUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/PhysXUtils.h b/native/cocos/physics/physx/PhysXUtils.h index 74300b7beb..115dd8060a 100644 --- a/native/cocos/physics/physx/PhysXUtils.h +++ b/native/cocos/physics/physx/PhysXUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,16 +25,16 @@ #pragma once -#include "physics/physx/PhysXInc.h" -#include "physics/physx/PhysXFilterShader.h" +#include +#include #include "base/Macros.h" #include "math/Vec3.h" #include "math/Vec4.h" -#include -#include +#include "physics/physx/PhysXFilterShader.h" +#include "physics/physx/PhysXInc.h" -#define PX_RELEASE(x) \ - if (x) { \ +#define PX_RELEASE(x) \ + if (x) { \ (x)->release(); \ (x) = NULL; \ } diff --git a/native/cocos/physics/physx/PhysXWorld.cpp b/native/cocos/physics/physx/PhysXWorld.cpp index 3f6c6fe144..3523713e51 100644 --- a/native/cocos/physics/physx/PhysXWorld.cpp +++ b/native/cocos/physics/physx/PhysXWorld.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,8 +26,8 @@ #include "physics/physx/PhysXWorld.h" #include "physics/physx/PhysXFilterShader.h" #include "physics/physx/PhysXInc.h" -#include "physics/physx/joints/PhysXJoint.h" #include "physics/physx/PhysXUtils.h" +#include "physics/physx/joints/PhysXJoint.h" #include "physics/spec/IWorld.h" namespace cc { @@ -86,7 +86,7 @@ PhysXWorld::PhysXWorld() { } PhysXWorld::~PhysXWorld() { - auto& materialMap = getPxMaterialMap(); + auto &materialMap = getPxMaterialMap(); // clear material cache materialMap.clear(); delete _mEventMgr; @@ -178,7 +178,7 @@ uintptr_t PhysXWorld::createMaterial(uint16_t id, float f, float df, float r, physx::PxMaterial *mat; auto & m = getPxMaterialMap(); if (m.find(id) == m.end()) { - mat = PxGetPhysics().createMaterial(f, df, r); + mat = PxGetPhysics().createMaterial(f, df, r); // add reference count avoid auto releasing by physx mat->acquireReference(); m[id] = reinterpret_cast(mat); diff --git a/native/cocos/physics/physx/PhysXWorld.h b/native/cocos/physics/physx/PhysXWorld.h index 988726d57b..49dda13351 100644 --- a/native/cocos/physics/physx/PhysXWorld.h +++ b/native/cocos/physics/physx/PhysXWorld.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -46,20 +46,20 @@ public: static physx::PxPhysics & getPhysics(); PhysXWorld(); ~PhysXWorld() override; - void step(float fixedTimeStep) override; - void setGravity(float x, float y, float z) override; - void setAllowSleep(bool v) override; - void emitEvents() override; - void setCollisionMatrix(uint32_t index, uint32_t mask) override; - bool raycast(RaycastOptions &opt) override; - bool raycastClosest(RaycastOptions &opt) override; - std::vector &raycastResult() override; - RaycastResult & raycastClosestResult() override; - uintptr_t createConvex(ConvexDesc &desc) override; - uintptr_t createTrimesh(TrimeshDesc &desc) override; - uintptr_t createHeightField(HeightFieldDesc &desc) override; - uintptr_t createMaterial(uint16_t id, float f, float df, float r, - uint8_t m0, uint8_t m1) override; + void step(float fixedTimeStep) override; + void setGravity(float x, float y, float z) override; + void setAllowSleep(bool v) override; + void emitEvents() override; + void setCollisionMatrix(uint32_t index, uint32_t mask) override; + bool raycast(RaycastOptions &opt) override; + bool raycastClosest(RaycastOptions &opt) override; + std::vector & raycastResult() override; + RaycastResult & raycastClosestResult() override; + uintptr_t createConvex(ConvexDesc &desc) override; + uintptr_t createTrimesh(TrimeshDesc &desc) override; + uintptr_t createHeightField(HeightFieldDesc &desc) override; + uintptr_t createMaterial(uint16_t id, float f, float df, float r, + uint8_t m0, uint8_t m1) override; inline std::vector> &getTriggerEventPairs() override { return _mEventMgr->getTriggerPairs(); } @@ -77,10 +77,10 @@ public: } inline physx::PxScene &getScene() const { return *_mScene; } - uint32_t getMaskByIndex(uint32_t i); - void syncPhysicsToScene(); - void addActor(const PhysXSharedBody &sb); - void removeActor(const PhysXSharedBody &sb); + uint32_t getMaskByIndex(uint32_t i); + void syncPhysicsToScene(); + void addActor(const PhysXSharedBody &sb); + void removeActor(const PhysXSharedBody &sb); private: static PhysXWorld * instance; diff --git a/native/cocos/physics/physx/joints/PhysXDistance.cpp b/native/cocos/physics/physx/joints/PhysXDistance.cpp index 1b3d8baf50..2b85e556e5 100644 --- a/native/cocos/physics/physx/joints/PhysXDistance.cpp +++ b/native/cocos/physics/physx/joints/PhysXDistance.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,9 +24,9 @@ ****************************************************************************/ #include "physics/physx/joints/PhysXDistance.h" +#include "math/Quaternion.h" #include "physics/physx/PhysXSharedBody.h" #include "physics/physx/PhysXUtils.h" -#include "math/Quaternion.h" namespace cc { namespace physics { @@ -59,7 +59,7 @@ void PhysXDistance::updateScale1() { void PhysXDistance::updatePose() { physx::PxTransform pose0{physx::PxIdentity}; physx::PxTransform pose1{physx::PxIdentity}; - auto* node0 = _mSharedBody->getNode(); + auto * node0 = _mSharedBody->getNode(); node0->updateWorldTransform(); pose0.p = _mPivotA * node0->getWorldScale(); _mJoint->setLocalPose(physx::PxJointActorIndex::eACTOR0, pose0); diff --git a/native/cocos/physics/physx/joints/PhysXDistance.h b/native/cocos/physics/physx/joints/PhysXDistance.h index 3372d03d81..75e209b182 100644 --- a/native/cocos/physics/physx/joints/PhysXDistance.h +++ b/native/cocos/physics/physx/joints/PhysXDistance.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,8 +40,8 @@ public: void updateScale1() override; private: - void onComponentSet() override; - void updatePose(); + void onComponentSet() override; + void updatePose(); physx::PxVec3 _mPivotA; physx::PxVec3 _mPivotB; }; diff --git a/native/cocos/physics/physx/joints/PhysXJoint.cpp b/native/cocos/physics/physx/joints/PhysXJoint.cpp index 4459232290..d3127ac387 100644 --- a/native/cocos/physics/physx/joints/PhysXJoint.cpp +++ b/native/cocos/physics/physx/joints/PhysXJoint.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/joints/PhysXJoint.h b/native/cocos/physics/physx/joints/PhysXJoint.h index 59e4e280e9..8e55e8b94a 100644 --- a/native/cocos/physics/physx/joints/PhysXJoint.h +++ b/native/cocos/physics/physx/joints/PhysXJoint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,17 +40,17 @@ class PhysXJoint : virtual public IBaseJoint { public: ~PhysXJoint() override = default; - inline uintptr_t getImpl() override { return reinterpret_cast(this); } - void initialize(scene::Node *node) override; - void onEnable() override; - void onDisable() override; - void onDestroy() override; - void setConnectedBody(uintptr_t v) override; - void setEnableCollision(bool v) override; - virtual void updateScale0() = 0; - virtual void updateScale1() = 0; + inline uintptr_t getImpl() override { return reinterpret_cast(this); } + void initialize(scene::Node *node) override; + void onEnable() override; + void onDisable() override; + void onDestroy() override; + void setConnectedBody(uintptr_t v) override; + void setEnableCollision(bool v) override; + virtual void updateScale0() = 0; + virtual void updateScale1() = 0; static physx::PxRigidActor &getTempRigidActor(); - static void releaseTempRigidActor(); + static void releaseTempRigidActor(); protected: physx::PxJoint * _mJoint{nullptr}; @@ -60,7 +60,7 @@ protected: virtual void onComponentSet() = 0; private: - static physx::PxRigidActor* tempRigidActor; + static physx::PxRigidActor *tempRigidActor; }; } // namespace physics diff --git a/native/cocos/physics/physx/joints/PhysXRevolute.cpp b/native/cocos/physics/physx/joints/PhysXRevolute.cpp index f34b9c72d1..952de3f93b 100644 --- a/native/cocos/physics/physx/joints/PhysXRevolute.cpp +++ b/native/cocos/physics/physx/joints/PhysXRevolute.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,9 +24,9 @@ ****************************************************************************/ #include "physics/physx/joints/PhysXRevolute.h" +#include "math/Quaternion.h" #include "physics/physx/PhysXSharedBody.h" #include "physics/physx/PhysXUtils.h" -#include "math/Quaternion.h" namespace cc { namespace physics { @@ -55,17 +55,17 @@ void PhysXRevolute::setAxis(float x, float y, float z) { } void PhysXRevolute::updateScale0() { - updatePose(); + updatePose(); } void PhysXRevolute::updateScale1() { - updatePose(); + updatePose(); } void PhysXRevolute::updatePose() { physx::PxTransform pose0{physx::PxIdentity}; physx::PxTransform pose1{physx::PxIdentity}; - auto *node0 = _mSharedBody->getNode(); + auto * node0 = _mSharedBody->getNode(); node0->updateWorldTransform(); pose0.p = _mPivotA * node0->getWorldScale(); pxSetFromTwoVectors(pose0.q, physx::PxVec3{1.F, 0.F, 0.F}, _mAxis); diff --git a/native/cocos/physics/physx/joints/PhysXRevolute.h b/native/cocos/physics/physx/joints/PhysXRevolute.h index 312297554a..c22929b1bb 100644 --- a/native/cocos/physics/physx/joints/PhysXRevolute.h +++ b/native/cocos/physics/physx/joints/PhysXRevolute.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,8 +41,8 @@ public: void updateScale1() override; private: - void onComponentSet() override; - void updatePose(); + void onComponentSet() override; + void updatePose(); physx::PxVec3 _mPivotA; physx::PxVec3 _mPivotB; physx::PxVec3 _mAxis; diff --git a/native/cocos/physics/physx/shapes/PhysXBox.cpp b/native/cocos/physics/physx/shapes/PhysXBox.cpp index 0bed8f98a0..98a8cea54e 100644 --- a/native/cocos/physics/physx/shapes/PhysXBox.cpp +++ b/native/cocos/physics/physx/shapes/PhysXBox.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,10 +23,10 @@ THE SOFTWARE. ****************************************************************************/ -#include "physics/physx/shapes/PhysXShape.h" #include "physics/physx/shapes/PhysXBox.h" #include "physics/physx/PhysXUtils.h" #include "physics/physx/PhysXWorld.h" +#include "physics/physx/shapes/PhysXShape.h" namespace cc { namespace physics { @@ -52,8 +52,8 @@ void PhysXBox::updateScale() { } void PhysXBox::updateGeometry() { - auto *node = getSharedBody().getNode(); - auto &geo = getPxGeometry(); + auto *node = getSharedBody().getNode(); + auto &geo = getPxGeometry(); geo.halfExtents = _mHalfExtents; node->updateWorldTransform(); geo.halfExtents *= node->getWorldScale(); diff --git a/native/cocos/physics/physx/shapes/PhysXBox.h b/native/cocos/physics/physx/shapes/PhysXBox.h index 6ed2d13a05..7a817510b5 100644 --- a/native/cocos/physics/physx/shapes/PhysXBox.h +++ b/native/cocos/physics/physx/shapes/PhysXBox.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -39,8 +39,8 @@ public: private: physx::PxVec3 _mHalfExtents; - void updateGeometry(); - void onComponentSet() override; + void updateGeometry(); + void onComponentSet() override; }; } // namespace physics diff --git a/native/cocos/physics/physx/shapes/PhysXCapsule.cpp b/native/cocos/physics/physx/shapes/PhysXCapsule.cpp index ab1bd0624d..d2584de50f 100644 --- a/native/cocos/physics/physx/shapes/PhysXCapsule.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCapsule.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXCapsule.h b/native/cocos/physics/physx/shapes/PhysXCapsule.h index 824b3484ee..8da114f02e 100644 --- a/native/cocos/physics/physx/shapes/PhysXCapsule.h +++ b/native/cocos/physics/physx/shapes/PhysXCapsule.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,11 +40,11 @@ public: void updateScale() override; private: - float _mRadius; - float _mCylinderHeight; + float _mRadius; + float _mCylinderHeight; EAxisDirection _mDirection; - void updateGeometry(); - void onComponentSet() override; + void updateGeometry(); + void onComponentSet() override; }; } // namespace physics diff --git a/native/cocos/physics/physx/shapes/PhysXCone.cpp b/native/cocos/physics/physx/shapes/PhysXCone.cpp index 2b37617b6e..ddfdd30d70 100644 --- a/native/cocos/physics/physx/shapes/PhysXCone.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCone.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -62,7 +62,7 @@ void PhysXCone::setCone(float r, float h, EAxisDirection d) { void PhysXCone::updateGeometry() { if (!_mShape) return; static physx::PxMeshScale scale; - auto *node = getSharedBody().getNode(); + auto * node = getSharedBody().getNode(); node->updateWorldTransform(); pxSetVec3Ext(scale.scale, node->getWorldScale()); scale.scale.y *= std::max(0.0001F, _mData.height / 2); diff --git a/native/cocos/physics/physx/shapes/PhysXCone.h b/native/cocos/physics/physx/shapes/PhysXCone.h index 49200c689f..b86969f082 100644 --- a/native/cocos/physics/physx/shapes/PhysXCone.h +++ b/native/cocos/physics/physx/shapes/PhysXCone.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -48,7 +48,7 @@ private: physx::PxConvexMesh *_mMesh; Cone _mData; void updateGeometry(); - void onComponentSet() override; + void onComponentSet() override; }; } // namespace physics diff --git a/native/cocos/physics/physx/shapes/PhysXCylinder.cpp b/native/cocos/physics/physx/shapes/PhysXCylinder.cpp index f8ad8fa905..5bb8fd492a 100644 --- a/native/cocos/physics/physx/shapes/PhysXCylinder.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCylinder.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -63,7 +63,7 @@ void PhysXCylinder::setCylinder(float r, float h, EAxisDirection d) { void PhysXCylinder::updateGeometry() { if (!_mShape) return; static physx::PxMeshScale scale; - auto *node = getSharedBody().getNode(); + auto * node = getSharedBody().getNode(); node->updateWorldTransform(); pxSetVec3Ext(scale.scale, node->getWorldScale()); scale.scale.y *= std::max(0.0001F, _mData.height / 2); diff --git a/native/cocos/physics/physx/shapes/PhysXCylinder.h b/native/cocos/physics/physx/shapes/PhysXCylinder.h index 68fac46535..e045644c41 100644 --- a/native/cocos/physics/physx/shapes/PhysXCylinder.h +++ b/native/cocos/physics/physx/shapes/PhysXCylinder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -48,7 +48,7 @@ private: physx::PxConvexMesh *_mMesh; Cylinder _mData; void updateGeometry(); - void onComponentSet() override; + void onComponentSet() override; }; } // namespace physics diff --git a/native/cocos/physics/physx/shapes/PhysXPlane.cpp b/native/cocos/physics/physx/shapes/PhysXPlane.cpp index 6f4eeb1c05..4ff587a34e 100644 --- a/native/cocos/physics/physx/shapes/PhysXPlane.cpp +++ b/native/cocos/physics/physx/shapes/PhysXPlane.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,17 +23,16 @@ THE SOFTWARE. ****************************************************************************/ -#include "physics/physx/shapes/PhysXShape.h" #include "physics/physx/shapes/PhysXPlane.h" #include "physics/physx/PhysXUtils.h" #include "physics/physx/PhysXWorld.h" +#include "physics/physx/shapes/PhysXShape.h" namespace cc { namespace physics { PhysXPlane::PhysXPlane() : _mConstant(0.F), - _mNormal(0.F, 1.F, 0.F) - {}; + _mNormal(0.F, 1.F, 0.F){}; void PhysXPlane::setConstant(float x) { _mConstant = x; @@ -55,8 +54,8 @@ void PhysXPlane::updateScale() { } void PhysXPlane::updateCenter() { - auto *node = getSharedBody().getNode(); - auto &geo = getPxGeometry(); + auto * node = getSharedBody().getNode(); + auto & geo = getPxGeometry(); physx::PxTransform local; pxSetFromTwoVectors(local.q, physx::PxVec3{1.F, 0.F, 0.F}, _mNormal); local.p = _mNormal * _mConstant + _mCenter; diff --git a/native/cocos/physics/physx/shapes/PhysXPlane.h b/native/cocos/physics/physx/shapes/PhysXPlane.h index 2615650530..b36ef6f96f 100644 --- a/native/cocos/physics/physx/shapes/PhysXPlane.h +++ b/native/cocos/physics/physx/shapes/PhysXPlane.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,8 +41,8 @@ public: private: physx::PxVec3 _mNormal; physx::PxReal _mConstant; - void updateCenter() override; - void onComponentSet() override; + void updateCenter() override; + void onComponentSet() override; }; } // namespace physics diff --git a/native/cocos/physics/physx/shapes/PhysXShape.cpp b/native/cocos/physics/physx/shapes/PhysXShape.cpp index 773ffe5d40..ca58f3d6c0 100644 --- a/native/cocos/physics/physx/shapes/PhysXShape.cpp +++ b/native/cocos/physics/physx/shapes/PhysXShape.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXShape.h b/native/cocos/physics/physx/shapes/PhysXShape.h index 0797dc8a79..14bb25554d 100644 --- a/native/cocos/physics/physx/shapes/PhysXShape.h +++ b/native/cocos/physics/physx/shapes/PhysXShape.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXSphere.cpp b/native/cocos/physics/physx/shapes/PhysXSphere.cpp index bc7f7152e3..b8ffe59f67 100644 --- a/native/cocos/physics/physx/shapes/PhysXSphere.cpp +++ b/native/cocos/physics/physx/shapes/PhysXSphere.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -53,7 +53,7 @@ void PhysXSphere::updateScale() { void PhysXSphere::updateGeometry() { physx::PxVec3 scale; - auto *node = getSharedBody().getNode(); + auto * node = getSharedBody().getNode(); node->updateWorldTransform(); pxSetVec3Ext(scale, node->getWorldScale()); auto &geo = getPxGeometry(); diff --git a/native/cocos/physics/physx/shapes/PhysXSphere.h b/native/cocos/physics/physx/shapes/PhysXSphere.h index 1f1b4cdae9..4bedde1ef7 100644 --- a/native/cocos/physics/physx/shapes/PhysXSphere.h +++ b/native/cocos/physics/physx/shapes/PhysXSphere.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -39,8 +39,8 @@ public: private: float _mRadius; - void updateGeometry(); - void onComponentSet() override; + void updateGeometry(); + void onComponentSet() override; }; } // namespace physics diff --git a/native/cocos/physics/physx/shapes/PhysXTerrain.cpp b/native/cocos/physics/physx/shapes/PhysXTerrain.cpp index 252bae2ab8..7bb8caa27b 100644 --- a/native/cocos/physics/physx/shapes/PhysXTerrain.cpp +++ b/native/cocos/physics/physx/shapes/PhysXTerrain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXTerrain.h b/native/cocos/physics/physx/shapes/PhysXTerrain.h index dc556f1304..de801a3658 100644 --- a/native/cocos/physics/physx/shapes/PhysXTerrain.h +++ b/native/cocos/physics/physx/shapes/PhysXTerrain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp b/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp index 92f020ff47..19ba92b628 100644 --- a/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp +++ b/native/cocos/physics/physx/shapes/PhysXTrimesh.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/physx/shapes/PhysXTrimesh.h b/native/cocos/physics/physx/shapes/PhysXTrimesh.h index b3f18ea248..3863853523 100644 --- a/native/cocos/physics/physx/shapes/PhysXTrimesh.h +++ b/native/cocos/physics/physx/shapes/PhysXTrimesh.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,11 +40,11 @@ public: void setAsTrigger(bool v) override; private: - bool _mConvex; - uintptr_t _mMeshHandle; - bool _mIsTrigger; - void updateGeometry(); - void onComponentSet() override; + bool _mConvex; + uintptr_t _mMeshHandle; + bool _mIsTrigger; + void updateGeometry(); + void onComponentSet() override; }; } // namespace physics diff --git a/native/cocos/physics/sdk/Joint.cpp b/native/cocos/physics/sdk/Joint.cpp index 7cbf2b23fa..e604450ac3 100644 --- a/native/cocos/physics/sdk/Joint.cpp +++ b/native/cocos/physics/sdk/Joint.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/Joint.h b/native/cocos/physics/sdk/Joint.h index 9b143a9776..39fc3eedfb 100644 --- a/native/cocos/physics/sdk/Joint.h +++ b/native/cocos/physics/sdk/Joint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/RigidBody.cpp b/native/cocos/physics/sdk/RigidBody.cpp index 7d1a25046f..76ae6339e6 100644 --- a/native/cocos/physics/sdk/RigidBody.cpp +++ b/native/cocos/physics/sdk/RigidBody.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/RigidBody.h b/native/cocos/physics/sdk/RigidBody.h index 216c63286b..6eef8d5fb3 100644 --- a/native/cocos/physics/sdk/RigidBody.h +++ b/native/cocos/physics/sdk/RigidBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/Shape.cpp b/native/cocos/physics/sdk/Shape.cpp index 6b1f153be6..210a6e1bc2 100644 --- a/native/cocos/physics/sdk/Shape.cpp +++ b/native/cocos/physics/sdk/Shape.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/Shape.h b/native/cocos/physics/sdk/Shape.h index a9309f737b..53d05b45b8 100644 --- a/native/cocos/physics/sdk/Shape.h +++ b/native/cocos/physics/sdk/Shape.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/sdk/World.cpp b/native/cocos/physics/sdk/World.cpp index 95c9bef426..7b4307ad5c 100644 --- a/native/cocos/physics/sdk/World.cpp +++ b/native/cocos/physics/sdk/World.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,9 +23,9 @@ THE SOFTWARE. ****************************************************************************/ -#include "physics/PhysicsSelector.h" #include "physics/sdk/World.h" #include +#include "physics/PhysicsSelector.h" namespace cc { namespace physics { @@ -55,7 +55,7 @@ void World::setGravity(float x, float y, float z) { } uintptr_t World::createMaterial(uint16_t id, float f, float df, float r, - uint8_t m0, uint8_t m1) { + uint8_t m0, uint8_t m1) { return _impl->createMaterial(id, f, df, r, m0, m1); } diff --git a/native/cocos/physics/sdk/World.h b/native/cocos/physics/sdk/World.h index 46f9260a67..6b56f3ec93 100644 --- a/native/cocos/physics/sdk/World.h +++ b/native/cocos/physics/sdk/World.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,9 +25,9 @@ #pragma once -#include "physics/spec/IWorld.h" -#include "base/Macros.h" #include +#include "base/Macros.h" +#include "physics/spec/IWorld.h" namespace cc { namespace physics { @@ -35,25 +35,25 @@ class CC_DLL World final : public IPhysicsWorld { public: World(); ~World() override; - void setGravity(float x, float y, float z) override; - void setAllowSleep(bool v) override; - void step(float fixedTimeStep) override; - void emitEvents() override; - void syncSceneToPhysics() override; - void syncSceneWithCheck() override; - void setCollisionMatrix(uint32_t i, uint32_t m) override; + void setGravity(float x, float y, float z) override; + void setAllowSleep(bool v) override; + void step(float fixedTimeStep) override; + void emitEvents() override; + void syncSceneToPhysics() override; + void syncSceneWithCheck() override; + void setCollisionMatrix(uint32_t i, uint32_t m) override; std::vector> &getTriggerEventPairs() override; std::vector> &getContactEventPairs() override; - bool raycast(RaycastOptions &opt) override; - bool raycastClosest(RaycastOptions &opt) override; - std::vector &raycastResult() override; - RaycastResult &raycastClosestResult() override; - uintptr_t createConvex(ConvexDesc &desc) override; - uintptr_t createTrimesh(TrimeshDesc &desc) override; - uintptr_t createHeightField(HeightFieldDesc &desc) override; - uintptr_t createMaterial(uint16_t id, float f, float df, float r, - uint8_t m0, uint8_t m1) override; - void destroy() override; + bool raycast(RaycastOptions &opt) override; + bool raycastClosest(RaycastOptions &opt) override; + std::vector & raycastResult() override; + RaycastResult & raycastClosestResult() override; + uintptr_t createConvex(ConvexDesc &desc) override; + uintptr_t createTrimesh(TrimeshDesc &desc) override; + uintptr_t createHeightField(HeightFieldDesc &desc) override; + uintptr_t createMaterial(uint16_t id, float f, float df, float r, + uint8_t m0, uint8_t m1) override; + void destroy() override; private: std::unique_ptr _impl; diff --git a/native/cocos/physics/spec/IBody.h b/native/cocos/physics/spec/IBody.h index 7b1027a087..5579418d4c 100644 --- a/native/cocos/physics/spec/IBody.h +++ b/native/cocos/physics/spec/IBody.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,7 +41,7 @@ enum class ERigidBodyType : uint8_t { class IRigidBody : public ILifecycle { public: ~IRigidBody() override = default; - virtual uintptr_t getImpl() = 0; + virtual uintptr_t getImpl() = 0; virtual uintptr_t getNodeHandle() = 0; virtual void initialize(scene::Node *node, ERigidBodyType t, uint32_t g) = 0; virtual bool isAwake() = 0; @@ -51,7 +51,7 @@ public: virtual void setMass(float v) = 0; virtual void setLinearDamping(float v) = 0; virtual void setAngularDamping(float v) = 0; - virtual void useGravity(bool v) = 0; + virtual void useGravity(bool v) = 0; virtual void useCCD(bool v) = 0; virtual void setLinearFactor(float x, float y, float z) = 0; virtual void setAngularFactor(float x, float y, float z) = 0; diff --git a/native/cocos/physics/spec/IJoint.h b/native/cocos/physics/spec/IJoint.h index 05e6ba388d..981a21da8b 100644 --- a/native/cocos/physics/spec/IJoint.h +++ b/native/cocos/physics/spec/IJoint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/spec/ILifecycle.h b/native/cocos/physics/spec/ILifecycle.h index de29c9b31f..ab26be8d07 100644 --- a/native/cocos/physics/spec/ILifecycle.h +++ b/native/cocos/physics/spec/ILifecycle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,15 +25,15 @@ #pragma once -#include "base/TypeDef.h" #include +#include "base/TypeDef.h" namespace cc { namespace physics { class ILifecycle { public: - virtual ~ILifecycle() = default; - virtual void onEnable() = 0; + virtual ~ILifecycle() = default; + virtual void onEnable() = 0; virtual void onDisable() = 0; virtual void onDestroy() = 0; }; diff --git a/native/cocos/physics/spec/IShape.h b/native/cocos/physics/spec/IShape.h index 48463752a1..eab0156350 100644 --- a/native/cocos/physics/spec/IShape.h +++ b/native/cocos/physics/spec/IShape.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/physics/spec/IWorld.h b/native/cocos/physics/spec/IWorld.h index eb587024ae..990312c97e 100644 --- a/native/cocos/physics/spec/IWorld.h +++ b/native/cocos/physics/spec/IWorld.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/Application.cpp b/native/cocos/platform/Application.cpp index 76b29d8ac4..b69c0d092d 100644 --- a/native/cocos/platform/Application.cpp +++ b/native/cocos/platform/Application.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,8 +25,8 @@ #include "cocos/platform/Application.h" #include "cocos/bindings/jswrapper/SeApi.h" -#include "pipeline/RenderPipeline.h" #include "cocos/renderer/GFXDeviceManager.h" +#include "pipeline/RenderPipeline.h" #if USE_AUDIO #include "cocos/audio/include/AudioEngine.h" diff --git a/native/cocos/platform/BasePlatform.cpp b/native/cocos/platform/BasePlatform.cpp index cff2c0c6ef..ca309a45f8 100644 --- a/native/cocos/platform/BasePlatform.cpp +++ b/native/cocos/platform/BasePlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/BasePlatform.h b/native/cocos/platform/BasePlatform.h index 51117ced01..23773d1f75 100644 --- a/native/cocos/platform/BasePlatform.h +++ b/native/cocos/platform/BasePlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -31,9 +31,9 @@ #include "bindings/event/EventDispatcher.h" #include "platform/interfaces/modules/ISystem.h" +#include #include #include -#include namespace cc { @@ -155,7 +155,6 @@ public: } private: - std::vector _osInterfaces; CC_DISABLE_COPY_AND_MOVE_SEMANTICS(BasePlatform); }; diff --git a/native/cocos/platform/FileUtils.cpp b/native/cocos/platform/FileUtils.cpp index 88ce89cfe8..9759592a42 100644 --- a/native/cocos/platform/FileUtils.cpp +++ b/native/cocos/platform/FileUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/FileUtils.h b/native/cocos/platform/FileUtils.h index e9aa1603ff..40dd993af3 100644 --- a/native/cocos/platform/FileUtils.h +++ b/native/cocos/platform/FileUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/IEventDispatch.h b/native/cocos/platform/IEventDispatch.h index afade1349a..4e1d9a68c8 100644 --- a/native/cocos/platform/IEventDispatch.h +++ b/native/cocos/platform/IEventDispatch.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/Image.cpp b/native/cocos/platform/Image.cpp index 40a5b33a8b..1075544434 100644 --- a/native/cocos/platform/Image.cpp +++ b/native/cocos/platform/Image.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,8 +28,8 @@ #include "Image.h" #include #include -#include #include +#include #include "base/Config.h" // CC_USE_JPEG, CC_USE_WEBP #if CC_USE_JPEG diff --git a/native/cocos/platform/Image.h b/native/cocos/platform/Image.h index 5a43da5f24..bf7c606f1e 100644 --- a/native/cocos/platform/Image.h +++ b/native/cocos/platform/Image.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/SAXParser.cpp b/native/cocos/platform/SAXParser.cpp index 6692c2a59f..cb7dd4ca41 100644 --- a/native/cocos/platform/SAXParser.cpp +++ b/native/cocos/platform/SAXParser.cpp @@ -3,7 +3,7 @@ Copyright (c) 2010 cocos2d-x.org Copyright (c) 2013 Martell Malone Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -107,7 +107,7 @@ bool SAXParser::parse(const char *xmlData, size_t dataLength) { } bool SAXParser::parse(const std::string &filename) { - bool ret = false; + bool ret = false; Data data = FileUtils::getInstance()->getDataFromFile(filename); if (!data.isNull()) { ret = parse((const char *)data.getBytes(), data.getSize()); diff --git a/native/cocos/platform/SAXParser.h b/native/cocos/platform/SAXParser.h index bca9d4bb2b..9fa757adb0 100644 --- a/native/cocos/platform/SAXParser.h +++ b/native/cocos/platform/SAXParser.h @@ -2,7 +2,7 @@ Copyright (c) 2010 cocos2d-x.org Copyright (c) 2010 Максим Аксенов Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,8 +30,8 @@ #define __CCSAXPARSER_H__ /// @cond DO_NOT_SHOW -#include "base/Macros.h" #include +#include "base/Macros.h" namespace cc { diff --git a/native/cocos/platform/StdC.h b/native/cocos/platform/StdC.h index 60c6a01d5d..967a143668 100644 --- a/native/cocos/platform/StdC.h +++ b/native/cocos/platform/StdC.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2020 cocos.com Xiamen Yaji Software Co., Ltd. - Copyright (c) undefined-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) undefined-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -38,10 +38,10 @@ #endif #include - #include #include #include #include + #include #include #if _MSC_VER >= 1600 @@ -71,12 +71,12 @@ #include #include - #include #include + #include #include #include - #include + #include #include - #include + #include #endif // CC_PLATFORM == CC_PLATFORM_WINDOWS diff --git a/native/cocos/platform/UniversalPlatform.cpp b/native/cocos/platform/UniversalPlatform.cpp index 87d0e34cc7..396ed7bfe3 100644 --- a/native/cocos/platform/UniversalPlatform.cpp +++ b/native/cocos/platform/UniversalPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/UniversalPlatform.h b/native/cocos/platform/UniversalPlatform.h index 0386dffb99..3923be9562 100644 --- a/native/cocos/platform/UniversalPlatform.h +++ b/native/cocos/platform/UniversalPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/AndroidPlatform.cpp b/native/cocos/platform/android/AndroidPlatform.cpp index d710bf5eba..1f3a23084c 100644 --- a/native/cocos/platform/android/AndroidPlatform.cpp +++ b/native/cocos/platform/android/AndroidPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "platform/android/AndroidPlatform.h" diff --git a/native/cocos/platform/android/AndroidPlatform.h b/native/cocos/platform/android/AndroidPlatform.h index 8b2e95039f..349742f05c 100644 --- a/native/cocos/platform/android/AndroidPlatform.h +++ b/native/cocos/platform/android/AndroidPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/FileUtils-android.cpp b/native/cocos/platform/android/FileUtils-android.cpp index 0dacb73f72..19ed69fb73 100644 --- a/native/cocos/platform/android/FileUtils-android.cpp +++ b/native/cocos/platform/android/FileUtils-android.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/FileUtils-android.h b/native/cocos/platform/android/FileUtils-android.h index 6b69143512..61690357e3 100644 --- a/native/cocos/platform/android/FileUtils-android.h +++ b/native/cocos/platform/android/FileUtils-android.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -23,7 +23,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/android/jni/JniCocosActivity.cpp b/native/cocos/platform/android/jni/JniCocosActivity.cpp index a3d37d84ad..2e72db6b50 100644 --- a/native/cocos/platform/android/jni/JniCocosActivity.cpp +++ b/native/cocos/platform/android/jni/JniCocosActivity.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/jni/JniCocosActivity.h b/native/cocos/platform/android/jni/JniCocosActivity.h index a7cc3204a5..d4802a62fe 100644 --- a/native/cocos/platform/android/jni/JniCocosActivity.h +++ b/native/cocos/platform/android/jni/JniCocosActivity.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp b/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp index 2d140ad230..4c19132b82 100644 --- a/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp +++ b/native/cocos/platform/android/jni/JniCocosSurfaceView.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include #include diff --git a/native/cocos/platform/android/modules/Screen.cpp b/native/cocos/platform/android/modules/Screen.cpp index 2bcdd9385c..2eb19a4887 100644 --- a/native/cocos/platform/android/modules/Screen.cpp +++ b/native/cocos/platform/android/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/modules/Screen.h b/native/cocos/platform/android/modules/Screen.h index 7a8c22c529..8b585c77b5 100644 --- a/native/cocos/platform/android/modules/Screen.h +++ b/native/cocos/platform/android/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/android/modules/System.cpp b/native/cocos/platform/android/modules/System.cpp index 04b91eb6ba..9032437d8d 100644 --- a/native/cocos/platform/android/modules/System.cpp +++ b/native/cocos/platform/android/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,7 +25,6 @@ #include "platform/android/modules/System.h" - namespace cc { System::System() = default; @@ -35,5 +34,4 @@ System::OSType System::getOSType() const { return OSType::ANDROIDOS; } - } // namespace cc \ No newline at end of file diff --git a/native/cocos/platform/android/modules/System.h b/native/cocos/platform/android/modules/System.h index e57753398a..92bf2d622a 100644 --- a/native/cocos/platform/android/modules/System.h +++ b/native/cocos/platform/android/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,6 +35,7 @@ public: ~System() override; OSType getOSType() const override; + private: }; diff --git a/native/cocos/platform/apple/FileUtils-apple.h b/native/cocos/platform/apple/FileUtils-apple.h index ac736fd1d5..1d61c85529 100644 --- a/native/cocos/platform/apple/FileUtils-apple.h +++ b/native/cocos/platform/apple/FileUtils-apple.h @@ -2,7 +2,7 @@ Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -33,8 +33,8 @@ #include #include -#include "platform/FileUtils.h" #include "base/Macros.h" +#include "platform/FileUtils.h" namespace cc { @@ -54,7 +54,7 @@ public: virtual ValueMap getValueMapFromFile(const std::string &filename) override; virtual ValueMap getValueMapFromData(const char *filedata, int filesize) override; - virtual bool writeToFile(const ValueMap &dict, const std::string &fullPath) override; + virtual bool writeToFile(const ValueMap &dict, const std::string &fullPath) override; virtual ValueVector getValueVectorFromFile(const std::string &filename) override; #if CC_FILEUTILS_APPLE_ENABLE_OBJC diff --git a/native/cocos/platform/apple/FileUtils-apple.mm b/native/cocos/platform/apple/FileUtils-apple.mm index 506e0b6235..2de2f80953 100644 --- a/native/cocos/platform/apple/FileUtils-apple.mm +++ b/native/cocos/platform/apple/FileUtils-apple.mm @@ -2,7 +2,7 @@ Copyright (c) 2010-2012 cc-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/JsbBridge.h b/native/cocos/platform/apple/JsbBridge.h index 0ef3b01110..998f09e7d5 100644 --- a/native/cocos/platform/apple/JsbBridge.h +++ b/native/cocos/platform/apple/JsbBridge.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/JsbBridge.mm b/native/cocos/platform/apple/JsbBridge.mm index 4b954a6522..571c5cf18c 100644 --- a/native/cocos/platform/apple/JsbBridge.mm +++ b/native/cocos/platform/apple/JsbBridge.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.h b/native/cocos/platform/apple/JsbBridgeWrapper.h index 0072fc26dc..8ceb45251f 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.h +++ b/native/cocos/platform/apple/JsbBridgeWrapper.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #pragma once #import diff --git a/native/cocos/platform/apple/JsbBridgeWrapper.mm b/native/cocos/platform/apple/JsbBridgeWrapper.mm index b857e8c90e..14c7a33f21 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.mm +++ b/native/cocos/platform/apple/JsbBridgeWrapper.mm @@ -1,5 +1,5 @@ -/*************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. +/**************************************************************************** + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/apple/Reachability.cpp b/native/cocos/platform/apple/Reachability.cpp index 5d4c1fa519..92c815ba71 100644 --- a/native/cocos/platform/apple/Reachability.cpp +++ b/native/cocos/platform/apple/Reachability.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,10 +27,10 @@ #include "base/Macros.h" #include -#include #include #include #include +#include #include namespace { @@ -105,7 +105,7 @@ cc::Reachability::NetworkStatus getNetworkStatusForFlags(SCNetworkReachabilityFl namespace cc { Reachability *Reachability::createWithHostName(const std::string &hostName) { - Reachability *returnValue = nullptr; + Reachability * returnValue = nullptr; SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(nullptr, hostName.c_str()); if (reachability != nullptr) { returnValue = new (std::nothrow) Reachability(); @@ -139,7 +139,7 @@ Reachability *Reachability::createWithAddress(const struct sockaddr *hostAddress Reachability *Reachability::createForInternetConnection() { struct sockaddr_in zeroAddress; bzero(&zeroAddress, sizeof(zeroAddress)); - zeroAddress.sin_len = sizeof(zeroAddress); + zeroAddress.sin_len = sizeof(zeroAddress); zeroAddress.sin_family = AF_INET; return createWithAddress((const struct sockaddr *)&zeroAddress); @@ -172,8 +172,8 @@ bool Reachability::startNotifier(const ReachabilityCallback &cb, void *userData) _callback = cb; _userData = userData; - bool returnValue = false; - SCNetworkReachabilityContext context = {0, this, nullptr, nullptr, nullptr}; + bool returnValue = false; + SCNetworkReachabilityContext context = {0, this, nullptr, nullptr, nullptr}; if (SCNetworkReachabilitySetCallback(_reachabilityRef, onReachabilityCallback, &context)) { if (SCNetworkReachabilityScheduleWithRunLoop(_reachabilityRef, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode)) { @@ -203,7 +203,7 @@ bool Reachability::isConnectionRequired() const { Reachability::NetworkStatus Reachability::getCurrentReachabilityStatus() const { CCASSERT(_reachabilityRef != nullptr, "currentNetworkStatus called with nullptr SCNetworkReachabilityRef"); - NetworkStatus returnValue = NetworkStatus::NOT_REACHABLE; + NetworkStatus returnValue = NetworkStatus::NOT_REACHABLE; SCNetworkReachabilityFlags flags; if (SCNetworkReachabilityGetFlags(_reachabilityRef, &flags)) { diff --git a/native/cocos/platform/apple/Reachability.h b/native/cocos/platform/apple/Reachability.h index 03ed06fb71..7dd8fba934 100644 --- a/native/cocos/platform/apple/Reachability.h +++ b/native/cocos/platform/apple/Reachability.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,9 +27,9 @@ #include "base/Ref.h" -#include -#include #include +#include +#include struct sockaddr; @@ -79,8 +79,8 @@ private: static void onReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void *info); - ReachabilityCallback _callback; - void *_userData; + ReachabilityCallback _callback; + void * _userData; SCNetworkReachabilityRef _reachabilityRef; }; diff --git a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h index da7cd5f56a..e28c2ea2e8 100644 --- a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -73,7 +73,7 @@ public: private: void fillData(); - void unMultiplyAlpha(unsigned char *ptr, ssize_t size) const ; + void unMultiplyAlpha(unsigned char *ptr, ssize_t size) const; public: private: diff --git a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm index b315a63e02..2852d6def0 100644 --- a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm +++ b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/OSInterface.cpp b/native/cocos/platform/interfaces/OSInterface.cpp index 67c593d969..2ee677f353 100644 --- a/native/cocos/platform/interfaces/OSInterface.cpp +++ b/native/cocos/platform/interfaces/OSInterface.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/OSInterface.h" #include "platform/IEventDispatch.h" diff --git a/native/cocos/platform/interfaces/OSInterface.h b/native/cocos/platform/interfaces/OSInterface.h index 6ec9e03b59..cf540c0385 100644 --- a/native/cocos/platform/interfaces/OSInterface.h +++ b/native/cocos/platform/interfaces/OSInterface.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,7 +30,6 @@ #include "base/Macros.h" #include "bindings/event/EventDispatcher.h" - namespace cc { class IEventDispatch; diff --git a/native/cocos/platform/interfaces/OSInterfaceManager.cpp b/native/cocos/platform/interfaces/OSInterfaceManager.cpp index e69de29bb2..dbdea90975 100644 --- a/native/cocos/platform/interfaces/OSInterfaceManager.cpp +++ b/native/cocos/platform/interfaces/OSInterfaceManager.cpp @@ -0,0 +1,24 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ diff --git a/native/cocos/platform/interfaces/OSInterfaceManager.h b/native/cocos/platform/interfaces/OSInterfaceManager.h index cae284065f..2c1f6a5cc1 100644 --- a/native/cocos/platform/interfaces/OSInterfaceManager.h +++ b/native/cocos/platform/interfaces/OSInterfaceManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/Device.cpp b/native/cocos/platform/interfaces/modules/Device.cpp index 81091d0b50..2447f78115 100644 --- a/native/cocos/platform/interfaces/modules/Device.cpp +++ b/native/cocos/platform/interfaces/modules/Device.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/modules/Device.h" #include "application/ApplicationManager.h" diff --git a/native/cocos/platform/interfaces/modules/Device.h b/native/cocos/platform/interfaces/modules/Device.h index 239f7900c6..d4a340df03 100644 --- a/native/cocos/platform/interfaces/modules/Device.h +++ b/native/cocos/platform/interfaces/modules/Device.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -147,4 +147,3 @@ private: /// @} } // namespace cc - diff --git a/native/cocos/platform/interfaces/modules/IAccelerometer.cpp b/native/cocos/platform/interfaces/modules/IAccelerometer.cpp index 712ec849df..96fc1df3b4 100644 --- a/native/cocos/platform/interfaces/modules/IAccelerometer.cpp +++ b/native/cocos/platform/interfaces/modules/IAccelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IAccelerometer.h b/native/cocos/platform/interfaces/modules/IAccelerometer.h index 61c55fcfea..2017d598f6 100644 --- a/native/cocos/platform/interfaces/modules/IAccelerometer.h +++ b/native/cocos/platform/interfaces/modules/IAccelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -64,6 +64,7 @@ public: @return accelerometer interface. */ static OSInterface::Ptr createAccelerometerInterface(); + private: }; diff --git a/native/cocos/platform/interfaces/modules/IBattery.cpp b/native/cocos/platform/interfaces/modules/IBattery.cpp index 306f26dd43..5d36b4f14f 100644 --- a/native/cocos/platform/interfaces/modules/IBattery.cpp +++ b/native/cocos/platform/interfaces/modules/IBattery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IBattery.h b/native/cocos/platform/interfaces/modules/IBattery.h index 821119391c..b23c4e5c89 100644 --- a/native/cocos/platform/interfaces/modules/IBattery.h +++ b/native/cocos/platform/interfaces/modules/IBattery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/INetwork.cpp b/native/cocos/platform/interfaces/modules/INetwork.cpp index e37be1c470..0d923df096 100644 --- a/native/cocos/platform/interfaces/modules/INetwork.cpp +++ b/native/cocos/platform/interfaces/modules/INetwork.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/INetwork.h b/native/cocos/platform/interfaces/modules/INetwork.h index d19e64fa76..ccc7b49c6d 100644 --- a/native/cocos/platform/interfaces/modules/INetwork.h +++ b/native/cocos/platform/interfaces/modules/INetwork.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IScreen.cpp b/native/cocos/platform/interfaces/modules/IScreen.cpp index 0f5078b9b9..a16b7b0f4b 100644 --- a/native/cocos/platform/interfaces/modules/IScreen.cpp +++ b/native/cocos/platform/interfaces/modules/IScreen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/IScreen.h b/native/cocos/platform/interfaces/modules/IScreen.h index 723dfd7860..4b5232cdbd 100644 --- a/native/cocos/platform/interfaces/modules/IScreen.h +++ b/native/cocos/platform/interfaces/modules/IScreen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/ISystem.cpp b/native/cocos/platform/interfaces/modules/ISystem.cpp index b4f3cea001..f9cd42e727 100644 --- a/native/cocos/platform/interfaces/modules/ISystem.cpp +++ b/native/cocos/platform/interfaces/modules/ISystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/modules/ISystem.h" #if (CC_PLATFORM == CC_PLATFORM_WINDOWS) diff --git a/native/cocos/platform/interfaces/modules/ISystem.h b/native/cocos/platform/interfaces/modules/ISystem.h index b0075ebb56..31b428cdb9 100644 --- a/native/cocos/platform/interfaces/modules/ISystem.h +++ b/native/cocos/platform/interfaces/modules/ISystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/ISystemWindow.cpp b/native/cocos/platform/interfaces/modules/ISystemWindow.cpp index 7fe7632f2c..339bfe89fb 100644 --- a/native/cocos/platform/interfaces/modules/ISystemWindow.cpp +++ b/native/cocos/platform/interfaces/modules/ISystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/ISystemWindow.h b/native/cocos/platform/interfaces/modules/ISystemWindow.h index 7428ed3780..ea4d47a78d 100644 --- a/native/cocos/platform/interfaces/modules/ISystemWindow.h +++ b/native/cocos/platform/interfaces/modules/ISystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,16 +25,16 @@ #pragma once -#include "platform/interfaces/OSInterface.h" -#include "math/Vec2.h" #include #include +#include "math/Vec2.h" +#include "platform/interfaces/OSInterface.h" namespace cc { class ISystemWindow : public OSInterface { public: - using Size = cc::Vec2; + using Size = cc::Vec2; using WindowFlags = enum { /* !!! FIXME: change this to name = (1<(atof(fontSizeStr.c_str())); //SE_LOGD("CanvasRenderingContext2D::set_font: %s, Size: %f, isBold: %b\n", fontName.c_str(), fontSize, !boldStr.empty()); _delegate->updateFont(fontName, fontSize, !boldStr.empty(), isItalic, false, false); diff --git a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h index dcbef5589d..ac2502577f 100644 --- a/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h +++ b/native/cocos/platform/interfaces/modules/canvas/CanvasRenderingContext2D.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp index 4312d2380e..d3582aeb7f 100644 --- a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp +++ b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h" #include "platform/interfaces/modules/canvas/CanvasRenderingContext2D.h" diff --git a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h index bdb647be32..1687daf918 100644 --- a/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h +++ b/native/cocos/platform/interfaces/modules/canvas/ICanvasRenderingContext2D.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/AppDelegate.h b/native/cocos/platform/ios/AppDelegate.h index 33e29b6a04..a0e8846777 100644 --- a/native/cocos/platform/ios/AppDelegate.h +++ b/native/cocos/platform/ios/AppDelegate.h @@ -1,19 +1,20 @@ /**************************************************************************** Copyright (c) 2010-2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. - - http://www.cocos2d-x.org + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -22,17 +23,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #import @class ViewController; -@interface AppDelegate : NSObject -{ +@interface AppDelegate : NSObject { } -@property(nonatomic, readonly) ViewController* viewController; -int runUIAppicationMain(int argc, const char** argv); +@property (nonatomic, readonly) ViewController* viewController; +int runUIAppicationMain(int argc, const char** argv); @end - diff --git a/native/cocos/platform/ios/AppDelegate.mm b/native/cocos/platform/ios/AppDelegate.mm index 753036a497..f9e7c4dfa6 100644 --- a/native/cocos/platform/ios/AppDelegate.mm +++ b/native/cocos/platform/ios/AppDelegate.mm @@ -1,19 +1,20 @@ /**************************************************************************** Copyright (c) 2010-2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. - http://www.cocos2d-x.org + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -22,7 +23,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #import "platform/ios/AppDelegate.h" #import "ViewController.h" #import "platform/ios/View.h" diff --git a/native/cocos/platform/ios/IOSPlatform.h b/native/cocos/platform/ios/IOSPlatform.h index e0a5fd4ab2..42b5b09fa8 100644 --- a/native/cocos/platform/ios/IOSPlatform.h +++ b/native/cocos/platform/ios/IOSPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,7 +40,7 @@ public: * @brief Implementation of Windows platform initialization. */ int32_t init() override; - + /** * @brief Start base platform initialization. */ @@ -50,12 +50,13 @@ public: */ int32_t loop() override; - void setFps(int32_t fps) override; + void setFps(int32_t fps) override; int32_t getFps() const override; - + void onPause() override; void onResume() override; void onClose() override; + private: ThreadCallback _cb; }; diff --git a/native/cocos/platform/ios/IOSPlatform.mm b/native/cocos/platform/ios/IOSPlatform.mm index 7d6c76ef97..03df14ecd4 100644 --- a/native/cocos/platform/ios/IOSPlatform.mm +++ b/native/cocos/platform/ios/IOSPlatform.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/View.h b/native/cocos/platform/ios/View.h index 8078e516dc..a2bb099b42 100644 --- a/native/cocos/platform/ios/View.h +++ b/native/cocos/platform/ios/View.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -33,9 +33,9 @@ @interface View : UIView -@property(nonatomic, assign)BOOL preventTouch; +@property (nonatomic, assign) BOOL preventTouch; #ifdef CC_USE_METAL -@property(nonatomic, assign) id device; +@property (nonatomic, assign) id device; #endif - (void)setPreventTouchEvent:(BOOL)flag; diff --git a/native/cocos/platform/ios/View.mm b/native/cocos/platform/ios/View.mm index 8f30ca881a..c6d2bc36d5 100644 --- a/native/cocos/platform/ios/View.mm +++ b/native/cocos/platform/ios/View.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/ViewController.h b/native/cocos/platform/ios/ViewController.h index ae272b780c..5885dc9184 100644 --- a/native/cocos/platform/ios/ViewController.h +++ b/native/cocos/platform/ios/ViewController.h @@ -1,20 +1,21 @@ /**************************************************************************** - Copyright (c) 2013 cocos2d-x.org + Copyright (c) 2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com - http://www.cocos2d-x.org - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -22,11 +23,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #import @interface ViewController : UIViewController - @end diff --git a/native/cocos/platform/ios/ViewController.mm b/native/cocos/platform/ios/ViewController.mm index f3e4ef6d3d..61741cee6c 100644 --- a/native/cocos/platform/ios/ViewController.mm +++ b/native/cocos/platform/ios/ViewController.mm @@ -1,19 +1,20 @@ /**************************************************************************** - Copyright (c) 2013 cocos2d-x.org + Copyright (c) 2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. - http://www.cocos2d-x.org + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -23,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #import "ViewController.h" #include "cocos/bindings/event/EventDispatcher.h" #include "platform/IEventDispatch.h" diff --git a/native/cocos/platform/ios/modules/Accelerometer.h b/native/cocos/platform/ios/modules/Accelerometer.h index b32b67dfda..83dfe8e135 100644 --- a/native/cocos/platform/ios/modules/Accelerometer.h +++ b/native/cocos/platform/ios/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Accelerometer.mm b/native/cocos/platform/ios/modules/Accelerometer.mm index 437db24834..18d4e68613 100644 --- a/native/cocos/platform/ios/modules/Accelerometer.mm +++ b/native/cocos/platform/ios/modules/Accelerometer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Battery.h b/native/cocos/platform/ios/modules/Battery.h index 46e802fe00..1f6e1b5f82 100644 --- a/native/cocos/platform/ios/modules/Battery.h +++ b/native/cocos/platform/ios/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Battery.mm b/native/cocos/platform/ios/modules/Battery.mm index fbc74f2637..2ae8f139ff 100644 --- a/native/cocos/platform/ios/modules/Battery.mm +++ b/native/cocos/platform/ios/modules/Battery.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/Battery.h" #import diff --git a/native/cocos/platform/ios/modules/Network.h b/native/cocos/platform/ios/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/ios/modules/Network.h +++ b/native/cocos/platform/ios/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Network.mm b/native/cocos/platform/ios/modules/Network.mm index 2c3433bf05..93af9da1c2 100644 --- a/native/cocos/platform/ios/modules/Network.mm +++ b/native/cocos/platform/ios/modules/Network.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/Network.h" #include #import diff --git a/native/cocos/platform/ios/modules/Screen.h b/native/cocos/platform/ios/modules/Screen.h index 6b62649702..8972457542 100644 --- a/native/cocos/platform/ios/modules/Screen.h +++ b/native/cocos/platform/ios/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Screen.mm b/native/cocos/platform/ios/modules/Screen.mm index c9b526b66c..afcb1fed12 100644 --- a/native/cocos/platform/ios/modules/Screen.mm +++ b/native/cocos/platform/ios/modules/Screen.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/System.h b/native/cocos/platform/ios/modules/System.h index d27091baec..3974da6be8 100644 --- a/native/cocos/platform/ios/modules/System.h +++ b/native/cocos/platform/ios/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/System.mm b/native/cocos/platform/ios/modules/System.mm index 7627ae4435..cc5a470b35 100644 --- a/native/cocos/platform/ios/modules/System.mm +++ b/native/cocos/platform/ios/modules/System.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/System.h" #import diff --git a/native/cocos/platform/ios/modules/SystemWindow.h b/native/cocos/platform/ios/modules/SystemWindow.h index ecc0bec72d..0b5b349fb7 100644 --- a/native/cocos/platform/ios/modules/SystemWindow.h +++ b/native/cocos/platform/ios/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/SystemWindow.mm b/native/cocos/platform/ios/modules/SystemWindow.mm index 444b599060..34f78a66cc 100644 --- a/native/cocos/platform/ios/modules/SystemWindow.mm +++ b/native/cocos/platform/ios/modules/SystemWindow.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/ios/modules/SystemWindow.h" #import #include "platform/ios/AppDelegate.h" diff --git a/native/cocos/platform/ios/modules/Vibrator.h b/native/cocos/platform/ios/modules/Vibrator.h index 8a91c91420..87f405192d 100644 --- a/native/cocos/platform/ios/modules/Vibrator.h +++ b/native/cocos/platform/ios/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/modules/Vibrator.mm b/native/cocos/platform/ios/modules/Vibrator.mm index 052f69c913..76ad44eb68 100644 --- a/native/cocos/platform/ios/modules/Vibrator.mm +++ b/native/cocos/platform/ios/modules/Vibrator.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ios/service/SDKWrapper.h b/native/cocos/platform/ios/service/SDKWrapper.h index 4ab06a2345..4e91335c92 100644 --- a/native/cocos/platform/ios/service/SDKWrapper.h +++ b/native/cocos/platform/ios/service/SDKWrapper.h @@ -1,17 +1,18 @@ /**************************************************************************** - Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. - - http://www.cocos2d-x.org + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -20,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #import #import NS_ASSUME_NONNULL_BEGIN @@ -38,8 +40,8 @@ NS_ASSUME_NONNULL_BEGIN @end -@interface SDKWrapper : NSObject -@property(nonatomic,strong) NSString *name; +@interface SDKWrapper : NSObject +@property (nonatomic, strong) NSString *name; + (instancetype)shared; - (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; - (void)applicationDidBecomeActive:(UIApplication *)application; diff --git a/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp b/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp index 38ddaa368c..05990710df 100644 --- a/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp +++ b/native/cocos/platform/java/jni/JniCocosKeyCodeHandler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/jni/JniHelper.h" #if CC_PLATFORM == CC_PLATFORM_ANDROID #include diff --git a/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp b/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp index 341937c9ce..03526e0453 100644 --- a/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp +++ b/native/cocos/platform/java/jni/JniCocosOrientationHelper.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "cocos/bindings/event/EventDispatcher.h" #include "platform/interfaces/modules/Device.h" diff --git a/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp b/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp index 038b8744f8..4f6ad29000 100644 --- a/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp +++ b/native/cocos/platform/java/jni/JniCocosTouchHandler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include #include "cocos/bindings/event/EventDispatcher.h" #include "platform/java/jni/JniHelper.h" diff --git a/native/cocos/platform/java/jni/JniHelper.cpp b/native/cocos/platform/java/jni/JniHelper.cpp index 2721523c8f..6e4ad7eb64 100644 --- a/native/cocos/platform/java/jni/JniHelper.cpp +++ b/native/cocos/platform/java/jni/JniHelper.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/jni/JniHelper.h" #if ANDROID #include diff --git a/native/cocos/platform/java/jni/JniHelper.h b/native/cocos/platform/java/jni/JniHelper.h index 98d4576a36..450e491c83 100644 --- a/native/cocos/platform/java/jni/JniHelper.h +++ b/native/cocos/platform/java/jni/JniHelper.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cc-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/java/jni/JniImp.cpp b/native/cocos/platform/java/jni/JniImp.cpp index 22986d8382..744ebb9bb1 100644 --- a/native/cocos/platform/java/jni/JniImp.cpp +++ b/native/cocos/platform/java/jni/JniImp.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/JniImp.h b/native/cocos/platform/java/jni/JniImp.h index d02f27dafd..c9aefb37fa 100644 --- a/native/cocos/platform/java/jni/JniImp.h +++ b/native/cocos/platform/java/jni/JniImp.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp index e5522b4253..3b7fe6f875 100644 --- a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp +++ b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/glue/JniNativeGlue.h b/native/cocos/platform/java/jni/glue/JniNativeGlue.h index e264ec0cc9..6afabcf6ff 100644 --- a/native/cocos/platform/java/jni/glue/JniNativeGlue.h +++ b/native/cocos/platform/java/jni/glue/JniNativeGlue.h @@ -1,5 +1,5 @@ /**************************************************************************** -Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.cpp b/native/cocos/platform/java/jni/glue/MessagePipe.cpp index bf26a3c106..4124671d66 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.cpp +++ b/native/cocos/platform/java/jni/glue/MessagePipe.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/jni/glue/MessagePipe.h" #include #include diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.h b/native/cocos/platform/java/jni/glue/MessagePipe.h index e6ed5243fd..4a88738518 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.h +++ b/native/cocos/platform/java/jni/glue/MessagePipe.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/jni/log.h b/native/cocos/platform/java/jni/log.h index 1ba285ff90..59b5ef0f71 100644 --- a/native/cocos/platform/java/jni/log.h +++ b/native/cocos/platform/java/jni/log.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,8 +29,8 @@ #if (CC_PLATFORM == CC_PLATFORM_ANDROID) #include - #define LOGV(...) __android_log_print(ANDROID_LOG_INFO, "CocosActivity JNI", __VA_ARGS__) - #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, JNI_IMP_LOG_TAG, __VA_ARGS__) + #define LOGV(...) __android_log_print(ANDROID_LOG_INFO, "CocosActivity JNI", __VA_ARGS__) + #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, JNI_IMP_LOG_TAG, __VA_ARGS__) #elif (CC_PLATFORM == CC_PLATFORM_OHOS) #include #define LOGV(...) HILOG_INFO(LOG_APP, __VA_ARGS__) diff --git a/native/cocos/platform/java/modules/Accelerometer.cpp b/native/cocos/platform/java/modules/Accelerometer.cpp index c9ff3955c1..c5cc5ff3b4 100644 --- a/native/cocos/platform/java/modules/Accelerometer.cpp +++ b/native/cocos/platform/java/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Accelerometer.h b/native/cocos/platform/java/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/java/modules/Accelerometer.h +++ b/native/cocos/platform/java/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Battery.cpp b/native/cocos/platform/java/modules/Battery.cpp index 4c0653256d..cd424f0ae4 100644 --- a/native/cocos/platform/java/modules/Battery.cpp +++ b/native/cocos/platform/java/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/modules/Battery.h" #include "platform/java/jni/JniImp.h" diff --git a/native/cocos/platform/java/modules/Battery.h b/native/cocos/platform/java/modules/Battery.h index aa2fb2f5b0..9630940d96 100644 --- a/native/cocos/platform/java/modules/Battery.h +++ b/native/cocos/platform/java/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp index 95553ad691..3dfb4e080c 100644 --- a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/java/modules/CanvasRenderingContext2DDelegate.h" diff --git a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h index c38af6b1ef..cab938512f 100644 --- a/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/java/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CommonScreen.cpp b/native/cocos/platform/java/modules/CommonScreen.cpp index 971bab94e4..89a18d5319 100644 --- a/native/cocos/platform/java/modules/CommonScreen.cpp +++ b/native/cocos/platform/java/modules/CommonScreen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CommonScreen.h b/native/cocos/platform/java/modules/CommonScreen.h index e5a55952e1..5be098d732 100644 --- a/native/cocos/platform/java/modules/CommonScreen.h +++ b/native/cocos/platform/java/modules/CommonScreen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/CommonSystem.cpp b/native/cocos/platform/java/modules/CommonSystem.cpp index 7c4f41cff8..c0ae3466a8 100644 --- a/native/cocos/platform/java/modules/CommonSystem.cpp +++ b/native/cocos/platform/java/modules/CommonSystem.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -28,7 +28,7 @@ #include "platform/java/jni/JniImp.h" namespace cc { -CommonSystem::CommonSystem() = default; +CommonSystem::CommonSystem() = default; CommonSystem::~CommonSystem() = default; std::string CommonSystem::getDeviceModel() const { diff --git a/native/cocos/platform/java/modules/CommonSystem.h b/native/cocos/platform/java/modules/CommonSystem.h index cf8d82fddb..90a90753aa 100644 --- a/native/cocos/platform/java/modules/CommonSystem.h +++ b/native/cocos/platform/java/modules/CommonSystem.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Network.cpp b/native/cocos/platform/java/modules/Network.cpp index 3bfd6a2e88..83d3401a0c 100644 --- a/native/cocos/platform/java/modules/Network.cpp +++ b/native/cocos/platform/java/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/java/modules/Network.h" #include "platform/java/jni/JniImp.h" diff --git a/native/cocos/platform/java/modules/Network.h b/native/cocos/platform/java/modules/Network.h index 9b1ea1b21b..e5559b12e4 100644 --- a/native/cocos/platform/java/modules/Network.h +++ b/native/cocos/platform/java/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/SystemWindow.cpp b/native/cocos/platform/java/modules/SystemWindow.cpp index a07cc8f88e..aad61b4c7a 100644 --- a/native/cocos/platform/java/modules/SystemWindow.cpp +++ b/native/cocos/platform/java/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,7 +35,6 @@ #include "platform/java/jni/JniImp.h" #include "platform/java/jni/glue/JniNativeGlue.h" - namespace { } // namespace diff --git a/native/cocos/platform/java/modules/SystemWindow.h b/native/cocos/platform/java/modules/SystemWindow.h index 58d60e3d9b..1c39bca8e3 100644 --- a/native/cocos/platform/java/modules/SystemWindow.h +++ b/native/cocos/platform/java/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -39,10 +39,10 @@ public: /** @brief enable/disable(lock) the cursor, default is enabled */ - void setCursorEnabled(bool value) override; - void copyTextToClipboard(const std::string& text) override; - uintptr_t getWindowHandler() const override; - Size getViewSize() const override; + void setCursorEnabled(bool value) override; + void copyTextToClipboard(const std::string& text) override; + uintptr_t getWindowHandler() const override; + Size getViewSize() const override; }; } // namespace cc \ No newline at end of file diff --git a/native/cocos/platform/java/modules/Vibrator.cpp b/native/cocos/platform/java/modules/Vibrator.cpp index f6864085a1..7d1bf8ac46 100644 --- a/native/cocos/platform/java/modules/Vibrator.cpp +++ b/native/cocos/platform/java/modules/Vibrator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/java/modules/Vibrator.h b/native/cocos/platform/java/modules/Vibrator.h index 9a8ea1657d..7f755242df 100644 --- a/native/cocos/platform/java/modules/Vibrator.h +++ b/native/cocos/platform/java/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/FileUtils-linux.cpp b/native/cocos/platform/linux/FileUtils-linux.cpp index e811987bd0..2c9b4f4ab4 100644 --- a/native/cocos/platform/linux/FileUtils-linux.cpp +++ b/native/cocos/platform/linux/FileUtils-linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "FileUtils-linux.h" #include #include diff --git a/native/cocos/platform/linux/FileUtils-linux.h b/native/cocos/platform/linux/FileUtils-linux.h index b578971ebd..7737f0757c 100644 --- a/native/cocos/platform/linux/FileUtils-linux.h +++ b/native/cocos/platform/linux/FileUtils-linux.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/LinuxPlatform.cpp b/native/cocos/platform/linux/LinuxPlatform.cpp index b3d2bd7185..05d01d70c7 100644 --- a/native/cocos/platform/linux/LinuxPlatform.cpp +++ b/native/cocos/platform/linux/LinuxPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/LinuxPlatform.h b/native/cocos/platform/linux/LinuxPlatform.h index 231adf8170..da45321831 100644 --- a/native/cocos/platform/linux/LinuxPlatform.h +++ b/native/cocos/platform/linux/LinuxPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Accelerometer.cpp b/native/cocos/platform/linux/modules/Accelerometer.cpp index e7ff316690..e3ccff2366 100644 --- a/native/cocos/platform/linux/modules/Accelerometer.cpp +++ b/native/cocos/platform/linux/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Accelerometer.h b/native/cocos/platform/linux/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/linux/modules/Accelerometer.h +++ b/native/cocos/platform/linux/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Battery.cpp b/native/cocos/platform/linux/modules/Battery.cpp index 659bec9e50..6b3f253a51 100644 --- a/native/cocos/platform/linux/modules/Battery.cpp +++ b/native/cocos/platform/linux/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/linux/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/linux/modules/Battery.h b/native/cocos/platform/linux/modules/Battery.h index 928cbb038e..9b5ce28660 100644 --- a/native/cocos/platform/linux/modules/Battery.h +++ b/native/cocos/platform/linux/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp index 9c933c8165..35eb1d8aba 100644 --- a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/linux/modules/CanvasRenderingContext2DDelegate.h" #include "SDL2/SDL.h" @@ -36,7 +36,7 @@ namespace { namespace cc { //static const char gdefaultFontName[] = "-*-helvetica-medium-o-*-*-24-*-*-*-*-*-iso8859-*"; //static const char gdefaultFontName[] = "lucidasanstypewriter-bold-24"; -static const char gdefaultFontName[] = "lucidasans-24"; +static const char gdefaultFontName[] = "lucidasans-24"; CanvasRenderingContext2DDelegate::CanvasRenderingContext2DDelegate() { SDL_SysWMinfo wmInfo; diff --git a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h index 6f14fbf339..a60c5d5c7b 100644 --- a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Network.cpp b/native/cocos/platform/linux/modules/Network.cpp index 13aa70c2de..fb97724359 100644 --- a/native/cocos/platform/linux/modules/Network.cpp +++ b/native/cocos/platform/linux/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/linux/modules/Network.h" namespace cc { diff --git a/native/cocos/platform/linux/modules/Network.h b/native/cocos/platform/linux/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/linux/modules/Network.h +++ b/native/cocos/platform/linux/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Screen.cpp b/native/cocos/platform/linux/modules/Screen.cpp index e7b86595e3..258b0db58c 100644 --- a/native/cocos/platform/linux/modules/Screen.cpp +++ b/native/cocos/platform/linux/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,9 +24,9 @@ ****************************************************************************/ #include "platform/linux/modules/Screen.h" +#include #include "base/Macros.h" #include "cocos/bindings/jswrapper/SeApi.h" -#include namespace cc { diff --git a/native/cocos/platform/linux/modules/Screen.h b/native/cocos/platform/linux/modules/Screen.h index 06eb7a8c15..995ec19ed4 100644 --- a/native/cocos/platform/linux/modules/Screen.h +++ b/native/cocos/platform/linux/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/System.cpp b/native/cocos/platform/linux/modules/System.cpp index e6480d8247..37f058da02 100644 --- a/native/cocos/platform/linux/modules/System.cpp +++ b/native/cocos/platform/linux/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/System.h b/native/cocos/platform/linux/modules/System.h index 617b45499c..33938ae5c9 100644 --- a/native/cocos/platform/linux/modules/System.h +++ b/native/cocos/platform/linux/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/SystemWindow.cpp b/native/cocos/platform/linux/modules/SystemWindow.cpp index ce5cbf846e..3f367d30e5 100644 --- a/native/cocos/platform/linux/modules/SystemWindow.cpp +++ b/native/cocos/platform/linux/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/SystemWindow.h b/native/cocos/platform/linux/modules/SystemWindow.h index 44b447075d..4d1386ca11 100644 --- a/native/cocos/platform/linux/modules/SystemWindow.h +++ b/native/cocos/platform/linux/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Vibrate.cpp b/native/cocos/platform/linux/modules/Vibrate.cpp index c8345f6c13..06067d581b 100644 --- a/native/cocos/platform/linux/modules/Vibrate.cpp +++ b/native/cocos/platform/linux/modules/Vibrate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/linux/modules/Vibrate.h b/native/cocos/platform/linux/modules/Vibrate.h index f0afad6cbf..32b6007f0b 100644 --- a/native/cocos/platform/linux/modules/Vibrate.h +++ b/native/cocos/platform/linux/modules/Vibrate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/AppDelegate.h b/native/cocos/platform/mac/AppDelegate.h index 69b6e0f13a..b2c3c378d6 100644 --- a/native/cocos/platform/mac/AppDelegate.h +++ b/native/cocos/platform/mac/AppDelegate.h @@ -1,7 +1,30 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import @interface AppDelegate : NSObject - @end - diff --git a/native/cocos/platform/mac/AppDelegate.mm b/native/cocos/platform/mac/AppDelegate.mm index 546ba23a47..b4a973c198 100644 --- a/native/cocos/platform/mac/AppDelegate.mm +++ b/native/cocos/platform/mac/AppDelegate.mm @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import "AppDelegate.h" #include //#import "Game.h" diff --git a/native/cocos/platform/mac/KeyCodeHelper.cpp b/native/cocos/platform/mac/KeyCodeHelper.cpp index 5b8dd6e45a..50ca0726ec 100644 --- a/native/cocos/platform/mac/KeyCodeHelper.cpp +++ b/native/cocos/platform/mac/KeyCodeHelper.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -159,12 +159,12 @@ namespace { // Modifier Key State -bool stateShiftLeft = false; -bool stateShiftRight = false; -bool stateControlLeft = false; +bool stateShiftLeft = false; +bool stateShiftRight = false; +bool stateControlLeft = false; bool stateControlRight = false; -bool stateOptionLeft = false; -bool stateOptionRight = false; +bool stateOptionLeft = false; +bool stateOptionRight = false; // Refer to https://github.com/glfw/glfw/blob/master/src/cocoa_window.m. int keyCodes[0xff + 1] = {-1}; @@ -287,54 +287,54 @@ void init() { } } // namespace -void updateModifierKeyState (int keyCodeInWeb) { - if (keyCodeInWeb == 16) { // shift left +void updateModifierKeyState(int keyCodeInWeb) { + if (keyCodeInWeb == 16) { // shift left stateShiftLeft = !stateShiftLeft; - } else if (keyCodeInWeb == 20016) { // shift right + } else if (keyCodeInWeb == 20016) { // shift right stateShiftRight = !stateShiftRight; - } else if (keyCodeInWeb == 17) { // ctrl left + } else if (keyCodeInWeb == 17) { // ctrl left stateControlLeft = !stateControlLeft; - } else if (keyCodeInWeb == 20017) { // ctrl right + } else if (keyCodeInWeb == 20017) { // ctrl right stateControlRight = !stateControlRight; - } else if (keyCodeInWeb == 18) { // alt left + } else if (keyCodeInWeb == 18) { // alt left stateOptionLeft = !stateOptionLeft; - } else if (keyCodeInWeb == 20018) { // alt right + } else if (keyCodeInWeb == 20018) { // alt right stateOptionRight = !stateOptionRight; } } -cc::KeyboardEvent::Action getModifierKeyAction (int keyCodeInWeb) { - if (keyCodeInWeb == 16) { // shift left +cc::KeyboardEvent::Action getModifierKeyAction(int keyCodeInWeb) { + if (keyCodeInWeb == 16) { // shift left if (stateShiftLeft) { return cc::KeyboardEvent::Action::PRESS; } else { return cc::KeyboardEvent::Action::RELEASE; } - } else if (keyCodeInWeb == 20016) { // shift right + } else if (keyCodeInWeb == 20016) { // shift right if (stateShiftRight) { return cc::KeyboardEvent::Action::PRESS; } else { return cc::KeyboardEvent::Action::RELEASE; } - } else if (keyCodeInWeb == 17) { // ctrl left + } else if (keyCodeInWeb == 17) { // ctrl left if (stateControlLeft) { return cc::KeyboardEvent::Action::PRESS; } else { return cc::KeyboardEvent::Action::RELEASE; } - } else if (keyCodeInWeb == 20017) { // ctrl right + } else if (keyCodeInWeb == 20017) { // ctrl right if (stateControlRight) { return cc::KeyboardEvent::Action::PRESS; } else { return cc::KeyboardEvent::Action::RELEASE; } - } else if (keyCodeInWeb == 18) { // alt left + } else if (keyCodeInWeb == 18) { // alt left if (stateOptionLeft) { return cc::KeyboardEvent::Action::PRESS; } else { return cc::KeyboardEvent::Action::RELEASE; } - } else if (keyCodeInWeb == 20018) { // alt right + } else if (keyCodeInWeb == 20018) { // alt right if (stateOptionRight) { return cc::KeyboardEvent::Action::PRESS; } else { @@ -352,7 +352,7 @@ int translateKeycode(int keyCode) { if (keyCode < 0 || keyCode > 0xff) return -1; - int key = keyCodes[keyCode]; + int key = keyCodes[keyCode]; int keyInWeb = -1; if (key >= GLFW_KEY_0 && key <= GLFW_KEY_9) keyInWeb = key; diff --git a/native/cocos/platform/mac/KeyCodeHelper.h b/native/cocos/platform/mac/KeyCodeHelper.h index cfee0c5a09..1251dea2e1 100644 --- a/native/cocos/platform/mac/KeyCodeHelper.h +++ b/native/cocos/platform/mac/KeyCodeHelper.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,6 +26,6 @@ #import "cocos/bindings/event/EventDispatcher.h" #pragma once -extern int translateKeycode(int); -extern void updateModifierKeyState (int keyCodeInWeb); -extern cc::KeyboardEvent::Action getModifierKeyAction (int keyCodeInWeb); +extern int translateKeycode(int); +extern void updateModifierKeyState(int keyCodeInWeb); +extern cc::KeyboardEvent::Action getModifierKeyAction(int keyCodeInWeb); diff --git a/native/cocos/platform/mac/MacPlatform.h b/native/cocos/platform/mac/MacPlatform.h index 5f6c863175..8dc417a8f0 100644 --- a/native/cocos/platform/mac/MacPlatform.h +++ b/native/cocos/platform/mac/MacPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,7 +40,7 @@ public: * Implementation of Windows platform initialization. */ int32_t init() override; - + /** * @brief Start base platform initialization. */ @@ -49,9 +49,9 @@ public: * @brief Implement the main logic of the base platform. */ int32_t loop() override; - void setFps(int32_t fps) override; + void setFps(int32_t fps) override; int32_t getFps() const override; - + void onPause() override; void onResume() override; void onClose() override; diff --git a/native/cocos/platform/mac/MacPlatform.mm b/native/cocos/platform/mac/MacPlatform.mm index 859c47b210..68a2677b92 100644 --- a/native/cocos/platform/mac/MacPlatform.mm +++ b/native/cocos/platform/mac/MacPlatform.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/View.h b/native/cocos/platform/mac/View.h index efc77635a2..890da35fb3 100644 --- a/native/cocos/platform/mac/View.h +++ b/native/cocos/platform/mac/View.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/View.mm b/native/cocos/platform/mac/View.mm index bba5f2d103..064ef11491 100644 --- a/native/cocos/platform/mac/View.mm +++ b/native/cocos/platform/mac/View.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/ViewController.h b/native/cocos/platform/mac/ViewController.h index cbb08ca84f..f716829646 100644 --- a/native/cocos/platform/mac/ViewController.h +++ b/native/cocos/platform/mac/ViewController.h @@ -1,7 +1,31 @@ -#import +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import +#import @interface ViewController : NSViewController - (instancetype)initWithSize:(NSRect)rect; @end - diff --git a/native/cocos/platform/mac/ViewController.mm b/native/cocos/platform/mac/ViewController.mm index 631658cad6..890256a0a3 100644 --- a/native/cocos/platform/mac/ViewController.mm +++ b/native/cocos/platform/mac/ViewController.mm @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #import "ViewController.h" #import "platform/mac/View.h" diff --git a/native/cocos/platform/mac/modules/Accelerometer.h b/native/cocos/platform/mac/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/mac/modules/Accelerometer.h +++ b/native/cocos/platform/mac/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Accelerometer.mm b/native/cocos/platform/mac/modules/Accelerometer.mm index 2866f6d9d4..c728906809 100644 --- a/native/cocos/platform/mac/modules/Accelerometer.mm +++ b/native/cocos/platform/mac/modules/Accelerometer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Battery.h b/native/cocos/platform/mac/modules/Battery.h index 46e802fe00..1f6e1b5f82 100644 --- a/native/cocos/platform/mac/modules/Battery.h +++ b/native/cocos/platform/mac/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Battery.mm b/native/cocos/platform/mac/modules/Battery.mm index 10f08cbfa2..8256186433 100644 --- a/native/cocos/platform/mac/modules/Battery.mm +++ b/native/cocos/platform/mac/modules/Battery.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/mac/modules/Network.h b/native/cocos/platform/mac/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/mac/modules/Network.h +++ b/native/cocos/platform/mac/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Network.mm b/native/cocos/platform/mac/modules/Network.mm index dccb1fd46e..a77ec8411d 100644 --- a/native/cocos/platform/mac/modules/Network.mm +++ b/native/cocos/platform/mac/modules/Network.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/Network.h" #import #include diff --git a/native/cocos/platform/mac/modules/Screen.h b/native/cocos/platform/mac/modules/Screen.h index e0a45f827f..3709b2abdc 100644 --- a/native/cocos/platform/mac/modules/Screen.h +++ b/native/cocos/platform/mac/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Screen.mm b/native/cocos/platform/mac/modules/Screen.mm index a44de71846..e139783c5b 100644 --- a/native/cocos/platform/mac/modules/Screen.mm +++ b/native/cocos/platform/mac/modules/Screen.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/System.h b/native/cocos/platform/mac/modules/System.h index e6287b9965..e495d7ca62 100644 --- a/native/cocos/platform/mac/modules/System.h +++ b/native/cocos/platform/mac/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/System.mm b/native/cocos/platform/mac/modules/System.mm index 5cdb199dbe..24730d0f38 100644 --- a/native/cocos/platform/mac/modules/System.mm +++ b/native/cocos/platform/mac/modules/System.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/System.h" #import diff --git a/native/cocos/platform/mac/modules/SystemWindow.h b/native/cocos/platform/mac/modules/SystemWindow.h index c82e30c314..883237ed9c 100644 --- a/native/cocos/platform/mac/modules/SystemWindow.h +++ b/native/cocos/platform/mac/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -51,6 +51,6 @@ public: private: int32_t _width{0}; int32_t _height{0}; - bool isInit{false}; + bool isInit{false}; }; } // namespace cc diff --git a/native/cocos/platform/mac/modules/SystemWindow.mm b/native/cocos/platform/mac/modules/SystemWindow.mm index f9012398f8..bfee8394f7 100644 --- a/native/cocos/platform/mac/modules/SystemWindow.mm +++ b/native/cocos/platform/mac/modules/SystemWindow.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/mac/modules/SystemWindow.h" #import #include "platform/mac/AppDelegate.h" diff --git a/native/cocos/platform/mac/modules/Vibrator.h b/native/cocos/platform/mac/modules/Vibrator.h index 9a8ea1657d..7f755242df 100644 --- a/native/cocos/platform/mac/modules/Vibrator.h +++ b/native/cocos/platform/mac/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/mac/modules/Vibrator.mm b/native/cocos/platform/mac/modules/Vibrator.mm index b3b26cee77..a9254c79e9 100644 --- a/native/cocos/platform/mac/modules/Vibrator.mm +++ b/native/cocos/platform/mac/modules/Vibrator.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/FileUtils-ohos.cpp b/native/cocos/platform/ohos/FileUtils-ohos.cpp index 8f05b709fc..8e11b181db 100644 --- a/native/cocos/platform/ohos/FileUtils-ohos.cpp +++ b/native/cocos/platform/ohos/FileUtils-ohos.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include "cocos/platform/ohos/FileUtils-ohos.h" #include #include diff --git a/native/cocos/platform/ohos/FileUtils-ohos.h b/native/cocos/platform/ohos/FileUtils-ohos.h index 44390e7349..d276531efa 100644 --- a/native/cocos/platform/ohos/FileUtils-ohos.h +++ b/native/cocos/platform/ohos/FileUtils-ohos.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once //clang-format off #include diff --git a/native/cocos/platform/ohos/OhosPlatform.cpp b/native/cocos/platform/ohos/OhosPlatform.cpp index 915e8e38fe..711f670c54 100644 --- a/native/cocos/platform/ohos/OhosPlatform.cpp +++ b/native/cocos/platform/ohos/OhosPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,8 +27,8 @@ #include "platform/UniversalPlatform.h" #include "platform/java/jni/glue/JniNativeGlue.h" -#include "platform/ohos/OhosPlatform.h" #include "platform/java/modules/SystemWindow.h" +#include "platform/ohos/OhosPlatform.h" namespace cc { OhosPlatform::OhosPlatform() { diff --git a/native/cocos/platform/ohos/OhosPlatform.h b/native/cocos/platform/ohos/OhosPlatform.h index 3bb1d403c7..bd6d9b7b49 100644 --- a/native/cocos/platform/ohos/OhosPlatform.h +++ b/native/cocos/platform/ohos/OhosPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/View.cpp b/native/cocos/platform/ohos/View.cpp index 71b0791a7b..67c25f26cb 100644 --- a/native/cocos/platform/ohos/View.cpp +++ b/native/cocos/platform/ohos/View.cpp @@ -1,17 +1,18 @@ /**************************************************************************** -Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -20,7 +21,8 @@ Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "View.h" #include "cocos/bindings/event/CustomEventTypes.h" #include "cocos/bindings/event/EventDispatcher.h" @@ -50,7 +52,7 @@ void View::engineHandleCmd(int cmd) { break; case ABILITY_CMD_TERM_WINDOW: { cc::CustomEvent event; - event.name = EVENT_DESTROY_WINDOW; + event.name = EVENT_DESTROY_WINDOW; event.args->ptrVal = cocosApp.pendingWindow; cc::EventDispatcher::dispatchCustomEvent(event); } break; diff --git a/native/cocos/platform/ohos/View.h b/native/cocos/platform/ohos/View.h index 0f8c4bb516..b92bd17809 100644 --- a/native/cocos/platform/ohos/View.h +++ b/native/cocos/platform/ohos/View.h @@ -1,18 +1,19 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -20,11 +21,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #pragma once -#include "base/Macros.h" #include +#include "base/Macros.h" namespace cc { diff --git a/native/cocos/platform/ohos/jni/AbilityConsts.h b/native/cocos/platform/ohos/jni/AbilityConsts.h index 27e3fa953f..984607b21d 100644 --- a/native/cocos/platform/ohos/jni/AbilityConsts.h +++ b/native/cocos/platform/ohos/jni/AbilityConsts.h @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp index 064a858dbb..7a54eb9ca6 100644 --- a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp +++ b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp @@ -1,26 +1,28 @@ /**************************************************************************** -Copyright (c) 2020 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ + #include "platform/ohos/jni/JniCocosAbility.h" #include #include @@ -40,7 +42,6 @@ THE SOFTWARE. #include "platform/ohos/FileUtils-ohos.h" #include "platform/ohos/jni/AbilityConsts.h" - #define LOGV(...) HILOG_INFO(LOG_APP, __VA_ARGS__) //NOLINTNEXTLINE using namespace cc::ohos; diff --git a/native/cocos/platform/ohos/jni/JniCocosAbility.h b/native/cocos/platform/ohos/jni/JniCocosAbility.h index f40196b834..42f7015f20 100644 --- a/native/cocos/platform/ohos/jni/JniCocosAbility.h +++ b/native/cocos/platform/ohos/jni/JniCocosAbility.h @@ -1,26 +1,28 @@ /**************************************************************************** -Copyright (c) 2020 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + http://www.cocos.com -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. ****************************************************************************/ + #pragma once #include diff --git a/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp b/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp index 9b576de24c..58b8e86582 100644 --- a/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp +++ b/native/cocos/platform/ohos/jni/JniCocosSurfaceView.cpp @@ -1,3 +1,28 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + #include #include #include diff --git a/native/cocos/platform/ohos/modules/Screen.cpp b/native/cocos/platform/ohos/modules/Screen.cpp index beeffc21fe..2df9b5d9a9 100644 --- a/native/cocos/platform/ohos/modules/Screen.cpp +++ b/native/cocos/platform/ohos/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/modules/Screen.h b/native/cocos/platform/ohos/modules/Screen.h index 38bd7e620c..6e3005cb27 100644 --- a/native/cocos/platform/ohos/modules/Screen.h +++ b/native/cocos/platform/ohos/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/ohos/modules/System.cpp b/native/cocos/platform/ohos/modules/System.cpp index 5a70ebd3a7..c20f4314f6 100644 --- a/native/cocos/platform/ohos/modules/System.cpp +++ b/native/cocos/platform/ohos/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,14 +25,12 @@ #include "platform/ohos/modules/System.h" - namespace cc { -System::System() = default; +System::System() = default; System::~System() = default; System::OSType System::getOSType() const { return OSType::OHOS; } - } // namespace cc \ No newline at end of file diff --git a/native/cocos/platform/ohos/modules/System.h b/native/cocos/platform/ohos/modules/System.h index 680a500217..c04654dfd0 100644 --- a/native/cocos/platform/ohos/modules/System.h +++ b/native/cocos/platform/ohos/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/FileUtils-qnx.cpp b/native/cocos/platform/qnx/FileUtils-qnx.cpp index cc1ec54644..866a0553cd 100644 --- a/native/cocos/platform/qnx/FileUtils-qnx.cpp +++ b/native/cocos/platform/qnx/FileUtils-qnx.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "FileUtils-qnx.h" #include #include diff --git a/native/cocos/platform/qnx/FileUtils-qnx.h b/native/cocos/platform/qnx/FileUtils-qnx.h index 640af73ea3..19d344b6b1 100644 --- a/native/cocos/platform/qnx/FileUtils-qnx.h +++ b/native/cocos/platform/qnx/FileUtils-qnx.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/QNXPlatform.cpp b/native/cocos/platform/qnx/QNXPlatform.cpp index bac44ccb5a..c84306a0e2 100644 --- a/native/cocos/platform/qnx/QNXPlatform.cpp +++ b/native/cocos/platform/qnx/QNXPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -33,7 +33,6 @@ #include "SDL2/SDL_sysvideo.h" #include "SDL2/SDL_syswm.h" - #include "platform/interfaces/OSInterface.h" #include "platform/interfaces/modules/ISystemWindow.h" diff --git a/native/cocos/platform/qnx/QNXPlatform.h b/native/cocos/platform/qnx/QNXPlatform.h index adac524c2c..996d2d917d 100644 --- a/native/cocos/platform/qnx/QNXPlatform.h +++ b/native/cocos/platform/qnx/QNXPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Accelerometer.cpp b/native/cocos/platform/qnx/modules/Accelerometer.cpp index 9051657131..debefab806 100644 --- a/native/cocos/platform/qnx/modules/Accelerometer.cpp +++ b/native/cocos/platform/qnx/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Accelerometer.h b/native/cocos/platform/qnx/modules/Accelerometer.h index 50a3c56992..266da13c03 100644 --- a/native/cocos/platform/qnx/modules/Accelerometer.h +++ b/native/cocos/platform/qnx/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Battery.cpp b/native/cocos/platform/qnx/modules/Battery.cpp index 721ef8fb9e..411b31b486 100644 --- a/native/cocos/platform/qnx/modules/Battery.cpp +++ b/native/cocos/platform/qnx/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/qnx/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/qnx/modules/Battery.h b/native/cocos/platform/qnx/modules/Battery.h index 928cbb038e..9b5ce28660 100644 --- a/native/cocos/platform/qnx/modules/Battery.h +++ b/native/cocos/platform/qnx/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp index c8c01b63ad..430c8e60fe 100644 --- a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/qnx/modules/CanvasRenderingContext2DDelegate.h" #include @@ -259,10 +259,10 @@ std::array CanvasRenderingContext2DDelegate::convertDrawPoint(Point po point[1] += extents.height; } if (text == ".") { - // The calculation of points is not the same as the calculation of numbers, - // which will cause the drawing of points and numbers to be different from the same horizontal line. - // Therefore, here is manually adjusted to calculate the drawing coordinates of - // the point according to the numerical calculation method + // The calculation of points is not the same as the calculation of numbers, + // which will cause the drawing of points and numbers to be different from the same horizontal line. + // Therefore, here is manually adjusted to calculate the drawing coordinates of + // the point according to the numerical calculation method cairo_text_extents_t extentNumber; cairo_text_extents(_cr, "1", &extentNumber); point[1] += extents.y_bearing - extentNumber.y_bearing; diff --git a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h index 9ef38b251d..167b16c65f 100644 --- a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Network.cpp b/native/cocos/platform/qnx/modules/Network.cpp index 6be5ba1a6e..39a41fee27 100644 --- a/native/cocos/platform/qnx/modules/Network.cpp +++ b/native/cocos/platform/qnx/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/qnx/modules/Network.h" namespace cc { diff --git a/native/cocos/platform/qnx/modules/Network.h b/native/cocos/platform/qnx/modules/Network.h index cd5f2d6d5a..bc90dbfb67 100644 --- a/native/cocos/platform/qnx/modules/Network.h +++ b/native/cocos/platform/qnx/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Screen.cpp b/native/cocos/platform/qnx/modules/Screen.cpp index dfd5fb2cc6..e2dd18b92b 100644 --- a/native/cocos/platform/qnx/modules/Screen.cpp +++ b/native/cocos/platform/qnx/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,14 +24,14 @@ ****************************************************************************/ #include "platform/qnx/modules/Screen.h" -#include "cocos/bindings/jswrapper/SeApi.h" #include "base/Macros.h" +#include "cocos/bindings/jswrapper/SeApi.h" namespace cc { int Screen::getDPI() const { static int dpi = -1; - if (dpi == -1) { + if (dpi == -1) { //screen_get_window_property_iv(screen_win, SCREEN_PROPERTY_DPI, &dpi); } return dpi; diff --git a/native/cocos/platform/qnx/modules/Screen.h b/native/cocos/platform/qnx/modules/Screen.h index 06eb7a8c15..995ec19ed4 100644 --- a/native/cocos/platform/qnx/modules/Screen.h +++ b/native/cocos/platform/qnx/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/System.cpp b/native/cocos/platform/qnx/modules/System.cpp index 5806c85508..ca3ee7fe31 100644 --- a/native/cocos/platform/qnx/modules/System.cpp +++ b/native/cocos/platform/qnx/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -53,8 +53,8 @@ System::LanguageType System::getCurrentLanguage() const { } std::string System::getCurrentLanguageCode() const { - static char code[3]={0}; - char *pLanguageName = getenv("LANG"); + static char code[3] = {0}; + char* pLanguageName = getenv("LANG"); if (!pLanguageName) { return "en"; } @@ -62,8 +62,8 @@ std::string System::getCurrentLanguageCode() const { if (!pLanguageName) { return "en"; } - strncpy(code,pLanguageName,2); - code[2]='\0'; + strncpy(code, pLanguageName, 2); + code[2] = '\0'; return code; } @@ -120,7 +120,7 @@ System::LanguageType System::getLanguageTypeByISO2(const char* code) const { ret = LanguageType::ROMANIAN; } else if (strncmp(code, "bg", 2) == 0) { ret = LanguageType::BULGARIAN; - } + } return ret; } } // namespace cc \ No newline at end of file diff --git a/native/cocos/platform/qnx/modules/System.h b/native/cocos/platform/qnx/modules/System.h index 87e05a1c49..33938ae5c9 100644 --- a/native/cocos/platform/qnx/modules/System.h +++ b/native/cocos/platform/qnx/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -60,6 +60,7 @@ public: @return True if the resource located by the URL was successfully opened; otherwise false. */ bool openURL(const std::string& url) override; + private: LanguageType getLanguageTypeByISO2(const char* code) const; }; diff --git a/native/cocos/platform/qnx/modules/SystemWindow.cpp b/native/cocos/platform/qnx/modules/SystemWindow.cpp index 0cdbe5ee65..199758ad1d 100644 --- a/native/cocos/platform/qnx/modules/SystemWindow.cpp +++ b/native/cocos/platform/qnx/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/SystemWindow.h b/native/cocos/platform/qnx/modules/SystemWindow.h index 44b447075d..4d1386ca11 100644 --- a/native/cocos/platform/qnx/modules/SystemWindow.h +++ b/native/cocos/platform/qnx/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Vibrate.cpp b/native/cocos/platform/qnx/modules/Vibrate.cpp index 47c392dddb..f93322ae4d 100644 --- a/native/cocos/platform/qnx/modules/Vibrate.cpp +++ b/native/cocos/platform/qnx/modules/Vibrate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/qnx/modules/Vibrate.h b/native/cocos/platform/qnx/modules/Vibrate.h index f0afad6cbf..32b6007f0b 100644 --- a/native/cocos/platform/qnx/modules/Vibrate.h +++ b/native/cocos/platform/qnx/modules/Vibrate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/FileUtils-win32.cpp b/native/cocos/platform/win32/FileUtils-win32.cpp index c0e631c679..815dce78f4 100644 --- a/native/cocos/platform/win32/FileUtils-win32.cpp +++ b/native/cocos/platform/win32/FileUtils-win32.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -27,12 +27,12 @@ #if CC_PLATFORM == CC_PLATFORM_WINDOWS #include "platform/win32/FileUtils-win32.h" - #include "platform/win32/Utils-win32.h" - #include "base/Log.h" #include #include #include #include + #include "base/Log.h" + #include "platform/win32/Utils-win32.h" using namespace std; @@ -47,7 +47,7 @@ static std::string s_resourcePath = ""; // D:\aaa\bbb\ccc\ddd\abc.txt --> D:/aaa/bbb/ccc/ddd/abc.txt static inline std::string convertPathFormatToUnixStyle(const std::string &path) { std::string ret = path; - size_t len = ret.length(); + size_t len = ret.length(); for (size_t i = 0; i < len; ++i) { if (ret[i] == '\\') { ret[i] = '/'; @@ -66,7 +66,7 @@ static void _checkPath() { WCHAR *pUtf16DirEnd = wcsrchr(pUtf16ExePath, L'\\'); char utf8ExeDir[CC_MAX_PATH] = {0}; - int nNum = WideCharToMultiByte(CP_UTF8, 0, pUtf16ExePath, static_cast(pUtf16DirEnd - pUtf16ExePath + 1), utf8ExeDir, sizeof(utf8ExeDir), nullptr, nullptr); + int nNum = WideCharToMultiByte(CP_UTF8, 0, pUtf16ExePath, static_cast(pUtf16DirEnd - pUtf16ExePath + 1), utf8ExeDir, sizeof(utf8ExeDir), nullptr, nullptr); s_resourcePath = convertPathFormatToUnixStyle(utf8ExeDir); } @@ -113,7 +113,7 @@ long FileUtilsWin32::getFileSize(const std::string &filepath) { } LARGE_INTEGER size; size.HighPart = fad.nFileSizeHigh; - size.LowPart = fad.nFileSizeLow; + size.LowPart = fad.nFileSizeLow; return (long)size.QuadPart; } @@ -152,7 +152,7 @@ FileUtils::Status FileUtilsWin32::getContents(const std::string &filename, Resiz return FileUtils::Status::OPEN_FAILED; DWORD hi; - auto size = ::GetFileSize(fileHandle, &hi); + auto size = ::GetFileSize(fileHandle, &hi); if (hi > 0) { ::CloseHandle(fileHandle); return FileUtils::Status::TOO_LARGE; @@ -164,8 +164,8 @@ FileUtils::Status FileUtilsWin32::getContents(const std::string &filename, Resiz } buffer->resize(size); - DWORD sizeRead = 0; - BOOL successed = ::ReadFile(fileHandle, buffer->buffer(), size, &sizeRead, nullptr); + DWORD sizeRead = 0; + BOOL successed = ::ReadFile(fileHandle, buffer->buffer(), size, &sizeRead, nullptr); ::CloseHandle(fileHandle); if (!successed) { @@ -177,7 +177,7 @@ FileUtils::Status FileUtilsWin32::getContents(const std::string &filename, Resiz } std::string FileUtilsWin32::getPathForFilename(const std::string &filename, const std::string &searchPath) const { - std::string unixFileName = convertPathFormatToUnixStyle(filename); + std::string unixFileName = convertPathFormatToUnixStyle(filename); std::string unixSearchPath = convertPathFormatToUnixStyle(searchPath); return FileUtils::getPathForFilename(unixFileName, unixSearchPath); @@ -185,7 +185,7 @@ std::string FileUtilsWin32::getPathForFilename(const std::string &filename, cons std::string FileUtilsWin32::getFullPathForDirectoryAndFilename(const std::string &strDirectory, const std::string &strFilename) const { std::string unixDirectory = convertPathFormatToUnixStyle(strDirectory); - std::string unixFilename = convertPathFormatToUnixStyle(strFilename); + std::string unixFilename = convertPathFormatToUnixStyle(strFilename); return FileUtils::getFullPathForDirectoryAndFilename(unixDirectory, unixFilename); } @@ -202,7 +202,7 @@ string FileUtilsWin32::getWritablePath() const { // Debug app uses executable directory; Non-debug app uses local app data directory //#ifndef _DEBUG // Get filename of executable only, e.g. MyGame.exe - WCHAR *base_name = wcsrchr(full_path, '\\'); + WCHAR * base_name = wcsrchr(full_path, '\\'); wstring retPath; if (base_name) { WCHAR app_data_path[CC_MAX_PATH + 1]; @@ -264,7 +264,7 @@ bool FileUtilsWin32::renameFile(const std::string &path, const std::string &oldn std::string oldPath = path + oldname; std::string newPath = path + name; - std::regex pat("\\/"); + std::regex pat("\\/"); std::string _old = std::regex_replace(oldPath, pat, "\\"); std::string _new = std::regex_replace(newPath, pat, "\\"); @@ -280,9 +280,9 @@ bool FileUtilsWin32::createDirectory(const std::string &dirPath) { std::wstring path = StringUtf8ToWideChar(dirPath); // Split the path - size_t start = 0; - size_t found = path.find_first_of(L"/\\", start); - std::wstring subpath; + size_t start = 0; + size_t found = path.find_first_of(L"/\\", start); + std::wstring subpath; std::vector dirs; if (found != std::wstring::npos) { @@ -320,7 +320,7 @@ bool FileUtilsWin32::createDirectory(const std::string &dirPath) { } bool FileUtilsWin32::removeFile(const std::string &filepath) { - std::regex pat("\\/"); + std::regex pat("\\/"); std::string win32path = std::regex_replace(filepath, pat, "\\"); if (DeleteFile(StringUtf8ToWideChar(win32path).c_str())) { @@ -332,11 +332,11 @@ bool FileUtilsWin32::removeFile(const std::string &filepath) { } bool FileUtilsWin32::removeDirectory(const std::string &dirPath) { - std::wstring wpath = StringUtf8ToWideChar(dirPath); - std::wstring files = wpath + L"*.*"; + std::wstring wpath = StringUtf8ToWideChar(dirPath); + std::wstring files = wpath + L"*.*"; WIN32_FIND_DATA wfd; - HANDLE search = FindFirstFileEx(files.c_str(), FindExInfoStandard, &wfd, FindExSearchNameMatch, NULL, 0); - bool ret = true; + HANDLE search = FindFirstFileEx(files.c_str(), FindExInfoStandard, &wfd, FindExSearchNameMatch, NULL, 0); + bool ret = true; if (search != INVALID_HANDLE_VALUE) { BOOL find = true; while (find) { diff --git a/native/cocos/platform/win32/FileUtils-win32.h b/native/cocos/platform/win32/FileUtils-win32.h index dd7c25225b..727731a5bd 100644 --- a/native/cocos/platform/win32/FileUtils-win32.h +++ b/native/cocos/platform/win32/FileUtils-win32.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,10 +30,10 @@ #if CC_PLATFORM == CC_PLATFORM_WINDOWS - #include "platform/FileUtils.h" - #include "base/Macros.h" #include #include + #include "base/Macros.h" + #include "platform/FileUtils.h" namespace cc { @@ -49,11 +49,11 @@ class CC_DLL FileUtilsWin32 : public FileUtils { public: /* override functions */ - bool init(); + bool init(); virtual std::string getWritablePath() const override; - virtual bool isAbsolutePath(const std::string &strPath) const override; + virtual bool isAbsolutePath(const std::string &strPath) const override; virtual std::string getSuitableFOpen(const std::string &filenameUtf8) const override; - virtual long getFileSize(const std::string &filepath); + virtual long getFileSize(const std::string &filepath); protected: virtual bool isFileExistInternal(const std::string &strFilePath) const override; diff --git a/native/cocos/platform/win32/SystemGlue.cpp b/native/cocos/platform/win32/SystemGlue.cpp index e69de29bb2..dbdea90975 100644 --- a/native/cocos/platform/win32/SystemGlue.cpp +++ b/native/cocos/platform/win32/SystemGlue.cpp @@ -0,0 +1,24 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ diff --git a/native/cocos/platform/win32/SystemGlue.h b/native/cocos/platform/win32/SystemGlue.h index e69de29bb2..dbdea90975 100644 --- a/native/cocos/platform/win32/SystemGlue.h +++ b/native/cocos/platform/win32/SystemGlue.h @@ -0,0 +1,24 @@ +/**************************************************************************** + Copyright (c) 2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ diff --git a/native/cocos/platform/win32/Utils-win32.cpp b/native/cocos/platform/win32/Utils-win32.cpp index 99a8e15407..8b49bf4d44 100644 --- a/native/cocos/platform/win32/Utils-win32.cpp +++ b/native/cocos/platform/win32/Utils-win32.cpp @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,9 +26,9 @@ ****************************************************************************/ #include "platform/win32/Utils-win32.h" -#include "platform/StdC.h" #include #include "base/Log.h" +#include "platform/StdC.h" namespace cc { @@ -38,7 +38,7 @@ std::wstring StringUtf8ToWideChar(const std::string &strUtf8) { int nNum = MultiByteToWideChar(CP_UTF8, 0, strUtf8.c_str(), -1, nullptr, 0); if (nNum) { WCHAR *wideCharString = new WCHAR[nNum + 1]; - wideCharString[0] = 0; + wideCharString[0] = 0; nNum = MultiByteToWideChar(CP_UTF8, 0, strUtf8.c_str(), -1, wideCharString, nNum + 1); @@ -57,7 +57,7 @@ std::string StringWideCharToUtf8(const std::wstring &strWideChar) { int nNum = WideCharToMultiByte(CP_UTF8, 0, strWideChar.c_str(), -1, nullptr, 0, nullptr, FALSE); if (nNum) { char *utf8String = new char[nNum + 1]; - utf8String[0] = 0; + utf8String[0] = 0; nNum = WideCharToMultiByte(CP_UTF8, 0, strWideChar.c_str(), -1, utf8String, nNum + 1, nullptr, FALSE); @@ -75,10 +75,10 @@ std::string UTF8StringToMultiByte(const std::string &strUtf8) { std::string ret; if (!strUtf8.empty()) { std::wstring strWideChar = StringUtf8ToWideChar(strUtf8); - int nNum = WideCharToMultiByte(CP_ACP, 0, strWideChar.c_str(), -1, nullptr, 0, nullptr, FALSE); + int nNum = WideCharToMultiByte(CP_ACP, 0, strWideChar.c_str(), -1, nullptr, 0, nullptr, FALSE); if (nNum) { char *ansiString = new char[nNum + 1]; - ansiString[0] = 0; + ansiString[0] = 0; nNum = WideCharToMultiByte(CP_ACP, 0, strWideChar.c_str(), -1, ansiString, nNum + 1, nullptr, FALSE); diff --git a/native/cocos/platform/win32/Utils-win32.h b/native/cocos/platform/win32/Utils-win32.h index e594fd81a4..856d6f9ac7 100644 --- a/native/cocos/platform/win32/Utils-win32.h +++ b/native/cocos/platform/win32/Utils-win32.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,8 +35,8 @@ namespace cc { std::wstring CC_DLL StringUtf8ToWideChar(const std::string &strUtf8); -std::string CC_DLL StringWideCharToUtf8(const std::wstring &strWideChar); -std::string CC_DLL UTF8StringToMultiByte(const std::string &strUtf8); +std::string CC_DLL StringWideCharToUtf8(const std::wstring &strWideChar); +std::string CC_DLL UTF8StringToMultiByte(const std::string &strUtf8); } // namespace cc diff --git a/native/cocos/platform/win32/WindowsPlatform.cpp b/native/cocos/platform/win32/WindowsPlatform.cpp index abfe53b3a1..05f091173c 100644 --- a/native/cocos/platform/win32/WindowsPlatform.cpp +++ b/native/cocos/platform/win32/WindowsPlatform.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -453,7 +453,6 @@ bool WindowsPlatform::createWindow(const char *title, return true; } - uintptr_t WindowsPlatform::getWindowHandler() const { SDL_SysWMinfo wmInfo; SDL_VERSION(&wmInfo.version); diff --git a/native/cocos/platform/win32/WindowsPlatform.h b/native/cocos/platform/win32/WindowsPlatform.h index 98eb162757..58e831ed42 100644 --- a/native/cocos/platform/win32/WindowsPlatform.h +++ b/native/cocos/platform/win32/WindowsPlatform.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -33,8 +33,8 @@ struct SDL_Window; namespace cc { -class WindowsPlatform : public UniversalPlatform , - public SystemWindow::Delegate{ +class WindowsPlatform : public UniversalPlatform, + public SystemWindow::Delegate { public: WindowsPlatform(); /** @@ -49,9 +49,9 @@ public: int32_t loop() override; // override from SystemWindow::Delegate - bool createWindow(const char* title, - int x, int y, int w, - int h, int flags) override; + bool createWindow(const char* title, + int x, int y, int w, + int h, int flags) override; uintptr_t getWindowHandler() const override; private: diff --git a/native/cocos/platform/win32/compat/stdint.h b/native/cocos/platform/win32/compat/stdint.h index 504c1fa853..3afa0e5b14 100644 --- a/native/cocos/platform/win32/compat/stdint.h +++ b/native/cocos/platform/win32/compat/stdint.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -98,54 +98,54 @@ extern "C" { // realize that, e.g. char has the same size as __int8 // so we give up on __intX for them. #if (_MSC_VER < 1300) -typedef signed char int8_t; -typedef signed short int16_t; -typedef signed int int32_t; -typedef unsigned char uint8_t; +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed int int32_t; +typedef unsigned char uint8_t; typedef unsigned short uint16_t; -typedef unsigned int uint32_t; +typedef unsigned int uint32_t; #else -typedef signed __int8 int8_t; -typedef signed __int16 int16_t; -typedef signed __int32 int32_t; -typedef unsigned __int8 uint8_t; -typedef unsigned __int16 uint16_t; -typedef unsigned __int32 uint32_t; +typedef signed __int8 int8_t; +typedef signed __int16 int16_t; +typedef signed __int32 int32_t; +typedef unsigned __int8 uint8_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int32 uint32_t; #endif -typedef signed __int64 int64_t; +typedef signed __int64 int64_t; typedef unsigned __int64 uint64_t; // 7.18.1.2 Minimum-width integer types -typedef int8_t int_least8_t; -typedef int16_t int_least16_t; -typedef int32_t int_least32_t; -typedef int64_t int_least64_t; -typedef uint8_t uint_least8_t; +typedef int8_t int_least8_t; +typedef int16_t int_least16_t; +typedef int32_t int_least32_t; +typedef int64_t int_least64_t; +typedef uint8_t uint_least8_t; typedef uint16_t uint_least16_t; typedef uint32_t uint_least32_t; typedef uint64_t uint_least64_t; // 7.18.1.3 Fastest minimum-width integer types -typedef int8_t int_fast8_t; -typedef int16_t int_fast16_t; -typedef int32_t int_fast32_t; -typedef int64_t int_fast64_t; -typedef uint8_t uint_fast8_t; +typedef int8_t int_fast8_t; +typedef int16_t int_fast16_t; +typedef int32_t int_fast32_t; +typedef int64_t int_fast64_t; +typedef uint8_t uint_fast8_t; typedef uint16_t uint_fast16_t; typedef uint32_t uint_fast32_t; typedef uint64_t uint_fast64_t; // 7.18.1.4 Integer types capable of holding object pointers #ifdef _WIN64 // [ -typedef signed __int64 intptr_t; +typedef signed __int64 intptr_t; typedef unsigned __int64 uintptr_t; #else // _WIN64 ][ -typedef _W64 signed int intptr_t; +typedef _W64 signed int intptr_t; typedef _W64 unsigned int uintptr_t; #endif // _WIN64 ] // 7.18.1.5 Greatest-width integer types -typedef int64_t intmax_t; +typedef int64_t intmax_t; typedef uint64_t uintmax_t; // 7.18.2 Limits of specified-width integer types diff --git a/native/cocos/platform/win32/modules/Accelerometer.cpp b/native/cocos/platform/win32/modules/Accelerometer.cpp index cc8aed6e93..941cc1f896 100644 --- a/native/cocos/platform/win32/modules/Accelerometer.cpp +++ b/native/cocos/platform/win32/modules/Accelerometer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Accelerometer.h b/native/cocos/platform/win32/modules/Accelerometer.h index a760b03564..0f8cda7f26 100644 --- a/native/cocos/platform/win32/modules/Accelerometer.h +++ b/native/cocos/platform/win32/modules/Accelerometer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Battery.cpp b/native/cocos/platform/win32/modules/Battery.cpp index e1d792c265..97d96a1ceb 100644 --- a/native/cocos/platform/win32/modules/Battery.cpp +++ b/native/cocos/platform/win32/modules/Battery.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/win32/modules/Battery.h" namespace cc { diff --git a/native/cocos/platform/win32/modules/Battery.h b/native/cocos/platform/win32/modules/Battery.h index 5dc4390c5d..d2be61604d 100644 --- a/native/cocos/platform/win32/modules/Battery.h +++ b/native/cocos/platform/win32/modules/Battery.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp index 494eebaaee..3b17318667 100644 --- a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -20,8 +20,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. \ - ****************************************************************************/ + THE SOFTWARE. +****************************************************************************/ #include "platform/win32/modules/CanvasRenderingContext2DDelegate.h" diff --git a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h index 4a4be0f599..b6726c9eb2 100644 --- a/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/win32/modules/CanvasRenderingContext2DDelegate.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Network.cpp b/native/cocos/platform/win32/modules/Network.cpp index 2044071954..5f1c622317 100644 --- a/native/cocos/platform/win32/modules/Network.cpp +++ b/native/cocos/platform/win32/modules/Network.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #include "platform/win32/modules/Network.h" namespace cc { diff --git a/native/cocos/platform/win32/modules/Network.h b/native/cocos/platform/win32/modules/Network.h index f4bcf5e504..588fcabc80 100644 --- a/native/cocos/platform/win32/modules/Network.h +++ b/native/cocos/platform/win32/modules/Network.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Screen.cpp b/native/cocos/platform/win32/modules/Screen.cpp index 2637b0e797..7db05413a0 100644 --- a/native/cocos/platform/win32/modules/Screen.cpp +++ b/native/cocos/platform/win32/modules/Screen.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,8 +24,8 @@ ****************************************************************************/ #include "platform/win32/modules/Screen.h" -#include "cocos/bindings/jswrapper/SeApi.h" #include "base/Macros.h" +#include "cocos/bindings/jswrapper/SeApi.h" #include diff --git a/native/cocos/platform/win32/modules/Screen.h b/native/cocos/platform/win32/modules/Screen.h index a7b021101f..08fb694f31 100644 --- a/native/cocos/platform/win32/modules/Screen.h +++ b/native/cocos/platform/win32/modules/Screen.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/System.cpp b/native/cocos/platform/win32/modules/System.cpp index da0be1749d..f78fdf8c1a 100644 --- a/native/cocos/platform/win32/modules/System.cpp +++ b/native/cocos/platform/win32/modules/System.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -144,10 +144,10 @@ std::string System::getSystemVersion() const { } bool System::openURL(const std::string& url) { - WCHAR* temp = new WCHAR[url.size() + 1]; + WCHAR* temp = new WCHAR[url.size() + 1]; int urlSize = static_cast(url.size() + 1); MultiByteToWideChar(CP_UTF8, 0, url.c_str(), urlSize, temp, urlSize); - HINSTANCE r = ShellExecuteW(NULL, L"open", temp, NULL, NULL, SW_SHOWNORMAL); + HINSTANCE r = ShellExecuteW(NULL, L"open", temp, NULL, NULL, SW_SHOWNORMAL); delete[] temp; return (size_t)r > 32; } diff --git a/native/cocos/platform/win32/modules/System.h b/native/cocos/platform/win32/modules/System.h index e6287b9965..e495d7ca62 100644 --- a/native/cocos/platform/win32/modules/System.h +++ b/native/cocos/platform/win32/modules/System.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/SystemWindow.cpp b/native/cocos/platform/win32/modules/SystemWindow.cpp index 16b2ee5421..12ab37e6ed 100644 --- a/native/cocos/platform/win32/modules/SystemWindow.cpp +++ b/native/cocos/platform/win32/modules/SystemWindow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,7 +35,6 @@ #include "sdl2/SDL_main.h" #include "sdl2/SDL_syswm.h" - namespace { } // namespace diff --git a/native/cocos/platform/win32/modules/SystemWindow.h b/native/cocos/platform/win32/modules/SystemWindow.h index 44b447075d..4d1386ca11 100644 --- a/native/cocos/platform/win32/modules/SystemWindow.h +++ b/native/cocos/platform/win32/modules/SystemWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Vibrator.cpp b/native/cocos/platform/win32/modules/Vibrator.cpp index ba6bfeadb3..4ca1bfaf5f 100644 --- a/native/cocos/platform/win32/modules/Vibrator.cpp +++ b/native/cocos/platform/win32/modules/Vibrator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/platform/win32/modules/Vibrator.h b/native/cocos/platform/win32/modules/Vibrator.h index 9a8ea1657d..7f755242df 100644 --- a/native/cocos/platform/win32/modules/Vibrator.h +++ b/native/cocos/platform/win32/modules/Vibrator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/GFXDeviceManager.h b/native/cocos/renderer/GFXDeviceManager.h index 0b224189f0..8f2083d077 100644 --- a/native/cocos/renderer/GFXDeviceManager.h +++ b/native/cocos/renderer/GFXDeviceManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/Blackboard.h b/native/cocos/renderer/frame-graph/Blackboard.h index 1de411952c..31dc37f1ff 100644 --- a/native/cocos/renderer/frame-graph/Blackboard.h +++ b/native/cocos/renderer/frame-graph/Blackboard.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/CallbackPass.h b/native/cocos/renderer/frame-graph/CallbackPass.h index f770a94a07..97eb6686a9 100644 --- a/native/cocos/renderer/frame-graph/CallbackPass.h +++ b/native/cocos/renderer/frame-graph/CallbackPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePass.cpp b/native/cocos/renderer/frame-graph/DevicePass.cpp index a15173e668..85f3ce1d00 100644 --- a/native/cocos/renderer/frame-graph/DevicePass.cpp +++ b/native/cocos/renderer/frame-graph/DevicePass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePass.h b/native/cocos/renderer/frame-graph/DevicePass.h index 861846dd82..7f5f12e2cb 100644 --- a/native/cocos/renderer/frame-graph/DevicePass.h +++ b/native/cocos/renderer/frame-graph/DevicePass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp b/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp index 635dde708f..c12732d2ba 100644 --- a/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp +++ b/native/cocos/renderer/frame-graph/DevicePassResourceTable.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/DevicePassResourceTable.h b/native/cocos/renderer/frame-graph/DevicePassResourceTable.h index 824020234f..6966c83a4a 100644 --- a/native/cocos/renderer/frame-graph/DevicePassResourceTable.h +++ b/native/cocos/renderer/frame-graph/DevicePassResourceTable.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -55,7 +55,7 @@ public: getWrite(TypedHandle handle) const noexcept; gfx::RenderPass *getRenderPass() const { return _renderPass; } - uint32_t getSubpassIndex() const { return _subpassIndex; } + uint32_t getSubpassIndex() const { return _subpassIndex; } private: using ResourceDictionary = std::unordered_map; @@ -68,7 +68,7 @@ private: ResourceDictionary _writes{}; gfx::RenderPass *_renderPass{nullptr}; - uint32_t _subpassIndex{0U}; + uint32_t _subpassIndex{0U}; friend class DevicePass; }; diff --git a/native/cocos/renderer/frame-graph/FrameGraph.cpp b/native/cocos/renderer/frame-graph/FrameGraph.cpp index 8ce1bc9666..8a605dcfc7 100644 --- a/native/cocos/renderer/frame-graph/FrameGraph.cpp +++ b/native/cocos/renderer/frame-graph/FrameGraph.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/FrameGraph.h b/native/cocos/renderer/frame-graph/FrameGraph.h index 8779913abc..8f1a0bcf5d 100644 --- a/native/cocos/renderer/frame-graph/FrameGraph.h +++ b/native/cocos/renderer/frame-graph/FrameGraph.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/Handle.h b/native/cocos/renderer/frame-graph/Handle.h index 62fb410dc2..da25385e3c 100644 --- a/native/cocos/renderer/frame-graph/Handle.h +++ b/native/cocos/renderer/frame-graph/Handle.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp b/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp index 1e5f2e3ded..f39000652b 100644 --- a/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp +++ b/native/cocos/renderer/frame-graph/PassInsertPointManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassInsertPointManager.h b/native/cocos/renderer/frame-graph/PassInsertPointManager.h index c448ea4c61..8d94c166b3 100644 --- a/native/cocos/renderer/frame-graph/PassInsertPointManager.h +++ b/native/cocos/renderer/frame-graph/PassInsertPointManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassNode.cpp b/native/cocos/renderer/frame-graph/PassNode.cpp index 5822302733..c624b975f7 100644 --- a/native/cocos/renderer/frame-graph/PassNode.cpp +++ b/native/cocos/renderer/frame-graph/PassNode.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassNode.h b/native/cocos/renderer/frame-graph/PassNode.h index 404bf07819..02a399de05 100644 --- a/native/cocos/renderer/frame-graph/PassNode.h +++ b/native/cocos/renderer/frame-graph/PassNode.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -100,8 +100,8 @@ void PassNode::sideEffect() { } void PassNode::subpass(bool end, bool clearActionIgnorable) { - _subpass = true; - _subpassEnd = end; + _subpass = true; + _subpassEnd = end; _clearActionIgnorable = clearActionIgnorable; } diff --git a/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp b/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp index 1c5d9601ca..bc55250a18 100644 --- a/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp +++ b/native/cocos/renderer/frame-graph/PassNodeBuilder.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/PassNodeBuilder.h b/native/cocos/renderer/frame-graph/PassNodeBuilder.h index daa9099249..a594c14301 100644 --- a/native/cocos/renderer/frame-graph/PassNodeBuilder.h +++ b/native/cocos/renderer/frame-graph/PassNodeBuilder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/RenderTargetAttachment.h b/native/cocos/renderer/frame-graph/RenderTargetAttachment.h index 706adeee8c..aafe9a0551 100644 --- a/native/cocos/renderer/frame-graph/RenderTargetAttachment.h +++ b/native/cocos/renderer/frame-graph/RenderTargetAttachment.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/Resource.h b/native/cocos/renderer/frame-graph/Resource.h index 4146d0eb64..0cff12ba34 100644 --- a/native/cocos/renderer/frame-graph/Resource.h +++ b/native/cocos/renderer/frame-graph/Resource.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/ResourceAllocator.h b/native/cocos/renderer/frame-graph/ResourceAllocator.h index de4c252510..9645461834 100644 --- a/native/cocos/renderer/frame-graph/ResourceAllocator.h +++ b/native/cocos/renderer/frame-graph/ResourceAllocator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/ResourceEntry.h b/native/cocos/renderer/frame-graph/ResourceEntry.h index e6c5308da3..a128cdbdf3 100644 --- a/native/cocos/renderer/frame-graph/ResourceEntry.h +++ b/native/cocos/renderer/frame-graph/ResourceEntry.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/ResourceNode.h b/native/cocos/renderer/frame-graph/ResourceNode.h index 3776de2b45..e95193a808 100644 --- a/native/cocos/renderer/frame-graph/ResourceNode.h +++ b/native/cocos/renderer/frame-graph/ResourceNode.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/VirtualResource.cpp b/native/cocos/renderer/frame-graph/VirtualResource.cpp index 4484ed2b89..e623e19794 100644 --- a/native/cocos/renderer/frame-graph/VirtualResource.cpp +++ b/native/cocos/renderer/frame-graph/VirtualResource.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/frame-graph/VirtualResource.h b/native/cocos/renderer/frame-graph/VirtualResource.h index bdd4adb134..c45fc092af 100644 --- a/native/cocos/renderer/frame-graph/VirtualResource.h +++ b/native/cocos/renderer/frame-graph/VirtualResource.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/BufferAgent.cpp b/native/cocos/renderer/gfx-agent/BufferAgent.cpp index d561c48004..ddebf26b81 100644 --- a/native/cocos/renderer/gfx-agent/BufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/BufferAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,9 +26,9 @@ #include "base/CoreStd.h" #include "base/memory/Memory.h" +#include #include "BufferAgent.h" #include "DeviceAgent.h" -#include namespace cc { namespace gfx { diff --git a/native/cocos/renderer/gfx-agent/BufferAgent.h b/native/cocos/renderer/gfx-agent/BufferAgent.h index 58a794cb92..fc1883778c 100644 --- a/native/cocos/renderer/gfx-agent/BufferAgent.h +++ b/native/cocos/renderer/gfx-agent/BufferAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp b/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp index 8461c74183..6611237da1 100644 --- a/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,6 +24,7 @@ ****************************************************************************/ #include "CommandBufferAgent.h" +#include #include "BufferAgent.h" #include "DescriptorSetAgent.h" #include "DeviceAgent.h" @@ -39,8 +40,6 @@ #include "base/job-system/JobSystem.h" #include "base/threading/MessageQueue.h" #include "base/threading/ThreadSafeLinearAllocator.h" -#include - namespace cc { namespace gfx { diff --git a/native/cocos/renderer/gfx-agent/CommandBufferAgent.h b/native/cocos/renderer/gfx-agent/CommandBufferAgent.h index d7430b693b..390a5e6858 100644 --- a/native/cocos/renderer/gfx-agent/CommandBufferAgent.h +++ b/native/cocos/renderer/gfx-agent/CommandBufferAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp index c15402ab67..9745496494 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp +++ b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h index 709c74ef0b..a1f4ecc525 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h +++ b/native/cocos/renderer/gfx-agent/DescriptorSetAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp index 023ae952e2..e618b361b3 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp +++ b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h index 4f36ab9e12..a5d4a69993 100644 --- a/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h +++ b/native/cocos/renderer/gfx-agent/DescriptorSetLayoutAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/DeviceAgent.cpp b/native/cocos/renderer/gfx-agent/DeviceAgent.cpp index a524c6056f..eb109a7de1 100644 --- a/native/cocos/renderer/gfx-agent/DeviceAgent.cpp +++ b/native/cocos/renderer/gfx-agent/DeviceAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -276,7 +276,7 @@ TextureBarrier *DeviceAgent::getTextureBarrier(const TextureBarrierInfo &info) { return _actor->getTextureBarrier(info); } -template +template void doBufferTextureCopy(const uint8_t *const *buffers, Texture *texture, const BufferTextureCopy *regions, uint32_t count, MessageQueue *mq, T *actor) { uint32_t bufferCount = 0U; for (uint32_t i = 0U; i < count; i++) { diff --git a/native/cocos/renderer/gfx-agent/DeviceAgent.h b/native/cocos/renderer/gfx-agent/DeviceAgent.h index 2e7dd19ccc..d8d0fd3350 100644 --- a/native/cocos/renderer/gfx-agent/DeviceAgent.h +++ b/native/cocos/renderer/gfx-agent/DeviceAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp b/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp index e7ff860e65..69800d3a38 100644 --- a/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/FramebufferAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/FramebufferAgent.h b/native/cocos/renderer/gfx-agent/FramebufferAgent.h index 683a05bb01..631aa26d58 100644 --- a/native/cocos/renderer/gfx-agent/FramebufferAgent.h +++ b/native/cocos/renderer/gfx-agent/FramebufferAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp index d1e5d4c31b..12c36663c4 100644 --- a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp +++ b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h index af1e2e0654..8312f17d9e 100644 --- a/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h +++ b/native/cocos/renderer/gfx-agent/InputAssemblerAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp index 38026eb0ea..d3df0f5b6d 100644 --- a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp +++ b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h index 0af707db67..5eb375a6de 100644 --- a/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h +++ b/native/cocos/renderer/gfx-agent/PipelineLayoutAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp b/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp index d71680af7d..dead42c4de 100644 --- a/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp +++ b/native/cocos/renderer/gfx-agent/PipelineStateAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/PipelineStateAgent.h b/native/cocos/renderer/gfx-agent/PipelineStateAgent.h index 7cb85ea183..7f93398831 100644 --- a/native/cocos/renderer/gfx-agent/PipelineStateAgent.h +++ b/native/cocos/renderer/gfx-agent/PipelineStateAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp b/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp index 1299c7b4ed..376d26e387 100644 --- a/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp +++ b/native/cocos/renderer/gfx-agent/QueryPoolAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueryPoolAgent.h b/native/cocos/renderer/gfx-agent/QueryPoolAgent.h index 7efd6b63d2..5e70fe34f3 100644 --- a/native/cocos/renderer/gfx-agent/QueryPoolAgent.h +++ b/native/cocos/renderer/gfx-agent/QueryPoolAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueueAgent.cpp b/native/cocos/renderer/gfx-agent/QueueAgent.cpp index 001e3d1a0b..755c8ca308 100644 --- a/native/cocos/renderer/gfx-agent/QueueAgent.cpp +++ b/native/cocos/renderer/gfx-agent/QueueAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/QueueAgent.h b/native/cocos/renderer/gfx-agent/QueueAgent.h index 6ca1259442..674095fa5a 100644 --- a/native/cocos/renderer/gfx-agent/QueueAgent.h +++ b/native/cocos/renderer/gfx-agent/QueueAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp b/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp index 9cace3b941..d500dfb443 100644 --- a/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp +++ b/native/cocos/renderer/gfx-agent/RenderPassAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/RenderPassAgent.h b/native/cocos/renderer/gfx-agent/RenderPassAgent.h index 2f624550f4..4008af1cee 100644 --- a/native/cocos/renderer/gfx-agent/RenderPassAgent.h +++ b/native/cocos/renderer/gfx-agent/RenderPassAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/ShaderAgent.cpp b/native/cocos/renderer/gfx-agent/ShaderAgent.cpp index 682072d3b4..116b1e8d67 100644 --- a/native/cocos/renderer/gfx-agent/ShaderAgent.cpp +++ b/native/cocos/renderer/gfx-agent/ShaderAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/ShaderAgent.h b/native/cocos/renderer/gfx-agent/ShaderAgent.h index 23e3e3f697..c80bcf21d9 100644 --- a/native/cocos/renderer/gfx-agent/ShaderAgent.h +++ b/native/cocos/renderer/gfx-agent/ShaderAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp b/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp index b19f9b2131..b3ba84dcc8 100644 --- a/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp +++ b/native/cocos/renderer/gfx-agent/SwapchainAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/SwapchainAgent.h b/native/cocos/renderer/gfx-agent/SwapchainAgent.h index 44f91a5f49..3ebcb88f5d 100644 --- a/native/cocos/renderer/gfx-agent/SwapchainAgent.h +++ b/native/cocos/renderer/gfx-agent/SwapchainAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/TextureAgent.cpp b/native/cocos/renderer/gfx-agent/TextureAgent.cpp index 21a40b9fbe..1ec350c5fe 100644 --- a/native/cocos/renderer/gfx-agent/TextureAgent.cpp +++ b/native/cocos/renderer/gfx-agent/TextureAgent.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-agent/TextureAgent.h b/native/cocos/renderer/gfx-agent/TextureAgent.h index 4ac2e43fed..a682604a0d 100644 --- a/native/cocos/renderer/gfx-agent/TextureAgent.h +++ b/native/cocos/renderer/gfx-agent/TextureAgent.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXBuffer.cpp b/native/cocos/renderer/gfx-base/GFXBuffer.cpp index 2784cf1042..bbaaecc45a 100644 --- a/native/cocos/renderer/gfx-base/GFXBuffer.cpp +++ b/native/cocos/renderer/gfx-base/GFXBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXBuffer.h b/native/cocos/renderer/gfx-base/GFXBuffer.h index df9010851e..2db5a61908 100644 --- a/native/cocos/renderer/gfx-base/GFXBuffer.h +++ b/native/cocos/renderer/gfx-base/GFXBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp b/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp index 5a1dfe42a6..349a0a01d3 100644 --- a/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-base/GFXCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXCommandBuffer.h b/native/cocos/renderer/gfx-base/GFXCommandBuffer.h index 96da3307c0..926d970021 100644 --- a/native/cocos/renderer/gfx-base/GFXCommandBuffer.h +++ b/native/cocos/renderer/gfx-base/GFXCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -66,7 +66,7 @@ public: virtual void pipelineBarrier(const GlobalBarrier *barrier, const TextureBarrier *const *textureBarriers, const Texture *const *textures, uint32_t textureBarrierCount) = 0; virtual void beginQuery(QueryPool *queryPool, uint32_t id) = 0; virtual void endQuery(QueryPool *queryPool, uint32_t id) = 0; - virtual void resetQueryPool(QueryPool *queryPool) = 0; + virtual void resetQueryPool(QueryPool *queryPool) = 0; virtual void completeQueryPool(QueryPool *queryPool) {} inline void begin(); diff --git a/native/cocos/renderer/gfx-base/GFXDef-common.h b/native/cocos/renderer/gfx-base/GFXDef-common.h index ffc66622bf..c2d8f4386b 100644 --- a/native/cocos/renderer/gfx-base/GFXDef-common.h +++ b/native/cocos/renderer/gfx-base/GFXDef-common.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -595,15 +595,15 @@ using ShaderStageFlags = ShaderStageFlagBit; CC_ENUM_BITWISE_OPERATORS(ShaderStageFlagBit); enum class LoadOp : uint32_t { - LOAD, // Load the contents from the fbo from previous - CLEAR, // Clear the fbo - DISCARD, // Ignore writing to the fbo and keep old data + LOAD, // Load the previous content from memory + CLEAR, // Clear the content to a fixed value + DISCARD, // Discard the previous content }; CC_ENUM_CONVERSION_OPERATOR(LoadOp); enum class StoreOp : uint32_t { - STORE, // Write the source to the destination - DISCARD, // Don't write the source to the destination + STORE, // Store the pending content to memory + DISCARD, // Discard the pending content }; CC_ENUM_CONVERSION_OPERATOR(StoreOp); diff --git a/native/cocos/renderer/gfx-base/GFXDef.cpp b/native/cocos/renderer/gfx-base/GFXDef.cpp index 0d8a06772d..adf20cec54 100644 --- a/native/cocos/renderer/gfx-base/GFXDef.cpp +++ b/native/cocos/renderer/gfx-base/GFXDef.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDef.h b/native/cocos/renderer/gfx-base/GFXDef.h index cb11b8e603..e2f87c8aae 100644 --- a/native/cocos/renderer/gfx-base/GFXDef.h +++ b/native/cocos/renderer/gfx-base/GFXDef.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -38,8 +38,8 @@ struct Hasher final { size_t operator()(const T& info) const; }; template ::value>> size_t hash_value(const T& info) { return Hasher()(info); } // NOLINT(readability-identifier-naming) -#define DEFINE_CMP_OP(type) \ - bool operator==(const type& lhs, const type& rhs); \ +#define DEFINE_CMP_OP(type) \ + bool operator==(const type& lhs, const type& rhs); \ inline bool operator!=(const type& lhs, const type& rhs) { return !(lhs == rhs); } DEFINE_CMP_OP(DepthStencilAttachment) diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp b/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp index 7fac26c906..1a235b1266 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSet.h b/native/cocos/renderer/gfx-base/GFXDescriptorSet.h index 8a69f5ecaa..b955fce338 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSet.h +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp index c486a84cf0..bc8f549c05 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h index 177cf448d9..e2a8a7a1cf 100644 --- a/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-base/GFXDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXDevice.cpp b/native/cocos/renderer/gfx-base/GFXDevice.cpp index f5c8944de1..4b9b637a8d 100644 --- a/native/cocos/renderer/gfx-base/GFXDevice.cpp +++ b/native/cocos/renderer/gfx-base/GFXDevice.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -51,9 +51,9 @@ bool Device::initialize(const DeviceInfo &info) { _bindingMappingInfo = info.bindingMappingInfo; #if CC_CPU_ARCH == CC_CPU_ARCH_32 - static_assert(sizeof(void*) == 4, "pointer size assumption broken"); + static_assert(sizeof(void *) == 4, "pointer size assumption broken"); #else - static_assert(sizeof(void*) == 8, "pointer size assumption broken"); + static_assert(sizeof(void *) == 8, "pointer size assumption broken"); #endif return doInit(info); @@ -78,7 +78,7 @@ void Device::destroy() { } void Device::destroySurface(void *windowHandle) { - for (auto *swapchain :_swapchains) { + for (auto *swapchain : _swapchains) { if (swapchain->getWindowHandle() == windowHandle) { swapchain->destroySurface(); break; @@ -87,7 +87,7 @@ void Device::destroySurface(void *windowHandle) { } void Device::createSurface(void *windowHandle) { - for (auto *swapchain :_swapchains) { + for (auto *swapchain : _swapchains) { if (!swapchain->getWindowHandle()) { swapchain->createSurface(windowHandle); break; diff --git a/native/cocos/renderer/gfx-base/GFXDevice.h b/native/cocos/renderer/gfx-base/GFXDevice.h index 06bff789c8..68a36da378 100644 --- a/native/cocos/renderer/gfx-base/GFXDevice.h +++ b/native/cocos/renderer/gfx-base/GFXDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp b/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp index 8c37c641ab..e1e3c92941 100644 --- a/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp +++ b/native/cocos/renderer/gfx-base/GFXFramebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXFramebuffer.h b/native/cocos/renderer/gfx-base/GFXFramebuffer.h index a21be11cd7..8823cb69cd 100644 --- a/native/cocos/renderer/gfx-base/GFXFramebuffer.h +++ b/native/cocos/renderer/gfx-base/GFXFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp b/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp index bd0975f019..59ed6592e4 100644 --- a/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp +++ b/native/cocos/renderer/gfx-base/GFXInputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXInputAssembler.h b/native/cocos/renderer/gfx-base/GFXInputAssembler.h index 4d2871ac79..7268090e83 100644 --- a/native/cocos/renderer/gfx-base/GFXInputAssembler.h +++ b/native/cocos/renderer/gfx-base/GFXInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXObject.cpp b/native/cocos/renderer/gfx-base/GFXObject.cpp index 9a46c1110d..c2651afcb0 100644 --- a/native/cocos/renderer/gfx-base/GFXObject.cpp +++ b/native/cocos/renderer/gfx-base/GFXObject.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXObject.h b/native/cocos/renderer/gfx-base/GFXObject.h index 95561e7f3d..f00f5c981d 100644 --- a/native/cocos/renderer/gfx-base/GFXObject.h +++ b/native/cocos/renderer/gfx-base/GFXObject.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp b/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp index c16fd5545f..529006d49f 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp +++ b/native/cocos/renderer/gfx-base/GFXPipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineLayout.h b/native/cocos/renderer/gfx-base/GFXPipelineLayout.h index c14cdeae19..89efc5b344 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineLayout.h +++ b/native/cocos/renderer/gfx-base/GFXPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineState.cpp b/native/cocos/renderer/gfx-base/GFXPipelineState.cpp index 007761ddc2..28002ef099 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineState.cpp +++ b/native/cocos/renderer/gfx-base/GFXPipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXPipelineState.h b/native/cocos/renderer/gfx-base/GFXPipelineState.h index 1b5997388d..f9dec2b116 100644 --- a/native/cocos/renderer/gfx-base/GFXPipelineState.h +++ b/native/cocos/renderer/gfx-base/GFXPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueryPool.cpp b/native/cocos/renderer/gfx-base/GFXQueryPool.cpp index 835660dfac..795af035e3 100644 --- a/native/cocos/renderer/gfx-base/GFXQueryPool.cpp +++ b/native/cocos/renderer/gfx-base/GFXQueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueryPool.h b/native/cocos/renderer/gfx-base/GFXQueryPool.h index ae00d7fe3d..633895ae2b 100644 --- a/native/cocos/renderer/gfx-base/GFXQueryPool.h +++ b/native/cocos/renderer/gfx-base/GFXQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueue.cpp b/native/cocos/renderer/gfx-base/GFXQueue.cpp index c3d402f79e..615056b714 100644 --- a/native/cocos/renderer/gfx-base/GFXQueue.cpp +++ b/native/cocos/renderer/gfx-base/GFXQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXQueue.h b/native/cocos/renderer/gfx-base/GFXQueue.h index 0e78bd754e..c7a85728d9 100644 --- a/native/cocos/renderer/gfx-base/GFXQueue.h +++ b/native/cocos/renderer/gfx-base/GFXQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXRenderPass.cpp b/native/cocos/renderer/gfx-base/GFXRenderPass.cpp index 3f28ac9887..09a5d0f8af 100644 --- a/native/cocos/renderer/gfx-base/GFXRenderPass.cpp +++ b/native/cocos/renderer/gfx-base/GFXRenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXRenderPass.h b/native/cocos/renderer/gfx-base/GFXRenderPass.h index 3f2b865a03..be301f3ba6 100644 --- a/native/cocos/renderer/gfx-base/GFXRenderPass.h +++ b/native/cocos/renderer/gfx-base/GFXRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXShader.cpp b/native/cocos/renderer/gfx-base/GFXShader.cpp index 5bd00c5ada..454a5d5667 100644 --- a/native/cocos/renderer/gfx-base/GFXShader.cpp +++ b/native/cocos/renderer/gfx-base/GFXShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXShader.h b/native/cocos/renderer/gfx-base/GFXShader.h index aac5b469b2..f7da8d4a65 100644 --- a/native/cocos/renderer/gfx-base/GFXShader.h +++ b/native/cocos/renderer/gfx-base/GFXShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXSwapchain.cpp b/native/cocos/renderer/gfx-base/GFXSwapchain.cpp index 623e3a2370..191ac3d118 100644 --- a/native/cocos/renderer/gfx-base/GFXSwapchain.cpp +++ b/native/cocos/renderer/gfx-base/GFXSwapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/GFXSwapchain.h b/native/cocos/renderer/gfx-base/GFXSwapchain.h index 724dbcf566..8c7050f779 100644 --- a/native/cocos/renderer/gfx-base/GFXSwapchain.h +++ b/native/cocos/renderer/gfx-base/GFXSwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -65,11 +65,11 @@ public: inline uint32_t getHeight() const { return _colorTexture->getHeight(); } protected: - virtual void doInit(const SwapchainInfo &info) = 0; - virtual void doDestroy() = 0; + virtual void doInit(const SwapchainInfo &info) = 0; + virtual void doDestroy() = 0; virtual void doResize(uint32_t width, uint32_t height, SurfaceTransform transform) = 0; - virtual void doDestroySurface() = 0; - virtual void doCreateSurface(void *windowHandle) = 0; + virtual void doDestroySurface() = 0; + virtual void doCreateSurface(void *windowHandle) = 0; static inline void initTexture(const SwapchainTextureInfo &info, Texture *texture); diff --git a/native/cocos/renderer/gfx-base/GFXTexture.cpp b/native/cocos/renderer/gfx-base/GFXTexture.cpp index b1d4011c00..00f724c60c 100644 --- a/native/cocos/renderer/gfx-base/GFXTexture.cpp +++ b/native/cocos/renderer/gfx-base/GFXTexture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,9 +26,9 @@ #include "base/CoreStd.h" #include "base/Utils.h" +#include #include "GFXSwapchain.h" #include "GFXTexture.h" -#include namespace cc { namespace gfx { diff --git a/native/cocos/renderer/gfx-base/GFXTexture.h b/native/cocos/renderer/gfx-base/GFXTexture.h index 7554042f6d..71cdf8b7dd 100644 --- a/native/cocos/renderer/gfx-base/GFXTexture.h +++ b/native/cocos/renderer/gfx-base/GFXTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/SPIRVUtils.cpp b/native/cocos/renderer/gfx-base/SPIRVUtils.cpp index b6158f33c5..b628737e53 100644 --- a/native/cocos/renderer/gfx-base/SPIRVUtils.cpp +++ b/native/cocos/renderer/gfx-base/SPIRVUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/SPIRVUtils.h b/native/cocos/renderer/gfx-base/SPIRVUtils.h index b9d05033e4..0a7c0fac4b 100644 --- a/native/cocos/renderer/gfx-base/SPIRVUtils.h +++ b/native/cocos/renderer/gfx-base/SPIRVUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp index da50344ab9..aa64ff1cfb 100644 --- a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp +++ b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h index 663a31aad1..04f5d9bd70 100644 --- a/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h +++ b/native/cocos/renderer/gfx-base/states/GFXGlobalBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXSampler.cpp b/native/cocos/renderer/gfx-base/states/GFXSampler.cpp index 4679f49c9c..654e0ca907 100644 --- a/native/cocos/renderer/gfx-base/states/GFXSampler.cpp +++ b/native/cocos/renderer/gfx-base/states/GFXSampler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXSampler.h b/native/cocos/renderer/gfx-base/states/GFXSampler.h index 678be3e034..b68bb184ed 100644 --- a/native/cocos/renderer/gfx-base/states/GFXSampler.h +++ b/native/cocos/renderer/gfx-base/states/GFXSampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp index f270c01ca3..95411ab356 100644 --- a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp +++ b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h index f9c859f790..29157266a4 100644 --- a/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h +++ b/native/cocos/renderer/gfx-base/states/GFXTextureBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp b/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp index 5e00116335..8522299840 100644 --- a/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyBuffer.h b/native/cocos/renderer/gfx-empty/EmptyBuffer.h index 1b505b1b3c..6ec30acda0 100644 --- a/native/cocos/renderer/gfx-empty/EmptyBuffer.h +++ b/native/cocos/renderer/gfx-empty/EmptyBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp index 2225d2575f..e2428369b6 100644 --- a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h index 7a38a425e2..0e42addc38 100644 --- a/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h +++ b/native/cocos/renderer/gfx-empty/EmptyCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp index c1b416c767..f741dbc3cb 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h index 1f426138ce..1af61867a4 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp index f67907acf9..98d45d5861 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h index 4d5735945c..a271768fdb 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-empty/EmptyDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDevice.cpp b/native/cocos/renderer/gfx-empty/EmptyDevice.cpp index b799f50431..9bc03f1b38 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDevice.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyDevice.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyDevice.h b/native/cocos/renderer/gfx-empty/EmptyDevice.h index 27c352e013..1fd6cd96f3 100644 --- a/native/cocos/renderer/gfx-empty/EmptyDevice.h +++ b/native/cocos/renderer/gfx-empty/EmptyDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp index b352e948ac..8de3d2a5cb 100644 --- a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h index 0d99fe532e..4afbe926b0 100644 --- a/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h +++ b/native/cocos/renderer/gfx-empty/EmptyFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp index 9b6d09e2a7..55a5693e33 100644 --- a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h index 4cf915c446..1d933ee43b 100644 --- a/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h +++ b/native/cocos/renderer/gfx-empty/EmptyInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp index 7eb88fee98..6b986b22f7 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h index b4c106e550..1e001c8a6a 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp b/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp index dadfe6d173..183fc0efaa 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyPipelineState.h b/native/cocos/renderer/gfx-empty/EmptyPipelineState.h index ebcc309516..6b4c73fc90 100644 --- a/native/cocos/renderer/gfx-empty/EmptyPipelineState.h +++ b/native/cocos/renderer/gfx-empty/EmptyPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp b/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp index 04f4fc5cd1..6ea18d78c9 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyQueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueryPool.h b/native/cocos/renderer/gfx-empty/EmptyQueryPool.h index 1167590e4b..fdbad9ca77 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueryPool.h +++ b/native/cocos/renderer/gfx-empty/EmptyQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueue.cpp b/native/cocos/renderer/gfx-empty/EmptyQueue.cpp index 2a0a0c9ed4..aecfeac741 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueue.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyQueue.h b/native/cocos/renderer/gfx-empty/EmptyQueue.h index 9f69f127e9..b2407a2779 100644 --- a/native/cocos/renderer/gfx-empty/EmptyQueue.h +++ b/native/cocos/renderer/gfx-empty/EmptyQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp b/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp index b9f17fb79d..0d3672554c 100644 --- a/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyRenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyRenderPass.h b/native/cocos/renderer/gfx-empty/EmptyRenderPass.h index 96e0c6cf83..7e28ab11f2 100644 --- a/native/cocos/renderer/gfx-empty/EmptyRenderPass.h +++ b/native/cocos/renderer/gfx-empty/EmptyRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyShader.cpp b/native/cocos/renderer/gfx-empty/EmptyShader.cpp index 47f6f0a91a..369764cb2c 100644 --- a/native/cocos/renderer/gfx-empty/EmptyShader.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyShader.h b/native/cocos/renderer/gfx-empty/EmptyShader.h index a42aaa6f3d..721081115c 100644 --- a/native/cocos/renderer/gfx-empty/EmptyShader.h +++ b/native/cocos/renderer/gfx-empty/EmptyShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp b/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp index fe469b92cb..d116be1fa5 100644 --- a/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp +++ b/native/cocos/renderer/gfx-empty/EmptySwapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptySwapchain.h b/native/cocos/renderer/gfx-empty/EmptySwapchain.h index 456e201842..2b90fd7091 100644 --- a/native/cocos/renderer/gfx-empty/EmptySwapchain.h +++ b/native/cocos/renderer/gfx-empty/EmptySwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyTexture.cpp b/native/cocos/renderer/gfx-empty/EmptyTexture.cpp index a10d59b0c2..2566b2c11e 100644 --- a/native/cocos/renderer/gfx-empty/EmptyTexture.cpp +++ b/native/cocos/renderer/gfx-empty/EmptyTexture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-empty/EmptyTexture.h b/native/cocos/renderer/gfx-empty/EmptyTexture.h index ac7dde2545..1b71ecf3c5 100644 --- a/native/cocos/renderer/gfx-empty/EmptyTexture.h +++ b/native/cocos/renderer/gfx-empty/EmptyTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h b/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h index a23e19ccf7..0ad27f211f 100644 --- a/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h +++ b/native/cocos/renderer/gfx-gles-common/GLESCommandPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles-common/eglw.cpp b/native/cocos/renderer/gfx-gles-common/eglw.cpp index 065fbc90e6..f42f565aea 100644 --- a/native/cocos/renderer/gfx-gles-common/eglw.cpp +++ b/native/cocos/renderer/gfx-gles-common/eglw.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -37,334 +37,329 @@ PFNEGLGETPROCADDRESSPROC eglGetProcAddress; /* EGL_VERSION_1_0 */ -PFNEGLCHOOSECONFIGPROC eglChooseConfig; -PFNEGLCOPYBUFFERSPROC eglCopyBuffers; -PFNEGLCREATECONTEXTPROC eglCreateContext; +PFNEGLCHOOSECONFIGPROC eglChooseConfig; +PFNEGLCOPYBUFFERSPROC eglCopyBuffers; +PFNEGLCREATECONTEXTPROC eglCreateContext; PFNEGLCREATEPBUFFERSURFACEPROC eglCreatePbufferSurface; -PFNEGLCREATEPIXMAPSURFACEPROC eglCreatePixmapSurface; -PFNEGLCREATEWINDOWSURFACEPROC eglCreateWindowSurface; -PFNEGLDESTROYCONTEXTPROC eglDestroyContext; -PFNEGLDESTROYSURFACEPROC eglDestroySurface; -PFNEGLGETCONFIGATTRIBPROC eglGetConfigAttrib; -PFNEGLGETCONFIGSPROC eglGetConfigs; -PFNEGLGETCURRENTDISPLAYPROC eglGetCurrentDisplay; -PFNEGLGETCURRENTSURFACEPROC eglGetCurrentSurface; -PFNEGLGETDISPLAYPROC eglGetDisplay; -PFNEGLGETERRORPROC eglGetError; -PFNEGLINITIALIZEPROC eglInitialize; -PFNEGLMAKECURRENTPROC eglMakeCurrent; -PFNEGLQUERYCONTEXTPROC eglQueryContext; -PFNEGLQUERYSTRINGPROC eglQueryString; -PFNEGLQUERYSURFACEPROC eglQuerySurface; -PFNEGLSWAPBUFFERSPROC eglSwapBuffers; -PFNEGLTERMINATEPROC eglTerminate; -PFNEGLWAITGLPROC eglWaitGL; -PFNEGLWAITNATIVEPROC eglWaitNative; - +PFNEGLCREATEPIXMAPSURFACEPROC eglCreatePixmapSurface; +PFNEGLCREATEWINDOWSURFACEPROC eglCreateWindowSurface; +PFNEGLDESTROYCONTEXTPROC eglDestroyContext; +PFNEGLDESTROYSURFACEPROC eglDestroySurface; +PFNEGLGETCONFIGATTRIBPROC eglGetConfigAttrib; +PFNEGLGETCONFIGSPROC eglGetConfigs; +PFNEGLGETCURRENTDISPLAYPROC eglGetCurrentDisplay; +PFNEGLGETCURRENTSURFACEPROC eglGetCurrentSurface; +PFNEGLGETDISPLAYPROC eglGetDisplay; +PFNEGLGETERRORPROC eglGetError; +PFNEGLINITIALIZEPROC eglInitialize; +PFNEGLMAKECURRENTPROC eglMakeCurrent; +PFNEGLQUERYCONTEXTPROC eglQueryContext; +PFNEGLQUERYSTRINGPROC eglQueryString; +PFNEGLQUERYSURFACEPROC eglQuerySurface; +PFNEGLSWAPBUFFERSPROC eglSwapBuffers; +PFNEGLTERMINATEPROC eglTerminate; +PFNEGLWAITGLPROC eglWaitGL; +PFNEGLWAITNATIVEPROC eglWaitNative; /* EGL_VERSION_1_1 */ -PFNEGLBINDTEXIMAGEPROC eglBindTexImage; +PFNEGLBINDTEXIMAGEPROC eglBindTexImage; PFNEGLRELEASETEXIMAGEPROC eglReleaseTexImage; -PFNEGLSURFACEATTRIBPROC eglSurfaceAttrib; -PFNEGLSWAPINTERVALPROC eglSwapInterval; - +PFNEGLSURFACEATTRIBPROC eglSurfaceAttrib; +PFNEGLSWAPINTERVALPROC eglSwapInterval; /* EGL_VERSION_1_2 */ -PFNEGLBINDAPIPROC eglBindAPI; -PFNEGLQUERYAPIPROC eglQueryAPI; +PFNEGLBINDAPIPROC eglBindAPI; +PFNEGLQUERYAPIPROC eglQueryAPI; PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC eglCreatePbufferFromClientBuffer; -PFNEGLRELEASETHREADPROC eglReleaseThread; -PFNEGLWAITCLIENTPROC eglWaitClient; - +PFNEGLRELEASETHREADPROC eglReleaseThread; +PFNEGLWAITCLIENTPROC eglWaitClient; /* EGL_VERSION_1_3 */ /* EGL_VERSION_1_4 */ PFNEGLGETCURRENTCONTEXTPROC eglGetCurrentContext; - /* EGL_VERSION_1_5 */ -PFNEGLCREATESYNCPROC eglCreateSync; -PFNEGLDESTROYSYNCPROC eglDestroySync; +PFNEGLCREATESYNCPROC eglCreateSync; +PFNEGLDESTROYSYNCPROC eglDestroySync; PFNEGLCLIENTWAITSYNCPROC eglClientWaitSync; -PFNEGLGETSYNCATTRIBPROC eglGetSyncAttrib; +PFNEGLGETSYNCATTRIBPROC eglGetSyncAttrib; -PFNEGLCREATEIMAGEPROC eglCreateImage; +PFNEGLCREATEIMAGEPROC eglCreateImage; PFNEGLDESTROYIMAGEPROC eglDestroyImage; -PFNEGLGETPLATFORMDISPLAYPROC eglGetPlatformDisplay; +PFNEGLGETPLATFORMDISPLAYPROC eglGetPlatformDisplay; PFNEGLCREATEPLATFORMWINDOWSURFACEPROC eglCreatePlatformWindowSurface; PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC eglCreatePlatformPixmapSurface; PFNEGLWAITSYNCPROC eglWaitSync; - -#if defined(EGL_ANDROID_blob_cache) + #if defined(EGL_ANDROID_blob_cache) PFNEGLSETBLOBCACHEFUNCSANDROIDPROC eglSetBlobCacheFuncsANDROID; -#endif /* defined(EGL_ANDROID_blob_cache) */ + #endif /* defined(EGL_ANDROID_blob_cache) */ -#if defined(EGL_ANDROID_create_native_client_buffer) + #if defined(EGL_ANDROID_create_native_client_buffer) PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC eglCreateNativeClientBufferANDROID; -#endif /* defined(EGL_ANDROID_create_native_client_buffer) */ + #endif /* defined(EGL_ANDROID_create_native_client_buffer) */ -#if defined(EGL_ANDROID_get_native_client_buffer) + #if defined(EGL_ANDROID_get_native_client_buffer) PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC eglGetNativeClientBufferANDROID; -#endif /* defined(EGL_ANDROID_get_native_client_buffer) */ + #endif /* defined(EGL_ANDROID_get_native_client_buffer) */ -#if defined(EGL_ANDROID_native_fence_sync) + #if defined(EGL_ANDROID_native_fence_sync) PFNEGLDUPNATIVEFENCEFDANDROIDPROC eglDupNativeFenceFDANDROID; -#endif /* defined(EGL_ANDROID_native_fence_sync) */ + #endif /* defined(EGL_ANDROID_native_fence_sync) */ -#if defined(EGL_ANDROID_presentation_time) + #if defined(EGL_ANDROID_presentation_time) PFNEGLPRESENTATIONTIMEANDROIDPROC eglPresentationTimeANDROID; -#endif /* defined(EGL_ANDROID_presentation_time) */ + #endif /* defined(EGL_ANDROID_presentation_time) */ -#if defined(EGL_ANDROID_get_frame_timestamps) + #if defined(EGL_ANDROID_get_frame_timestamps) PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC eglGetCompositorTimingSupportedANDROID; -PFNEGLGETCOMPOSITORTIMINGANDROIDPROC eglGetCompositorTimingANDROID; -PFNEGLGETNEXTFRAMEIDANDROIDPROC eglGetNextFrameIdANDROID; -PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC eglGetFrameTimestampSupportedANDROID; -PFNEGLGETFRAMETIMESTAMPSANDROIDPROC eglGetFrameTimestampsANDROID; -#endif /* defined(EGL_ANDROID_get_frame_timestamps) */ +PFNEGLGETCOMPOSITORTIMINGANDROIDPROC eglGetCompositorTimingANDROID; +PFNEGLGETNEXTFRAMEIDANDROIDPROC eglGetNextFrameIdANDROID; +PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC eglGetFrameTimestampSupportedANDROID; +PFNEGLGETFRAMETIMESTAMPSANDROIDPROC eglGetFrameTimestampsANDROID; + #endif /* defined(EGL_ANDROID_get_frame_timestamps) */ -#if defined(EGL_ANGLE_query_surface_pointer) + #if defined(EGL_ANGLE_query_surface_pointer) PFNEGLQUERYSURFACEPOINTERANGLEPROC eglQuerySurfacePointerANGLE; -#endif /* defined(EGL_ANGLE_query_surface_pointer) */ + #endif /* defined(EGL_ANGLE_query_surface_pointer) */ -#if defined(EGL_ANGLE_sync_control_rate) + #if defined(EGL_ANGLE_sync_control_rate) PFNEGLGETMSCRATEANGLEPROC eglGetMscRateANGLE; -#endif /* defined(EGL_ANGLE_sync_control_rate) */ + #endif /* defined(EGL_ANGLE_sync_control_rate) */ -#if defined(EGL_EXT_client_sync) + #if defined(EGL_EXT_client_sync) PFNEGLCLIENTSIGNALSYNCEXTPROC eglClientSignalSyncEXT; -#endif /* defined(EGL_EXT_client_sync) */ + #endif /* defined(EGL_EXT_client_sync) */ -#if defined(EGL_EXT_device_base) -PFNEGLQUERYDEVICEATTRIBEXTPROC eglQueryDeviceAttribEXT; -PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; -PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT; + #if defined(EGL_EXT_device_base) +PFNEGLQUERYDEVICEATTRIBEXTPROC eglQueryDeviceAttribEXT; +PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; +PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT; PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT; -#endif /* defined(EGL_EXT_device_base) */ + #endif /* defined(EGL_EXT_device_base) */ -#if defined(EGL_EXT_image_dma_buf_import_modifiers) -PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT; + #if defined(EGL_EXT_image_dma_buf_import_modifiers) +PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT; PFNEGLQUERYDMABUFMODIFIERSEXTPROC eglQueryDmaBufModifiersEXT; -#endif /* defined(EGL_EXT_image_dma_buf_import_modifiers) */ + #endif /* defined(EGL_EXT_image_dma_buf_import_modifiers) */ -#if defined(EGL_EXT_output_base) -PFNEGLGETOUTPUTLAYERSEXTPROC eglGetOutputLayersEXT; -PFNEGLGETOUTPUTPORTSEXTPROC eglGetOutputPortsEXT; -PFNEGLOUTPUTLAYERATTRIBEXTPROC eglOutputLayerAttribEXT; + #if defined(EGL_EXT_output_base) +PFNEGLGETOUTPUTLAYERSEXTPROC eglGetOutputLayersEXT; +PFNEGLGETOUTPUTPORTSEXTPROC eglGetOutputPortsEXT; +PFNEGLOUTPUTLAYERATTRIBEXTPROC eglOutputLayerAttribEXT; PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC eglQueryOutputLayerAttribEXT; PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC eglQueryOutputLayerStringEXT; -PFNEGLOUTPUTPORTATTRIBEXTPROC eglOutputPortAttribEXT; -PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC eglQueryOutputPortAttribEXT; -PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC eglQueryOutputPortStringEXT; -#endif /* defined(EGL_EXT_output_base) */ +PFNEGLOUTPUTPORTATTRIBEXTPROC eglOutputPortAttribEXT; +PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC eglQueryOutputPortAttribEXT; +PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC eglQueryOutputPortStringEXT; + #endif /* defined(EGL_EXT_output_base) */ -#if defined(EGL_EXT_platform_base) -PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT; + #if defined(EGL_EXT_platform_base) +PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT; PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT; PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC eglCreatePlatformPixmapSurfaceEXT; -#endif /* defined(EGL_EXT_platform_base) */ + #endif /* defined(EGL_EXT_platform_base) */ -#if defined(EGL_EXT_stream_consumer_egloutput) + #if defined(EGL_EXT_stream_consumer_egloutput) PFNEGLSTREAMCONSUMEROUTPUTEXTPROC eglStreamConsumerOutputEXT; -#endif /* defined(EGL_EXT_stream_consumer_egloutput) */ + #endif /* defined(EGL_EXT_stream_consumer_egloutput) */ -#if defined(EGL_EXT_swap_buffers_with_damage) + #if defined(EGL_EXT_swap_buffers_with_damage) PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC eglSwapBuffersWithDamageEXT; -#endif /* defined(EGL_EXT_swap_buffers_with_damage) */ + #endif /* defined(EGL_EXT_swap_buffers_with_damage) */ -#if defined(EGL_EXT_sync_reuse) + #if defined(EGL_EXT_sync_reuse) PFNEGLUNSIGNALSYNCEXTPROC eglUnsignalSyncEXT; -#endif /* defined(EGL_EXT_sync_reuse) */ + #endif /* defined(EGL_EXT_sync_reuse) */ -#if defined(EGL_HI_clientpixmap) + #if defined(EGL_HI_clientpixmap) PFNEGLCREATEPIXMAPSURFACEHIPROC eglCreatePixmapSurfaceHI; -#endif /* defined(EGL_HI_clientpixmap) */ + #endif /* defined(EGL_HI_clientpixmap) */ -#if defined(EGL_KHR_cl_event2) + #if defined(EGL_KHR_cl_event2) PFNEGLCREATESYNC64KHRPROC eglCreateSync64KHR; -#endif /* defined(EGL_KHR_cl_event2) */ + #endif /* defined(EGL_KHR_cl_event2) */ -#if defined(EGL_KHR_debug) + #if defined(EGL_KHR_debug) PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR; -PFNEGLQUERYDEBUGKHRPROC eglQueryDebugKHR; -PFNEGLLABELOBJECTKHRPROC eglLabelObjectKHR; -#endif /* defined(EGL_KHR_debug) */ +PFNEGLQUERYDEBUGKHRPROC eglQueryDebugKHR; +PFNEGLLABELOBJECTKHRPROC eglLabelObjectKHR; + #endif /* defined(EGL_KHR_debug) */ -#if defined(EGL_KHR_display_reference) + #if defined(EGL_KHR_display_reference) PFNEGLQUERYDISPLAYATTRIBKHRPROC eglQueryDisplayAttribKHR; -#endif /* defined(EGL_KHR_display_reference) */ + #endif /* defined(EGL_KHR_display_reference) */ -#if defined(EGL_KHR_fence_sync) -PFNEGLCREATESYNCKHRPROC eglCreateSyncKHR; -PFNEGLDESTROYSYNCKHRPROC eglDestroySyncKHR; + #if defined(EGL_KHR_fence_sync) +PFNEGLCREATESYNCKHRPROC eglCreateSyncKHR; +PFNEGLDESTROYSYNCKHRPROC eglDestroySyncKHR; PFNEGLCLIENTWAITSYNCKHRPROC eglClientWaitSyncKHR; -PFNEGLGETSYNCATTRIBKHRPROC eglGetSyncAttribKHR; -#endif /* defined(EGL_KHR_fence_sync) */ +PFNEGLGETSYNCATTRIBKHRPROC eglGetSyncAttribKHR; + #endif /* defined(EGL_KHR_fence_sync) */ -#if defined(EGL_KHR_image) -PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR; + #if defined(EGL_KHR_image) +PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR; PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR; -#endif /* defined(EGL_KHR_image) */ + #endif /* defined(EGL_KHR_image) */ -#if defined(EGL_KHR_lock_surface) -PFNEGLLOCKSURFACEKHRPROC eglLockSurfaceKHR; + #if defined(EGL_KHR_lock_surface) +PFNEGLLOCKSURFACEKHRPROC eglLockSurfaceKHR; PFNEGLUNLOCKSURFACEKHRPROC eglUnlockSurfaceKHR; -#endif /* defined(EGL_KHR_lock_surface) */ + #endif /* defined(EGL_KHR_lock_surface) */ -#if defined(EGL_KHR_lock_surface3) + #if defined(EGL_KHR_lock_surface3) PFNEGLQUERYSURFACE64KHRPROC eglQuerySurface64KHR; -#endif /* defined(EGL_KHR_lock_surface3) */ + #endif /* defined(EGL_KHR_lock_surface3) */ -#if defined(EGL_KHR_partial_update) + #if defined(EGL_KHR_partial_update) PFNEGLSETDAMAGEREGIONKHRPROC eglSetDamageRegionKHR; -#endif /* defined(EGL_KHR_partial_update) */ + #endif /* defined(EGL_KHR_partial_update) */ -#if defined(EGL_KHR_reusable_sync) + #if defined(EGL_KHR_reusable_sync) PFNEGLSIGNALSYNCKHRPROC eglSignalSyncKHR; -#endif /* defined(EGL_KHR_reusable_sync) */ + #endif /* defined(EGL_KHR_reusable_sync) */ -#if defined(EGL_KHR_stream) -PFNEGLCREATESTREAMKHRPROC eglCreateStreamKHR; -PFNEGLDESTROYSTREAMKHRPROC eglDestroyStreamKHR; -PFNEGLSTREAMATTRIBKHRPROC eglStreamAttribKHR; -PFNEGLQUERYSTREAMKHRPROC eglQueryStreamKHR; + #if defined(EGL_KHR_stream) +PFNEGLCREATESTREAMKHRPROC eglCreateStreamKHR; +PFNEGLDESTROYSTREAMKHRPROC eglDestroyStreamKHR; +PFNEGLSTREAMATTRIBKHRPROC eglStreamAttribKHR; +PFNEGLQUERYSTREAMKHRPROC eglQueryStreamKHR; PFNEGLQUERYSTREAMU64KHRPROC eglQueryStreamu64KHR; -#endif /* defined(EGL_KHR_stream) */ + #endif /* defined(EGL_KHR_stream) */ -#if defined(EGL_KHR_stream_attrib) -PFNEGLCREATESTREAMATTRIBKHRPROC eglCreateStreamAttribKHR; -PFNEGLSETSTREAMATTRIBKHRPROC eglSetStreamAttribKHR; -PFNEGLQUERYSTREAMATTRIBKHRPROC eglQueryStreamAttribKHR; + #if defined(EGL_KHR_stream_attrib) +PFNEGLCREATESTREAMATTRIBKHRPROC eglCreateStreamAttribKHR; +PFNEGLSETSTREAMATTRIBKHRPROC eglSetStreamAttribKHR; +PFNEGLQUERYSTREAMATTRIBKHRPROC eglQueryStreamAttribKHR; PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC eglStreamConsumerAcquireAttribKHR; PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC eglStreamConsumerReleaseAttribKHR; -#endif /* defined(EGL_KHR_stream_attrib) */ + #endif /* defined(EGL_KHR_stream_attrib) */ -#if defined(EGL_KHR_stream_consumer_gltexture) + #if defined(EGL_KHR_stream_consumer_gltexture) PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC eglStreamConsumerGLTextureExternalKHR; -PFNEGLSTREAMCONSUMERACQUIREKHRPROC eglStreamConsumerAcquireKHR; -PFNEGLSTREAMCONSUMERRELEASEKHRPROC eglStreamConsumerReleaseKHR; -#endif /* defined(EGL_KHR_stream_consumer_gltexture) */ +PFNEGLSTREAMCONSUMERACQUIREKHRPROC eglStreamConsumerAcquireKHR; +PFNEGLSTREAMCONSUMERRELEASEKHRPROC eglStreamConsumerReleaseKHR; + #endif /* defined(EGL_KHR_stream_consumer_gltexture) */ -#if defined(EGL_KHR_stream_cross_process_fd) -PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC eglGetStreamFileDescriptorKHR; + #if defined(EGL_KHR_stream_cross_process_fd) +PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC eglGetStreamFileDescriptorKHR; PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC eglCreateStreamFromFileDescriptorKHR; -#endif /* defined(EGL_KHR_stream_cross_process_fd) */ + #endif /* defined(EGL_KHR_stream_cross_process_fd) */ -#if defined(EGL_KHR_stream_fifo) + #if defined(EGL_KHR_stream_fifo) PFNEGLQUERYSTREAMTIMEKHRPROC eglQueryStreamTimeKHR; -#endif /* defined(EGL_KHR_stream_fifo) */ + #endif /* defined(EGL_KHR_stream_fifo) */ -#if defined(EGL_KHR_stream_producer_eglsurface) + #if defined(EGL_KHR_stream_producer_eglsurface) PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC eglCreateStreamProducerSurfaceKHR; -#endif /* defined(EGL_KHR_stream_producer_eglsurface) */ + #endif /* defined(EGL_KHR_stream_producer_eglsurface) */ -#if defined(EGL_KHR_swap_buffers_with_damage) + #if defined(EGL_KHR_swap_buffers_with_damage) PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC eglSwapBuffersWithDamageKHR; -#endif /* defined(EGL_KHR_swap_buffers_with_damage) */ + #endif /* defined(EGL_KHR_swap_buffers_with_damage) */ -#if defined(EGL_KHR_wait_sync) + #if defined(EGL_KHR_wait_sync) PFNEGLWAITSYNCKHRPROC eglWaitSyncKHR; -#endif /* defined(EGL_KHR_wait_sync) */ + #endif /* defined(EGL_KHR_wait_sync) */ -#if defined(EGL_MESA_drm_image) + #if defined(EGL_MESA_drm_image) PFNEGLCREATEDRMIMAGEMESAPROC eglCreateDRMImageMESA; PFNEGLEXPORTDRMIMAGEMESAPROC eglExportDRMImageMESA; -#endif /* defined(EGL_MESA_drm_image) */ + #endif /* defined(EGL_MESA_drm_image) */ -#if defined(EGL_MESA_image_dma_buf_export) + #if defined(EGL_MESA_image_dma_buf_export) PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC eglExportDMABUFImageQueryMESA; -PFNEGLEXPORTDMABUFIMAGEMESAPROC eglExportDMABUFImageMESA; -#endif /* defined(EGL_MESA_image_dma_buf_export) */ +PFNEGLEXPORTDMABUFIMAGEMESAPROC eglExportDMABUFImageMESA; + #endif /* defined(EGL_MESA_image_dma_buf_export) */ -#if defined(EGL_MESA_query_driver) + #if defined(EGL_MESA_query_driver) PFNEGLGETDISPLAYDRIVERCONFIGPROC eglGetDisplayDriverConfig; -PFNEGLGETDISPLAYDRIVERNAMEPROC eglGetDisplayDriverName; -#endif /* defined(EGL_MESA_query_driver) */ +PFNEGLGETDISPLAYDRIVERNAMEPROC eglGetDisplayDriverName; + #endif /* defined(EGL_MESA_query_driver) */ -#if defined(EGL_NOK_swap_region) + #if defined(EGL_NOK_swap_region) PFNEGLSWAPBUFFERSREGIONNOKPROC eglSwapBuffersRegionNOK; -#endif /* defined(EGL_NOK_swap_region) */ + #endif /* defined(EGL_NOK_swap_region) */ -#if defined(EGL_NOK_swap_region2) + #if defined(EGL_NOK_swap_region2) PFNEGLSWAPBUFFERSREGION2NOKPROC eglSwapBuffersRegion2NOK; -#endif /* defined(EGL_NOK_swap_region2) */ + #endif /* defined(EGL_NOK_swap_region2) */ -#if defined(EGL_NV_native_query) + #if defined(EGL_NV_native_query) PFNEGLQUERYNATIVEDISPLAYNVPROC eglQueryNativeDisplayNV; -PFNEGLQUERYNATIVEWINDOWNVPROC eglQueryNativeWindowNV; -PFNEGLQUERYNATIVEPIXMAPNVPROC eglQueryNativePixmapNV; -#endif /* defined(EGL_NV_native_query) */ +PFNEGLQUERYNATIVEWINDOWNVPROC eglQueryNativeWindowNV; +PFNEGLQUERYNATIVEPIXMAPNVPROC eglQueryNativePixmapNV; + #endif /* defined(EGL_NV_native_query) */ -#if defined(EGL_NV_post_sub_buffer) + #if defined(EGL_NV_post_sub_buffer) PFNEGLPOSTSUBBUFFERNVPROC eglPostSubBufferNV; -#endif /* defined(EGL_NV_post_sub_buffer) */ + #endif /* defined(EGL_NV_post_sub_buffer) */ -#if defined(EGL_NV_stream_consumer_gltexture_yuv) + #if defined(EGL_NV_stream_consumer_gltexture_yuv) PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC eglStreamConsumerGLTextureExternalAttribsNV; -#endif /* defined(EGL_NV_stream_consumer_gltexture_yuv) */ + #endif /* defined(EGL_NV_stream_consumer_gltexture_yuv) */ -#if defined(EGL_NV_stream_consumer_eglimage) + #if defined(EGL_NV_stream_consumer_eglimage) PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC eglStreamImageConsumerConnectNV; -PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC eglQueryStreamConsumerEventNV; -PFNEGLSTREAMACQUIREIMAGENVPROC eglStreamAcquireImageNV; -PFNEGLSTREAMRELEASEIMAGENVPROC eglStreamReleaseImageNV; -#endif /* defined(EGL_NV_stream_consumer_eglimage) */ +PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC eglQueryStreamConsumerEventNV; +PFNEGLSTREAMACQUIREIMAGENVPROC eglStreamAcquireImageNV; +PFNEGLSTREAMRELEASEIMAGENVPROC eglStreamReleaseImageNV; + #endif /* defined(EGL_NV_stream_consumer_eglimage) */ -#if defined(EGL_NV_stream_flush) + #if defined(EGL_NV_stream_flush) PFNEGLSTREAMFLUSHNVPROC eglStreamFlushNV; -#endif /* defined(EGL_NV_stream_flush) */ + #endif /* defined(EGL_NV_stream_flush) */ -#if defined(EGL_NV_stream_metadata) -PFNEGLQUERYDISPLAYATTRIBNVPROC eglQueryDisplayAttribNV; -PFNEGLSETSTREAMMETADATANVPROC eglSetStreamMetadataNV; + #if defined(EGL_NV_stream_metadata) +PFNEGLQUERYDISPLAYATTRIBNVPROC eglQueryDisplayAttribNV; +PFNEGLSETSTREAMMETADATANVPROC eglSetStreamMetadataNV; PFNEGLQUERYSTREAMMETADATANVPROC eglQueryStreamMetadataNV; -#endif /* defined(EGL_NV_stream_metadata) */ + #endif /* defined(EGL_NV_stream_metadata) */ -#if defined(EGL_NV_stream_reset) + #if defined(EGL_NV_stream_reset) PFNEGLRESETSTREAMNVPROC eglResetStreamNV; -#endif /* defined(EGL_NV_stream_reset) */ + #endif /* defined(EGL_NV_stream_reset) */ -#if defined(EGL_NV_stream_sync) + #if defined(EGL_NV_stream_sync) PFNEGLCREATESTREAMSYNCNVPROC eglCreateStreamSyncNV; -#endif /* defined(EGL_NV_stream_sync) */ + #endif /* defined(EGL_NV_stream_sync) */ -#if defined(EGL_NV_sync) + #if defined(EGL_NV_sync) PFNEGLCREATEFENCESYNCNVPROC eglCreateFenceSyncNV; -PFNEGLDESTROYSYNCNVPROC eglDestroySyncNV; -PFNEGLFENCENVPROC eglFenceNV; -PFNEGLCLIENTWAITSYNCNVPROC eglClientWaitSyncNV; -PFNEGLSIGNALSYNCNVPROC eglSignalSyncNV; -PFNEGLGETSYNCATTRIBNVPROC eglGetSyncAttribNV; -#endif /* defined(EGL_NV_sync) */ +PFNEGLDESTROYSYNCNVPROC eglDestroySyncNV; +PFNEGLFENCENVPROC eglFenceNV; +PFNEGLCLIENTWAITSYNCNVPROC eglClientWaitSyncNV; +PFNEGLSIGNALSYNCNVPROC eglSignalSyncNV; +PFNEGLGETSYNCATTRIBNVPROC eglGetSyncAttribNV; + #endif /* defined(EGL_NV_sync) */ -#if defined(EGL_NV_system_time) + #if defined(EGL_NV_system_time) PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC eglGetSystemTimeFrequencyNV; -PFNEGLGETSYSTEMTIMENVPROC eglGetSystemTimeNV; -#endif /* defined(EGL_NV_system_time) */ +PFNEGLGETSYSTEMTIMENVPROC eglGetSystemTimeNV; + #endif /* defined(EGL_NV_system_time) */ -#if defined(EGL_EXT_compositor) -PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC eglCompositorSetContextListEXT; + #if defined(EGL_EXT_compositor) +PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC eglCompositorSetContextListEXT; PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC eglCompositorSetContextAttributesEXT; -PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC eglCompositorSetWindowListEXT; -PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC eglCompositorSetWindowAttributesEXT; -PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC eglCompositorBindTexWindowEXT; -PFNEGLCOMPOSITORSETSIZEEXTPROC eglCompositorSetSizeEXT; -PFNEGLCOMPOSITORSWAPPOLICYEXTPROC eglCompositorSwapPolicyEXT; -#endif /* defined(EGL_EXT_compositor) */ +PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC eglCompositorSetWindowListEXT; +PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC eglCompositorSetWindowAttributesEXT; +PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC eglCompositorBindTexWindowEXT; +PFNEGLCOMPOSITORSETSIZEEXTPROC eglCompositorSetSizeEXT; +PFNEGLCOMPOSITORSWAPPOLICYEXTPROC eglCompositorSwapPolicyEXT; + #endif /* defined(EGL_EXT_compositor) */ -#if defined(EGL_WL_bind_wayland_display) -PFNEGLBINDWAYLANDDISPLAYWLPROC eglBindWaylandDisplayWL; + #if defined(EGL_WL_bind_wayland_display) +PFNEGLBINDWAYLANDDISPLAYWLPROC eglBindWaylandDisplayWL; PFNEGLUNBINDWAYLANDDISPLAYWLPROC eglUnbindWaylandDisplayWL; -PFNEGLQUERYWAYLANDBUFFERWLPROC eglQueryWaylandBufferWL; -#endif /* defined(EGL_WL_bind_wayland_display) */ +PFNEGLQUERYWAYLANDBUFFERWLPROC eglQueryWaylandBufferWL; + #endif /* defined(EGL_WL_bind_wayland_display) */ -#if defined(EGL_WL_create_wayland_buffer_from_image) + #if defined(EGL_WL_create_wayland_buffer_from_image) PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC eglCreateWaylandBufferFromImageWL; -#endif /* defined(EGL_WL_create_wayland_buffer_from_image) */ + #endif /* defined(EGL_WL_create_wayland_buffer_from_image) */ /* EGLW_GENERATE_EGL_DEFINITION */ @@ -389,334 +384,329 @@ void eglwLoadProcs(PFNEGLWLOADPROC eglwLoad) { eglGetProcAddress = reinterpret_cast(eglwLoad("eglGetProcAddress")); /* EGL_VERSION_1_0 */ - eglChooseConfig = reinterpret_cast(eglwLoad("eglChooseConfig")); - eglCopyBuffers = reinterpret_cast(eglwLoad("eglCopyBuffers")); - eglCreateContext = reinterpret_cast(eglwLoad("eglCreateContext")); + eglChooseConfig = reinterpret_cast(eglwLoad("eglChooseConfig")); + eglCopyBuffers = reinterpret_cast(eglwLoad("eglCopyBuffers")); + eglCreateContext = reinterpret_cast(eglwLoad("eglCreateContext")); eglCreatePbufferSurface = reinterpret_cast(eglwLoad("eglCreatePbufferSurface")); - eglCreatePixmapSurface = reinterpret_cast(eglwLoad("eglCreatePixmapSurface")); - eglCreateWindowSurface = reinterpret_cast(eglwLoad("eglCreateWindowSurface")); - eglDestroyContext = reinterpret_cast(eglwLoad("eglDestroyContext")); - eglDestroySurface = reinterpret_cast(eglwLoad("eglDestroySurface")); - eglGetConfigAttrib = reinterpret_cast(eglwLoad("eglGetConfigAttrib")); - eglGetConfigs = reinterpret_cast(eglwLoad("eglGetConfigs")); - eglGetCurrentDisplay = reinterpret_cast(eglwLoad("eglGetCurrentDisplay")); - eglGetCurrentSurface = reinterpret_cast(eglwLoad("eglGetCurrentSurface")); - eglGetDisplay = reinterpret_cast(eglwLoad("eglGetDisplay")); - eglGetError = reinterpret_cast(eglwLoad("eglGetError")); - eglInitialize = reinterpret_cast(eglwLoad("eglInitialize")); - eglMakeCurrent = reinterpret_cast(eglwLoad("eglMakeCurrent")); - eglQueryContext = reinterpret_cast(eglwLoad("eglQueryContext")); - eglQueryString = reinterpret_cast(eglwLoad("eglQueryString")); - eglQuerySurface = reinterpret_cast(eglwLoad("eglQuerySurface")); - eglSwapBuffers = reinterpret_cast(eglwLoad("eglSwapBuffers")); - eglTerminate = reinterpret_cast(eglwLoad("eglTerminate")); - eglWaitGL = reinterpret_cast(eglwLoad("eglWaitGL")); - eglWaitNative = reinterpret_cast(eglwLoad("eglWaitNative")); - + eglCreatePixmapSurface = reinterpret_cast(eglwLoad("eglCreatePixmapSurface")); + eglCreateWindowSurface = reinterpret_cast(eglwLoad("eglCreateWindowSurface")); + eglDestroyContext = reinterpret_cast(eglwLoad("eglDestroyContext")); + eglDestroySurface = reinterpret_cast(eglwLoad("eglDestroySurface")); + eglGetConfigAttrib = reinterpret_cast(eglwLoad("eglGetConfigAttrib")); + eglGetConfigs = reinterpret_cast(eglwLoad("eglGetConfigs")); + eglGetCurrentDisplay = reinterpret_cast(eglwLoad("eglGetCurrentDisplay")); + eglGetCurrentSurface = reinterpret_cast(eglwLoad("eglGetCurrentSurface")); + eglGetDisplay = reinterpret_cast(eglwLoad("eglGetDisplay")); + eglGetError = reinterpret_cast(eglwLoad("eglGetError")); + eglInitialize = reinterpret_cast(eglwLoad("eglInitialize")); + eglMakeCurrent = reinterpret_cast(eglwLoad("eglMakeCurrent")); + eglQueryContext = reinterpret_cast(eglwLoad("eglQueryContext")); + eglQueryString = reinterpret_cast(eglwLoad("eglQueryString")); + eglQuerySurface = reinterpret_cast(eglwLoad("eglQuerySurface")); + eglSwapBuffers = reinterpret_cast(eglwLoad("eglSwapBuffers")); + eglTerminate = reinterpret_cast(eglwLoad("eglTerminate")); + eglWaitGL = reinterpret_cast(eglwLoad("eglWaitGL")); + eglWaitNative = reinterpret_cast(eglwLoad("eglWaitNative")); /* EGL_VERSION_1_1 */ - eglBindTexImage = reinterpret_cast(eglwLoad("eglBindTexImage")); + eglBindTexImage = reinterpret_cast(eglwLoad("eglBindTexImage")); eglReleaseTexImage = reinterpret_cast(eglwLoad("eglReleaseTexImage")); - eglSurfaceAttrib = reinterpret_cast(eglwLoad("eglSurfaceAttrib")); - eglSwapInterval = reinterpret_cast(eglwLoad("eglSwapInterval")); - + eglSurfaceAttrib = reinterpret_cast(eglwLoad("eglSurfaceAttrib")); + eglSwapInterval = reinterpret_cast(eglwLoad("eglSwapInterval")); /* EGL_VERSION_1_2 */ - eglBindAPI = reinterpret_cast(eglwLoad("eglBindAPI")); - eglQueryAPI = reinterpret_cast(eglwLoad("eglQueryAPI")); + eglBindAPI = reinterpret_cast(eglwLoad("eglBindAPI")); + eglQueryAPI = reinterpret_cast(eglwLoad("eglQueryAPI")); eglCreatePbufferFromClientBuffer = reinterpret_cast(eglwLoad("eglCreatePbufferFromClientBuffer")); - eglReleaseThread = reinterpret_cast(eglwLoad("eglReleaseThread")); - eglWaitClient = reinterpret_cast(eglwLoad("eglWaitClient")); - + eglReleaseThread = reinterpret_cast(eglwLoad("eglReleaseThread")); + eglWaitClient = reinterpret_cast(eglwLoad("eglWaitClient")); /* EGL_VERSION_1_3 */ /* EGL_VERSION_1_4 */ eglGetCurrentContext = reinterpret_cast(eglwLoad("eglGetCurrentContext")); - /* EGL_VERSION_1_5 */ - eglCreateSync = reinterpret_cast(eglwLoad("eglCreateSync")); - eglDestroySync = reinterpret_cast(eglwLoad("eglDestroySync")); + eglCreateSync = reinterpret_cast(eglwLoad("eglCreateSync")); + eglDestroySync = reinterpret_cast(eglwLoad("eglDestroySync")); eglClientWaitSync = reinterpret_cast(eglwLoad("eglClientWaitSync")); - eglGetSyncAttrib = reinterpret_cast(eglwLoad("eglGetSyncAttrib")); + eglGetSyncAttrib = reinterpret_cast(eglwLoad("eglGetSyncAttrib")); - eglCreateImage = reinterpret_cast(eglwLoad("eglCreateImage")); + eglCreateImage = reinterpret_cast(eglwLoad("eglCreateImage")); eglDestroyImage = reinterpret_cast(eglwLoad("eglDestroyImage")); - eglGetPlatformDisplay = reinterpret_cast(eglwLoad("eglGetPlatformDisplay")); + eglGetPlatformDisplay = reinterpret_cast(eglwLoad("eglGetPlatformDisplay")); eglCreatePlatformWindowSurface = reinterpret_cast(eglwLoad("eglCreatePlatformWindowSurface")); eglCreatePlatformPixmapSurface = reinterpret_cast(eglwLoad("eglCreatePlatformPixmapSurface")); eglWaitSync = reinterpret_cast(eglwLoad("eglWaitSync")); - -#if defined(EGL_ANDROID_blob_cache) + #if defined(EGL_ANDROID_blob_cache) eglSetBlobCacheFuncsANDROID = reinterpret_cast(eglwLoad("eglSetBlobCacheFuncsANDROID")); -#endif /* defined(EGL_ANDROID_blob_cache) */ + #endif /* defined(EGL_ANDROID_blob_cache) */ -#if defined(EGL_ANDROID_create_native_client_buffer) + #if defined(EGL_ANDROID_create_native_client_buffer) eglCreateNativeClientBufferANDROID = reinterpret_cast(eglwLoad("eglCreateNativeClientBufferANDROID")); -#endif /* defined(EGL_ANDROID_create_native_client_buffer) */ + #endif /* defined(EGL_ANDROID_create_native_client_buffer) */ -#if defined(EGL_ANDROID_get_native_client_buffer) + #if defined(EGL_ANDROID_get_native_client_buffer) eglGetNativeClientBufferANDROID = reinterpret_cast(eglwLoad("eglGetNativeClientBufferANDROID")); -#endif /* defined(EGL_ANDROID_get_native_client_buffer) */ + #endif /* defined(EGL_ANDROID_get_native_client_buffer) */ -#if defined(EGL_ANDROID_native_fence_sync) + #if defined(EGL_ANDROID_native_fence_sync) eglDupNativeFenceFDANDROID = reinterpret_cast(eglwLoad("eglDupNativeFenceFDANDROID")); -#endif /* defined(EGL_ANDROID_native_fence_sync) */ + #endif /* defined(EGL_ANDROID_native_fence_sync) */ -#if defined(EGL_ANDROID_presentation_time) + #if defined(EGL_ANDROID_presentation_time) eglPresentationTimeANDROID = reinterpret_cast(eglwLoad("eglPresentationTimeANDROID")); -#endif /* defined(EGL_ANDROID_presentation_time) */ + #endif /* defined(EGL_ANDROID_presentation_time) */ -#if defined(EGL_ANDROID_get_frame_timestamps) + #if defined(EGL_ANDROID_get_frame_timestamps) eglGetCompositorTimingSupportedANDROID = reinterpret_cast(eglwLoad("eglGetCompositorTimingSupportedANDROID")); - eglGetCompositorTimingANDROID = reinterpret_cast(eglwLoad("eglGetCompositorTimingANDROID")); - eglGetNextFrameIdANDROID = reinterpret_cast(eglwLoad("eglGetNextFrameIdANDROID")); - eglGetFrameTimestampSupportedANDROID = reinterpret_cast(eglwLoad("eglGetFrameTimestampSupportedANDROID")); - eglGetFrameTimestampsANDROID = reinterpret_cast(eglwLoad("eglGetFrameTimestampsANDROID")); -#endif /* defined(EGL_ANDROID_get_frame_timestamps) */ + eglGetCompositorTimingANDROID = reinterpret_cast(eglwLoad("eglGetCompositorTimingANDROID")); + eglGetNextFrameIdANDROID = reinterpret_cast(eglwLoad("eglGetNextFrameIdANDROID")); + eglGetFrameTimestampSupportedANDROID = reinterpret_cast(eglwLoad("eglGetFrameTimestampSupportedANDROID")); + eglGetFrameTimestampsANDROID = reinterpret_cast(eglwLoad("eglGetFrameTimestampsANDROID")); + #endif /* defined(EGL_ANDROID_get_frame_timestamps) */ -#if defined(EGL_ANGLE_query_surface_pointer) + #if defined(EGL_ANGLE_query_surface_pointer) eglQuerySurfacePointerANGLE = reinterpret_cast(eglwLoad("eglQuerySurfacePointerANGLE")); -#endif /* defined(EGL_ANGLE_query_surface_pointer) */ + #endif /* defined(EGL_ANGLE_query_surface_pointer) */ -#if defined(EGL_ANGLE_sync_control_rate) + #if defined(EGL_ANGLE_sync_control_rate) eglGetMscRateANGLE = reinterpret_cast(eglwLoad("eglGetMscRateANGLE")); -#endif /* defined(EGL_ANGLE_sync_control_rate) */ + #endif /* defined(EGL_ANGLE_sync_control_rate) */ -#if defined(EGL_EXT_client_sync) + #if defined(EGL_EXT_client_sync) eglClientSignalSyncEXT = reinterpret_cast(eglwLoad("eglClientSignalSyncEXT")); -#endif /* defined(EGL_EXT_client_sync) */ + #endif /* defined(EGL_EXT_client_sync) */ -#if defined(EGL_EXT_device_base) - eglQueryDeviceAttribEXT = reinterpret_cast(eglwLoad("eglQueryDeviceAttribEXT")); - eglQueryDeviceStringEXT = reinterpret_cast(eglwLoad("eglQueryDeviceStringEXT")); - eglQueryDevicesEXT = reinterpret_cast(eglwLoad("eglQueryDevicesEXT")); + #if defined(EGL_EXT_device_base) + eglQueryDeviceAttribEXT = reinterpret_cast(eglwLoad("eglQueryDeviceAttribEXT")); + eglQueryDeviceStringEXT = reinterpret_cast(eglwLoad("eglQueryDeviceStringEXT")); + eglQueryDevicesEXT = reinterpret_cast(eglwLoad("eglQueryDevicesEXT")); eglQueryDisplayAttribEXT = reinterpret_cast(eglwLoad("eglQueryDisplayAttribEXT")); -#endif /* defined(EGL_EXT_device_base) */ + #endif /* defined(EGL_EXT_device_base) */ -#if defined(EGL_EXT_image_dma_buf_import_modifiers) - eglQueryDmaBufFormatsEXT = reinterpret_cast(eglwLoad("eglQueryDmaBufFormatsEXT")); + #if defined(EGL_EXT_image_dma_buf_import_modifiers) + eglQueryDmaBufFormatsEXT = reinterpret_cast(eglwLoad("eglQueryDmaBufFormatsEXT")); eglQueryDmaBufModifiersEXT = reinterpret_cast(eglwLoad("eglQueryDmaBufModifiersEXT")); -#endif /* defined(EGL_EXT_image_dma_buf_import_modifiers) */ + #endif /* defined(EGL_EXT_image_dma_buf_import_modifiers) */ -#if defined(EGL_EXT_output_base) - eglGetOutputLayersEXT = reinterpret_cast(eglwLoad("eglGetOutputLayersEXT")); - eglGetOutputPortsEXT = reinterpret_cast(eglwLoad("eglGetOutputPortsEXT")); - eglOutputLayerAttribEXT = reinterpret_cast(eglwLoad("eglOutputLayerAttribEXT")); + #if defined(EGL_EXT_output_base) + eglGetOutputLayersEXT = reinterpret_cast(eglwLoad("eglGetOutputLayersEXT")); + eglGetOutputPortsEXT = reinterpret_cast(eglwLoad("eglGetOutputPortsEXT")); + eglOutputLayerAttribEXT = reinterpret_cast(eglwLoad("eglOutputLayerAttribEXT")); eglQueryOutputLayerAttribEXT = reinterpret_cast(eglwLoad("eglQueryOutputLayerAttribEXT")); eglQueryOutputLayerStringEXT = reinterpret_cast(eglwLoad("eglQueryOutputLayerStringEXT")); - eglOutputPortAttribEXT = reinterpret_cast(eglwLoad("eglOutputPortAttribEXT")); - eglQueryOutputPortAttribEXT = reinterpret_cast(eglwLoad("eglQueryOutputPortAttribEXT")); - eglQueryOutputPortStringEXT = reinterpret_cast(eglwLoad("eglQueryOutputPortStringEXT")); -#endif /* defined(EGL_EXT_output_base) */ + eglOutputPortAttribEXT = reinterpret_cast(eglwLoad("eglOutputPortAttribEXT")); + eglQueryOutputPortAttribEXT = reinterpret_cast(eglwLoad("eglQueryOutputPortAttribEXT")); + eglQueryOutputPortStringEXT = reinterpret_cast(eglwLoad("eglQueryOutputPortStringEXT")); + #endif /* defined(EGL_EXT_output_base) */ -#if defined(EGL_EXT_platform_base) - eglGetPlatformDisplayEXT = reinterpret_cast(eglwLoad("eglGetPlatformDisplayEXT")); + #if defined(EGL_EXT_platform_base) + eglGetPlatformDisplayEXT = reinterpret_cast(eglwLoad("eglGetPlatformDisplayEXT")); eglCreatePlatformWindowSurfaceEXT = reinterpret_cast(eglwLoad("eglCreatePlatformWindowSurfaceEXT")); eglCreatePlatformPixmapSurfaceEXT = reinterpret_cast(eglwLoad("eglCreatePlatformPixmapSurfaceEXT")); -#endif /* defined(EGL_EXT_platform_base) */ + #endif /* defined(EGL_EXT_platform_base) */ -#if defined(EGL_EXT_stream_consumer_egloutput) + #if defined(EGL_EXT_stream_consumer_egloutput) eglStreamConsumerOutputEXT = reinterpret_cast(eglwLoad("eglStreamConsumerOutputEXT")); -#endif /* defined(EGL_EXT_stream_consumer_egloutput) */ + #endif /* defined(EGL_EXT_stream_consumer_egloutput) */ -#if defined(EGL_EXT_swap_buffers_with_damage) + #if defined(EGL_EXT_swap_buffers_with_damage) eglSwapBuffersWithDamageEXT = reinterpret_cast(eglwLoad("eglSwapBuffersWithDamageEXT")); -#endif /* defined(EGL_EXT_swap_buffers_with_damage) */ + #endif /* defined(EGL_EXT_swap_buffers_with_damage) */ -#if defined(EGL_EXT_sync_reuse) + #if defined(EGL_EXT_sync_reuse) eglUnsignalSyncEXT = reinterpret_cast(eglwLoad("eglUnsignalSyncEXT")); -#endif /* defined(EGL_EXT_sync_reuse) */ + #endif /* defined(EGL_EXT_sync_reuse) */ -#if defined(EGL_HI_clientpixmap) + #if defined(EGL_HI_clientpixmap) eglCreatePixmapSurfaceHI = reinterpret_cast(eglwLoad("eglCreatePixmapSurfaceHI")); -#endif /* defined(EGL_HI_clientpixmap) */ + #endif /* defined(EGL_HI_clientpixmap) */ -#if defined(EGL_KHR_cl_event2) + #if defined(EGL_KHR_cl_event2) eglCreateSync64KHR = reinterpret_cast(eglwLoad("eglCreateSync64KHR")); -#endif /* defined(EGL_KHR_cl_event2) */ + #endif /* defined(EGL_KHR_cl_event2) */ -#if defined(EGL_KHR_debug) + #if defined(EGL_KHR_debug) eglDebugMessageControlKHR = reinterpret_cast(eglwLoad("eglDebugMessageControlKHR")); - eglQueryDebugKHR = reinterpret_cast(eglwLoad("eglQueryDebugKHR")); - eglLabelObjectKHR = reinterpret_cast(eglwLoad("eglLabelObjectKHR")); -#endif /* defined(EGL_KHR_debug) */ + eglQueryDebugKHR = reinterpret_cast(eglwLoad("eglQueryDebugKHR")); + eglLabelObjectKHR = reinterpret_cast(eglwLoad("eglLabelObjectKHR")); + #endif /* defined(EGL_KHR_debug) */ -#if defined(EGL_KHR_display_reference) + #if defined(EGL_KHR_display_reference) eglQueryDisplayAttribKHR = reinterpret_cast(eglwLoad("eglQueryDisplayAttribKHR")); -#endif /* defined(EGL_KHR_display_reference) */ + #endif /* defined(EGL_KHR_display_reference) */ -#if defined(EGL_KHR_fence_sync) - eglCreateSyncKHR = reinterpret_cast(eglwLoad("eglCreateSyncKHR")); - eglDestroySyncKHR = reinterpret_cast(eglwLoad("eglDestroySyncKHR")); + #if defined(EGL_KHR_fence_sync) + eglCreateSyncKHR = reinterpret_cast(eglwLoad("eglCreateSyncKHR")); + eglDestroySyncKHR = reinterpret_cast(eglwLoad("eglDestroySyncKHR")); eglClientWaitSyncKHR = reinterpret_cast(eglwLoad("eglClientWaitSyncKHR")); - eglGetSyncAttribKHR = reinterpret_cast(eglwLoad("eglGetSyncAttribKHR")); -#endif /* defined(EGL_KHR_fence_sync) */ + eglGetSyncAttribKHR = reinterpret_cast(eglwLoad("eglGetSyncAttribKHR")); + #endif /* defined(EGL_KHR_fence_sync) */ -#if defined(EGL_KHR_image) - eglCreateImageKHR = reinterpret_cast(eglwLoad("eglCreateImageKHR")); + #if defined(EGL_KHR_image) + eglCreateImageKHR = reinterpret_cast(eglwLoad("eglCreateImageKHR")); eglDestroyImageKHR = reinterpret_cast(eglwLoad("eglDestroyImageKHR")); -#endif /* defined(EGL_KHR_image) */ + #endif /* defined(EGL_KHR_image) */ -#if defined(EGL_KHR_lock_surface) - eglLockSurfaceKHR = reinterpret_cast(eglwLoad("eglLockSurfaceKHR")); + #if defined(EGL_KHR_lock_surface) + eglLockSurfaceKHR = reinterpret_cast(eglwLoad("eglLockSurfaceKHR")); eglUnlockSurfaceKHR = reinterpret_cast(eglwLoad("eglUnlockSurfaceKHR")); -#endif /* defined(EGL_KHR_lock_surface) */ + #endif /* defined(EGL_KHR_lock_surface) */ -#if defined(EGL_KHR_lock_surface3) + #if defined(EGL_KHR_lock_surface3) eglQuerySurface64KHR = reinterpret_cast(eglwLoad("eglQuerySurface64KHR")); -#endif /* defined(EGL_KHR_lock_surface3) */ + #endif /* defined(EGL_KHR_lock_surface3) */ -#if defined(EGL_KHR_partial_update) + #if defined(EGL_KHR_partial_update) eglSetDamageRegionKHR = reinterpret_cast(eglwLoad("eglSetDamageRegionKHR")); -#endif /* defined(EGL_KHR_partial_update) */ + #endif /* defined(EGL_KHR_partial_update) */ -#if defined(EGL_KHR_reusable_sync) + #if defined(EGL_KHR_reusable_sync) eglSignalSyncKHR = reinterpret_cast(eglwLoad("eglSignalSyncKHR")); -#endif /* defined(EGL_KHR_reusable_sync) */ + #endif /* defined(EGL_KHR_reusable_sync) */ -#if defined(EGL_KHR_stream) - eglCreateStreamKHR = reinterpret_cast(eglwLoad("eglCreateStreamKHR")); - eglDestroyStreamKHR = reinterpret_cast(eglwLoad("eglDestroyStreamKHR")); - eglStreamAttribKHR = reinterpret_cast(eglwLoad("eglStreamAttribKHR")); - eglQueryStreamKHR = reinterpret_cast(eglwLoad("eglQueryStreamKHR")); + #if defined(EGL_KHR_stream) + eglCreateStreamKHR = reinterpret_cast(eglwLoad("eglCreateStreamKHR")); + eglDestroyStreamKHR = reinterpret_cast(eglwLoad("eglDestroyStreamKHR")); + eglStreamAttribKHR = reinterpret_cast(eglwLoad("eglStreamAttribKHR")); + eglQueryStreamKHR = reinterpret_cast(eglwLoad("eglQueryStreamKHR")); eglQueryStreamu64KHR = reinterpret_cast(eglwLoad("eglQueryStreamu64KHR")); -#endif /* defined(EGL_KHR_stream) */ + #endif /* defined(EGL_KHR_stream) */ -#if defined(EGL_KHR_stream_attrib) - eglCreateStreamAttribKHR = reinterpret_cast(eglwLoad("eglCreateStreamAttribKHR")); - eglSetStreamAttribKHR = reinterpret_cast(eglwLoad("eglSetStreamAttribKHR")); - eglQueryStreamAttribKHR = reinterpret_cast(eglwLoad("eglQueryStreamAttribKHR")); + #if defined(EGL_KHR_stream_attrib) + eglCreateStreamAttribKHR = reinterpret_cast(eglwLoad("eglCreateStreamAttribKHR")); + eglSetStreamAttribKHR = reinterpret_cast(eglwLoad("eglSetStreamAttribKHR")); + eglQueryStreamAttribKHR = reinterpret_cast(eglwLoad("eglQueryStreamAttribKHR")); eglStreamConsumerAcquireAttribKHR = reinterpret_cast(eglwLoad("eglStreamConsumerAcquireAttribKHR")); eglStreamConsumerReleaseAttribKHR = reinterpret_cast(eglwLoad("eglStreamConsumerReleaseAttribKHR")); -#endif /* defined(EGL_KHR_stream_attrib) */ + #endif /* defined(EGL_KHR_stream_attrib) */ -#if defined(EGL_KHR_stream_consumer_gltexture) + #if defined(EGL_KHR_stream_consumer_gltexture) eglStreamConsumerGLTextureExternalKHR = reinterpret_cast(eglwLoad("eglStreamConsumerGLTextureExternalKHR")); - eglStreamConsumerAcquireKHR = reinterpret_cast(eglwLoad("eglStreamConsumerAcquireKHR")); - eglStreamConsumerReleaseKHR = reinterpret_cast(eglwLoad("eglStreamConsumerReleaseKHR")); -#endif /* defined(EGL_KHR_stream_consumer_gltexture) */ + eglStreamConsumerAcquireKHR = reinterpret_cast(eglwLoad("eglStreamConsumerAcquireKHR")); + eglStreamConsumerReleaseKHR = reinterpret_cast(eglwLoad("eglStreamConsumerReleaseKHR")); + #endif /* defined(EGL_KHR_stream_consumer_gltexture) */ -#if defined(EGL_KHR_stream_cross_process_fd) - eglGetStreamFileDescriptorKHR = reinterpret_cast(eglwLoad("eglGetStreamFileDescriptorKHR")); + #if defined(EGL_KHR_stream_cross_process_fd) + eglGetStreamFileDescriptorKHR = reinterpret_cast(eglwLoad("eglGetStreamFileDescriptorKHR")); eglCreateStreamFromFileDescriptorKHR = reinterpret_cast(eglwLoad("eglCreateStreamFromFileDescriptorKHR")); -#endif /* defined(EGL_KHR_stream_cross_process_fd) */ + #endif /* defined(EGL_KHR_stream_cross_process_fd) */ -#if defined(EGL_KHR_stream_fifo) + #if defined(EGL_KHR_stream_fifo) eglQueryStreamTimeKHR = reinterpret_cast(eglwLoad("eglQueryStreamTimeKHR")); -#endif /* defined(EGL_KHR_stream_fifo) */ + #endif /* defined(EGL_KHR_stream_fifo) */ -#if defined(EGL_KHR_stream_producer_eglsurface) + #if defined(EGL_KHR_stream_producer_eglsurface) eglCreateStreamProducerSurfaceKHR = reinterpret_cast(eglwLoad("eglCreateStreamProducerSurfaceKHR")); -#endif /* defined(EGL_KHR_stream_producer_eglsurface) */ + #endif /* defined(EGL_KHR_stream_producer_eglsurface) */ -#if defined(EGL_KHR_swap_buffers_with_damage) + #if defined(EGL_KHR_swap_buffers_with_damage) eglSwapBuffersWithDamageKHR = reinterpret_cast(eglwLoad("eglSwapBuffersWithDamageKHR")); -#endif /* defined(EGL_KHR_swap_buffers_with_damage) */ + #endif /* defined(EGL_KHR_swap_buffers_with_damage) */ -#if defined(EGL_KHR_wait_sync) + #if defined(EGL_KHR_wait_sync) eglWaitSyncKHR = reinterpret_cast(eglwLoad("eglWaitSyncKHR")); -#endif /* defined(EGL_KHR_wait_sync) */ + #endif /* defined(EGL_KHR_wait_sync) */ -#if defined(EGL_MESA_drm_image) + #if defined(EGL_MESA_drm_image) eglCreateDRMImageMESA = reinterpret_cast(eglwLoad("eglCreateDRMImageMESA")); eglExportDRMImageMESA = reinterpret_cast(eglwLoad("eglExportDRMImageMESA")); -#endif /* defined(EGL_MESA_drm_image) */ + #endif /* defined(EGL_MESA_drm_image) */ -#if defined(EGL_MESA_image_dma_buf_export) + #if defined(EGL_MESA_image_dma_buf_export) eglExportDMABUFImageQueryMESA = reinterpret_cast(eglwLoad("eglExportDMABUFImageQueryMESA")); - eglExportDMABUFImageMESA = reinterpret_cast(eglwLoad("eglExportDMABUFImageMESA")); -#endif /* defined(EGL_MESA_image_dma_buf_export) */ + eglExportDMABUFImageMESA = reinterpret_cast(eglwLoad("eglExportDMABUFImageMESA")); + #endif /* defined(EGL_MESA_image_dma_buf_export) */ -#if defined(EGL_MESA_query_driver) + #if defined(EGL_MESA_query_driver) eglGetDisplayDriverConfig = reinterpret_cast(eglwLoad("eglGetDisplayDriverConfig")); - eglGetDisplayDriverName = reinterpret_cast(eglwLoad("eglGetDisplayDriverName")); -#endif /* defined(EGL_MESA_query_driver) */ + eglGetDisplayDriverName = reinterpret_cast(eglwLoad("eglGetDisplayDriverName")); + #endif /* defined(EGL_MESA_query_driver) */ -#if defined(EGL_NOK_swap_region) + #if defined(EGL_NOK_swap_region) eglSwapBuffersRegionNOK = reinterpret_cast(eglwLoad("eglSwapBuffersRegionNOK")); -#endif /* defined(EGL_NOK_swap_region) */ + #endif /* defined(EGL_NOK_swap_region) */ -#if defined(EGL_NOK_swap_region2) + #if defined(EGL_NOK_swap_region2) eglSwapBuffersRegion2NOK = reinterpret_cast(eglwLoad("eglSwapBuffersRegion2NOK")); -#endif /* defined(EGL_NOK_swap_region2) */ + #endif /* defined(EGL_NOK_swap_region2) */ -#if defined(EGL_NV_native_query) + #if defined(EGL_NV_native_query) eglQueryNativeDisplayNV = reinterpret_cast(eglwLoad("eglQueryNativeDisplayNV")); - eglQueryNativeWindowNV = reinterpret_cast(eglwLoad("eglQueryNativeWindowNV")); - eglQueryNativePixmapNV = reinterpret_cast(eglwLoad("eglQueryNativePixmapNV")); -#endif /* defined(EGL_NV_native_query) */ + eglQueryNativeWindowNV = reinterpret_cast(eglwLoad("eglQueryNativeWindowNV")); + eglQueryNativePixmapNV = reinterpret_cast(eglwLoad("eglQueryNativePixmapNV")); + #endif /* defined(EGL_NV_native_query) */ -#if defined(EGL_NV_post_sub_buffer) + #if defined(EGL_NV_post_sub_buffer) eglPostSubBufferNV = reinterpret_cast(eglwLoad("eglPostSubBufferNV")); -#endif /* defined(EGL_NV_post_sub_buffer) */ + #endif /* defined(EGL_NV_post_sub_buffer) */ -#if defined(EGL_NV_stream_consumer_gltexture_yuv) + #if defined(EGL_NV_stream_consumer_gltexture_yuv) eglStreamConsumerGLTextureExternalAttribsNV = reinterpret_cast(eglwLoad("eglStreamConsumerGLTextureExternalAttribsNV")); -#endif /* defined(EGL_NV_stream_consumer_gltexture_yuv) */ + #endif /* defined(EGL_NV_stream_consumer_gltexture_yuv) */ -#if defined(EGL_NV_stream_consumer_eglimage) + #if defined(EGL_NV_stream_consumer_eglimage) eglStreamImageConsumerConnectNV = reinterpret_cast(eglwLoad("eglStreamImageConsumerConnectNV")); - eglQueryStreamConsumerEventNV = reinterpret_cast(eglwLoad("eglQueryStreamConsumerEventNV")); - eglStreamAcquireImageNV = reinterpret_cast(eglwLoad("eglStreamAcquireImageNV")); - eglStreamReleaseImageNV = reinterpret_cast(eglwLoad("eglStreamReleaseImageNV")); -#endif /* defined(EGL_NV_stream_consumer_eglimage) */ + eglQueryStreamConsumerEventNV = reinterpret_cast(eglwLoad("eglQueryStreamConsumerEventNV")); + eglStreamAcquireImageNV = reinterpret_cast(eglwLoad("eglStreamAcquireImageNV")); + eglStreamReleaseImageNV = reinterpret_cast(eglwLoad("eglStreamReleaseImageNV")); + #endif /* defined(EGL_NV_stream_consumer_eglimage) */ -#if defined(EGL_NV_stream_flush) + #if defined(EGL_NV_stream_flush) eglStreamFlushNV = reinterpret_cast(eglwLoad("eglStreamFlushNV")); -#endif /* defined(EGL_NV_stream_flush) */ + #endif /* defined(EGL_NV_stream_flush) */ -#if defined(EGL_NV_stream_metadata) - eglQueryDisplayAttribNV = reinterpret_cast(eglwLoad("eglQueryDisplayAttribNV")); - eglSetStreamMetadataNV = reinterpret_cast(eglwLoad("eglSetStreamMetadataNV")); + #if defined(EGL_NV_stream_metadata) + eglQueryDisplayAttribNV = reinterpret_cast(eglwLoad("eglQueryDisplayAttribNV")); + eglSetStreamMetadataNV = reinterpret_cast(eglwLoad("eglSetStreamMetadataNV")); eglQueryStreamMetadataNV = reinterpret_cast(eglwLoad("eglQueryStreamMetadataNV")); -#endif /* defined(EGL_NV_stream_metadata) */ + #endif /* defined(EGL_NV_stream_metadata) */ -#if defined(EGL_NV_stream_reset) + #if defined(EGL_NV_stream_reset) eglResetStreamNV = reinterpret_cast(eglwLoad("eglResetStreamNV")); -#endif /* defined(EGL_NV_stream_reset) */ + #endif /* defined(EGL_NV_stream_reset) */ -#if defined(EGL_NV_stream_sync) + #if defined(EGL_NV_stream_sync) eglCreateStreamSyncNV = reinterpret_cast(eglwLoad("eglCreateStreamSyncNV")); -#endif /* defined(EGL_NV_stream_sync) */ + #endif /* defined(EGL_NV_stream_sync) */ -#if defined(EGL_NV_sync) + #if defined(EGL_NV_sync) eglCreateFenceSyncNV = reinterpret_cast(eglwLoad("eglCreateFenceSyncNV")); - eglDestroySyncNV = reinterpret_cast(eglwLoad("eglDestroySyncNV")); - eglFenceNV = reinterpret_cast(eglwLoad("eglFenceNV")); - eglClientWaitSyncNV = reinterpret_cast(eglwLoad("eglClientWaitSyncNV")); - eglSignalSyncNV = reinterpret_cast(eglwLoad("eglSignalSyncNV")); - eglGetSyncAttribNV = reinterpret_cast(eglwLoad("eglGetSyncAttribNV")); -#endif /* defined(EGL_NV_sync) */ + eglDestroySyncNV = reinterpret_cast(eglwLoad("eglDestroySyncNV")); + eglFenceNV = reinterpret_cast(eglwLoad("eglFenceNV")); + eglClientWaitSyncNV = reinterpret_cast(eglwLoad("eglClientWaitSyncNV")); + eglSignalSyncNV = reinterpret_cast(eglwLoad("eglSignalSyncNV")); + eglGetSyncAttribNV = reinterpret_cast(eglwLoad("eglGetSyncAttribNV")); + #endif /* defined(EGL_NV_sync) */ -#if defined(EGL_NV_system_time) + #if defined(EGL_NV_system_time) eglGetSystemTimeFrequencyNV = reinterpret_cast(eglwLoad("eglGetSystemTimeFrequencyNV")); - eglGetSystemTimeNV = reinterpret_cast(eglwLoad("eglGetSystemTimeNV")); -#endif /* defined(EGL_NV_system_time) */ + eglGetSystemTimeNV = reinterpret_cast(eglwLoad("eglGetSystemTimeNV")); + #endif /* defined(EGL_NV_system_time) */ -#if defined(EGL_EXT_compositor) - eglCompositorSetContextListEXT = reinterpret_cast(eglwLoad("eglCompositorSetContextListEXT")); + #if defined(EGL_EXT_compositor) + eglCompositorSetContextListEXT = reinterpret_cast(eglwLoad("eglCompositorSetContextListEXT")); eglCompositorSetContextAttributesEXT = reinterpret_cast(eglwLoad("eglCompositorSetContextAttributesEXT")); - eglCompositorSetWindowListEXT = reinterpret_cast(eglwLoad("eglCompositorSetWindowListEXT")); - eglCompositorSetWindowAttributesEXT = reinterpret_cast(eglwLoad("eglCompositorSetWindowAttributesEXT")); - eglCompositorBindTexWindowEXT = reinterpret_cast(eglwLoad("eglCompositorBindTexWindowEXT")); - eglCompositorSetSizeEXT = reinterpret_cast(eglwLoad("eglCompositorSetSizeEXT")); - eglCompositorSwapPolicyEXT = reinterpret_cast(eglwLoad("eglCompositorSwapPolicyEXT")); -#endif /* defined(EGL_EXT_compositor) */ + eglCompositorSetWindowListEXT = reinterpret_cast(eglwLoad("eglCompositorSetWindowListEXT")); + eglCompositorSetWindowAttributesEXT = reinterpret_cast(eglwLoad("eglCompositorSetWindowAttributesEXT")); + eglCompositorBindTexWindowEXT = reinterpret_cast(eglwLoad("eglCompositorBindTexWindowEXT")); + eglCompositorSetSizeEXT = reinterpret_cast(eglwLoad("eglCompositorSetSizeEXT")); + eglCompositorSwapPolicyEXT = reinterpret_cast(eglwLoad("eglCompositorSwapPolicyEXT")); + #endif /* defined(EGL_EXT_compositor) */ -#if defined(EGL_WL_bind_wayland_display) - eglBindWaylandDisplayWL = reinterpret_cast(eglwLoad("eglBindWaylandDisplayWL")); + #if defined(EGL_WL_bind_wayland_display) + eglBindWaylandDisplayWL = reinterpret_cast(eglwLoad("eglBindWaylandDisplayWL")); eglUnbindWaylandDisplayWL = reinterpret_cast(eglwLoad("eglUnbindWaylandDisplayWL")); - eglQueryWaylandBufferWL = reinterpret_cast(eglwLoad("eglQueryWaylandBufferWL")); -#endif /* defined(EGL_WL_bind_wayland_display) */ + eglQueryWaylandBufferWL = reinterpret_cast(eglwLoad("eglQueryWaylandBufferWL")); + #endif /* defined(EGL_WL_bind_wayland_display) */ -#if defined(EGL_WL_create_wayland_buffer_from_image) + #if defined(EGL_WL_create_wayland_buffer_from_image) eglCreateWaylandBufferFromImageWL = reinterpret_cast(eglwLoad("eglCreateWaylandBufferFromImageWL")); -#endif /* defined(EGL_WL_create_wayland_buffer_from_image) */ + #endif /* defined(EGL_WL_create_wayland_buffer_from_image) */ /* EGLW_GENERATE_EGL_LOAD */ diff --git a/native/cocos/renderer/gfx-gles-common/eglw.h b/native/cocos/renderer/gfx-gles-common/eglw.h index 42ec4192d5..54e6a3aee6 100644 --- a/native/cocos/renderer/gfx-gles-common/eglw.h +++ b/native/cocos/renderer/gfx-gles-common/eglw.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,14 +26,14 @@ #pragma once #if (CC_PLATFORM != CC_PLATFORM_MAC_IOS) -#if (CC_PLATFORM == CC_PLATFORM_QNX) -#define EGL_NO_X11 1 -#endif + #if (CC_PLATFORM == CC_PLATFORM_QNX) + #define EGL_NO_X11 1 + #endif -#define EGL_EGL_PROTOTYPES 0 -#include -#include -#include + #define EGL_EGL_PROTOTYPES 0 + #include + #include + #include /** * ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! ========================= @@ -46,334 +46,329 @@ extern PFNEGLGETPROCADDRESSPROC eglGetProcAddress; /* EGL_VERSION_1_0 */ -extern PFNEGLCHOOSECONFIGPROC eglChooseConfig; -extern PFNEGLCOPYBUFFERSPROC eglCopyBuffers; -extern PFNEGLCREATECONTEXTPROC eglCreateContext; +extern PFNEGLCHOOSECONFIGPROC eglChooseConfig; +extern PFNEGLCOPYBUFFERSPROC eglCopyBuffers; +extern PFNEGLCREATECONTEXTPROC eglCreateContext; extern PFNEGLCREATEPBUFFERSURFACEPROC eglCreatePbufferSurface; -extern PFNEGLCREATEPIXMAPSURFACEPROC eglCreatePixmapSurface; -extern PFNEGLCREATEWINDOWSURFACEPROC eglCreateWindowSurface; -extern PFNEGLDESTROYCONTEXTPROC eglDestroyContext; -extern PFNEGLDESTROYSURFACEPROC eglDestroySurface; -extern PFNEGLGETCONFIGATTRIBPROC eglGetConfigAttrib; -extern PFNEGLGETCONFIGSPROC eglGetConfigs; -extern PFNEGLGETCURRENTDISPLAYPROC eglGetCurrentDisplay; -extern PFNEGLGETCURRENTSURFACEPROC eglGetCurrentSurface; -extern PFNEGLGETDISPLAYPROC eglGetDisplay; -extern PFNEGLGETERRORPROC eglGetError; -extern PFNEGLINITIALIZEPROC eglInitialize; -extern PFNEGLMAKECURRENTPROC eglMakeCurrent; -extern PFNEGLQUERYCONTEXTPROC eglQueryContext; -extern PFNEGLQUERYSTRINGPROC eglQueryString; -extern PFNEGLQUERYSURFACEPROC eglQuerySurface; -extern PFNEGLSWAPBUFFERSPROC eglSwapBuffers; -extern PFNEGLTERMINATEPROC eglTerminate; -extern PFNEGLWAITGLPROC eglWaitGL; -extern PFNEGLWAITNATIVEPROC eglWaitNative; - +extern PFNEGLCREATEPIXMAPSURFACEPROC eglCreatePixmapSurface; +extern PFNEGLCREATEWINDOWSURFACEPROC eglCreateWindowSurface; +extern PFNEGLDESTROYCONTEXTPROC eglDestroyContext; +extern PFNEGLDESTROYSURFACEPROC eglDestroySurface; +extern PFNEGLGETCONFIGATTRIBPROC eglGetConfigAttrib; +extern PFNEGLGETCONFIGSPROC eglGetConfigs; +extern PFNEGLGETCURRENTDISPLAYPROC eglGetCurrentDisplay; +extern PFNEGLGETCURRENTSURFACEPROC eglGetCurrentSurface; +extern PFNEGLGETDISPLAYPROC eglGetDisplay; +extern PFNEGLGETERRORPROC eglGetError; +extern PFNEGLINITIALIZEPROC eglInitialize; +extern PFNEGLMAKECURRENTPROC eglMakeCurrent; +extern PFNEGLQUERYCONTEXTPROC eglQueryContext; +extern PFNEGLQUERYSTRINGPROC eglQueryString; +extern PFNEGLQUERYSURFACEPROC eglQuerySurface; +extern PFNEGLSWAPBUFFERSPROC eglSwapBuffers; +extern PFNEGLTERMINATEPROC eglTerminate; +extern PFNEGLWAITGLPROC eglWaitGL; +extern PFNEGLWAITNATIVEPROC eglWaitNative; /* EGL_VERSION_1_1 */ -extern PFNEGLBINDTEXIMAGEPROC eglBindTexImage; +extern PFNEGLBINDTEXIMAGEPROC eglBindTexImage; extern PFNEGLRELEASETEXIMAGEPROC eglReleaseTexImage; -extern PFNEGLSURFACEATTRIBPROC eglSurfaceAttrib; -extern PFNEGLSWAPINTERVALPROC eglSwapInterval; - +extern PFNEGLSURFACEATTRIBPROC eglSurfaceAttrib; +extern PFNEGLSWAPINTERVALPROC eglSwapInterval; /* EGL_VERSION_1_2 */ -extern PFNEGLBINDAPIPROC eglBindAPI; -extern PFNEGLQUERYAPIPROC eglQueryAPI; +extern PFNEGLBINDAPIPROC eglBindAPI; +extern PFNEGLQUERYAPIPROC eglQueryAPI; extern PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC eglCreatePbufferFromClientBuffer; -extern PFNEGLRELEASETHREADPROC eglReleaseThread; -extern PFNEGLWAITCLIENTPROC eglWaitClient; - +extern PFNEGLRELEASETHREADPROC eglReleaseThread; +extern PFNEGLWAITCLIENTPROC eglWaitClient; /* EGL_VERSION_1_3 */ /* EGL_VERSION_1_4 */ extern PFNEGLGETCURRENTCONTEXTPROC eglGetCurrentContext; - /* EGL_VERSION_1_5 */ -extern PFNEGLCREATESYNCPROC eglCreateSync; -extern PFNEGLDESTROYSYNCPROC eglDestroySync; +extern PFNEGLCREATESYNCPROC eglCreateSync; +extern PFNEGLDESTROYSYNCPROC eglDestroySync; extern PFNEGLCLIENTWAITSYNCPROC eglClientWaitSync; -extern PFNEGLGETSYNCATTRIBPROC eglGetSyncAttrib; +extern PFNEGLGETSYNCATTRIBPROC eglGetSyncAttrib; -extern PFNEGLCREATEIMAGEPROC eglCreateImage; +extern PFNEGLCREATEIMAGEPROC eglCreateImage; extern PFNEGLDESTROYIMAGEPROC eglDestroyImage; -extern PFNEGLGETPLATFORMDISPLAYPROC eglGetPlatformDisplay; +extern PFNEGLGETPLATFORMDISPLAYPROC eglGetPlatformDisplay; extern PFNEGLCREATEPLATFORMWINDOWSURFACEPROC eglCreatePlatformWindowSurface; extern PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC eglCreatePlatformPixmapSurface; extern PFNEGLWAITSYNCPROC eglWaitSync; - -#if defined(EGL_ANDROID_blob_cache) + #if defined(EGL_ANDROID_blob_cache) extern PFNEGLSETBLOBCACHEFUNCSANDROIDPROC eglSetBlobCacheFuncsANDROID; -#endif /* defined(EGL_ANDROID_blob_cache) */ + #endif /* defined(EGL_ANDROID_blob_cache) */ -#if defined(EGL_ANDROID_create_native_client_buffer) + #if defined(EGL_ANDROID_create_native_client_buffer) extern PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC eglCreateNativeClientBufferANDROID; -#endif /* defined(EGL_ANDROID_create_native_client_buffer) */ + #endif /* defined(EGL_ANDROID_create_native_client_buffer) */ -#if defined(EGL_ANDROID_get_native_client_buffer) + #if defined(EGL_ANDROID_get_native_client_buffer) extern PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC eglGetNativeClientBufferANDROID; -#endif /* defined(EGL_ANDROID_get_native_client_buffer) */ + #endif /* defined(EGL_ANDROID_get_native_client_buffer) */ -#if defined(EGL_ANDROID_native_fence_sync) + #if defined(EGL_ANDROID_native_fence_sync) extern PFNEGLDUPNATIVEFENCEFDANDROIDPROC eglDupNativeFenceFDANDROID; -#endif /* defined(EGL_ANDROID_native_fence_sync) */ + #endif /* defined(EGL_ANDROID_native_fence_sync) */ -#if defined(EGL_ANDROID_presentation_time) + #if defined(EGL_ANDROID_presentation_time) extern PFNEGLPRESENTATIONTIMEANDROIDPROC eglPresentationTimeANDROID; -#endif /* defined(EGL_ANDROID_presentation_time) */ + #endif /* defined(EGL_ANDROID_presentation_time) */ -#if defined(EGL_ANDROID_get_frame_timestamps) + #if defined(EGL_ANDROID_get_frame_timestamps) extern PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC eglGetCompositorTimingSupportedANDROID; -extern PFNEGLGETCOMPOSITORTIMINGANDROIDPROC eglGetCompositorTimingANDROID; -extern PFNEGLGETNEXTFRAMEIDANDROIDPROC eglGetNextFrameIdANDROID; -extern PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC eglGetFrameTimestampSupportedANDROID; -extern PFNEGLGETFRAMETIMESTAMPSANDROIDPROC eglGetFrameTimestampsANDROID; -#endif /* defined(EGL_ANDROID_get_frame_timestamps) */ +extern PFNEGLGETCOMPOSITORTIMINGANDROIDPROC eglGetCompositorTimingANDROID; +extern PFNEGLGETNEXTFRAMEIDANDROIDPROC eglGetNextFrameIdANDROID; +extern PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC eglGetFrameTimestampSupportedANDROID; +extern PFNEGLGETFRAMETIMESTAMPSANDROIDPROC eglGetFrameTimestampsANDROID; + #endif /* defined(EGL_ANDROID_get_frame_timestamps) */ -#if defined(EGL_ANGLE_query_surface_pointer) + #if defined(EGL_ANGLE_query_surface_pointer) extern PFNEGLQUERYSURFACEPOINTERANGLEPROC eglQuerySurfacePointerANGLE; -#endif /* defined(EGL_ANGLE_query_surface_pointer) */ + #endif /* defined(EGL_ANGLE_query_surface_pointer) */ -#if defined(EGL_ANGLE_sync_control_rate) + #if defined(EGL_ANGLE_sync_control_rate) extern PFNEGLGETMSCRATEANGLEPROC eglGetMscRateANGLE; -#endif /* defined(EGL_ANGLE_sync_control_rate) */ + #endif /* defined(EGL_ANGLE_sync_control_rate) */ -#if defined(EGL_EXT_client_sync) + #if defined(EGL_EXT_client_sync) extern PFNEGLCLIENTSIGNALSYNCEXTPROC eglClientSignalSyncEXT; -#endif /* defined(EGL_EXT_client_sync) */ + #endif /* defined(EGL_EXT_client_sync) */ -#if defined(EGL_EXT_device_base) -extern PFNEGLQUERYDEVICEATTRIBEXTPROC eglQueryDeviceAttribEXT; -extern PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; -extern PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT; + #if defined(EGL_EXT_device_base) +extern PFNEGLQUERYDEVICEATTRIBEXTPROC eglQueryDeviceAttribEXT; +extern PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; +extern PFNEGLQUERYDEVICESEXTPROC eglQueryDevicesEXT; extern PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT; -#endif /* defined(EGL_EXT_device_base) */ + #endif /* defined(EGL_EXT_device_base) */ -#if defined(EGL_EXT_image_dma_buf_import_modifiers) -extern PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT; + #if defined(EGL_EXT_image_dma_buf_import_modifiers) +extern PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT; extern PFNEGLQUERYDMABUFMODIFIERSEXTPROC eglQueryDmaBufModifiersEXT; -#endif /* defined(EGL_EXT_image_dma_buf_import_modifiers) */ + #endif /* defined(EGL_EXT_image_dma_buf_import_modifiers) */ -#if defined(EGL_EXT_output_base) -extern PFNEGLGETOUTPUTLAYERSEXTPROC eglGetOutputLayersEXT; -extern PFNEGLGETOUTPUTPORTSEXTPROC eglGetOutputPortsEXT; -extern PFNEGLOUTPUTLAYERATTRIBEXTPROC eglOutputLayerAttribEXT; + #if defined(EGL_EXT_output_base) +extern PFNEGLGETOUTPUTLAYERSEXTPROC eglGetOutputLayersEXT; +extern PFNEGLGETOUTPUTPORTSEXTPROC eglGetOutputPortsEXT; +extern PFNEGLOUTPUTLAYERATTRIBEXTPROC eglOutputLayerAttribEXT; extern PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC eglQueryOutputLayerAttribEXT; extern PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC eglQueryOutputLayerStringEXT; -extern PFNEGLOUTPUTPORTATTRIBEXTPROC eglOutputPortAttribEXT; -extern PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC eglQueryOutputPortAttribEXT; -extern PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC eglQueryOutputPortStringEXT; -#endif /* defined(EGL_EXT_output_base) */ +extern PFNEGLOUTPUTPORTATTRIBEXTPROC eglOutputPortAttribEXT; +extern PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC eglQueryOutputPortAttribEXT; +extern PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC eglQueryOutputPortStringEXT; + #endif /* defined(EGL_EXT_output_base) */ -#if defined(EGL_EXT_platform_base) -extern PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT; + #if defined(EGL_EXT_platform_base) +extern PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplayEXT; extern PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT; extern PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC eglCreatePlatformPixmapSurfaceEXT; -#endif /* defined(EGL_EXT_platform_base) */ + #endif /* defined(EGL_EXT_platform_base) */ -#if defined(EGL_EXT_stream_consumer_egloutput) + #if defined(EGL_EXT_stream_consumer_egloutput) extern PFNEGLSTREAMCONSUMEROUTPUTEXTPROC eglStreamConsumerOutputEXT; -#endif /* defined(EGL_EXT_stream_consumer_egloutput) */ + #endif /* defined(EGL_EXT_stream_consumer_egloutput) */ -#if defined(EGL_EXT_swap_buffers_with_damage) + #if defined(EGL_EXT_swap_buffers_with_damage) extern PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC eglSwapBuffersWithDamageEXT; -#endif /* defined(EGL_EXT_swap_buffers_with_damage) */ + #endif /* defined(EGL_EXT_swap_buffers_with_damage) */ -#if defined(EGL_EXT_sync_reuse) + #if defined(EGL_EXT_sync_reuse) extern PFNEGLUNSIGNALSYNCEXTPROC eglUnsignalSyncEXT; -#endif /* defined(EGL_EXT_sync_reuse) */ + #endif /* defined(EGL_EXT_sync_reuse) */ -#if defined(EGL_HI_clientpixmap) + #if defined(EGL_HI_clientpixmap) extern PFNEGLCREATEPIXMAPSURFACEHIPROC eglCreatePixmapSurfaceHI; -#endif /* defined(EGL_HI_clientpixmap) */ + #endif /* defined(EGL_HI_clientpixmap) */ -#if defined(EGL_KHR_cl_event2) + #if defined(EGL_KHR_cl_event2) extern PFNEGLCREATESYNC64KHRPROC eglCreateSync64KHR; -#endif /* defined(EGL_KHR_cl_event2) */ + #endif /* defined(EGL_KHR_cl_event2) */ -#if defined(EGL_KHR_debug) + #if defined(EGL_KHR_debug) extern PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR; -extern PFNEGLQUERYDEBUGKHRPROC eglQueryDebugKHR; -extern PFNEGLLABELOBJECTKHRPROC eglLabelObjectKHR; -#endif /* defined(EGL_KHR_debug) */ +extern PFNEGLQUERYDEBUGKHRPROC eglQueryDebugKHR; +extern PFNEGLLABELOBJECTKHRPROC eglLabelObjectKHR; + #endif /* defined(EGL_KHR_debug) */ -#if defined(EGL_KHR_display_reference) + #if defined(EGL_KHR_display_reference) extern PFNEGLQUERYDISPLAYATTRIBKHRPROC eglQueryDisplayAttribKHR; -#endif /* defined(EGL_KHR_display_reference) */ + #endif /* defined(EGL_KHR_display_reference) */ -#if defined(EGL_KHR_fence_sync) -extern PFNEGLCREATESYNCKHRPROC eglCreateSyncKHR; -extern PFNEGLDESTROYSYNCKHRPROC eglDestroySyncKHR; + #if defined(EGL_KHR_fence_sync) +extern PFNEGLCREATESYNCKHRPROC eglCreateSyncKHR; +extern PFNEGLDESTROYSYNCKHRPROC eglDestroySyncKHR; extern PFNEGLCLIENTWAITSYNCKHRPROC eglClientWaitSyncKHR; -extern PFNEGLGETSYNCATTRIBKHRPROC eglGetSyncAttribKHR; -#endif /* defined(EGL_KHR_fence_sync) */ +extern PFNEGLGETSYNCATTRIBKHRPROC eglGetSyncAttribKHR; + #endif /* defined(EGL_KHR_fence_sync) */ -#if defined(EGL_KHR_image) -extern PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR; + #if defined(EGL_KHR_image) +extern PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR; extern PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR; -#endif /* defined(EGL_KHR_image) */ + #endif /* defined(EGL_KHR_image) */ -#if defined(EGL_KHR_lock_surface) -extern PFNEGLLOCKSURFACEKHRPROC eglLockSurfaceKHR; + #if defined(EGL_KHR_lock_surface) +extern PFNEGLLOCKSURFACEKHRPROC eglLockSurfaceKHR; extern PFNEGLUNLOCKSURFACEKHRPROC eglUnlockSurfaceKHR; -#endif /* defined(EGL_KHR_lock_surface) */ + #endif /* defined(EGL_KHR_lock_surface) */ -#if defined(EGL_KHR_lock_surface3) + #if defined(EGL_KHR_lock_surface3) extern PFNEGLQUERYSURFACE64KHRPROC eglQuerySurface64KHR; -#endif /* defined(EGL_KHR_lock_surface3) */ + #endif /* defined(EGL_KHR_lock_surface3) */ -#if defined(EGL_KHR_partial_update) + #if defined(EGL_KHR_partial_update) extern PFNEGLSETDAMAGEREGIONKHRPROC eglSetDamageRegionKHR; -#endif /* defined(EGL_KHR_partial_update) */ + #endif /* defined(EGL_KHR_partial_update) */ -#if defined(EGL_KHR_reusable_sync) + #if defined(EGL_KHR_reusable_sync) extern PFNEGLSIGNALSYNCKHRPROC eglSignalSyncKHR; -#endif /* defined(EGL_KHR_reusable_sync) */ + #endif /* defined(EGL_KHR_reusable_sync) */ -#if defined(EGL_KHR_stream) -extern PFNEGLCREATESTREAMKHRPROC eglCreateStreamKHR; -extern PFNEGLDESTROYSTREAMKHRPROC eglDestroyStreamKHR; -extern PFNEGLSTREAMATTRIBKHRPROC eglStreamAttribKHR; -extern PFNEGLQUERYSTREAMKHRPROC eglQueryStreamKHR; + #if defined(EGL_KHR_stream) +extern PFNEGLCREATESTREAMKHRPROC eglCreateStreamKHR; +extern PFNEGLDESTROYSTREAMKHRPROC eglDestroyStreamKHR; +extern PFNEGLSTREAMATTRIBKHRPROC eglStreamAttribKHR; +extern PFNEGLQUERYSTREAMKHRPROC eglQueryStreamKHR; extern PFNEGLQUERYSTREAMU64KHRPROC eglQueryStreamu64KHR; -#endif /* defined(EGL_KHR_stream) */ + #endif /* defined(EGL_KHR_stream) */ -#if defined(EGL_KHR_stream_attrib) -extern PFNEGLCREATESTREAMATTRIBKHRPROC eglCreateStreamAttribKHR; -extern PFNEGLSETSTREAMATTRIBKHRPROC eglSetStreamAttribKHR; -extern PFNEGLQUERYSTREAMATTRIBKHRPROC eglQueryStreamAttribKHR; + #if defined(EGL_KHR_stream_attrib) +extern PFNEGLCREATESTREAMATTRIBKHRPROC eglCreateStreamAttribKHR; +extern PFNEGLSETSTREAMATTRIBKHRPROC eglSetStreamAttribKHR; +extern PFNEGLQUERYSTREAMATTRIBKHRPROC eglQueryStreamAttribKHR; extern PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC eglStreamConsumerAcquireAttribKHR; extern PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC eglStreamConsumerReleaseAttribKHR; -#endif /* defined(EGL_KHR_stream_attrib) */ + #endif /* defined(EGL_KHR_stream_attrib) */ -#if defined(EGL_KHR_stream_consumer_gltexture) + #if defined(EGL_KHR_stream_consumer_gltexture) extern PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC eglStreamConsumerGLTextureExternalKHR; -extern PFNEGLSTREAMCONSUMERACQUIREKHRPROC eglStreamConsumerAcquireKHR; -extern PFNEGLSTREAMCONSUMERRELEASEKHRPROC eglStreamConsumerReleaseKHR; -#endif /* defined(EGL_KHR_stream_consumer_gltexture) */ +extern PFNEGLSTREAMCONSUMERACQUIREKHRPROC eglStreamConsumerAcquireKHR; +extern PFNEGLSTREAMCONSUMERRELEASEKHRPROC eglStreamConsumerReleaseKHR; + #endif /* defined(EGL_KHR_stream_consumer_gltexture) */ -#if defined(EGL_KHR_stream_cross_process_fd) -extern PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC eglGetStreamFileDescriptorKHR; + #if defined(EGL_KHR_stream_cross_process_fd) +extern PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC eglGetStreamFileDescriptorKHR; extern PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC eglCreateStreamFromFileDescriptorKHR; -#endif /* defined(EGL_KHR_stream_cross_process_fd) */ + #endif /* defined(EGL_KHR_stream_cross_process_fd) */ -#if defined(EGL_KHR_stream_fifo) + #if defined(EGL_KHR_stream_fifo) extern PFNEGLQUERYSTREAMTIMEKHRPROC eglQueryStreamTimeKHR; -#endif /* defined(EGL_KHR_stream_fifo) */ + #endif /* defined(EGL_KHR_stream_fifo) */ -#if defined(EGL_KHR_stream_producer_eglsurface) + #if defined(EGL_KHR_stream_producer_eglsurface) extern PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC eglCreateStreamProducerSurfaceKHR; -#endif /* defined(EGL_KHR_stream_producer_eglsurface) */ + #endif /* defined(EGL_KHR_stream_producer_eglsurface) */ -#if defined(EGL_KHR_swap_buffers_with_damage) + #if defined(EGL_KHR_swap_buffers_with_damage) extern PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC eglSwapBuffersWithDamageKHR; -#endif /* defined(EGL_KHR_swap_buffers_with_damage) */ + #endif /* defined(EGL_KHR_swap_buffers_with_damage) */ -#if defined(EGL_KHR_wait_sync) + #if defined(EGL_KHR_wait_sync) extern PFNEGLWAITSYNCKHRPROC eglWaitSyncKHR; -#endif /* defined(EGL_KHR_wait_sync) */ + #endif /* defined(EGL_KHR_wait_sync) */ -#if defined(EGL_MESA_drm_image) + #if defined(EGL_MESA_drm_image) extern PFNEGLCREATEDRMIMAGEMESAPROC eglCreateDRMImageMESA; extern PFNEGLEXPORTDRMIMAGEMESAPROC eglExportDRMImageMESA; -#endif /* defined(EGL_MESA_drm_image) */ + #endif /* defined(EGL_MESA_drm_image) */ -#if defined(EGL_MESA_image_dma_buf_export) + #if defined(EGL_MESA_image_dma_buf_export) extern PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC eglExportDMABUFImageQueryMESA; -extern PFNEGLEXPORTDMABUFIMAGEMESAPROC eglExportDMABUFImageMESA; -#endif /* defined(EGL_MESA_image_dma_buf_export) */ +extern PFNEGLEXPORTDMABUFIMAGEMESAPROC eglExportDMABUFImageMESA; + #endif /* defined(EGL_MESA_image_dma_buf_export) */ -#if defined(EGL_MESA_query_driver) + #if defined(EGL_MESA_query_driver) extern PFNEGLGETDISPLAYDRIVERCONFIGPROC eglGetDisplayDriverConfig; -extern PFNEGLGETDISPLAYDRIVERNAMEPROC eglGetDisplayDriverName; -#endif /* defined(EGL_MESA_query_driver) */ +extern PFNEGLGETDISPLAYDRIVERNAMEPROC eglGetDisplayDriverName; + #endif /* defined(EGL_MESA_query_driver) */ -#if defined(EGL_NOK_swap_region) + #if defined(EGL_NOK_swap_region) extern PFNEGLSWAPBUFFERSREGIONNOKPROC eglSwapBuffersRegionNOK; -#endif /* defined(EGL_NOK_swap_region) */ + #endif /* defined(EGL_NOK_swap_region) */ -#if defined(EGL_NOK_swap_region2) + #if defined(EGL_NOK_swap_region2) extern PFNEGLSWAPBUFFERSREGION2NOKPROC eglSwapBuffersRegion2NOK; -#endif /* defined(EGL_NOK_swap_region2) */ + #endif /* defined(EGL_NOK_swap_region2) */ -#if defined(EGL_NV_native_query) + #if defined(EGL_NV_native_query) extern PFNEGLQUERYNATIVEDISPLAYNVPROC eglQueryNativeDisplayNV; -extern PFNEGLQUERYNATIVEWINDOWNVPROC eglQueryNativeWindowNV; -extern PFNEGLQUERYNATIVEPIXMAPNVPROC eglQueryNativePixmapNV; -#endif /* defined(EGL_NV_native_query) */ +extern PFNEGLQUERYNATIVEWINDOWNVPROC eglQueryNativeWindowNV; +extern PFNEGLQUERYNATIVEPIXMAPNVPROC eglQueryNativePixmapNV; + #endif /* defined(EGL_NV_native_query) */ -#if defined(EGL_NV_post_sub_buffer) + #if defined(EGL_NV_post_sub_buffer) extern PFNEGLPOSTSUBBUFFERNVPROC eglPostSubBufferNV; -#endif /* defined(EGL_NV_post_sub_buffer) */ + #endif /* defined(EGL_NV_post_sub_buffer) */ -#if defined(EGL_NV_stream_consumer_gltexture_yuv) + #if defined(EGL_NV_stream_consumer_gltexture_yuv) extern PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC eglStreamConsumerGLTextureExternalAttribsNV; -#endif /* defined(EGL_NV_stream_consumer_gltexture_yuv) */ + #endif /* defined(EGL_NV_stream_consumer_gltexture_yuv) */ -#if defined(EGL_NV_stream_consumer_eglimage) + #if defined(EGL_NV_stream_consumer_eglimage) extern PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC eglStreamImageConsumerConnectNV; -extern PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC eglQueryStreamConsumerEventNV; -extern PFNEGLSTREAMACQUIREIMAGENVPROC eglStreamAcquireImageNV; -extern PFNEGLSTREAMRELEASEIMAGENVPROC eglStreamReleaseImageNV; -#endif /* defined(EGL_NV_stream_consumer_eglimage) */ +extern PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC eglQueryStreamConsumerEventNV; +extern PFNEGLSTREAMACQUIREIMAGENVPROC eglStreamAcquireImageNV; +extern PFNEGLSTREAMRELEASEIMAGENVPROC eglStreamReleaseImageNV; + #endif /* defined(EGL_NV_stream_consumer_eglimage) */ -#if defined(EGL_NV_stream_flush) + #if defined(EGL_NV_stream_flush) extern PFNEGLSTREAMFLUSHNVPROC eglStreamFlushNV; -#endif /* defined(EGL_NV_stream_flush) */ + #endif /* defined(EGL_NV_stream_flush) */ -#if defined(EGL_NV_stream_metadata) -extern PFNEGLQUERYDISPLAYATTRIBNVPROC eglQueryDisplayAttribNV; -extern PFNEGLSETSTREAMMETADATANVPROC eglSetStreamMetadataNV; + #if defined(EGL_NV_stream_metadata) +extern PFNEGLQUERYDISPLAYATTRIBNVPROC eglQueryDisplayAttribNV; +extern PFNEGLSETSTREAMMETADATANVPROC eglSetStreamMetadataNV; extern PFNEGLQUERYSTREAMMETADATANVPROC eglQueryStreamMetadataNV; -#endif /* defined(EGL_NV_stream_metadata) */ + #endif /* defined(EGL_NV_stream_metadata) */ -#if defined(EGL_NV_stream_reset) + #if defined(EGL_NV_stream_reset) extern PFNEGLRESETSTREAMNVPROC eglResetStreamNV; -#endif /* defined(EGL_NV_stream_reset) */ + #endif /* defined(EGL_NV_stream_reset) */ -#if defined(EGL_NV_stream_sync) + #if defined(EGL_NV_stream_sync) extern PFNEGLCREATESTREAMSYNCNVPROC eglCreateStreamSyncNV; -#endif /* defined(EGL_NV_stream_sync) */ + #endif /* defined(EGL_NV_stream_sync) */ -#if defined(EGL_NV_sync) + #if defined(EGL_NV_sync) extern PFNEGLCREATEFENCESYNCNVPROC eglCreateFenceSyncNV; -extern PFNEGLDESTROYSYNCNVPROC eglDestroySyncNV; -extern PFNEGLFENCENVPROC eglFenceNV; -extern PFNEGLCLIENTWAITSYNCNVPROC eglClientWaitSyncNV; -extern PFNEGLSIGNALSYNCNVPROC eglSignalSyncNV; -extern PFNEGLGETSYNCATTRIBNVPROC eglGetSyncAttribNV; -#endif /* defined(EGL_NV_sync) */ +extern PFNEGLDESTROYSYNCNVPROC eglDestroySyncNV; +extern PFNEGLFENCENVPROC eglFenceNV; +extern PFNEGLCLIENTWAITSYNCNVPROC eglClientWaitSyncNV; +extern PFNEGLSIGNALSYNCNVPROC eglSignalSyncNV; +extern PFNEGLGETSYNCATTRIBNVPROC eglGetSyncAttribNV; + #endif /* defined(EGL_NV_sync) */ -#if defined(EGL_NV_system_time) + #if defined(EGL_NV_system_time) extern PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC eglGetSystemTimeFrequencyNV; -extern PFNEGLGETSYSTEMTIMENVPROC eglGetSystemTimeNV; -#endif /* defined(EGL_NV_system_time) */ +extern PFNEGLGETSYSTEMTIMENVPROC eglGetSystemTimeNV; + #endif /* defined(EGL_NV_system_time) */ -#if defined(EGL_EXT_compositor) -extern PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC eglCompositorSetContextListEXT; + #if defined(EGL_EXT_compositor) +extern PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC eglCompositorSetContextListEXT; extern PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC eglCompositorSetContextAttributesEXT; -extern PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC eglCompositorSetWindowListEXT; -extern PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC eglCompositorSetWindowAttributesEXT; -extern PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC eglCompositorBindTexWindowEXT; -extern PFNEGLCOMPOSITORSETSIZEEXTPROC eglCompositorSetSizeEXT; -extern PFNEGLCOMPOSITORSWAPPOLICYEXTPROC eglCompositorSwapPolicyEXT; -#endif /* defined(EGL_EXT_compositor) */ +extern PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC eglCompositorSetWindowListEXT; +extern PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC eglCompositorSetWindowAttributesEXT; +extern PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC eglCompositorBindTexWindowEXT; +extern PFNEGLCOMPOSITORSETSIZEEXTPROC eglCompositorSetSizeEXT; +extern PFNEGLCOMPOSITORSWAPPOLICYEXTPROC eglCompositorSwapPolicyEXT; + #endif /* defined(EGL_EXT_compositor) */ -#if defined(EGL_WL_bind_wayland_display) -extern PFNEGLBINDWAYLANDDISPLAYWLPROC eglBindWaylandDisplayWL; + #if defined(EGL_WL_bind_wayland_display) +extern PFNEGLBINDWAYLANDDISPLAYWLPROC eglBindWaylandDisplayWL; extern PFNEGLUNBINDWAYLANDDISPLAYWLPROC eglUnbindWaylandDisplayWL; -extern PFNEGLQUERYWAYLANDBUFFERWLPROC eglQueryWaylandBufferWL; -#endif /* defined(EGL_WL_bind_wayland_display) */ +extern PFNEGLQUERYWAYLANDBUFFERWLPROC eglQueryWaylandBufferWL; + #endif /* defined(EGL_WL_bind_wayland_display) */ -#if defined(EGL_WL_create_wayland_buffer_from_image) + #if defined(EGL_WL_create_wayland_buffer_from_image) extern PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC eglCreateWaylandBufferFromImageWL; -#endif /* defined(EGL_WL_create_wayland_buffer_from_image) */ + #endif /* defined(EGL_WL_create_wayland_buffer_from_image) */ /* EGLW_GENERATE_EGL_DECLARATION */ diff --git a/native/cocos/renderer/gfx-gles-common/gles2w.cpp b/native/cocos/renderer/gfx-gles-common/gles2w.cpp index b0ca875426..57daf8841d 100644 --- a/native/cocos/renderer/gfx-gles-common/gles2w.cpp +++ b/native/cocos/renderer/gfx-gles-common/gles2w.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -37,7 +37,6 @@ #endif #include - /** * ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! ========================= * The following section is auto-generated from GLES spec by running: @@ -47,167 +46,166 @@ /* GLES2W_GENERATE_GLES_DEFINITION */ /* GL_ES_VERSION_2_0 */ -PFNGLACTIVETEXTUREPROC glActiveTexture; -PFNGLATTACHSHADERPROC glAttachShader; -PFNGLBINDATTRIBLOCATIONPROC glBindAttribLocation; -PFNGLBINDBUFFERPROC glBindBuffer; -PFNGLBINDFRAMEBUFFERPROC glBindFramebuffer; -PFNGLBINDRENDERBUFFERPROC glBindRenderbuffer; -PFNGLBINDTEXTUREPROC glBindTexture; -PFNGLBLENDCOLORPROC glBlendColor; -PFNGLBLENDEQUATIONPROC glBlendEquation; -PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate; -PFNGLBLENDFUNCPROC glBlendFunc; -PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate; -PFNGLBUFFERDATAPROC glBufferData; -PFNGLBUFFERSUBDATAPROC glBufferSubData; -PFNGLCHECKFRAMEBUFFERSTATUSPROC glCheckFramebufferStatus; -PFNGLCLEARPROC glClear; -PFNGLCLEARCOLORPROC glClearColor; -PFNGLCLEARDEPTHFPROC glClearDepthf; -PFNGLCLEARSTENCILPROC glClearStencil; -PFNGLCOLORMASKPROC glColorMask; -PFNGLCOMPILESHADERPROC glCompileShader; -PFNGLCOMPRESSEDTEXIMAGE2DPROC glCompressedTexImage2D; -PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glCompressedTexSubImage2D; -PFNGLCOPYTEXIMAGE2DPROC glCopyTexImage2D; -PFNGLCOPYTEXSUBIMAGE2DPROC glCopyTexSubImage2D; -PFNGLCREATEPROGRAMPROC glCreateProgram; -PFNGLCREATESHADERPROC glCreateShader; -PFNGLCULLFACEPROC glCullFace; -PFNGLDELETEBUFFERSPROC glDeleteBuffers; -PFNGLDELETEFRAMEBUFFERSPROC glDeleteFramebuffers; -PFNGLDELETEPROGRAMPROC glDeleteProgram; -PFNGLDELETERENDERBUFFERSPROC glDeleteRenderbuffers; -PFNGLDELETESHADERPROC glDeleteShader; -PFNGLDELETETEXTURESPROC glDeleteTextures; -PFNGLDEPTHFUNCPROC glDepthFunc; -PFNGLDEPTHMASKPROC glDepthMask; -PFNGLDEPTHRANGEFPROC glDepthRangef; -PFNGLDETACHSHADERPROC glDetachShader; -PFNGLDISABLEPROC glDisable; -PFNGLDISABLEVERTEXATTRIBARRAYPROC glDisableVertexAttribArray; -PFNGLDRAWARRAYSPROC glDrawArrays; -PFNGLDRAWELEMENTSPROC glDrawElements; -PFNGLENABLEPROC glEnable; -PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray; -PFNGLFINISHPROC glFinish; -PFNGLFLUSHPROC glFlush; -PFNGLFRAMEBUFFERRENDERBUFFERPROC glFramebufferRenderbuffer; -PFNGLFRAMEBUFFERTEXTURE2DPROC glFramebufferTexture2D; -PFNGLFRONTFACEPROC glFrontFace; -PFNGLGENBUFFERSPROC glGenBuffers; -PFNGLGENERATEMIPMAPPROC glGenerateMipmap; -PFNGLGENFRAMEBUFFERSPROC glGenFramebuffers; -PFNGLGENRENDERBUFFERSPROC glGenRenderbuffers; -PFNGLGENTEXTURESPROC glGenTextures; -PFNGLGETACTIVEATTRIBPROC glGetActiveAttrib; -PFNGLGETACTIVEUNIFORMPROC glGetActiveUniform; -PFNGLGETATTACHEDSHADERSPROC glGetAttachedShaders; -PFNGLGETATTRIBLOCATIONPROC glGetAttribLocation; -PFNGLGETBOOLEANVPROC glGetBooleanv; -PFNGLGETBUFFERPARAMETERIVPROC glGetBufferParameteriv; -PFNGLGETERRORPROC glGetError; -PFNGLGETFLOATVPROC glGetFloatv; +PFNGLACTIVETEXTUREPROC glActiveTexture; +PFNGLATTACHSHADERPROC glAttachShader; +PFNGLBINDATTRIBLOCATIONPROC glBindAttribLocation; +PFNGLBINDBUFFERPROC glBindBuffer; +PFNGLBINDFRAMEBUFFERPROC glBindFramebuffer; +PFNGLBINDRENDERBUFFERPROC glBindRenderbuffer; +PFNGLBINDTEXTUREPROC glBindTexture; +PFNGLBLENDCOLORPROC glBlendColor; +PFNGLBLENDEQUATIONPROC glBlendEquation; +PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate; +PFNGLBLENDFUNCPROC glBlendFunc; +PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate; +PFNGLBUFFERDATAPROC glBufferData; +PFNGLBUFFERSUBDATAPROC glBufferSubData; +PFNGLCHECKFRAMEBUFFERSTATUSPROC glCheckFramebufferStatus; +PFNGLCLEARPROC glClear; +PFNGLCLEARCOLORPROC glClearColor; +PFNGLCLEARDEPTHFPROC glClearDepthf; +PFNGLCLEARSTENCILPROC glClearStencil; +PFNGLCOLORMASKPROC glColorMask; +PFNGLCOMPILESHADERPROC glCompileShader; +PFNGLCOMPRESSEDTEXIMAGE2DPROC glCompressedTexImage2D; +PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glCompressedTexSubImage2D; +PFNGLCOPYTEXIMAGE2DPROC glCopyTexImage2D; +PFNGLCOPYTEXSUBIMAGE2DPROC glCopyTexSubImage2D; +PFNGLCREATEPROGRAMPROC glCreateProgram; +PFNGLCREATESHADERPROC glCreateShader; +PFNGLCULLFACEPROC glCullFace; +PFNGLDELETEBUFFERSPROC glDeleteBuffers; +PFNGLDELETEFRAMEBUFFERSPROC glDeleteFramebuffers; +PFNGLDELETEPROGRAMPROC glDeleteProgram; +PFNGLDELETERENDERBUFFERSPROC glDeleteRenderbuffers; +PFNGLDELETESHADERPROC glDeleteShader; +PFNGLDELETETEXTURESPROC glDeleteTextures; +PFNGLDEPTHFUNCPROC glDepthFunc; +PFNGLDEPTHMASKPROC glDepthMask; +PFNGLDEPTHRANGEFPROC glDepthRangef; +PFNGLDETACHSHADERPROC glDetachShader; +PFNGLDISABLEPROC glDisable; +PFNGLDISABLEVERTEXATTRIBARRAYPROC glDisableVertexAttribArray; +PFNGLDRAWARRAYSPROC glDrawArrays; +PFNGLDRAWELEMENTSPROC glDrawElements; +PFNGLENABLEPROC glEnable; +PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray; +PFNGLFINISHPROC glFinish; +PFNGLFLUSHPROC glFlush; +PFNGLFRAMEBUFFERRENDERBUFFERPROC glFramebufferRenderbuffer; +PFNGLFRAMEBUFFERTEXTURE2DPROC glFramebufferTexture2D; +PFNGLFRONTFACEPROC glFrontFace; +PFNGLGENBUFFERSPROC glGenBuffers; +PFNGLGENERATEMIPMAPPROC glGenerateMipmap; +PFNGLGENFRAMEBUFFERSPROC glGenFramebuffers; +PFNGLGENRENDERBUFFERSPROC glGenRenderbuffers; +PFNGLGENTEXTURESPROC glGenTextures; +PFNGLGETACTIVEATTRIBPROC glGetActiveAttrib; +PFNGLGETACTIVEUNIFORMPROC glGetActiveUniform; +PFNGLGETATTACHEDSHADERSPROC glGetAttachedShaders; +PFNGLGETATTRIBLOCATIONPROC glGetAttribLocation; +PFNGLGETBOOLEANVPROC glGetBooleanv; +PFNGLGETBUFFERPARAMETERIVPROC glGetBufferParameteriv; +PFNGLGETERRORPROC glGetError; +PFNGLGETFLOATVPROC glGetFloatv; PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glGetFramebufferAttachmentParameteriv; -PFNGLGETINTEGERVPROC glGetIntegerv; -PFNGLGETPROGRAMIVPROC glGetProgramiv; -PFNGLGETPROGRAMINFOLOGPROC glGetProgramInfoLog; -PFNGLGETRENDERBUFFERPARAMETERIVPROC glGetRenderbufferParameteriv; -PFNGLGETSHADERIVPROC glGetShaderiv; -PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog; -PFNGLGETSHADERPRECISIONFORMATPROC glGetShaderPrecisionFormat; -PFNGLGETSHADERSOURCEPROC glGetShaderSource; -PFNGLGETSTRINGPROC glGetString; -PFNGLGETTEXPARAMETERFVPROC glGetTexParameterfv; -PFNGLGETTEXPARAMETERIVPROC glGetTexParameteriv; -PFNGLGETUNIFORMFVPROC glGetUniformfv; -PFNGLGETUNIFORMIVPROC glGetUniformiv; -PFNGLGETUNIFORMLOCATIONPROC glGetUniformLocation; -PFNGLGETVERTEXATTRIBFVPROC glGetVertexAttribfv; -PFNGLGETVERTEXATTRIBIVPROC glGetVertexAttribiv; -PFNGLGETVERTEXATTRIBPOINTERVPROC glGetVertexAttribPointerv; -PFNGLHINTPROC glHint; -PFNGLISBUFFERPROC glIsBuffer; -PFNGLISENABLEDPROC glIsEnabled; -PFNGLISFRAMEBUFFERPROC glIsFramebuffer; -PFNGLISPROGRAMPROC glIsProgram; -PFNGLISRENDERBUFFERPROC glIsRenderbuffer; -PFNGLISSHADERPROC glIsShader; -PFNGLISTEXTUREPROC glIsTexture; -PFNGLLINEWIDTHPROC glLineWidth; -PFNGLLINKPROGRAMPROC glLinkProgram; -PFNGLPIXELSTOREIPROC glPixelStorei; -PFNGLPOLYGONOFFSETPROC glPolygonOffset; -PFNGLREADPIXELSPROC glReadPixels; -PFNGLRELEASESHADERCOMPILERPROC glReleaseShaderCompiler; -PFNGLRENDERBUFFERSTORAGEPROC glRenderbufferStorage; -PFNGLSAMPLECOVERAGEPROC glSampleCoverage; -PFNGLSCISSORPROC glScissor; -PFNGLSHADERBINARYPROC glShaderBinary; -PFNGLSHADERSOURCEPROC glShaderSource; -PFNGLSTENCILFUNCPROC glStencilFunc; -PFNGLSTENCILFUNCSEPARATEPROC glStencilFuncSeparate; -PFNGLSTENCILMASKPROC glStencilMask; -PFNGLSTENCILMASKSEPARATEPROC glStencilMaskSeparate; -PFNGLSTENCILOPPROC glStencilOp; -PFNGLSTENCILOPSEPARATEPROC glStencilOpSeparate; -PFNGLTEXIMAGE2DPROC glTexImage2D; -PFNGLTEXPARAMETERFPROC glTexParameterf; -PFNGLTEXPARAMETERFVPROC glTexParameterfv; -PFNGLTEXPARAMETERIPROC glTexParameteri; -PFNGLTEXPARAMETERIVPROC glTexParameteriv; -PFNGLTEXSUBIMAGE2DPROC glTexSubImage2D; -PFNGLUNIFORM1FPROC glUniform1f; -PFNGLUNIFORM1FVPROC glUniform1fv; -PFNGLUNIFORM1IPROC glUniform1i; -PFNGLUNIFORM1IVPROC glUniform1iv; -PFNGLUNIFORM2FPROC glUniform2f; -PFNGLUNIFORM2FVPROC glUniform2fv; -PFNGLUNIFORM2IPROC glUniform2i; -PFNGLUNIFORM2IVPROC glUniform2iv; -PFNGLUNIFORM3FPROC glUniform3f; -PFNGLUNIFORM3FVPROC glUniform3fv; -PFNGLUNIFORM3IPROC glUniform3i; -PFNGLUNIFORM3IVPROC glUniform3iv; -PFNGLUNIFORM4FPROC glUniform4f; -PFNGLUNIFORM4FVPROC glUniform4fv; -PFNGLUNIFORM4IPROC glUniform4i; -PFNGLUNIFORM4IVPROC glUniform4iv; -PFNGLUNIFORMMATRIX2FVPROC glUniformMatrix2fv; -PFNGLUNIFORMMATRIX3FVPROC glUniformMatrix3fv; -PFNGLUNIFORMMATRIX4FVPROC glUniformMatrix4fv; -PFNGLUSEPROGRAMPROC glUseProgram; -PFNGLVALIDATEPROGRAMPROC glValidateProgram; -PFNGLVERTEXATTRIB1FPROC glVertexAttrib1f; -PFNGLVERTEXATTRIB1FVPROC glVertexAttrib1fv; -PFNGLVERTEXATTRIB2FPROC glVertexAttrib2f; -PFNGLVERTEXATTRIB2FVPROC glVertexAttrib2fv; -PFNGLVERTEXATTRIB3FPROC glVertexAttrib3f; -PFNGLVERTEXATTRIB3FVPROC glVertexAttrib3fv; -PFNGLVERTEXATTRIB4FPROC glVertexAttrib4f; -PFNGLVERTEXATTRIB4FVPROC glVertexAttrib4fv; -PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer; -PFNGLVIEWPORTPROC glViewport; - +PFNGLGETINTEGERVPROC glGetIntegerv; +PFNGLGETPROGRAMIVPROC glGetProgramiv; +PFNGLGETPROGRAMINFOLOGPROC glGetProgramInfoLog; +PFNGLGETRENDERBUFFERPARAMETERIVPROC glGetRenderbufferParameteriv; +PFNGLGETSHADERIVPROC glGetShaderiv; +PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog; +PFNGLGETSHADERPRECISIONFORMATPROC glGetShaderPrecisionFormat; +PFNGLGETSHADERSOURCEPROC glGetShaderSource; +PFNGLGETSTRINGPROC glGetString; +PFNGLGETTEXPARAMETERFVPROC glGetTexParameterfv; +PFNGLGETTEXPARAMETERIVPROC glGetTexParameteriv; +PFNGLGETUNIFORMFVPROC glGetUniformfv; +PFNGLGETUNIFORMIVPROC glGetUniformiv; +PFNGLGETUNIFORMLOCATIONPROC glGetUniformLocation; +PFNGLGETVERTEXATTRIBFVPROC glGetVertexAttribfv; +PFNGLGETVERTEXATTRIBIVPROC glGetVertexAttribiv; +PFNGLGETVERTEXATTRIBPOINTERVPROC glGetVertexAttribPointerv; +PFNGLHINTPROC glHint; +PFNGLISBUFFERPROC glIsBuffer; +PFNGLISENABLEDPROC glIsEnabled; +PFNGLISFRAMEBUFFERPROC glIsFramebuffer; +PFNGLISPROGRAMPROC glIsProgram; +PFNGLISRENDERBUFFERPROC glIsRenderbuffer; +PFNGLISSHADERPROC glIsShader; +PFNGLISTEXTUREPROC glIsTexture; +PFNGLLINEWIDTHPROC glLineWidth; +PFNGLLINKPROGRAMPROC glLinkProgram; +PFNGLPIXELSTOREIPROC glPixelStorei; +PFNGLPOLYGONOFFSETPROC glPolygonOffset; +PFNGLREADPIXELSPROC glReadPixels; +PFNGLRELEASESHADERCOMPILERPROC glReleaseShaderCompiler; +PFNGLRENDERBUFFERSTORAGEPROC glRenderbufferStorage; +PFNGLSAMPLECOVERAGEPROC glSampleCoverage; +PFNGLSCISSORPROC glScissor; +PFNGLSHADERBINARYPROC glShaderBinary; +PFNGLSHADERSOURCEPROC glShaderSource; +PFNGLSTENCILFUNCPROC glStencilFunc; +PFNGLSTENCILFUNCSEPARATEPROC glStencilFuncSeparate; +PFNGLSTENCILMASKPROC glStencilMask; +PFNGLSTENCILMASKSEPARATEPROC glStencilMaskSeparate; +PFNGLSTENCILOPPROC glStencilOp; +PFNGLSTENCILOPSEPARATEPROC glStencilOpSeparate; +PFNGLTEXIMAGE2DPROC glTexImage2D; +PFNGLTEXPARAMETERFPROC glTexParameterf; +PFNGLTEXPARAMETERFVPROC glTexParameterfv; +PFNGLTEXPARAMETERIPROC glTexParameteri; +PFNGLTEXPARAMETERIVPROC glTexParameteriv; +PFNGLTEXSUBIMAGE2DPROC glTexSubImage2D; +PFNGLUNIFORM1FPROC glUniform1f; +PFNGLUNIFORM1FVPROC glUniform1fv; +PFNGLUNIFORM1IPROC glUniform1i; +PFNGLUNIFORM1IVPROC glUniform1iv; +PFNGLUNIFORM2FPROC glUniform2f; +PFNGLUNIFORM2FVPROC glUniform2fv; +PFNGLUNIFORM2IPROC glUniform2i; +PFNGLUNIFORM2IVPROC glUniform2iv; +PFNGLUNIFORM3FPROC glUniform3f; +PFNGLUNIFORM3FVPROC glUniform3fv; +PFNGLUNIFORM3IPROC glUniform3i; +PFNGLUNIFORM3IVPROC glUniform3iv; +PFNGLUNIFORM4FPROC glUniform4f; +PFNGLUNIFORM4FVPROC glUniform4fv; +PFNGLUNIFORM4IPROC glUniform4i; +PFNGLUNIFORM4IVPROC glUniform4iv; +PFNGLUNIFORMMATRIX2FVPROC glUniformMatrix2fv; +PFNGLUNIFORMMATRIX3FVPROC glUniformMatrix3fv; +PFNGLUNIFORMMATRIX4FVPROC glUniformMatrix4fv; +PFNGLUSEPROGRAMPROC glUseProgram; +PFNGLVALIDATEPROGRAMPROC glValidateProgram; +PFNGLVERTEXATTRIB1FPROC glVertexAttrib1f; +PFNGLVERTEXATTRIB1FVPROC glVertexAttrib1fv; +PFNGLVERTEXATTRIB2FPROC glVertexAttrib2f; +PFNGLVERTEXATTRIB2FVPROC glVertexAttrib2fv; +PFNGLVERTEXATTRIB3FPROC glVertexAttrib3f; +PFNGLVERTEXATTRIB3FVPROC glVertexAttrib3fv; +PFNGLVERTEXATTRIB4FPROC glVertexAttrib4f; +PFNGLVERTEXATTRIB4FVPROC glVertexAttrib4fv; +PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer; +PFNGLVIEWPORTPROC glViewport; #if defined(GL_AMD_framebuffer_multisample_advanced) -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC glRenderbufferStorageMultisampleAdvancedAMD; +PFNGLRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC glRenderbufferStorageMultisampleAdvancedAMD; PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEADVANCEDAMDPROC glNamedRenderbufferStorageMultisampleAdvancedAMD; #endif /* defined(GL_AMD_framebuffer_multisample_advanced) */ #if defined(GL_AMD_performance_monitor) -PFNGLGETPERFMONITORGROUPSAMDPROC glGetPerfMonitorGroupsAMD; -PFNGLGETPERFMONITORCOUNTERSAMDPROC glGetPerfMonitorCountersAMD; -PFNGLGETPERFMONITORGROUPSTRINGAMDPROC glGetPerfMonitorGroupStringAMD; +PFNGLGETPERFMONITORGROUPSAMDPROC glGetPerfMonitorGroupsAMD; +PFNGLGETPERFMONITORCOUNTERSAMDPROC glGetPerfMonitorCountersAMD; +PFNGLGETPERFMONITORGROUPSTRINGAMDPROC glGetPerfMonitorGroupStringAMD; PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC glGetPerfMonitorCounterStringAMD; -PFNGLGETPERFMONITORCOUNTERINFOAMDPROC glGetPerfMonitorCounterInfoAMD; -PFNGLGENPERFMONITORSAMDPROC glGenPerfMonitorsAMD; -PFNGLDELETEPERFMONITORSAMDPROC glDeletePerfMonitorsAMD; -PFNGLSELECTPERFMONITORCOUNTERSAMDPROC glSelectPerfMonitorCountersAMD; -PFNGLBEGINPERFMONITORAMDPROC glBeginPerfMonitorAMD; -PFNGLENDPERFMONITORAMDPROC glEndPerfMonitorAMD; -PFNGLGETPERFMONITORCOUNTERDATAAMDPROC glGetPerfMonitorCounterDataAMD; +PFNGLGETPERFMONITORCOUNTERINFOAMDPROC glGetPerfMonitorCounterInfoAMD; +PFNGLGENPERFMONITORSAMDPROC glGenPerfMonitorsAMD; +PFNGLDELETEPERFMONITORSAMDPROC glDeletePerfMonitorsAMD; +PFNGLSELECTPERFMONITORCOUNTERSAMDPROC glSelectPerfMonitorCountersAMD; +PFNGLBEGINPERFMONITORAMDPROC glBeginPerfMonitorAMD; +PFNGLENDPERFMONITORAMDPROC glEndPerfMonitorAMD; +PFNGLGETPERFMONITORCOUNTERDATAAMDPROC glGetPerfMonitorCounterDataAMD; #endif /* defined(GL_AMD_performance_monitor) */ #if defined(GL_ANGLE_framebuffer_blit) @@ -219,9 +217,9 @@ PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC glRenderbufferStorageMultisampleANG #endif /* defined(GL_ANGLE_framebuffer_multisample) */ #if defined(GL_ANGLE_instanced_arrays) -PFNGLDRAWARRAYSINSTANCEDANGLEPROC glDrawArraysInstancedANGLE; +PFNGLDRAWARRAYSINSTANCEDANGLEPROC glDrawArraysInstancedANGLE; PFNGLDRAWELEMENTSINSTANCEDANGLEPROC glDrawElementsInstancedANGLE; -PFNGLVERTEXATTRIBDIVISORANGLEPROC glVertexAttribDivisorANGLE; +PFNGLVERTEXATTRIBDIVISORANGLEPROC glVertexAttribDivisorANGLE; #endif /* defined(GL_ANGLE_instanced_arrays) */ #if defined(GL_ANGLE_translated_shader_source) @@ -234,17 +232,17 @@ PFNGLCOPYTEXTURELEVELSAPPLEPROC glCopyTextureLevelsAPPLE; #if defined(GL_APPLE_framebuffer_multisample) PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC glRenderbufferStorageMultisampleAPPLE; -PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC glResolveMultisampleFramebufferAPPLE; +PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC glResolveMultisampleFramebufferAPPLE; #endif /* defined(GL_APPLE_framebuffer_multisample) */ #if defined(GL_APPLE_sync) -PFNGLFENCESYNCAPPLEPROC glFenceSyncAPPLE; -PFNGLISSYNCAPPLEPROC glIsSyncAPPLE; -PFNGLDELETESYNCAPPLEPROC glDeleteSyncAPPLE; +PFNGLFENCESYNCAPPLEPROC glFenceSyncAPPLE; +PFNGLISSYNCAPPLEPROC glIsSyncAPPLE; +PFNGLDELETESYNCAPPLEPROC glDeleteSyncAPPLE; PFNGLCLIENTWAITSYNCAPPLEPROC glClientWaitSyncAPPLE; -PFNGLWAITSYNCAPPLEPROC glWaitSyncAPPLE; -PFNGLGETINTEGER64VAPPLEPROC glGetInteger64vAPPLE; -PFNGLGETSYNCIVAPPLEPROC glGetSyncivAPPLE; +PFNGLWAITSYNCAPPLEPROC glWaitSyncAPPLE; +PFNGLGETINTEGER64VAPPLEPROC glGetInteger64vAPPLE; +PFNGLGETSYNCIVAPPLEPROC glGetSyncivAPPLE; #endif /* defined(GL_APPLE_sync) */ #if defined(GL_EXT_EGL_image_storage) @@ -254,16 +252,16 @@ PFNGLEGLIMAGETARGETTEXTURESTORAGEEXTPROC glEGLImageTargetTextureStorageEXT; #endif /* defined(GL_EXT_EGL_image_storage) */ #if defined(GL_EXT_base_instance) -PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC glDrawArraysInstancedBaseInstanceEXT; -PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC glDrawElementsInstancedBaseInstanceEXT; +PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC glDrawArraysInstancedBaseInstanceEXT; +PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC glDrawElementsInstancedBaseInstanceEXT; PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEEXTPROC glDrawElementsInstancedBaseVertexBaseInstanceEXT; #endif /* defined(GL_EXT_base_instance) */ #if defined(GL_EXT_blend_func_extended) -PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC glBindFragDataLocationIndexedEXT; -PFNGLBINDFRAGDATALOCATIONEXTPROC glBindFragDataLocationEXT; +PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC glBindFragDataLocationIndexedEXT; +PFNGLBINDFRAGDATALOCATIONEXTPROC glBindFragDataLocationEXT; PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC glGetProgramResourceLocationIndexEXT; -PFNGLGETFRAGDATAINDEXEXTPROC glGetFragDataIndexEXT; +PFNGLGETFRAGDATAINDEXEXTPROC glGetFragDataIndexEXT; #endif /* defined(GL_EXT_blend_func_extended) */ #if defined(GL_EXT_buffer_storage) @@ -271,7 +269,7 @@ PFNGLBUFFERSTORAGEEXTPROC glBufferStorageEXT; #endif /* defined(GL_EXT_buffer_storage) */ #if defined(GL_EXT_clear_texture) -PFNGLCLEARTEXIMAGEEXTPROC glClearTexImageEXT; +PFNGLCLEARTEXIMAGEEXTPROC glClearTexImageEXT; PFNGLCLEARTEXSUBIMAGEEXTPROC glClearTexSubImageEXT; #endif /* defined(GL_EXT_clear_texture) */ @@ -284,14 +282,14 @@ PFNGLCOPYIMAGESUBDATAEXTPROC glCopyImageSubDataEXT; #endif /* defined(GL_EXT_copy_image) */ #if defined(GL_EXT_debug_label) -PFNGLLABELOBJECTEXTPROC glLabelObjectEXT; +PFNGLLABELOBJECTEXTPROC glLabelObjectEXT; PFNGLGETOBJECTLABELEXTPROC glGetObjectLabelEXT; #endif /* defined(GL_EXT_debug_label) */ #if defined(GL_EXT_debug_marker) PFNGLINSERTEVENTMARKEREXTPROC glInsertEventMarkerEXT; -PFNGLPUSHGROUPMARKEREXTPROC glPushGroupMarkerEXT; -PFNGLPOPGROUPMARKEREXTPROC glPopGroupMarkerEXT; +PFNGLPUSHGROUPMARKEREXTPROC glPushGroupMarkerEXT; +PFNGLPOPGROUPMARKEREXTPROC glPopGroupMarkerEXT; #endif /* defined(GL_EXT_debug_marker) */ #if defined(GL_EXT_discard_framebuffer) @@ -299,18 +297,18 @@ PFNGLDISCARDFRAMEBUFFEREXTPROC glDiscardFramebufferEXT; #endif /* defined(GL_EXT_discard_framebuffer) */ #if defined(GL_EXT_disjoint_timer_query) -PFNGLGENQUERIESEXTPROC glGenQueriesEXT; -PFNGLDELETEQUERIESEXTPROC glDeleteQueriesEXT; -PFNGLISQUERYEXTPROC glIsQueryEXT; -PFNGLBEGINQUERYEXTPROC glBeginQueryEXT; -PFNGLENDQUERYEXTPROC glEndQueryEXT; -PFNGLQUERYCOUNTEREXTPROC glQueryCounterEXT; -PFNGLGETQUERYIVEXTPROC glGetQueryivEXT; -PFNGLGETQUERYOBJECTIVEXTPROC glGetQueryObjectivEXT; -PFNGLGETQUERYOBJECTUIVEXTPROC glGetQueryObjectuivEXT; -PFNGLGETQUERYOBJECTI64VEXTPROC glGetQueryObjecti64vEXT; +PFNGLGENQUERIESEXTPROC glGenQueriesEXT; +PFNGLDELETEQUERIESEXTPROC glDeleteQueriesEXT; +PFNGLISQUERYEXTPROC glIsQueryEXT; +PFNGLBEGINQUERYEXTPROC glBeginQueryEXT; +PFNGLENDQUERYEXTPROC glEndQueryEXT; +PFNGLQUERYCOUNTEREXTPROC glQueryCounterEXT; +PFNGLGETQUERYIVEXTPROC glGetQueryivEXT; +PFNGLGETQUERYOBJECTIVEXTPROC glGetQueryObjectivEXT; +PFNGLGETQUERYOBJECTUIVEXTPROC glGetQueryObjectuivEXT; +PFNGLGETQUERYOBJECTI64VEXTPROC glGetQueryObjecti64vEXT; PFNGLGETQUERYOBJECTUI64VEXTPROC glGetQueryObjectui64vEXT; -PFNGLGETINTEGER64VEXTPROC glGetInteger64vEXT; +PFNGLGETINTEGER64VEXTPROC glGetInteger64vEXT; #endif /* defined(GL_EXT_disjoint_timer_query) */ #if defined(GL_EXT_draw_buffers) @@ -318,35 +316,35 @@ PFNGLDRAWBUFFERSEXTPROC glDrawBuffersEXT; #endif /* defined(GL_EXT_draw_buffers) */ #if defined(GL_EXT_draw_buffers_indexed) -PFNGLENABLEIEXTPROC glEnableiEXT; -PFNGLDISABLEIEXTPROC glDisableiEXT; -PFNGLBLENDEQUATIONIEXTPROC glBlendEquationiEXT; +PFNGLENABLEIEXTPROC glEnableiEXT; +PFNGLDISABLEIEXTPROC glDisableiEXT; +PFNGLBLENDEQUATIONIEXTPROC glBlendEquationiEXT; PFNGLBLENDEQUATIONSEPARATEIEXTPROC glBlendEquationSeparateiEXT; -PFNGLBLENDFUNCIEXTPROC glBlendFunciEXT; -PFNGLBLENDFUNCSEPARATEIEXTPROC glBlendFuncSeparateiEXT; -PFNGLCOLORMASKIEXTPROC glColorMaskiEXT; -PFNGLISENABLEDIEXTPROC glIsEnablediEXT; +PFNGLBLENDFUNCIEXTPROC glBlendFunciEXT; +PFNGLBLENDFUNCSEPARATEIEXTPROC glBlendFuncSeparateiEXT; +PFNGLCOLORMASKIEXTPROC glColorMaskiEXT; +PFNGLISENABLEDIEXTPROC glIsEnablediEXT; #endif /* defined(GL_EXT_draw_buffers_indexed) */ #if defined(GL_EXT_draw_elements_base_vertex) -PFNGLDRAWELEMENTSBASEVERTEXEXTPROC glDrawElementsBaseVertexEXT; -PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC glDrawRangeElementsBaseVertexEXT; +PFNGLDRAWELEMENTSBASEVERTEXEXTPROC glDrawElementsBaseVertexEXT; +PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC glDrawRangeElementsBaseVertexEXT; PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXEXTPROC glDrawElementsInstancedBaseVertexEXT; -PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC glMultiDrawElementsBaseVertexEXT; +PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC glMultiDrawElementsBaseVertexEXT; #endif /* defined(GL_EXT_draw_elements_base_vertex) */ #if defined(GL_EXT_draw_instanced) -PFNGLDRAWARRAYSINSTANCEDEXTPROC glDrawArraysInstancedEXT; +PFNGLDRAWARRAYSINSTANCEDEXTPROC glDrawArraysInstancedEXT; PFNGLDRAWELEMENTSINSTANCEDEXTPROC glDrawElementsInstancedEXT; #endif /* defined(GL_EXT_draw_instanced) */ #if defined(GL_EXT_draw_transform_feedback) -PFNGLDRAWTRANSFORMFEEDBACKEXTPROC glDrawTransformFeedbackEXT; +PFNGLDRAWTRANSFORMFEEDBACKEXTPROC glDrawTransformFeedbackEXT; PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDEXTPROC glDrawTransformFeedbackInstancedEXT; #endif /* defined(GL_EXT_draw_transform_feedback) */ #if defined(GL_EXT_external_buffer) -PFNGLBUFFERSTORAGEEXTERNALEXTPROC glBufferStorageExternalEXT; +PFNGLBUFFERSTORAGEEXTERNALEXTPROC glBufferStorageExternalEXT; PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC glNamedBufferStorageExternalEXT; #endif /* defined(GL_EXT_external_buffer) */ @@ -359,29 +357,29 @@ PFNGLVERTEXATTRIBDIVISOREXTPROC glVertexAttribDivisorEXT; #endif /* defined(GL_EXT_instanced_arrays) */ #if defined(GL_EXT_map_buffer_range) -PFNGLMAPBUFFERRANGEEXTPROC glMapBufferRangeEXT; +PFNGLMAPBUFFERRANGEEXTPROC glMapBufferRangeEXT; PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC glFlushMappedBufferRangeEXT; #endif /* defined(GL_EXT_map_buffer_range) */ #if defined(GL_EXT_memory_object) -PFNGLGETUNSIGNEDBYTEVEXTPROC glGetUnsignedBytevEXT; -PFNGLGETUNSIGNEDBYTEI_VEXTPROC glGetUnsignedBytei_vEXT; -PFNGLDELETEMEMORYOBJECTSEXTPROC glDeleteMemoryObjectsEXT; -PFNGLISMEMORYOBJECTEXTPROC glIsMemoryObjectEXT; -PFNGLCREATEMEMORYOBJECTSEXTPROC glCreateMemoryObjectsEXT; -PFNGLMEMORYOBJECTPARAMETERIVEXTPROC glMemoryObjectParameterivEXT; +PFNGLGETUNSIGNEDBYTEVEXTPROC glGetUnsignedBytevEXT; +PFNGLGETUNSIGNEDBYTEI_VEXTPROC glGetUnsignedBytei_vEXT; +PFNGLDELETEMEMORYOBJECTSEXTPROC glDeleteMemoryObjectsEXT; +PFNGLISMEMORYOBJECTEXTPROC glIsMemoryObjectEXT; +PFNGLCREATEMEMORYOBJECTSEXTPROC glCreateMemoryObjectsEXT; +PFNGLMEMORYOBJECTPARAMETERIVEXTPROC glMemoryObjectParameterivEXT; PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC glGetMemoryObjectParameterivEXT; -PFNGLTEXSTORAGEMEM2DEXTPROC glTexStorageMem2DEXT; +PFNGLTEXSTORAGEMEM2DEXTPROC glTexStorageMem2DEXT; PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC glTexStorageMem2DMultisampleEXT; -PFNGLTEXSTORAGEMEM3DEXTPROC glTexStorageMem3DEXT; +PFNGLTEXSTORAGEMEM3DEXTPROC glTexStorageMem3DEXT; PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC glTexStorageMem3DMultisampleEXT; -PFNGLBUFFERSTORAGEMEMEXTPROC glBufferStorageMemEXT; +PFNGLBUFFERSTORAGEMEMEXTPROC glBufferStorageMemEXT; -PFNGLTEXTURESTORAGEMEM2DEXTPROC glTextureStorageMem2DEXT; +PFNGLTEXTURESTORAGEMEM2DEXTPROC glTextureStorageMem2DEXT; PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC glTextureStorageMem2DMultisampleEXT; -PFNGLTEXTURESTORAGEMEM3DEXTPROC glTextureStorageMem3DEXT; +PFNGLTEXTURESTORAGEMEM3DEXTPROC glTextureStorageMem3DEXT; PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC glTextureStorageMem3DMultisampleEXT; -PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC glNamedBufferStorageMemEXT; +PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC glNamedBufferStorageMemEXT; #endif /* defined(GL_EXT_memory_object) */ #if defined(GL_EXT_memory_object_fd) @@ -390,28 +388,28 @@ PFNGLIMPORTMEMORYFDEXTPROC glImportMemoryFdEXT; #if defined(GL_EXT_memory_object_win32) PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC glImportMemoryWin32HandleEXT; -PFNGLIMPORTMEMORYWIN32NAMEEXTPROC glImportMemoryWin32NameEXT; +PFNGLIMPORTMEMORYWIN32NAMEEXTPROC glImportMemoryWin32NameEXT; #endif /* defined(GL_EXT_memory_object_win32) */ #if defined(GL_EXT_multi_draw_arrays) -PFNGLMULTIDRAWARRAYSEXTPROC glMultiDrawArraysEXT; +PFNGLMULTIDRAWARRAYSEXTPROC glMultiDrawArraysEXT; PFNGLMULTIDRAWELEMENTSEXTPROC glMultiDrawElementsEXT; #endif /* defined(GL_EXT_multi_draw_arrays) */ #if defined(GL_EXT_multi_draw_indirect) -PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC glMultiDrawArraysIndirectEXT; +PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC glMultiDrawArraysIndirectEXT; PFNGLMULTIDRAWELEMENTSINDIRECTEXTPROC glMultiDrawElementsIndirectEXT; #endif /* defined(GL_EXT_multi_draw_indirect) */ #if defined(GL_EXT_multisampled_render_to_texture) -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glRenderbufferStorageMultisampleEXT; +PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glRenderbufferStorageMultisampleEXT; PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC glFramebufferTexture2DMultisampleEXT; #endif /* defined(GL_EXT_multisampled_render_to_texture) */ #if defined(GL_EXT_multiview_draw_buffers) -PFNGLREADBUFFERINDEXEDEXTPROC glReadBufferIndexedEXT; +PFNGLREADBUFFERINDEXEDEXTPROC glReadBufferIndexedEXT; PFNGLDRAWBUFFERSINDEXEDEXTPROC glDrawBuffersIndexedEXT; -PFNGLGETINTEGERI_VEXTPROC glGetIntegeri_vEXT; +PFNGLGETINTEGERI_VEXTPROC glGetIntegeri_vEXT; #endif /* defined(GL_EXT_multiview_draw_buffers) */ #if defined(GL_EXT_polygon_offset_clamp) @@ -428,19 +426,19 @@ PFNGLRASTERSAMPLESEXTPROC glRasterSamplesEXT; #if defined(GL_EXT_robustness) PFNGLGETGRAPHICSRESETSTATUSEXTPROC glGetGraphicsResetStatusEXT; -PFNGLREADNPIXELSEXTPROC glReadnPixelsEXT; -PFNGLGETNUNIFORMFVEXTPROC glGetnUniformfvEXT; -PFNGLGETNUNIFORMIVEXTPROC glGetnUniformivEXT; +PFNGLREADNPIXELSEXTPROC glReadnPixelsEXT; +PFNGLGETNUNIFORMFVEXTPROC glGetnUniformfvEXT; +PFNGLGETNUNIFORMIVEXTPROC glGetnUniformivEXT; #endif /* defined(GL_EXT_robustness) */ #if defined(GL_EXT_semaphore) -PFNGLGENSEMAPHORESEXTPROC glGenSemaphoresEXT; -PFNGLDELETESEMAPHORESEXTPROC glDeleteSemaphoresEXT; -PFNGLISSEMAPHOREEXTPROC glIsSemaphoreEXT; -PFNGLSEMAPHOREPARAMETERUI64VEXTPROC glSemaphoreParameterui64vEXT; +PFNGLGENSEMAPHORESEXTPROC glGenSemaphoresEXT; +PFNGLDELETESEMAPHORESEXTPROC glDeleteSemaphoresEXT; +PFNGLISSEMAPHOREEXTPROC glIsSemaphoreEXT; +PFNGLSEMAPHOREPARAMETERUI64VEXTPROC glSemaphoreParameterui64vEXT; PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC glGetSemaphoreParameterui64vEXT; -PFNGLWAITSEMAPHOREEXTPROC glWaitSemaphoreEXT; -PFNGLSIGNALSEMAPHOREEXTPROC glSignalSemaphoreEXT; +PFNGLWAITSEMAPHOREEXTPROC glWaitSemaphoreEXT; +PFNGLSIGNALSEMAPHOREEXTPROC glSignalSemaphoreEXT; #endif /* defined(GL_EXT_semaphore) */ #if defined(GL_EXT_semaphore_fd) @@ -449,49 +447,49 @@ PFNGLIMPORTSEMAPHOREFDEXTPROC glImportSemaphoreFdEXT; #if defined(GL_EXT_semaphore_win32) PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC glImportSemaphoreWin32HandleEXT; -PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC glImportSemaphoreWin32NameEXT; +PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC glImportSemaphoreWin32NameEXT; #endif /* defined(GL_EXT_semaphore_win32) */ #if defined(GL_EXT_separate_shader_objects) -PFNGLACTIVESHADERPROGRAMEXTPROC glActiveShaderProgramEXT; -PFNGLBINDPROGRAMPIPELINEEXTPROC glBindProgramPipelineEXT; -PFNGLCREATESHADERPROGRAMVEXTPROC glCreateShaderProgramvEXT; -PFNGLDELETEPROGRAMPIPELINESEXTPROC glDeleteProgramPipelinesEXT; -PFNGLGENPROGRAMPIPELINESEXTPROC glGenProgramPipelinesEXT; +PFNGLACTIVESHADERPROGRAMEXTPROC glActiveShaderProgramEXT; +PFNGLBINDPROGRAMPIPELINEEXTPROC glBindProgramPipelineEXT; +PFNGLCREATESHADERPROGRAMVEXTPROC glCreateShaderProgramvEXT; +PFNGLDELETEPROGRAMPIPELINESEXTPROC glDeleteProgramPipelinesEXT; +PFNGLGENPROGRAMPIPELINESEXTPROC glGenProgramPipelinesEXT; PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC glGetProgramPipelineInfoLogEXT; -PFNGLGETPROGRAMPIPELINEIVEXTPROC glGetProgramPipelineivEXT; -PFNGLISPROGRAMPIPELINEEXTPROC glIsProgramPipelineEXT; -PFNGLPROGRAMPARAMETERIEXTPROC glProgramParameteriEXT; -PFNGLPROGRAMUNIFORM1FEXTPROC glProgramUniform1fEXT; -PFNGLPROGRAMUNIFORM1FVEXTPROC glProgramUniform1fvEXT; -PFNGLPROGRAMUNIFORM1IEXTPROC glProgramUniform1iEXT; -PFNGLPROGRAMUNIFORM1IVEXTPROC glProgramUniform1ivEXT; -PFNGLPROGRAMUNIFORM2FEXTPROC glProgramUniform2fEXT; -PFNGLPROGRAMUNIFORM2FVEXTPROC glProgramUniform2fvEXT; -PFNGLPROGRAMUNIFORM2IEXTPROC glProgramUniform2iEXT; -PFNGLPROGRAMUNIFORM2IVEXTPROC glProgramUniform2ivEXT; -PFNGLPROGRAMUNIFORM3FEXTPROC glProgramUniform3fEXT; -PFNGLPROGRAMUNIFORM3FVEXTPROC glProgramUniform3fvEXT; -PFNGLPROGRAMUNIFORM3IEXTPROC glProgramUniform3iEXT; -PFNGLPROGRAMUNIFORM3IVEXTPROC glProgramUniform3ivEXT; -PFNGLPROGRAMUNIFORM4FEXTPROC glProgramUniform4fEXT; -PFNGLPROGRAMUNIFORM4FVEXTPROC glProgramUniform4fvEXT; -PFNGLPROGRAMUNIFORM4IEXTPROC glProgramUniform4iEXT; -PFNGLPROGRAMUNIFORM4IVEXTPROC glProgramUniform4ivEXT; -PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC glProgramUniformMatrix2fvEXT; -PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC glProgramUniformMatrix3fvEXT; -PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC glProgramUniformMatrix4fvEXT; -PFNGLUSEPROGRAMSTAGESEXTPROC glUseProgramStagesEXT; -PFNGLVALIDATEPROGRAMPIPELINEEXTPROC glValidateProgramPipelineEXT; +PFNGLGETPROGRAMPIPELINEIVEXTPROC glGetProgramPipelineivEXT; +PFNGLISPROGRAMPIPELINEEXTPROC glIsProgramPipelineEXT; +PFNGLPROGRAMPARAMETERIEXTPROC glProgramParameteriEXT; +PFNGLPROGRAMUNIFORM1FEXTPROC glProgramUniform1fEXT; +PFNGLPROGRAMUNIFORM1FVEXTPROC glProgramUniform1fvEXT; +PFNGLPROGRAMUNIFORM1IEXTPROC glProgramUniform1iEXT; +PFNGLPROGRAMUNIFORM1IVEXTPROC glProgramUniform1ivEXT; +PFNGLPROGRAMUNIFORM2FEXTPROC glProgramUniform2fEXT; +PFNGLPROGRAMUNIFORM2FVEXTPROC glProgramUniform2fvEXT; +PFNGLPROGRAMUNIFORM2IEXTPROC glProgramUniform2iEXT; +PFNGLPROGRAMUNIFORM2IVEXTPROC glProgramUniform2ivEXT; +PFNGLPROGRAMUNIFORM3FEXTPROC glProgramUniform3fEXT; +PFNGLPROGRAMUNIFORM3FVEXTPROC glProgramUniform3fvEXT; +PFNGLPROGRAMUNIFORM3IEXTPROC glProgramUniform3iEXT; +PFNGLPROGRAMUNIFORM3IVEXTPROC glProgramUniform3ivEXT; +PFNGLPROGRAMUNIFORM4FEXTPROC glProgramUniform4fEXT; +PFNGLPROGRAMUNIFORM4FVEXTPROC glProgramUniform4fvEXT; +PFNGLPROGRAMUNIFORM4IEXTPROC glProgramUniform4iEXT; +PFNGLPROGRAMUNIFORM4IVEXTPROC glProgramUniform4ivEXT; +PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC glProgramUniformMatrix2fvEXT; +PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC glProgramUniformMatrix3fvEXT; +PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC glProgramUniformMatrix4fvEXT; +PFNGLUSEPROGRAMSTAGESEXTPROC glUseProgramStagesEXT; +PFNGLVALIDATEPROGRAMPIPELINEEXTPROC glValidateProgramPipelineEXT; -PFNGLPROGRAMUNIFORM1UIEXTPROC glProgramUniform1uiEXT; -PFNGLPROGRAMUNIFORM2UIEXTPROC glProgramUniform2uiEXT; -PFNGLPROGRAMUNIFORM3UIEXTPROC glProgramUniform3uiEXT; -PFNGLPROGRAMUNIFORM4UIEXTPROC glProgramUniform4uiEXT; -PFNGLPROGRAMUNIFORM1UIVEXTPROC glProgramUniform1uivEXT; -PFNGLPROGRAMUNIFORM2UIVEXTPROC glProgramUniform2uivEXT; -PFNGLPROGRAMUNIFORM3UIVEXTPROC glProgramUniform3uivEXT; -PFNGLPROGRAMUNIFORM4UIVEXTPROC glProgramUniform4uivEXT; +PFNGLPROGRAMUNIFORM1UIEXTPROC glProgramUniform1uiEXT; +PFNGLPROGRAMUNIFORM2UIEXTPROC glProgramUniform2uiEXT; +PFNGLPROGRAMUNIFORM3UIEXTPROC glProgramUniform3uiEXT; +PFNGLPROGRAMUNIFORM4UIEXTPROC glProgramUniform4uiEXT; +PFNGLPROGRAMUNIFORM1UIVEXTPROC glProgramUniform1uivEXT; +PFNGLPROGRAMUNIFORM2UIVEXTPROC glProgramUniform2uivEXT; +PFNGLPROGRAMUNIFORM3UIVEXTPROC glProgramUniform3uivEXT; +PFNGLPROGRAMUNIFORM4UIVEXTPROC glProgramUniform4uivEXT; PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC glProgramUniformMatrix2x3fvEXT; PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC glProgramUniformMatrix3x2fvEXT; PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC glProgramUniformMatrix2x4fvEXT; @@ -505,9 +503,9 @@ PFNGLFRAMEBUFFERFETCHBARRIEREXTPROC glFramebufferFetchBarrierEXT; #endif /* defined(GL_EXT_shader_framebuffer_fetch_non_coherent) */ #if defined(GL_EXT_shader_pixel_local_storage2) -PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC glFramebufferPixelLocalStorageSizeEXT; +PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC glFramebufferPixelLocalStorageSizeEXT; PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC glGetFramebufferPixelLocalStorageSizeEXT; -PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC glClearPixelLocalStorageuiEXT; +PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC glClearPixelLocalStorageuiEXT; #endif /* defined(GL_EXT_shader_pixel_local_storage2) */ #if defined(GL_EXT_sparse_texture) @@ -519,18 +517,18 @@ PFNGLPATCHPARAMETERIEXTPROC glPatchParameteriEXT; #endif /* defined(GL_EXT_tessellation_shader) */ #if defined(GL_EXT_texture_border_clamp) -PFNGLTEXPARAMETERIIVEXTPROC glTexParameterIivEXT; -PFNGLTEXPARAMETERIUIVEXTPROC glTexParameterIuivEXT; -PFNGLGETTEXPARAMETERIIVEXTPROC glGetTexParameterIivEXT; -PFNGLGETTEXPARAMETERIUIVEXTPROC glGetTexParameterIuivEXT; -PFNGLSAMPLERPARAMETERIIVEXTPROC glSamplerParameterIivEXT; -PFNGLSAMPLERPARAMETERIUIVEXTPROC glSamplerParameterIuivEXT; -PFNGLGETSAMPLERPARAMETERIIVEXTPROC glGetSamplerParameterIivEXT; +PFNGLTEXPARAMETERIIVEXTPROC glTexParameterIivEXT; +PFNGLTEXPARAMETERIUIVEXTPROC glTexParameterIuivEXT; +PFNGLGETTEXPARAMETERIIVEXTPROC glGetTexParameterIivEXT; +PFNGLGETTEXPARAMETERIUIVEXTPROC glGetTexParameterIuivEXT; +PFNGLSAMPLERPARAMETERIIVEXTPROC glSamplerParameterIivEXT; +PFNGLSAMPLERPARAMETERIUIVEXTPROC glSamplerParameterIuivEXT; +PFNGLGETSAMPLERPARAMETERIIVEXTPROC glGetSamplerParameterIivEXT; PFNGLGETSAMPLERPARAMETERIUIVEXTPROC glGetSamplerParameterIuivEXT; #endif /* defined(GL_EXT_texture_border_clamp) */ #if defined(GL_EXT_texture_buffer) -PFNGLTEXBUFFEREXTPROC glTexBufferEXT; +PFNGLTEXBUFFEREXTPROC glTexBufferEXT; PFNGLTEXBUFFERRANGEEXTPROC glTexBufferRangeEXT; #endif /* defined(GL_EXT_texture_buffer) */ @@ -549,8 +547,8 @@ PFNGLTEXTUREVIEWEXTPROC glTextureViewEXT; #endif /* defined(GL_EXT_texture_view) */ #if defined(GL_NV_timeline_semaphore) -PFNGLCREATESEMAPHORESNVPROC glCreateSemaphoresNV; -PFNGLSEMAPHOREPARAMETERIVNVPROC glSemaphoreParameterivNV; +PFNGLCREATESEMAPHORESNVPROC glCreateSemaphoresNV; +PFNGLSEMAPHOREPARAMETERIVNVPROC glSemaphoreParameterivNV; PFNGLGETSEMAPHOREPARAMETERIVNVPROC glGetSemaphoreParameterivNV; #endif /* defined(GL_NV_timeline_semaphore) */ @@ -564,21 +562,21 @@ PFNGLWINDOWRECTANGLESEXTPROC glWindowRectanglesEXT; #endif /* defined(GL_EXT_window_rectangles) */ #if defined(GL_IMG_bindless_texture) -PFNGLGETTEXTUREHANDLEIMGPROC glGetTextureHandleIMG; -PFNGLGETTEXTURESAMPLERHANDLEIMGPROC glGetTextureSamplerHandleIMG; -PFNGLUNIFORMHANDLEUI64IMGPROC glUniformHandleui64IMG; -PFNGLUNIFORMHANDLEUI64VIMGPROC glUniformHandleui64vIMG; -PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC glProgramUniformHandleui64IMG; +PFNGLGETTEXTUREHANDLEIMGPROC glGetTextureHandleIMG; +PFNGLGETTEXTURESAMPLERHANDLEIMGPROC glGetTextureSamplerHandleIMG; +PFNGLUNIFORMHANDLEUI64IMGPROC glUniformHandleui64IMG; +PFNGLUNIFORMHANDLEUI64VIMGPROC glUniformHandleui64vIMG; +PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC glProgramUniformHandleui64IMG; PFNGLPROGRAMUNIFORMHANDLEUI64VIMGPROC glProgramUniformHandleui64vIMG; #endif /* defined(GL_IMG_bindless_texture) */ #if defined(GL_IMG_framebuffer_downsample) -PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC glFramebufferTexture2DDownsampleIMG; +PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC glFramebufferTexture2DDownsampleIMG; PFNGLFRAMEBUFFERTEXTURELAYERDOWNSAMPLEIMGPROC glFramebufferTextureLayerDownsampleIMG; #endif /* defined(GL_IMG_framebuffer_downsample) */ #if defined(GL_IMG_multisampled_render_to_texture) -PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC glRenderbufferStorageMultisampleIMG; +PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC glRenderbufferStorageMultisampleIMG; PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC glFramebufferTexture2DMultisampleIMG; #endif /* defined(GL_IMG_multisampled_render_to_texture) */ @@ -587,16 +585,16 @@ PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC glApplyFramebufferAttachmentCMAAINT #endif /* defined(GL_INTEL_framebuffer_CMAA) */ #if defined(GL_INTEL_performance_query) -PFNGLBEGINPERFQUERYINTELPROC glBeginPerfQueryINTEL; -PFNGLCREATEPERFQUERYINTELPROC glCreatePerfQueryINTEL; -PFNGLDELETEPERFQUERYINTELPROC glDeletePerfQueryINTEL; -PFNGLENDPERFQUERYINTELPROC glEndPerfQueryINTEL; -PFNGLGETFIRSTPERFQUERYIDINTELPROC glGetFirstPerfQueryIdINTEL; -PFNGLGETNEXTPERFQUERYIDINTELPROC glGetNextPerfQueryIdINTEL; -PFNGLGETPERFCOUNTERINFOINTELPROC glGetPerfCounterInfoINTEL; -PFNGLGETPERFQUERYDATAINTELPROC glGetPerfQueryDataINTEL; +PFNGLBEGINPERFQUERYINTELPROC glBeginPerfQueryINTEL; +PFNGLCREATEPERFQUERYINTELPROC glCreatePerfQueryINTEL; +PFNGLDELETEPERFQUERYINTELPROC glDeletePerfQueryINTEL; +PFNGLENDPERFQUERYINTELPROC glEndPerfQueryINTEL; +PFNGLGETFIRSTPERFQUERYIDINTELPROC glGetFirstPerfQueryIdINTEL; +PFNGLGETNEXTPERFQUERYIDINTELPROC glGetNextPerfQueryIdINTEL; +PFNGLGETPERFCOUNTERINFOINTELPROC glGetPerfCounterInfoINTEL; +PFNGLGETPERFQUERYDATAINTELPROC glGetPerfQueryDataINTEL; PFNGLGETPERFQUERYIDBYNAMEINTELPROC glGetPerfQueryIdByNameINTEL; -PFNGLGETPERFQUERYINFOINTELPROC glGetPerfQueryInfoINTEL; +PFNGLGETPERFQUERYINFOINTELPROC glGetPerfQueryInfoINTEL; #endif /* defined(GL_INTEL_performance_query) */ #if defined(GL_KHR_blend_equation_advanced) @@ -604,25 +602,25 @@ PFNGLBLENDBARRIERKHRPROC glBlendBarrierKHR; #endif /* defined(GL_KHR_blend_equation_advanced) */ #if defined(GL_KHR_debug) -PFNGLDEBUGMESSAGECONTROLKHRPROC glDebugMessageControlKHR; -PFNGLDEBUGMESSAGEINSERTKHRPROC glDebugMessageInsertKHR; +PFNGLDEBUGMESSAGECONTROLKHRPROC glDebugMessageControlKHR; +PFNGLDEBUGMESSAGEINSERTKHRPROC glDebugMessageInsertKHR; PFNGLDEBUGMESSAGECALLBACKKHRPROC glDebugMessageCallbackKHR; -PFNGLGETDEBUGMESSAGELOGKHRPROC glGetDebugMessageLogKHR; -PFNGLPUSHDEBUGGROUPKHRPROC glPushDebugGroupKHR; -PFNGLPOPDEBUGGROUPKHRPROC glPopDebugGroupKHR; -PFNGLOBJECTLABELKHRPROC glObjectLabelKHR; -PFNGLGETOBJECTLABELKHRPROC glGetObjectLabelKHR; -PFNGLOBJECTPTRLABELKHRPROC glObjectPtrLabelKHR; -PFNGLGETOBJECTPTRLABELKHRPROC glGetObjectPtrLabelKHR; -PFNGLGETPOINTERVKHRPROC glGetPointervKHR; +PFNGLGETDEBUGMESSAGELOGKHRPROC glGetDebugMessageLogKHR; +PFNGLPUSHDEBUGGROUPKHRPROC glPushDebugGroupKHR; +PFNGLPOPDEBUGGROUPKHRPROC glPopDebugGroupKHR; +PFNGLOBJECTLABELKHRPROC glObjectLabelKHR; +PFNGLGETOBJECTLABELKHRPROC glGetObjectLabelKHR; +PFNGLOBJECTPTRLABELKHRPROC glObjectPtrLabelKHR; +PFNGLGETOBJECTPTRLABELKHRPROC glGetObjectPtrLabelKHR; +PFNGLGETPOINTERVKHRPROC glGetPointervKHR; #endif /* defined(GL_KHR_debug) */ #if defined(GL_KHR_robustness) PFNGLGETGRAPHICSRESETSTATUSKHRPROC glGetGraphicsResetStatusKHR; -PFNGLREADNPIXELSKHRPROC glReadnPixelsKHR; -PFNGLGETNUNIFORMFVKHRPROC glGetnUniformfvKHR; -PFNGLGETNUNIFORMIVKHRPROC glGetnUniformivKHR; -PFNGLGETNUNIFORMUIVKHRPROC glGetnUniformuivKHR; +PFNGLREADNPIXELSKHRPROC glReadnPixelsKHR; +PFNGLGETNUNIFORMFVKHRPROC glGetnUniformfvKHR; +PFNGLGETNUNIFORMIVKHRPROC glGetnUniformivKHR; +PFNGLGETNUNIFORMUIVKHRPROC glGetnUniformuivKHR; #endif /* defined(GL_KHR_robustness) */ #if defined(GL_KHR_parallel_shader_compile) @@ -630,29 +628,29 @@ PFNGLMAXSHADERCOMPILERTHREADSKHRPROC glMaxShaderCompilerThreadsKHR; #endif /* defined(GL_KHR_parallel_shader_compile) */ #if defined(GL_MESA_framebuffer_flip_y) -PFNGLFRAMEBUFFERPARAMETERIMESAPROC glFramebufferParameteriMESA; +PFNGLFRAMEBUFFERPARAMETERIMESAPROC glFramebufferParameteriMESA; PFNGLGETFRAMEBUFFERPARAMETERIVMESAPROC glGetFramebufferParameterivMESA; #endif /* defined(GL_MESA_framebuffer_flip_y) */ #if defined(GL_NV_bindless_texture) -PFNGLGETTEXTUREHANDLENVPROC glGetTextureHandleNV; -PFNGLGETTEXTURESAMPLERHANDLENVPROC glGetTextureSamplerHandleNV; -PFNGLMAKETEXTUREHANDLERESIDENTNVPROC glMakeTextureHandleResidentNV; +PFNGLGETTEXTUREHANDLENVPROC glGetTextureHandleNV; +PFNGLGETTEXTURESAMPLERHANDLENVPROC glGetTextureSamplerHandleNV; +PFNGLMAKETEXTUREHANDLERESIDENTNVPROC glMakeTextureHandleResidentNV; PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC glMakeTextureHandleNonResidentNV; -PFNGLGETIMAGEHANDLENVPROC glGetImageHandleNV; -PFNGLMAKEIMAGEHANDLERESIDENTNVPROC glMakeImageHandleResidentNV; -PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC glMakeImageHandleNonResidentNV; -PFNGLUNIFORMHANDLEUI64NVPROC glUniformHandleui64NV; -PFNGLUNIFORMHANDLEUI64VNVPROC glUniformHandleui64vNV; -PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC glProgramUniformHandleui64NV; -PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC glProgramUniformHandleui64vNV; -PFNGLISTEXTUREHANDLERESIDENTNVPROC glIsTextureHandleResidentNV; -PFNGLISIMAGEHANDLERESIDENTNVPROC glIsImageHandleResidentNV; +PFNGLGETIMAGEHANDLENVPROC glGetImageHandleNV; +PFNGLMAKEIMAGEHANDLERESIDENTNVPROC glMakeImageHandleResidentNV; +PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC glMakeImageHandleNonResidentNV; +PFNGLUNIFORMHANDLEUI64NVPROC glUniformHandleui64NV; +PFNGLUNIFORMHANDLEUI64VNVPROC glUniformHandleui64vNV; +PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC glProgramUniformHandleui64NV; +PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC glProgramUniformHandleui64vNV; +PFNGLISTEXTUREHANDLERESIDENTNVPROC glIsTextureHandleResidentNV; +PFNGLISIMAGEHANDLERESIDENTNVPROC glIsImageHandleResidentNV; #endif /* defined(GL_NV_bindless_texture) */ #if defined(GL_NV_blend_equation_advanced) PFNGLBLENDPARAMETERINVPROC glBlendParameteriNV; -PFNGLBLENDBARRIERNVPROC glBlendBarrierNV; +PFNGLBLENDBARRIERNVPROC glBlendBarrierNV; #endif /* defined(GL_NV_blend_equation_advanced) */ #if defined(GL_NV_clip_space_w_scaling) @@ -661,7 +659,7 @@ PFNGLVIEWPORTPOSITIONWSCALENVPROC glViewportPositionWScaleNV; #if defined(GL_NV_conditional_render) PFNGLBEGINCONDITIONALRENDERNVPROC glBeginConditionalRenderNV; -PFNGLENDCONDITIONALRENDERNVPROC glEndConditionalRenderNV; +PFNGLENDCONDITIONALRENDERNVPROC glEndConditionalRenderNV; #endif /* defined(GL_NV_conditional_render) */ #if defined(GL_NV_conservative_raster) @@ -677,7 +675,7 @@ PFNGLCOPYBUFFERSUBDATANVPROC glCopyBufferSubDataNV; #endif /* defined(GL_NV_copy_buffer) */ #if defined(GL_NV_coverage_sample) -PFNGLCOVERAGEMASKNVPROC glCoverageMaskNV; +PFNGLCOVERAGEMASKNVPROC glCoverageMaskNV; PFNGLCOVERAGEOPERATIONNVPROC glCoverageOperationNV; #endif /* defined(GL_NV_coverage_sample) */ @@ -686,26 +684,26 @@ PFNGLDRAWBUFFERSNVPROC glDrawBuffersNV; #endif /* defined(GL_NV_draw_buffers) */ #if defined(GL_NV_draw_instanced) -PFNGLDRAWARRAYSINSTANCEDNVPROC glDrawArraysInstancedNV; +PFNGLDRAWARRAYSINSTANCEDNVPROC glDrawArraysInstancedNV; PFNGLDRAWELEMENTSINSTANCEDNVPROC glDrawElementsInstancedNV; #endif /* defined(GL_NV_draw_instanced) */ #if defined(GL_NV_draw_vulkan_image) -PFNGLDRAWVKIMAGENVPROC glDrawVkImageNV; -PFNGLGETVKPROCADDRNVPROC glGetVkProcAddrNV; -PFNGLWAITVKSEMAPHORENVPROC glWaitVkSemaphoreNV; +PFNGLDRAWVKIMAGENVPROC glDrawVkImageNV; +PFNGLGETVKPROCADDRNVPROC glGetVkProcAddrNV; +PFNGLWAITVKSEMAPHORENVPROC glWaitVkSemaphoreNV; PFNGLSIGNALVKSEMAPHORENVPROC glSignalVkSemaphoreNV; -PFNGLSIGNALVKFENCENVPROC glSignalVkFenceNV; +PFNGLSIGNALVKFENCENVPROC glSignalVkFenceNV; #endif /* defined(GL_NV_draw_vulkan_image) */ #if defined(GL_NV_fence) PFNGLDELETEFENCESNVPROC glDeleteFencesNV; -PFNGLGENFENCESNVPROC glGenFencesNV; -PFNGLISFENCENVPROC glIsFenceNV; -PFNGLTESTFENCENVPROC glTestFenceNV; -PFNGLGETFENCEIVNVPROC glGetFenceivNV; -PFNGLFINISHFENCENVPROC glFinishFenceNV; -PFNGLSETFENCENVPROC glSetFenceNV; +PFNGLGENFENCESNVPROC glGenFencesNV; +PFNGLISFENCENVPROC glIsFenceNV; +PFNGLTESTFENCENVPROC glTestFenceNV; +PFNGLGETFENCEIVNVPROC glGetFenceivNV; +PFNGLFINISHFENCENVPROC glFinishFenceNV; +PFNGLSETFENCENVPROC glSetFenceNV; #endif /* defined(GL_NV_fence) */ #if defined(GL_NV_fragment_coverage_to_color) @@ -717,9 +715,9 @@ PFNGLBLITFRAMEBUFFERNVPROC glBlitFramebufferNV; #endif /* defined(GL_NV_framebuffer_blit) */ #if defined(GL_NV_framebuffer_mixed_samples) -PFNGLCOVERAGEMODULATIONTABLENVPROC glCoverageModulationTableNV; +PFNGLCOVERAGEMODULATIONTABLENVPROC glCoverageModulationTableNV; PFNGLGETCOVERAGEMODULATIONTABLENVPROC glGetCoverageModulationTableNV; -PFNGLCOVERAGEMODULATIONNVPROC glCoverageModulationNV; +PFNGLCOVERAGEMODULATIONNVPROC glCoverageModulationNV; #endif /* defined(GL_NV_framebuffer_mixed_samples) */ #if defined(GL_NV_framebuffer_multisample) @@ -727,36 +725,36 @@ PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC glRenderbufferStorageMultisampleNV; #endif /* defined(GL_NV_framebuffer_multisample) */ #if defined(GL_NV_gpu_shader5) -PFNGLUNIFORM1I64NVPROC glUniform1i64NV; -PFNGLUNIFORM2I64NVPROC glUniform2i64NV; -PFNGLUNIFORM3I64NVPROC glUniform3i64NV; -PFNGLUNIFORM4I64NVPROC glUniform4i64NV; -PFNGLUNIFORM1I64VNVPROC glUniform1i64vNV; -PFNGLUNIFORM2I64VNVPROC glUniform2i64vNV; -PFNGLUNIFORM3I64VNVPROC glUniform3i64vNV; -PFNGLUNIFORM4I64VNVPROC glUniform4i64vNV; -PFNGLUNIFORM1UI64NVPROC glUniform1ui64NV; -PFNGLUNIFORM2UI64NVPROC glUniform2ui64NV; -PFNGLUNIFORM3UI64NVPROC glUniform3ui64NV; -PFNGLUNIFORM4UI64NVPROC glUniform4ui64NV; -PFNGLUNIFORM1UI64VNVPROC glUniform1ui64vNV; -PFNGLUNIFORM2UI64VNVPROC glUniform2ui64vNV; -PFNGLUNIFORM3UI64VNVPROC glUniform3ui64vNV; -PFNGLUNIFORM4UI64VNVPROC glUniform4ui64vNV; +PFNGLUNIFORM1I64NVPROC glUniform1i64NV; +PFNGLUNIFORM2I64NVPROC glUniform2i64NV; +PFNGLUNIFORM3I64NVPROC glUniform3i64NV; +PFNGLUNIFORM4I64NVPROC glUniform4i64NV; +PFNGLUNIFORM1I64VNVPROC glUniform1i64vNV; +PFNGLUNIFORM2I64VNVPROC glUniform2i64vNV; +PFNGLUNIFORM3I64VNVPROC glUniform3i64vNV; +PFNGLUNIFORM4I64VNVPROC glUniform4i64vNV; +PFNGLUNIFORM1UI64NVPROC glUniform1ui64NV; +PFNGLUNIFORM2UI64NVPROC glUniform2ui64NV; +PFNGLUNIFORM3UI64NVPROC glUniform3ui64NV; +PFNGLUNIFORM4UI64NVPROC glUniform4ui64NV; +PFNGLUNIFORM1UI64VNVPROC glUniform1ui64vNV; +PFNGLUNIFORM2UI64VNVPROC glUniform2ui64vNV; +PFNGLUNIFORM3UI64VNVPROC glUniform3ui64vNV; +PFNGLUNIFORM4UI64VNVPROC glUniform4ui64vNV; PFNGLGETUNIFORMI64VNVPROC glGetUniformi64vNV; -PFNGLPROGRAMUNIFORM1I64NVPROC glProgramUniform1i64NV; -PFNGLPROGRAMUNIFORM2I64NVPROC glProgramUniform2i64NV; -PFNGLPROGRAMUNIFORM3I64NVPROC glProgramUniform3i64NV; -PFNGLPROGRAMUNIFORM4I64NVPROC glProgramUniform4i64NV; -PFNGLPROGRAMUNIFORM1I64VNVPROC glProgramUniform1i64vNV; -PFNGLPROGRAMUNIFORM2I64VNVPROC glProgramUniform2i64vNV; -PFNGLPROGRAMUNIFORM3I64VNVPROC glProgramUniform3i64vNV; -PFNGLPROGRAMUNIFORM4I64VNVPROC glProgramUniform4i64vNV; -PFNGLPROGRAMUNIFORM1UI64NVPROC glProgramUniform1ui64NV; -PFNGLPROGRAMUNIFORM2UI64NVPROC glProgramUniform2ui64NV; -PFNGLPROGRAMUNIFORM3UI64NVPROC glProgramUniform3ui64NV; -PFNGLPROGRAMUNIFORM4UI64NVPROC glProgramUniform4ui64NV; +PFNGLPROGRAMUNIFORM1I64NVPROC glProgramUniform1i64NV; +PFNGLPROGRAMUNIFORM2I64NVPROC glProgramUniform2i64NV; +PFNGLPROGRAMUNIFORM3I64NVPROC glProgramUniform3i64NV; +PFNGLPROGRAMUNIFORM4I64NVPROC glProgramUniform4i64NV; +PFNGLPROGRAMUNIFORM1I64VNVPROC glProgramUniform1i64vNV; +PFNGLPROGRAMUNIFORM2I64VNVPROC glProgramUniform2i64vNV; +PFNGLPROGRAMUNIFORM3I64VNVPROC glProgramUniform3i64vNV; +PFNGLPROGRAMUNIFORM4I64VNVPROC glProgramUniform4i64vNV; +PFNGLPROGRAMUNIFORM1UI64NVPROC glProgramUniform1ui64NV; +PFNGLPROGRAMUNIFORM2UI64NVPROC glProgramUniform2ui64NV; +PFNGLPROGRAMUNIFORM3UI64NVPROC glProgramUniform3ui64NV; +PFNGLPROGRAMUNIFORM4UI64NVPROC glProgramUniform4ui64NV; PFNGLPROGRAMUNIFORM1UI64VNVPROC glProgramUniform1ui64vNV; PFNGLPROGRAMUNIFORM2UI64VNVPROC glProgramUniform2ui64vNV; PFNGLPROGRAMUNIFORM3UI64VNVPROC glProgramUniform3ui64vNV; @@ -773,26 +771,26 @@ PFNGLGETINTERNALFORMATSAMPLEIVNVPROC glGetInternalformatSampleivNV; #if defined(GL_NV_memory_attachment) PFNGLGETMEMORYOBJECTDETACHEDRESOURCESUIVNVPROC glGetMemoryObjectDetachedResourcesuivNV; -PFNGLRESETMEMORYOBJECTPARAMETERNVPROC glResetMemoryObjectParameterNV; -PFNGLTEXATTACHMEMORYNVPROC glTexAttachMemoryNV; -PFNGLBUFFERATTACHMEMORYNVPROC glBufferAttachMemoryNV; +PFNGLRESETMEMORYOBJECTPARAMETERNVPROC glResetMemoryObjectParameterNV; +PFNGLTEXATTACHMEMORYNVPROC glTexAttachMemoryNV; +PFNGLBUFFERATTACHMEMORYNVPROC glBufferAttachMemoryNV; -PFNGLTEXTUREATTACHMEMORYNVPROC glTextureAttachMemoryNV; +PFNGLTEXTUREATTACHMEMORYNVPROC glTextureAttachMemoryNV; PFNGLNAMEDBUFFERATTACHMEMORYNVPROC glNamedBufferAttachMemoryNV; #endif /* defined(GL_NV_memory_attachment) */ #if defined(GL_NV_memory_object_sparse) PFNGLBUFFERPAGECOMMITMENTMEMNVPROC glBufferPageCommitmentMemNV; -PFNGLTEXPAGECOMMITMENTMEMNVPROC glTexPageCommitmentMemNV; +PFNGLTEXPAGECOMMITMENTMEMNVPROC glTexPageCommitmentMemNV; PFNGLNAMEDBUFFERPAGECOMMITMENTMEMNVPROC glNamedBufferPageCommitmentMemNV; -PFNGLTEXTUREPAGECOMMITMENTMEMNVPROC glTexturePageCommitmentMemNV; +PFNGLTEXTUREPAGECOMMITMENTMEMNVPROC glTexturePageCommitmentMemNV; #endif /* defined(GL_NV_memory_object_sparse) */ #if defined(GL_NV_mesh_shader) -PFNGLDRAWMESHTASKSNVPROC glDrawMeshTasksNV; -PFNGLDRAWMESHTASKSINDIRECTNVPROC glDrawMeshTasksIndirectNV; -PFNGLMULTIDRAWMESHTASKSINDIRECTNVPROC glMultiDrawMeshTasksIndirectNV; +PFNGLDRAWMESHTASKSNVPROC glDrawMeshTasksNV; +PFNGLDRAWMESHTASKSINDIRECTNVPROC glDrawMeshTasksIndirectNV; +PFNGLMULTIDRAWMESHTASKSINDIRECTNVPROC glMultiDrawMeshTasksIndirectNV; PFNGLMULTIDRAWMESHTASKSINDIRECTCOUNTNVPROC glMultiDrawMeshTasksIndirectCountNV; #endif /* defined(GL_NV_mesh_shader) */ @@ -806,85 +804,85 @@ PFNGLUNIFORMMATRIX4X3FVNVPROC glUniformMatrix4x3fvNV; #endif /* defined(GL_NV_non_square_matrices) */ #if defined(GL_NV_path_rendering) -PFNGLGENPATHSNVPROC glGenPathsNV; -PFNGLDELETEPATHSNVPROC glDeletePathsNV; -PFNGLISPATHNVPROC glIsPathNV; -PFNGLPATHCOMMANDSNVPROC glPathCommandsNV; -PFNGLPATHCOORDSNVPROC glPathCoordsNV; -PFNGLPATHSUBCOMMANDSNVPROC glPathSubCommandsNV; -PFNGLPATHSUBCOORDSNVPROC glPathSubCoordsNV; -PFNGLPATHSTRINGNVPROC glPathStringNV; -PFNGLPATHGLYPHSNVPROC glPathGlyphsNV; -PFNGLPATHGLYPHRANGENVPROC glPathGlyphRangeNV; -PFNGLWEIGHTPATHSNVPROC glWeightPathsNV; -PFNGLCOPYPATHNVPROC glCopyPathNV; -PFNGLINTERPOLATEPATHSNVPROC glInterpolatePathsNV; -PFNGLTRANSFORMPATHNVPROC glTransformPathNV; -PFNGLPATHPARAMETERIVNVPROC glPathParameterivNV; -PFNGLPATHPARAMETERINVPROC glPathParameteriNV; -PFNGLPATHPARAMETERFVNVPROC glPathParameterfvNV; -PFNGLPATHPARAMETERFNVPROC glPathParameterfNV; -PFNGLPATHDASHARRAYNVPROC glPathDashArrayNV; -PFNGLPATHSTENCILFUNCNVPROC glPathStencilFuncNV; -PFNGLPATHSTENCILDEPTHOFFSETNVPROC glPathStencilDepthOffsetNV; -PFNGLSTENCILFILLPATHNVPROC glStencilFillPathNV; -PFNGLSTENCILSTROKEPATHNVPROC glStencilStrokePathNV; -PFNGLSTENCILFILLPATHINSTANCEDNVPROC glStencilFillPathInstancedNV; +PFNGLGENPATHSNVPROC glGenPathsNV; +PFNGLDELETEPATHSNVPROC glDeletePathsNV; +PFNGLISPATHNVPROC glIsPathNV; +PFNGLPATHCOMMANDSNVPROC glPathCommandsNV; +PFNGLPATHCOORDSNVPROC glPathCoordsNV; +PFNGLPATHSUBCOMMANDSNVPROC glPathSubCommandsNV; +PFNGLPATHSUBCOORDSNVPROC glPathSubCoordsNV; +PFNGLPATHSTRINGNVPROC glPathStringNV; +PFNGLPATHGLYPHSNVPROC glPathGlyphsNV; +PFNGLPATHGLYPHRANGENVPROC glPathGlyphRangeNV; +PFNGLWEIGHTPATHSNVPROC glWeightPathsNV; +PFNGLCOPYPATHNVPROC glCopyPathNV; +PFNGLINTERPOLATEPATHSNVPROC glInterpolatePathsNV; +PFNGLTRANSFORMPATHNVPROC glTransformPathNV; +PFNGLPATHPARAMETERIVNVPROC glPathParameterivNV; +PFNGLPATHPARAMETERINVPROC glPathParameteriNV; +PFNGLPATHPARAMETERFVNVPROC glPathParameterfvNV; +PFNGLPATHPARAMETERFNVPROC glPathParameterfNV; +PFNGLPATHDASHARRAYNVPROC glPathDashArrayNV; +PFNGLPATHSTENCILFUNCNVPROC glPathStencilFuncNV; +PFNGLPATHSTENCILDEPTHOFFSETNVPROC glPathStencilDepthOffsetNV; +PFNGLSTENCILFILLPATHNVPROC glStencilFillPathNV; +PFNGLSTENCILSTROKEPATHNVPROC glStencilStrokePathNV; +PFNGLSTENCILFILLPATHINSTANCEDNVPROC glStencilFillPathInstancedNV; PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC glStencilStrokePathInstancedNV; -PFNGLPATHCOVERDEPTHFUNCNVPROC glPathCoverDepthFuncNV; -PFNGLCOVERFILLPATHNVPROC glCoverFillPathNV; -PFNGLCOVERSTROKEPATHNVPROC glCoverStrokePathNV; -PFNGLCOVERFILLPATHINSTANCEDNVPROC glCoverFillPathInstancedNV; -PFNGLCOVERSTROKEPATHINSTANCEDNVPROC glCoverStrokePathInstancedNV; -PFNGLGETPATHPARAMETERIVNVPROC glGetPathParameterivNV; -PFNGLGETPATHPARAMETERFVNVPROC glGetPathParameterfvNV; -PFNGLGETPATHCOMMANDSNVPROC glGetPathCommandsNV; -PFNGLGETPATHCOORDSNVPROC glGetPathCoordsNV; -PFNGLGETPATHDASHARRAYNVPROC glGetPathDashArrayNV; -PFNGLGETPATHMETRICSNVPROC glGetPathMetricsNV; -PFNGLGETPATHMETRICRANGENVPROC glGetPathMetricRangeNV; -PFNGLGETPATHSPACINGNVPROC glGetPathSpacingNV; -PFNGLISPOINTINFILLPATHNVPROC glIsPointInFillPathNV; -PFNGLISPOINTINSTROKEPATHNVPROC glIsPointInStrokePathNV; -PFNGLGETPATHLENGTHNVPROC glGetPathLengthNV; -PFNGLPOINTALONGPATHNVPROC glPointAlongPathNV; +PFNGLPATHCOVERDEPTHFUNCNVPROC glPathCoverDepthFuncNV; +PFNGLCOVERFILLPATHNVPROC glCoverFillPathNV; +PFNGLCOVERSTROKEPATHNVPROC glCoverStrokePathNV; +PFNGLCOVERFILLPATHINSTANCEDNVPROC glCoverFillPathInstancedNV; +PFNGLCOVERSTROKEPATHINSTANCEDNVPROC glCoverStrokePathInstancedNV; +PFNGLGETPATHPARAMETERIVNVPROC glGetPathParameterivNV; +PFNGLGETPATHPARAMETERFVNVPROC glGetPathParameterfvNV; +PFNGLGETPATHCOMMANDSNVPROC glGetPathCommandsNV; +PFNGLGETPATHCOORDSNVPROC glGetPathCoordsNV; +PFNGLGETPATHDASHARRAYNVPROC glGetPathDashArrayNV; +PFNGLGETPATHMETRICSNVPROC glGetPathMetricsNV; +PFNGLGETPATHMETRICRANGENVPROC glGetPathMetricRangeNV; +PFNGLGETPATHSPACINGNVPROC glGetPathSpacingNV; +PFNGLISPOINTINFILLPATHNVPROC glIsPointInFillPathNV; +PFNGLISPOINTINSTROKEPATHNVPROC glIsPointInStrokePathNV; +PFNGLGETPATHLENGTHNVPROC glGetPathLengthNV; +PFNGLPOINTALONGPATHNVPROC glPointAlongPathNV; -PFNGLMATRIXLOAD3X2FNVPROC glMatrixLoad3x2fNV; -PFNGLMATRIXLOAD3X3FNVPROC glMatrixLoad3x3fNV; -PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC glMatrixLoadTranspose3x3fNV; -PFNGLMATRIXMULT3X2FNVPROC glMatrixMult3x2fNV; -PFNGLMATRIXMULT3X3FNVPROC glMatrixMult3x3fNV; -PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC glMatrixMultTranspose3x3fNV; -PFNGLSTENCILTHENCOVERFILLPATHNVPROC glStencilThenCoverFillPathNV; -PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC glStencilThenCoverStrokePathNV; -PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC glStencilThenCoverFillPathInstancedNV; +PFNGLMATRIXLOAD3X2FNVPROC glMatrixLoad3x2fNV; +PFNGLMATRIXLOAD3X3FNVPROC glMatrixLoad3x3fNV; +PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC glMatrixLoadTranspose3x3fNV; +PFNGLMATRIXMULT3X2FNVPROC glMatrixMult3x2fNV; +PFNGLMATRIXMULT3X3FNVPROC glMatrixMult3x3fNV; +PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC glMatrixMultTranspose3x3fNV; +PFNGLSTENCILTHENCOVERFILLPATHNVPROC glStencilThenCoverFillPathNV; +PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC glStencilThenCoverStrokePathNV; +PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC glStencilThenCoverFillPathInstancedNV; PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC glStencilThenCoverStrokePathInstancedNV; -PFNGLPATHGLYPHINDEXRANGENVPROC glPathGlyphIndexRangeNV; +PFNGLPATHGLYPHINDEXRANGENVPROC glPathGlyphIndexRangeNV; -PFNGLPATHGLYPHINDEXARRAYNVPROC glPathGlyphIndexArrayNV; -PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC glPathMemoryGlyphIndexArrayNV; +PFNGLPATHGLYPHINDEXARRAYNVPROC glPathGlyphIndexArrayNV; +PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC glPathMemoryGlyphIndexArrayNV; PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC glProgramPathFragmentInputGenNV; -PFNGLGETPROGRAMRESOURCEFVNVPROC glGetProgramResourcefvNV; +PFNGLGETPROGRAMRESOURCEFVNVPROC glGetProgramResourcefvNV; -PFNGLMATRIXFRUSTUMEXTPROC glMatrixFrustumEXT; -PFNGLMATRIXLOADIDENTITYEXTPROC glMatrixLoadIdentityEXT; +PFNGLMATRIXFRUSTUMEXTPROC glMatrixFrustumEXT; +PFNGLMATRIXLOADIDENTITYEXTPROC glMatrixLoadIdentityEXT; PFNGLMATRIXLOADTRANSPOSEFEXTPROC glMatrixLoadTransposefEXT; PFNGLMATRIXLOADTRANSPOSEDEXTPROC glMatrixLoadTransposedEXT; -PFNGLMATRIXLOADFEXTPROC glMatrixLoadfEXT; -PFNGLMATRIXLOADDEXTPROC glMatrixLoaddEXT; +PFNGLMATRIXLOADFEXTPROC glMatrixLoadfEXT; +PFNGLMATRIXLOADDEXTPROC glMatrixLoaddEXT; PFNGLMATRIXMULTTRANSPOSEFEXTPROC glMatrixMultTransposefEXT; PFNGLMATRIXMULTTRANSPOSEDEXTPROC glMatrixMultTransposedEXT; -PFNGLMATRIXMULTFEXTPROC glMatrixMultfEXT; -PFNGLMATRIXMULTDEXTPROC glMatrixMultdEXT; -PFNGLMATRIXORTHOEXTPROC glMatrixOrthoEXT; -PFNGLMATRIXPOPEXTPROC glMatrixPopEXT; -PFNGLMATRIXPUSHEXTPROC glMatrixPushEXT; -PFNGLMATRIXROTATEFEXTPROC glMatrixRotatefEXT; -PFNGLMATRIXROTATEDEXTPROC glMatrixRotatedEXT; -PFNGLMATRIXSCALEFEXTPROC glMatrixScalefEXT; -PFNGLMATRIXSCALEDEXTPROC glMatrixScaledEXT; -PFNGLMATRIXTRANSLATEFEXTPROC glMatrixTranslatefEXT; -PFNGLMATRIXTRANSLATEDEXTPROC glMatrixTranslatedEXT; +PFNGLMATRIXMULTFEXTPROC glMatrixMultfEXT; +PFNGLMATRIXMULTDEXTPROC glMatrixMultdEXT; +PFNGLMATRIXORTHOEXTPROC glMatrixOrthoEXT; +PFNGLMATRIXPOPEXTPROC glMatrixPopEXT; +PFNGLMATRIXPUSHEXTPROC glMatrixPushEXT; +PFNGLMATRIXROTATEFEXTPROC glMatrixRotatefEXT; +PFNGLMATRIXROTATEDEXTPROC glMatrixRotatedEXT; +PFNGLMATRIXSCALEFEXTPROC glMatrixScalefEXT; +PFNGLMATRIXSCALEDEXTPROC glMatrixScaledEXT; +PFNGLMATRIXTRANSLATEFEXTPROC glMatrixTranslatefEXT; +PFNGLMATRIXTRANSLATEDEXTPROC glMatrixTranslatedEXT; #endif /* defined(GL_NV_path_rendering) */ #if defined(GL_NV_polygon_mode) @@ -896,39 +894,39 @@ PFNGLREADBUFFERNVPROC glReadBufferNV; #endif /* defined(GL_NV_read_buffer) */ #if defined(GL_NV_sample_locations) -PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glFramebufferSampleLocationsfvNV; +PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glFramebufferSampleLocationsfvNV; PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC glNamedFramebufferSampleLocationsfvNV; -PFNGLRESOLVEDEPTHVALUESNVPROC glResolveDepthValuesNV; +PFNGLRESOLVEDEPTHVALUESNVPROC glResolveDepthValuesNV; #endif /* defined(GL_NV_sample_locations) */ #if defined(GL_NV_scissor_exclusive) -PFNGLSCISSOREXCLUSIVENVPROC glScissorExclusiveNV; +PFNGLSCISSOREXCLUSIVENVPROC glScissorExclusiveNV; PFNGLSCISSOREXCLUSIVEARRAYVNVPROC glScissorExclusiveArrayvNV; #endif /* defined(GL_NV_scissor_exclusive) */ #if defined(GL_NV_shading_rate_image) -PFNGLBINDSHADINGRATEIMAGENVPROC glBindShadingRateImageNV; -PFNGLGETSHADINGRATEIMAGEPALETTENVPROC glGetShadingRateImagePaletteNV; +PFNGLBINDSHADINGRATEIMAGENVPROC glBindShadingRateImageNV; +PFNGLGETSHADINGRATEIMAGEPALETTENVPROC glGetShadingRateImagePaletteNV; PFNGLGETSHADINGRATESAMPLELOCATIONIVNVPROC glGetShadingRateSampleLocationivNV; -PFNGLSHADINGRATEIMAGEBARRIERNVPROC glShadingRateImageBarrierNV; -PFNGLSHADINGRATEIMAGEPALETTENVPROC glShadingRateImagePaletteNV; -PFNGLSHADINGRATESAMPLEORDERNVPROC glShadingRateSampleOrderNV; -PFNGLSHADINGRATESAMPLEORDERCUSTOMNVPROC glShadingRateSampleOrderCustomNV; +PFNGLSHADINGRATEIMAGEBARRIERNVPROC glShadingRateImageBarrierNV; +PFNGLSHADINGRATEIMAGEPALETTENVPROC glShadingRateImagePaletteNV; +PFNGLSHADINGRATESAMPLEORDERNVPROC glShadingRateSampleOrderNV; +PFNGLSHADINGRATESAMPLEORDERCUSTOMNVPROC glShadingRateSampleOrderCustomNV; #endif /* defined(GL_NV_shading_rate_image) */ #if defined(GL_NV_viewport_array) -PFNGLVIEWPORTARRAYVNVPROC glViewportArrayvNV; -PFNGLVIEWPORTINDEXEDFNVPROC glViewportIndexedfNV; -PFNGLVIEWPORTINDEXEDFVNVPROC glViewportIndexedfvNV; -PFNGLSCISSORARRAYVNVPROC glScissorArrayvNV; -PFNGLSCISSORINDEXEDNVPROC glScissorIndexedNV; -PFNGLSCISSORINDEXEDVNVPROC glScissorIndexedvNV; -PFNGLDEPTHRANGEARRAYFVNVPROC glDepthRangeArrayfvNV; +PFNGLVIEWPORTARRAYVNVPROC glViewportArrayvNV; +PFNGLVIEWPORTINDEXEDFNVPROC glViewportIndexedfNV; +PFNGLVIEWPORTINDEXEDFVNVPROC glViewportIndexedfvNV; +PFNGLSCISSORARRAYVNVPROC glScissorArrayvNV; +PFNGLSCISSORINDEXEDNVPROC glScissorIndexedNV; +PFNGLSCISSORINDEXEDVNVPROC glScissorIndexedvNV; +PFNGLDEPTHRANGEARRAYFVNVPROC glDepthRangeArrayfvNV; PFNGLDEPTHRANGEINDEXEDFNVPROC glDepthRangeIndexedfNV; -PFNGLGETFLOATI_VNVPROC glGetFloati_vNV; -PFNGLENABLEINVPROC glEnableiNV; -PFNGLDISABLEINVPROC glDisableiNV; -PFNGLISENABLEDINVPROC glIsEnablediNV; +PFNGLGETFLOATI_VNVPROC glGetFloati_vNV; +PFNGLENABLEINVPROC glEnableiNV; +PFNGLDISABLEINVPROC glDisableiNV; +PFNGLISENABLEDINVPROC glIsEnablediNV; #endif /* defined(GL_NV_viewport_array) */ #if defined(GL_NV_viewport_swizzle) @@ -936,7 +934,7 @@ PFNGLVIEWPORTSWIZZLENVPROC glViewportSwizzleNV; #endif /* defined(GL_NV_viewport_swizzle) */ #if defined(GL_OES_EGL_image) -PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES; +PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES; PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC glEGLImageTargetRenderbufferStorageOES; #endif /* defined(GL_OES_EGL_image) */ @@ -945,19 +943,19 @@ PFNGLCOPYIMAGESUBDATAOESPROC glCopyImageSubDataOES; #endif /* defined(GL_OES_copy_image) */ #if defined(GL_OES_draw_buffers_indexed) -PFNGLENABLEIOESPROC glEnableiOES; -PFNGLDISABLEIOESPROC glDisableiOES; -PFNGLBLENDEQUATIONIOESPROC glBlendEquationiOES; +PFNGLENABLEIOESPROC glEnableiOES; +PFNGLDISABLEIOESPROC glDisableiOES; +PFNGLBLENDEQUATIONIOESPROC glBlendEquationiOES; PFNGLBLENDEQUATIONSEPARATEIOESPROC glBlendEquationSeparateiOES; -PFNGLBLENDFUNCIOESPROC glBlendFunciOES; -PFNGLBLENDFUNCSEPARATEIOESPROC glBlendFuncSeparateiOES; -PFNGLCOLORMASKIOESPROC glColorMaskiOES; -PFNGLISENABLEDIOESPROC glIsEnablediOES; +PFNGLBLENDFUNCIOESPROC glBlendFunciOES; +PFNGLBLENDFUNCSEPARATEIOESPROC glBlendFuncSeparateiOES; +PFNGLCOLORMASKIOESPROC glColorMaskiOES; +PFNGLISENABLEDIOESPROC glIsEnablediOES; #endif /* defined(GL_OES_draw_buffers_indexed) */ #if defined(GL_OES_draw_elements_base_vertex) -PFNGLDRAWELEMENTSBASEVERTEXOESPROC glDrawElementsBaseVertexOES; -PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC glDrawRangeElementsBaseVertexOES; +PFNGLDRAWELEMENTSBASEVERTEXOESPROC glDrawElementsBaseVertexOES; +PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC glDrawRangeElementsBaseVertexOES; PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC glDrawElementsInstancedBaseVertexOES; #endif /* defined(GL_OES_draw_elements_base_vertex) */ @@ -967,12 +965,12 @@ PFNGLFRAMEBUFFERTEXTUREOESPROC glFramebufferTextureOES; #if defined(GL_OES_get_program_binary) PFNGLGETPROGRAMBINARYOESPROC glGetProgramBinaryOES; -PFNGLPROGRAMBINARYOESPROC glProgramBinaryOES; +PFNGLPROGRAMBINARYOESPROC glProgramBinaryOES; #endif /* defined(GL_OES_get_program_binary) */ #if defined(GL_OES_mapbuffer) -PFNGLMAPBUFFEROESPROC glMapBufferOES; -PFNGLUNMAPBUFFEROESPROC glUnmapBufferOES; +PFNGLMAPBUFFEROESPROC glMapBufferOES; +PFNGLUNMAPBUFFEROESPROC glUnmapBufferOES; PFNGLGETBUFFERPOINTERVOESPROC glGetBufferPointervOES; #endif /* defined(GL_OES_mapbuffer) */ @@ -989,27 +987,27 @@ PFNGLPATCHPARAMETERIOESPROC glPatchParameteriOES; #endif /* defined(GL_OES_tessellation_shader) */ #if defined(GL_OES_texture_3D) -PFNGLTEXIMAGE3DOESPROC glTexImage3DOES; -PFNGLTEXSUBIMAGE3DOESPROC glTexSubImage3DOES; -PFNGLCOPYTEXSUBIMAGE3DOESPROC glCopyTexSubImage3DOES; -PFNGLCOMPRESSEDTEXIMAGE3DOESPROC glCompressedTexImage3DOES; +PFNGLTEXIMAGE3DOESPROC glTexImage3DOES; +PFNGLTEXSUBIMAGE3DOESPROC glTexSubImage3DOES; +PFNGLCOPYTEXSUBIMAGE3DOESPROC glCopyTexSubImage3DOES; +PFNGLCOMPRESSEDTEXIMAGE3DOESPROC glCompressedTexImage3DOES; PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC glCompressedTexSubImage3DOES; -PFNGLFRAMEBUFFERTEXTURE3DOESPROC glFramebufferTexture3DOES; +PFNGLFRAMEBUFFERTEXTURE3DOESPROC glFramebufferTexture3DOES; #endif /* defined(GL_OES_texture_3D) */ #if defined(GL_OES_texture_border_clamp) -PFNGLTEXPARAMETERIIVOESPROC glTexParameterIivOES; -PFNGLTEXPARAMETERIUIVOESPROC glTexParameterIuivOES; -PFNGLGETTEXPARAMETERIIVOESPROC glGetTexParameterIivOES; -PFNGLGETTEXPARAMETERIUIVOESPROC glGetTexParameterIuivOES; -PFNGLSAMPLERPARAMETERIIVOESPROC glSamplerParameterIivOES; -PFNGLSAMPLERPARAMETERIUIVOESPROC glSamplerParameterIuivOES; -PFNGLGETSAMPLERPARAMETERIIVOESPROC glGetSamplerParameterIivOES; +PFNGLTEXPARAMETERIIVOESPROC glTexParameterIivOES; +PFNGLTEXPARAMETERIUIVOESPROC glTexParameterIuivOES; +PFNGLGETTEXPARAMETERIIVOESPROC glGetTexParameterIivOES; +PFNGLGETTEXPARAMETERIUIVOESPROC glGetTexParameterIuivOES; +PFNGLSAMPLERPARAMETERIIVOESPROC glSamplerParameterIivOES; +PFNGLSAMPLERPARAMETERIUIVOESPROC glSamplerParameterIuivOES; +PFNGLGETSAMPLERPARAMETERIIVOESPROC glGetSamplerParameterIivOES; PFNGLGETSAMPLERPARAMETERIUIVOESPROC glGetSamplerParameterIuivOES; #endif /* defined(GL_OES_texture_border_clamp) */ #if defined(GL_OES_texture_buffer) -PFNGLTEXBUFFEROESPROC glTexBufferOES; +PFNGLTEXBUFFEROESPROC glTexBufferOES; PFNGLTEXBUFFERRANGEOESPROC glTexBufferRangeOES; #endif /* defined(GL_OES_texture_buffer) */ @@ -1022,22 +1020,22 @@ PFNGLTEXTUREVIEWOESPROC glTextureViewOES; #endif /* defined(GL_OES_texture_view) */ #if defined(GL_OES_vertex_array_object) -PFNGLBINDVERTEXARRAYOESPROC glBindVertexArrayOES; +PFNGLBINDVERTEXARRAYOESPROC glBindVertexArrayOES; PFNGLDELETEVERTEXARRAYSOESPROC glDeleteVertexArraysOES; -PFNGLGENVERTEXARRAYSOESPROC glGenVertexArraysOES; -PFNGLISVERTEXARRAYOESPROC glIsVertexArrayOES; +PFNGLGENVERTEXARRAYSOESPROC glGenVertexArraysOES; +PFNGLISVERTEXARRAYOESPROC glIsVertexArrayOES; #endif /* defined(GL_OES_vertex_array_object) */ #if defined(GL_OES_viewport_array) -PFNGLVIEWPORTARRAYVOESPROC glViewportArrayvOES; -PFNGLVIEWPORTINDEXEDFOESPROC glViewportIndexedfOES; -PFNGLVIEWPORTINDEXEDFVOESPROC glViewportIndexedfvOES; -PFNGLSCISSORARRAYVOESPROC glScissorArrayvOES; -PFNGLSCISSORINDEXEDOESPROC glScissorIndexedOES; -PFNGLSCISSORINDEXEDVOESPROC glScissorIndexedvOES; -PFNGLDEPTHRANGEARRAYFVOESPROC glDepthRangeArrayfvOES; +PFNGLVIEWPORTARRAYVOESPROC glViewportArrayvOES; +PFNGLVIEWPORTINDEXEDFOESPROC glViewportIndexedfOES; +PFNGLVIEWPORTINDEXEDFVOESPROC glViewportIndexedfvOES; +PFNGLSCISSORARRAYVOESPROC glScissorArrayvOES; +PFNGLSCISSORINDEXEDOESPROC glScissorIndexedOES; +PFNGLSCISSORINDEXEDVOESPROC glScissorIndexedvOES; +PFNGLDEPTHRANGEARRAYFVOESPROC glDepthRangeArrayfvOES; PFNGLDEPTHRANGEINDEXEDFOESPROC glDepthRangeIndexedfOES; -PFNGLGETFLOATI_VOESPROC glGetFloati_vOES; +PFNGLGETFLOATI_VOESPROC glGetFloati_vOES; #endif /* defined(GL_OES_viewport_array) */ #if defined(GL_OVR_multiview) @@ -1053,37 +1051,37 @@ PFNGLALPHAFUNCQCOMPROC glAlphaFuncQCOM; #endif /* defined(GL_QCOM_alpha_test) */ #if defined(GL_QCOM_driver_control) -PFNGLGETDRIVERCONTROLSQCOMPROC glGetDriverControlsQCOM; +PFNGLGETDRIVERCONTROLSQCOMPROC glGetDriverControlsQCOM; PFNGLGETDRIVERCONTROLSTRINGQCOMPROC glGetDriverControlStringQCOM; -PFNGLENABLEDRIVERCONTROLQCOMPROC glEnableDriverControlQCOM; -PFNGLDISABLEDRIVERCONTROLQCOMPROC glDisableDriverControlQCOM; +PFNGLENABLEDRIVERCONTROLQCOMPROC glEnableDriverControlQCOM; +PFNGLDISABLEDRIVERCONTROLQCOMPROC glDisableDriverControlQCOM; #endif /* defined(GL_QCOM_driver_control) */ #if defined(GL_QCOM_extended_get) -PFNGLEXTGETTEXTURESQCOMPROC glExtGetTexturesQCOM; -PFNGLEXTGETBUFFERSQCOMPROC glExtGetBuffersQCOM; -PFNGLEXTGETRENDERBUFFERSQCOMPROC glExtGetRenderbuffersQCOM; -PFNGLEXTGETFRAMEBUFFERSQCOMPROC glExtGetFramebuffersQCOM; -PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC glExtGetTexLevelParameterivQCOM; +PFNGLEXTGETTEXTURESQCOMPROC glExtGetTexturesQCOM; +PFNGLEXTGETBUFFERSQCOMPROC glExtGetBuffersQCOM; +PFNGLEXTGETRENDERBUFFERSQCOMPROC glExtGetRenderbuffersQCOM; +PFNGLEXTGETFRAMEBUFFERSQCOMPROC glExtGetFramebuffersQCOM; +PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC glExtGetTexLevelParameterivQCOM; PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC glExtTexObjectStateOverrideiQCOM; -PFNGLEXTGETTEXSUBIMAGEQCOMPROC glExtGetTexSubImageQCOM; -PFNGLEXTGETBUFFERPOINTERVQCOMPROC glExtGetBufferPointervQCOM; +PFNGLEXTGETTEXSUBIMAGEQCOMPROC glExtGetTexSubImageQCOM; +PFNGLEXTGETBUFFERPOINTERVQCOMPROC glExtGetBufferPointervQCOM; #endif /* defined(GL_QCOM_extended_get) */ #if defined(GL_QCOM_extended_get2) -PFNGLEXTGETSHADERSQCOMPROC glExtGetShadersQCOM; -PFNGLEXTGETPROGRAMSQCOMPROC glExtGetProgramsQCOM; -PFNGLEXTISPROGRAMBINARYQCOMPROC glExtIsProgramBinaryQCOM; +PFNGLEXTGETSHADERSQCOMPROC glExtGetShadersQCOM; +PFNGLEXTGETPROGRAMSQCOMPROC glExtGetProgramsQCOM; +PFNGLEXTISPROGRAMBINARYQCOMPROC glExtIsProgramBinaryQCOM; PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC glExtGetProgramBinarySourceQCOM; #endif /* defined(GL_QCOM_extended_get2) */ #if defined(GL_QCOM_framebuffer_foveated) -PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC glFramebufferFoveationConfigQCOM; +PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC glFramebufferFoveationConfigQCOM; PFNGLFRAMEBUFFERFOVEATIONPARAMETERSQCOMPROC glFramebufferFoveationParametersQCOM; #endif /* defined(GL_QCOM_framebuffer_foveated) */ #if defined(GL_QCOM_motion_estimation) -PFNGLTEXESTIMATEMOTIONQCOMPROC glTexEstimateMotionQCOM; +PFNGLTEXESTIMATEMOTIONQCOMPROC glTexEstimateMotionQCOM; PFNGLTEXESTIMATEMOTIONREGIONSQCOMPROC glTexEstimateMotionRegionsQCOM; #endif /* defined(GL_QCOM_motion_estimation) */ @@ -1105,7 +1103,7 @@ PFNGLSHADINGRATEQCOMPROC glShadingRateQCOM; #if defined(GL_QCOM_tiled_rendering) PFNGLSTARTTILINGQCOMPROC glStartTilingQCOM; -PFNGLENDTILINGQCOMPROC glEndTilingQCOM; +PFNGLENDTILINGQCOMPROC glEndTilingQCOM; #endif /* defined(GL_QCOM_tiled_rendering) */ /* GLES2W_GENERATE_GLES_DEFINITION */ @@ -1127,167 +1125,166 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { /* GLES2W_GENERATE_GLES_LOAD */ /* GL_ES_VERSION_2_0 */ - glActiveTexture = reinterpret_cast(gles2wLoad("glActiveTexture")); - glAttachShader = reinterpret_cast(gles2wLoad("glAttachShader")); - glBindAttribLocation = reinterpret_cast(gles2wLoad("glBindAttribLocation")); - glBindBuffer = reinterpret_cast(gles2wLoad("glBindBuffer")); - glBindFramebuffer = reinterpret_cast(gles2wLoad("glBindFramebuffer")); - glBindRenderbuffer = reinterpret_cast(gles2wLoad("glBindRenderbuffer")); - glBindTexture = reinterpret_cast(gles2wLoad("glBindTexture")); - glBlendColor = reinterpret_cast(gles2wLoad("glBlendColor")); - glBlendEquation = reinterpret_cast(gles2wLoad("glBlendEquation")); - glBlendEquationSeparate = reinterpret_cast(gles2wLoad("glBlendEquationSeparate")); - glBlendFunc = reinterpret_cast(gles2wLoad("glBlendFunc")); - glBlendFuncSeparate = reinterpret_cast(gles2wLoad("glBlendFuncSeparate")); - glBufferData = reinterpret_cast(gles2wLoad("glBufferData")); - glBufferSubData = reinterpret_cast(gles2wLoad("glBufferSubData")); - glCheckFramebufferStatus = reinterpret_cast(gles2wLoad("glCheckFramebufferStatus")); - glClear = reinterpret_cast(gles2wLoad("glClear")); - glClearColor = reinterpret_cast(gles2wLoad("glClearColor")); - glClearDepthf = reinterpret_cast(gles2wLoad("glClearDepthf")); - glClearStencil = reinterpret_cast(gles2wLoad("glClearStencil")); - glColorMask = reinterpret_cast(gles2wLoad("glColorMask")); - glCompileShader = reinterpret_cast(gles2wLoad("glCompileShader")); - glCompressedTexImage2D = reinterpret_cast(gles2wLoad("glCompressedTexImage2D")); - glCompressedTexSubImage2D = reinterpret_cast(gles2wLoad("glCompressedTexSubImage2D")); - glCopyTexImage2D = reinterpret_cast(gles2wLoad("glCopyTexImage2D")); - glCopyTexSubImage2D = reinterpret_cast(gles2wLoad("glCopyTexSubImage2D")); - glCreateProgram = reinterpret_cast(gles2wLoad("glCreateProgram")); - glCreateShader = reinterpret_cast(gles2wLoad("glCreateShader")); - glCullFace = reinterpret_cast(gles2wLoad("glCullFace")); - glDeleteBuffers = reinterpret_cast(gles2wLoad("glDeleteBuffers")); - glDeleteFramebuffers = reinterpret_cast(gles2wLoad("glDeleteFramebuffers")); - glDeleteProgram = reinterpret_cast(gles2wLoad("glDeleteProgram")); - glDeleteRenderbuffers = reinterpret_cast(gles2wLoad("glDeleteRenderbuffers")); - glDeleteShader = reinterpret_cast(gles2wLoad("glDeleteShader")); - glDeleteTextures = reinterpret_cast(gles2wLoad("glDeleteTextures")); - glDepthFunc = reinterpret_cast(gles2wLoad("glDepthFunc")); - glDepthMask = reinterpret_cast(gles2wLoad("glDepthMask")); - glDepthRangef = reinterpret_cast(gles2wLoad("glDepthRangef")); - glDetachShader = reinterpret_cast(gles2wLoad("glDetachShader")); - glDisable = reinterpret_cast(gles2wLoad("glDisable")); - glDisableVertexAttribArray = reinterpret_cast(gles2wLoad("glDisableVertexAttribArray")); - glDrawArrays = reinterpret_cast(gles2wLoad("glDrawArrays")); - glDrawElements = reinterpret_cast(gles2wLoad("glDrawElements")); - glEnable = reinterpret_cast(gles2wLoad("glEnable")); - glEnableVertexAttribArray = reinterpret_cast(gles2wLoad("glEnableVertexAttribArray")); - glFinish = reinterpret_cast(gles2wLoad("glFinish")); - glFlush = reinterpret_cast(gles2wLoad("glFlush")); - glFramebufferRenderbuffer = reinterpret_cast(gles2wLoad("glFramebufferRenderbuffer")); - glFramebufferTexture2D = reinterpret_cast(gles2wLoad("glFramebufferTexture2D")); - glFrontFace = reinterpret_cast(gles2wLoad("glFrontFace")); - glGenBuffers = reinterpret_cast(gles2wLoad("glGenBuffers")); - glGenerateMipmap = reinterpret_cast(gles2wLoad("glGenerateMipmap")); - glGenFramebuffers = reinterpret_cast(gles2wLoad("glGenFramebuffers")); - glGenRenderbuffers = reinterpret_cast(gles2wLoad("glGenRenderbuffers")); - glGenTextures = reinterpret_cast(gles2wLoad("glGenTextures")); - glGetActiveAttrib = reinterpret_cast(gles2wLoad("glGetActiveAttrib")); - glGetActiveUniform = reinterpret_cast(gles2wLoad("glGetActiveUniform")); - glGetAttachedShaders = reinterpret_cast(gles2wLoad("glGetAttachedShaders")); - glGetAttribLocation = reinterpret_cast(gles2wLoad("glGetAttribLocation")); - glGetBooleanv = reinterpret_cast(gles2wLoad("glGetBooleanv")); - glGetBufferParameteriv = reinterpret_cast(gles2wLoad("glGetBufferParameteriv")); - glGetError = reinterpret_cast(gles2wLoad("glGetError")); - glGetFloatv = reinterpret_cast(gles2wLoad("glGetFloatv")); + glActiveTexture = reinterpret_cast(gles2wLoad("glActiveTexture")); + glAttachShader = reinterpret_cast(gles2wLoad("glAttachShader")); + glBindAttribLocation = reinterpret_cast(gles2wLoad("glBindAttribLocation")); + glBindBuffer = reinterpret_cast(gles2wLoad("glBindBuffer")); + glBindFramebuffer = reinterpret_cast(gles2wLoad("glBindFramebuffer")); + glBindRenderbuffer = reinterpret_cast(gles2wLoad("glBindRenderbuffer")); + glBindTexture = reinterpret_cast(gles2wLoad("glBindTexture")); + glBlendColor = reinterpret_cast(gles2wLoad("glBlendColor")); + glBlendEquation = reinterpret_cast(gles2wLoad("glBlendEquation")); + glBlendEquationSeparate = reinterpret_cast(gles2wLoad("glBlendEquationSeparate")); + glBlendFunc = reinterpret_cast(gles2wLoad("glBlendFunc")); + glBlendFuncSeparate = reinterpret_cast(gles2wLoad("glBlendFuncSeparate")); + glBufferData = reinterpret_cast(gles2wLoad("glBufferData")); + glBufferSubData = reinterpret_cast(gles2wLoad("glBufferSubData")); + glCheckFramebufferStatus = reinterpret_cast(gles2wLoad("glCheckFramebufferStatus")); + glClear = reinterpret_cast(gles2wLoad("glClear")); + glClearColor = reinterpret_cast(gles2wLoad("glClearColor")); + glClearDepthf = reinterpret_cast(gles2wLoad("glClearDepthf")); + glClearStencil = reinterpret_cast(gles2wLoad("glClearStencil")); + glColorMask = reinterpret_cast(gles2wLoad("glColorMask")); + glCompileShader = reinterpret_cast(gles2wLoad("glCompileShader")); + glCompressedTexImage2D = reinterpret_cast(gles2wLoad("glCompressedTexImage2D")); + glCompressedTexSubImage2D = reinterpret_cast(gles2wLoad("glCompressedTexSubImage2D")); + glCopyTexImage2D = reinterpret_cast(gles2wLoad("glCopyTexImage2D")); + glCopyTexSubImage2D = reinterpret_cast(gles2wLoad("glCopyTexSubImage2D")); + glCreateProgram = reinterpret_cast(gles2wLoad("glCreateProgram")); + glCreateShader = reinterpret_cast(gles2wLoad("glCreateShader")); + glCullFace = reinterpret_cast(gles2wLoad("glCullFace")); + glDeleteBuffers = reinterpret_cast(gles2wLoad("glDeleteBuffers")); + glDeleteFramebuffers = reinterpret_cast(gles2wLoad("glDeleteFramebuffers")); + glDeleteProgram = reinterpret_cast(gles2wLoad("glDeleteProgram")); + glDeleteRenderbuffers = reinterpret_cast(gles2wLoad("glDeleteRenderbuffers")); + glDeleteShader = reinterpret_cast(gles2wLoad("glDeleteShader")); + glDeleteTextures = reinterpret_cast(gles2wLoad("glDeleteTextures")); + glDepthFunc = reinterpret_cast(gles2wLoad("glDepthFunc")); + glDepthMask = reinterpret_cast(gles2wLoad("glDepthMask")); + glDepthRangef = reinterpret_cast(gles2wLoad("glDepthRangef")); + glDetachShader = reinterpret_cast(gles2wLoad("glDetachShader")); + glDisable = reinterpret_cast(gles2wLoad("glDisable")); + glDisableVertexAttribArray = reinterpret_cast(gles2wLoad("glDisableVertexAttribArray")); + glDrawArrays = reinterpret_cast(gles2wLoad("glDrawArrays")); + glDrawElements = reinterpret_cast(gles2wLoad("glDrawElements")); + glEnable = reinterpret_cast(gles2wLoad("glEnable")); + glEnableVertexAttribArray = reinterpret_cast(gles2wLoad("glEnableVertexAttribArray")); + glFinish = reinterpret_cast(gles2wLoad("glFinish")); + glFlush = reinterpret_cast(gles2wLoad("glFlush")); + glFramebufferRenderbuffer = reinterpret_cast(gles2wLoad("glFramebufferRenderbuffer")); + glFramebufferTexture2D = reinterpret_cast(gles2wLoad("glFramebufferTexture2D")); + glFrontFace = reinterpret_cast(gles2wLoad("glFrontFace")); + glGenBuffers = reinterpret_cast(gles2wLoad("glGenBuffers")); + glGenerateMipmap = reinterpret_cast(gles2wLoad("glGenerateMipmap")); + glGenFramebuffers = reinterpret_cast(gles2wLoad("glGenFramebuffers")); + glGenRenderbuffers = reinterpret_cast(gles2wLoad("glGenRenderbuffers")); + glGenTextures = reinterpret_cast(gles2wLoad("glGenTextures")); + glGetActiveAttrib = reinterpret_cast(gles2wLoad("glGetActiveAttrib")); + glGetActiveUniform = reinterpret_cast(gles2wLoad("glGetActiveUniform")); + glGetAttachedShaders = reinterpret_cast(gles2wLoad("glGetAttachedShaders")); + glGetAttribLocation = reinterpret_cast(gles2wLoad("glGetAttribLocation")); + glGetBooleanv = reinterpret_cast(gles2wLoad("glGetBooleanv")); + glGetBufferParameteriv = reinterpret_cast(gles2wLoad("glGetBufferParameteriv")); + glGetError = reinterpret_cast(gles2wLoad("glGetError")); + glGetFloatv = reinterpret_cast(gles2wLoad("glGetFloatv")); glGetFramebufferAttachmentParameteriv = reinterpret_cast(gles2wLoad("glGetFramebufferAttachmentParameteriv")); - glGetIntegerv = reinterpret_cast(gles2wLoad("glGetIntegerv")); - glGetProgramiv = reinterpret_cast(gles2wLoad("glGetProgramiv")); - glGetProgramInfoLog = reinterpret_cast(gles2wLoad("glGetProgramInfoLog")); - glGetRenderbufferParameteriv = reinterpret_cast(gles2wLoad("glGetRenderbufferParameteriv")); - glGetShaderiv = reinterpret_cast(gles2wLoad("glGetShaderiv")); - glGetShaderInfoLog = reinterpret_cast(gles2wLoad("glGetShaderInfoLog")); - glGetShaderPrecisionFormat = reinterpret_cast(gles2wLoad("glGetShaderPrecisionFormat")); - glGetShaderSource = reinterpret_cast(gles2wLoad("glGetShaderSource")); - glGetString = reinterpret_cast(gles2wLoad("glGetString")); - glGetTexParameterfv = reinterpret_cast(gles2wLoad("glGetTexParameterfv")); - glGetTexParameteriv = reinterpret_cast(gles2wLoad("glGetTexParameteriv")); - glGetUniformfv = reinterpret_cast(gles2wLoad("glGetUniformfv")); - glGetUniformiv = reinterpret_cast(gles2wLoad("glGetUniformiv")); - glGetUniformLocation = reinterpret_cast(gles2wLoad("glGetUniformLocation")); - glGetVertexAttribfv = reinterpret_cast(gles2wLoad("glGetVertexAttribfv")); - glGetVertexAttribiv = reinterpret_cast(gles2wLoad("glGetVertexAttribiv")); - glGetVertexAttribPointerv = reinterpret_cast(gles2wLoad("glGetVertexAttribPointerv")); - glHint = reinterpret_cast(gles2wLoad("glHint")); - glIsBuffer = reinterpret_cast(gles2wLoad("glIsBuffer")); - glIsEnabled = reinterpret_cast(gles2wLoad("glIsEnabled")); - glIsFramebuffer = reinterpret_cast(gles2wLoad("glIsFramebuffer")); - glIsProgram = reinterpret_cast(gles2wLoad("glIsProgram")); - glIsRenderbuffer = reinterpret_cast(gles2wLoad("glIsRenderbuffer")); - glIsShader = reinterpret_cast(gles2wLoad("glIsShader")); - glIsTexture = reinterpret_cast(gles2wLoad("glIsTexture")); - glLineWidth = reinterpret_cast(gles2wLoad("glLineWidth")); - glLinkProgram = reinterpret_cast(gles2wLoad("glLinkProgram")); - glPixelStorei = reinterpret_cast(gles2wLoad("glPixelStorei")); - glPolygonOffset = reinterpret_cast(gles2wLoad("glPolygonOffset")); - glReadPixels = reinterpret_cast(gles2wLoad("glReadPixels")); - glReleaseShaderCompiler = reinterpret_cast(gles2wLoad("glReleaseShaderCompiler")); - glRenderbufferStorage = reinterpret_cast(gles2wLoad("glRenderbufferStorage")); - glSampleCoverage = reinterpret_cast(gles2wLoad("glSampleCoverage")); - glScissor = reinterpret_cast(gles2wLoad("glScissor")); - glShaderBinary = reinterpret_cast(gles2wLoad("glShaderBinary")); - glShaderSource = reinterpret_cast(gles2wLoad("glShaderSource")); - glStencilFunc = reinterpret_cast(gles2wLoad("glStencilFunc")); - glStencilFuncSeparate = reinterpret_cast(gles2wLoad("glStencilFuncSeparate")); - glStencilMask = reinterpret_cast(gles2wLoad("glStencilMask")); - glStencilMaskSeparate = reinterpret_cast(gles2wLoad("glStencilMaskSeparate")); - glStencilOp = reinterpret_cast(gles2wLoad("glStencilOp")); - glStencilOpSeparate = reinterpret_cast(gles2wLoad("glStencilOpSeparate")); - glTexImage2D = reinterpret_cast(gles2wLoad("glTexImage2D")); - glTexParameterf = reinterpret_cast(gles2wLoad("glTexParameterf")); - glTexParameterfv = reinterpret_cast(gles2wLoad("glTexParameterfv")); - glTexParameteri = reinterpret_cast(gles2wLoad("glTexParameteri")); - glTexParameteriv = reinterpret_cast(gles2wLoad("glTexParameteriv")); - glTexSubImage2D = reinterpret_cast(gles2wLoad("glTexSubImage2D")); - glUniform1f = reinterpret_cast(gles2wLoad("glUniform1f")); - glUniform1fv = reinterpret_cast(gles2wLoad("glUniform1fv")); - glUniform1i = reinterpret_cast(gles2wLoad("glUniform1i")); - glUniform1iv = reinterpret_cast(gles2wLoad("glUniform1iv")); - glUniform2f = reinterpret_cast(gles2wLoad("glUniform2f")); - glUniform2fv = reinterpret_cast(gles2wLoad("glUniform2fv")); - glUniform2i = reinterpret_cast(gles2wLoad("glUniform2i")); - glUniform2iv = reinterpret_cast(gles2wLoad("glUniform2iv")); - glUniform3f = reinterpret_cast(gles2wLoad("glUniform3f")); - glUniform3fv = reinterpret_cast(gles2wLoad("glUniform3fv")); - glUniform3i = reinterpret_cast(gles2wLoad("glUniform3i")); - glUniform3iv = reinterpret_cast(gles2wLoad("glUniform3iv")); - glUniform4f = reinterpret_cast(gles2wLoad("glUniform4f")); - glUniform4fv = reinterpret_cast(gles2wLoad("glUniform4fv")); - glUniform4i = reinterpret_cast(gles2wLoad("glUniform4i")); - glUniform4iv = reinterpret_cast(gles2wLoad("glUniform4iv")); - glUniformMatrix2fv = reinterpret_cast(gles2wLoad("glUniformMatrix2fv")); - glUniformMatrix3fv = reinterpret_cast(gles2wLoad("glUniformMatrix3fv")); - glUniformMatrix4fv = reinterpret_cast(gles2wLoad("glUniformMatrix4fv")); - glUseProgram = reinterpret_cast(gles2wLoad("glUseProgram")); - glValidateProgram = reinterpret_cast(gles2wLoad("glValidateProgram")); - glVertexAttrib1f = reinterpret_cast(gles2wLoad("glVertexAttrib1f")); - glVertexAttrib1fv = reinterpret_cast(gles2wLoad("glVertexAttrib1fv")); - glVertexAttrib2f = reinterpret_cast(gles2wLoad("glVertexAttrib2f")); - glVertexAttrib2fv = reinterpret_cast(gles2wLoad("glVertexAttrib2fv")); - glVertexAttrib3f = reinterpret_cast(gles2wLoad("glVertexAttrib3f")); - glVertexAttrib3fv = reinterpret_cast(gles2wLoad("glVertexAttrib3fv")); - glVertexAttrib4f = reinterpret_cast(gles2wLoad("glVertexAttrib4f")); - glVertexAttrib4fv = reinterpret_cast(gles2wLoad("glVertexAttrib4fv")); - glVertexAttribPointer = reinterpret_cast(gles2wLoad("glVertexAttribPointer")); - glViewport = reinterpret_cast(gles2wLoad("glViewport")); - + glGetIntegerv = reinterpret_cast(gles2wLoad("glGetIntegerv")); + glGetProgramiv = reinterpret_cast(gles2wLoad("glGetProgramiv")); + glGetProgramInfoLog = reinterpret_cast(gles2wLoad("glGetProgramInfoLog")); + glGetRenderbufferParameteriv = reinterpret_cast(gles2wLoad("glGetRenderbufferParameteriv")); + glGetShaderiv = reinterpret_cast(gles2wLoad("glGetShaderiv")); + glGetShaderInfoLog = reinterpret_cast(gles2wLoad("glGetShaderInfoLog")); + glGetShaderPrecisionFormat = reinterpret_cast(gles2wLoad("glGetShaderPrecisionFormat")); + glGetShaderSource = reinterpret_cast(gles2wLoad("glGetShaderSource")); + glGetString = reinterpret_cast(gles2wLoad("glGetString")); + glGetTexParameterfv = reinterpret_cast(gles2wLoad("glGetTexParameterfv")); + glGetTexParameteriv = reinterpret_cast(gles2wLoad("glGetTexParameteriv")); + glGetUniformfv = reinterpret_cast(gles2wLoad("glGetUniformfv")); + glGetUniformiv = reinterpret_cast(gles2wLoad("glGetUniformiv")); + glGetUniformLocation = reinterpret_cast(gles2wLoad("glGetUniformLocation")); + glGetVertexAttribfv = reinterpret_cast(gles2wLoad("glGetVertexAttribfv")); + glGetVertexAttribiv = reinterpret_cast(gles2wLoad("glGetVertexAttribiv")); + glGetVertexAttribPointerv = reinterpret_cast(gles2wLoad("glGetVertexAttribPointerv")); + glHint = reinterpret_cast(gles2wLoad("glHint")); + glIsBuffer = reinterpret_cast(gles2wLoad("glIsBuffer")); + glIsEnabled = reinterpret_cast(gles2wLoad("glIsEnabled")); + glIsFramebuffer = reinterpret_cast(gles2wLoad("glIsFramebuffer")); + glIsProgram = reinterpret_cast(gles2wLoad("glIsProgram")); + glIsRenderbuffer = reinterpret_cast(gles2wLoad("glIsRenderbuffer")); + glIsShader = reinterpret_cast(gles2wLoad("glIsShader")); + glIsTexture = reinterpret_cast(gles2wLoad("glIsTexture")); + glLineWidth = reinterpret_cast(gles2wLoad("glLineWidth")); + glLinkProgram = reinterpret_cast(gles2wLoad("glLinkProgram")); + glPixelStorei = reinterpret_cast(gles2wLoad("glPixelStorei")); + glPolygonOffset = reinterpret_cast(gles2wLoad("glPolygonOffset")); + glReadPixels = reinterpret_cast(gles2wLoad("glReadPixels")); + glReleaseShaderCompiler = reinterpret_cast(gles2wLoad("glReleaseShaderCompiler")); + glRenderbufferStorage = reinterpret_cast(gles2wLoad("glRenderbufferStorage")); + glSampleCoverage = reinterpret_cast(gles2wLoad("glSampleCoverage")); + glScissor = reinterpret_cast(gles2wLoad("glScissor")); + glShaderBinary = reinterpret_cast(gles2wLoad("glShaderBinary")); + glShaderSource = reinterpret_cast(gles2wLoad("glShaderSource")); + glStencilFunc = reinterpret_cast(gles2wLoad("glStencilFunc")); + glStencilFuncSeparate = reinterpret_cast(gles2wLoad("glStencilFuncSeparate")); + glStencilMask = reinterpret_cast(gles2wLoad("glStencilMask")); + glStencilMaskSeparate = reinterpret_cast(gles2wLoad("glStencilMaskSeparate")); + glStencilOp = reinterpret_cast(gles2wLoad("glStencilOp")); + glStencilOpSeparate = reinterpret_cast(gles2wLoad("glStencilOpSeparate")); + glTexImage2D = reinterpret_cast(gles2wLoad("glTexImage2D")); + glTexParameterf = reinterpret_cast(gles2wLoad("glTexParameterf")); + glTexParameterfv = reinterpret_cast(gles2wLoad("glTexParameterfv")); + glTexParameteri = reinterpret_cast(gles2wLoad("glTexParameteri")); + glTexParameteriv = reinterpret_cast(gles2wLoad("glTexParameteriv")); + glTexSubImage2D = reinterpret_cast(gles2wLoad("glTexSubImage2D")); + glUniform1f = reinterpret_cast(gles2wLoad("glUniform1f")); + glUniform1fv = reinterpret_cast(gles2wLoad("glUniform1fv")); + glUniform1i = reinterpret_cast(gles2wLoad("glUniform1i")); + glUniform1iv = reinterpret_cast(gles2wLoad("glUniform1iv")); + glUniform2f = reinterpret_cast(gles2wLoad("glUniform2f")); + glUniform2fv = reinterpret_cast(gles2wLoad("glUniform2fv")); + glUniform2i = reinterpret_cast(gles2wLoad("glUniform2i")); + glUniform2iv = reinterpret_cast(gles2wLoad("glUniform2iv")); + glUniform3f = reinterpret_cast(gles2wLoad("glUniform3f")); + glUniform3fv = reinterpret_cast(gles2wLoad("glUniform3fv")); + glUniform3i = reinterpret_cast(gles2wLoad("glUniform3i")); + glUniform3iv = reinterpret_cast(gles2wLoad("glUniform3iv")); + glUniform4f = reinterpret_cast(gles2wLoad("glUniform4f")); + glUniform4fv = reinterpret_cast(gles2wLoad("glUniform4fv")); + glUniform4i = reinterpret_cast(gles2wLoad("glUniform4i")); + glUniform4iv = reinterpret_cast(gles2wLoad("glUniform4iv")); + glUniformMatrix2fv = reinterpret_cast(gles2wLoad("glUniformMatrix2fv")); + glUniformMatrix3fv = reinterpret_cast(gles2wLoad("glUniformMatrix3fv")); + glUniformMatrix4fv = reinterpret_cast(gles2wLoad("glUniformMatrix4fv")); + glUseProgram = reinterpret_cast(gles2wLoad("glUseProgram")); + glValidateProgram = reinterpret_cast(gles2wLoad("glValidateProgram")); + glVertexAttrib1f = reinterpret_cast(gles2wLoad("glVertexAttrib1f")); + glVertexAttrib1fv = reinterpret_cast(gles2wLoad("glVertexAttrib1fv")); + glVertexAttrib2f = reinterpret_cast(gles2wLoad("glVertexAttrib2f")); + glVertexAttrib2fv = reinterpret_cast(gles2wLoad("glVertexAttrib2fv")); + glVertexAttrib3f = reinterpret_cast(gles2wLoad("glVertexAttrib3f")); + glVertexAttrib3fv = reinterpret_cast(gles2wLoad("glVertexAttrib3fv")); + glVertexAttrib4f = reinterpret_cast(gles2wLoad("glVertexAttrib4f")); + glVertexAttrib4fv = reinterpret_cast(gles2wLoad("glVertexAttrib4fv")); + glVertexAttribPointer = reinterpret_cast(gles2wLoad("glVertexAttribPointer")); + glViewport = reinterpret_cast(gles2wLoad("glViewport")); #if defined(GL_AMD_framebuffer_multisample_advanced) - glRenderbufferStorageMultisampleAdvancedAMD = reinterpret_cast(gles2wLoad("glRenderbufferStorageMultisampleAdvancedAMD")); + glRenderbufferStorageMultisampleAdvancedAMD = reinterpret_cast(gles2wLoad("glRenderbufferStorageMultisampleAdvancedAMD")); glNamedRenderbufferStorageMultisampleAdvancedAMD = reinterpret_cast(gles2wLoad("glNamedRenderbufferStorageMultisampleAdvancedAMD")); #endif /* defined(GL_AMD_framebuffer_multisample_advanced) */ #if defined(GL_AMD_performance_monitor) - glGetPerfMonitorGroupsAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorGroupsAMD")); - glGetPerfMonitorCountersAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorCountersAMD")); - glGetPerfMonitorGroupStringAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorGroupStringAMD")); + glGetPerfMonitorGroupsAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorGroupsAMD")); + glGetPerfMonitorCountersAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorCountersAMD")); + glGetPerfMonitorGroupStringAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorGroupStringAMD")); glGetPerfMonitorCounterStringAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorCounterStringAMD")); - glGetPerfMonitorCounterInfoAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorCounterInfoAMD")); - glGenPerfMonitorsAMD = reinterpret_cast(gles2wLoad("glGenPerfMonitorsAMD")); - glDeletePerfMonitorsAMD = reinterpret_cast(gles2wLoad("glDeletePerfMonitorsAMD")); - glSelectPerfMonitorCountersAMD = reinterpret_cast(gles2wLoad("glSelectPerfMonitorCountersAMD")); - glBeginPerfMonitorAMD = reinterpret_cast(gles2wLoad("glBeginPerfMonitorAMD")); - glEndPerfMonitorAMD = reinterpret_cast(gles2wLoad("glEndPerfMonitorAMD")); - glGetPerfMonitorCounterDataAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorCounterDataAMD")); + glGetPerfMonitorCounterInfoAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorCounterInfoAMD")); + glGenPerfMonitorsAMD = reinterpret_cast(gles2wLoad("glGenPerfMonitorsAMD")); + glDeletePerfMonitorsAMD = reinterpret_cast(gles2wLoad("glDeletePerfMonitorsAMD")); + glSelectPerfMonitorCountersAMD = reinterpret_cast(gles2wLoad("glSelectPerfMonitorCountersAMD")); + glBeginPerfMonitorAMD = reinterpret_cast(gles2wLoad("glBeginPerfMonitorAMD")); + glEndPerfMonitorAMD = reinterpret_cast(gles2wLoad("glEndPerfMonitorAMD")); + glGetPerfMonitorCounterDataAMD = reinterpret_cast(gles2wLoad("glGetPerfMonitorCounterDataAMD")); #endif /* defined(GL_AMD_performance_monitor) */ #if defined(GL_ANGLE_framebuffer_blit) @@ -1299,9 +1296,9 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_ANGLE_framebuffer_multisample) */ #if defined(GL_ANGLE_instanced_arrays) - glDrawArraysInstancedANGLE = reinterpret_cast(gles2wLoad("glDrawArraysInstancedANGLE")); + glDrawArraysInstancedANGLE = reinterpret_cast(gles2wLoad("glDrawArraysInstancedANGLE")); glDrawElementsInstancedANGLE = reinterpret_cast(gles2wLoad("glDrawElementsInstancedANGLE")); - glVertexAttribDivisorANGLE = reinterpret_cast(gles2wLoad("glVertexAttribDivisorANGLE")); + glVertexAttribDivisorANGLE = reinterpret_cast(gles2wLoad("glVertexAttribDivisorANGLE")); #endif /* defined(GL_ANGLE_instanced_arrays) */ #if defined(GL_ANGLE_translated_shader_source) @@ -1314,17 +1311,17 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_APPLE_framebuffer_multisample) glRenderbufferStorageMultisampleAPPLE = reinterpret_cast(gles2wLoad("glRenderbufferStorageMultisampleAPPLE")); - glResolveMultisampleFramebufferAPPLE = reinterpret_cast(gles2wLoad("glResolveMultisampleFramebufferAPPLE")); + glResolveMultisampleFramebufferAPPLE = reinterpret_cast(gles2wLoad("glResolveMultisampleFramebufferAPPLE")); #endif /* defined(GL_APPLE_framebuffer_multisample) */ #if defined(GL_APPLE_sync) - glFenceSyncAPPLE = reinterpret_cast(gles2wLoad("glFenceSyncAPPLE")); - glIsSyncAPPLE = reinterpret_cast(gles2wLoad("glIsSyncAPPLE")); - glDeleteSyncAPPLE = reinterpret_cast(gles2wLoad("glDeleteSyncAPPLE")); + glFenceSyncAPPLE = reinterpret_cast(gles2wLoad("glFenceSyncAPPLE")); + glIsSyncAPPLE = reinterpret_cast(gles2wLoad("glIsSyncAPPLE")); + glDeleteSyncAPPLE = reinterpret_cast(gles2wLoad("glDeleteSyncAPPLE")); glClientWaitSyncAPPLE = reinterpret_cast(gles2wLoad("glClientWaitSyncAPPLE")); - glWaitSyncAPPLE = reinterpret_cast(gles2wLoad("glWaitSyncAPPLE")); - glGetInteger64vAPPLE = reinterpret_cast(gles2wLoad("glGetInteger64vAPPLE")); - glGetSyncivAPPLE = reinterpret_cast(gles2wLoad("glGetSyncivAPPLE")); + glWaitSyncAPPLE = reinterpret_cast(gles2wLoad("glWaitSyncAPPLE")); + glGetInteger64vAPPLE = reinterpret_cast(gles2wLoad("glGetInteger64vAPPLE")); + glGetSyncivAPPLE = reinterpret_cast(gles2wLoad("glGetSyncivAPPLE")); #endif /* defined(GL_APPLE_sync) */ #if defined(GL_EXT_EGL_image_storage) @@ -1334,16 +1331,16 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_EGL_image_storage) */ #if defined(GL_EXT_base_instance) - glDrawArraysInstancedBaseInstanceEXT = reinterpret_cast(gles2wLoad("glDrawArraysInstancedBaseInstanceEXT")); - glDrawElementsInstancedBaseInstanceEXT = reinterpret_cast(gles2wLoad("glDrawElementsInstancedBaseInstanceEXT")); + glDrawArraysInstancedBaseInstanceEXT = reinterpret_cast(gles2wLoad("glDrawArraysInstancedBaseInstanceEXT")); + glDrawElementsInstancedBaseInstanceEXT = reinterpret_cast(gles2wLoad("glDrawElementsInstancedBaseInstanceEXT")); glDrawElementsInstancedBaseVertexBaseInstanceEXT = reinterpret_cast(gles2wLoad("glDrawElementsInstancedBaseVertexBaseInstanceEXT")); #endif /* defined(GL_EXT_base_instance) */ #if defined(GL_EXT_blend_func_extended) - glBindFragDataLocationIndexedEXT = reinterpret_cast(gles2wLoad("glBindFragDataLocationIndexedEXT")); - glBindFragDataLocationEXT = reinterpret_cast(gles2wLoad("glBindFragDataLocationEXT")); + glBindFragDataLocationIndexedEXT = reinterpret_cast(gles2wLoad("glBindFragDataLocationIndexedEXT")); + glBindFragDataLocationEXT = reinterpret_cast(gles2wLoad("glBindFragDataLocationEXT")); glGetProgramResourceLocationIndexEXT = reinterpret_cast(gles2wLoad("glGetProgramResourceLocationIndexEXT")); - glGetFragDataIndexEXT = reinterpret_cast(gles2wLoad("glGetFragDataIndexEXT")); + glGetFragDataIndexEXT = reinterpret_cast(gles2wLoad("glGetFragDataIndexEXT")); #endif /* defined(GL_EXT_blend_func_extended) */ #if defined(GL_EXT_buffer_storage) @@ -1351,7 +1348,7 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_buffer_storage) */ #if defined(GL_EXT_clear_texture) - glClearTexImageEXT = reinterpret_cast(gles2wLoad("glClearTexImageEXT")); + glClearTexImageEXT = reinterpret_cast(gles2wLoad("glClearTexImageEXT")); glClearTexSubImageEXT = reinterpret_cast(gles2wLoad("glClearTexSubImageEXT")); #endif /* defined(GL_EXT_clear_texture) */ @@ -1364,14 +1361,14 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_copy_image) */ #if defined(GL_EXT_debug_label) - glLabelObjectEXT = reinterpret_cast(gles2wLoad("glLabelObjectEXT")); + glLabelObjectEXT = reinterpret_cast(gles2wLoad("glLabelObjectEXT")); glGetObjectLabelEXT = reinterpret_cast(gles2wLoad("glGetObjectLabelEXT")); #endif /* defined(GL_EXT_debug_label) */ #if defined(GL_EXT_debug_marker) glInsertEventMarkerEXT = reinterpret_cast(gles2wLoad("glInsertEventMarkerEXT")); - glPushGroupMarkerEXT = reinterpret_cast(gles2wLoad("glPushGroupMarkerEXT")); - glPopGroupMarkerEXT = reinterpret_cast(gles2wLoad("glPopGroupMarkerEXT")); + glPushGroupMarkerEXT = reinterpret_cast(gles2wLoad("glPushGroupMarkerEXT")); + glPopGroupMarkerEXT = reinterpret_cast(gles2wLoad("glPopGroupMarkerEXT")); #endif /* defined(GL_EXT_debug_marker) */ #if defined(GL_EXT_discard_framebuffer) @@ -1379,18 +1376,18 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_discard_framebuffer) */ #if defined(GL_EXT_disjoint_timer_query) - glGenQueriesEXT = reinterpret_cast(gles2wLoad("glGenQueriesEXT")); - glDeleteQueriesEXT = reinterpret_cast(gles2wLoad("glDeleteQueriesEXT")); - glIsQueryEXT = reinterpret_cast(gles2wLoad("glIsQueryEXT")); - glBeginQueryEXT = reinterpret_cast(gles2wLoad("glBeginQueryEXT")); - glEndQueryEXT = reinterpret_cast(gles2wLoad("glEndQueryEXT")); - glQueryCounterEXT = reinterpret_cast(gles2wLoad("glQueryCounterEXT")); - glGetQueryivEXT = reinterpret_cast(gles2wLoad("glGetQueryivEXT")); - glGetQueryObjectivEXT = reinterpret_cast(gles2wLoad("glGetQueryObjectivEXT")); - glGetQueryObjectuivEXT = reinterpret_cast(gles2wLoad("glGetQueryObjectuivEXT")); - glGetQueryObjecti64vEXT = reinterpret_cast(gles2wLoad("glGetQueryObjecti64vEXT")); + glGenQueriesEXT = reinterpret_cast(gles2wLoad("glGenQueriesEXT")); + glDeleteQueriesEXT = reinterpret_cast(gles2wLoad("glDeleteQueriesEXT")); + glIsQueryEXT = reinterpret_cast(gles2wLoad("glIsQueryEXT")); + glBeginQueryEXT = reinterpret_cast(gles2wLoad("glBeginQueryEXT")); + glEndQueryEXT = reinterpret_cast(gles2wLoad("glEndQueryEXT")); + glQueryCounterEXT = reinterpret_cast(gles2wLoad("glQueryCounterEXT")); + glGetQueryivEXT = reinterpret_cast(gles2wLoad("glGetQueryivEXT")); + glGetQueryObjectivEXT = reinterpret_cast(gles2wLoad("glGetQueryObjectivEXT")); + glGetQueryObjectuivEXT = reinterpret_cast(gles2wLoad("glGetQueryObjectuivEXT")); + glGetQueryObjecti64vEXT = reinterpret_cast(gles2wLoad("glGetQueryObjecti64vEXT")); glGetQueryObjectui64vEXT = reinterpret_cast(gles2wLoad("glGetQueryObjectui64vEXT")); - glGetInteger64vEXT = reinterpret_cast(gles2wLoad("glGetInteger64vEXT")); + glGetInteger64vEXT = reinterpret_cast(gles2wLoad("glGetInteger64vEXT")); #endif /* defined(GL_EXT_disjoint_timer_query) */ #if defined(GL_EXT_draw_buffers) @@ -1398,35 +1395,35 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_draw_buffers) */ #if defined(GL_EXT_draw_buffers_indexed) - glEnableiEXT = reinterpret_cast(gles2wLoad("glEnableiEXT")); - glDisableiEXT = reinterpret_cast(gles2wLoad("glDisableiEXT")); - glBlendEquationiEXT = reinterpret_cast(gles2wLoad("glBlendEquationiEXT")); + glEnableiEXT = reinterpret_cast(gles2wLoad("glEnableiEXT")); + glDisableiEXT = reinterpret_cast(gles2wLoad("glDisableiEXT")); + glBlendEquationiEXT = reinterpret_cast(gles2wLoad("glBlendEquationiEXT")); glBlendEquationSeparateiEXT = reinterpret_cast(gles2wLoad("glBlendEquationSeparateiEXT")); - glBlendFunciEXT = reinterpret_cast(gles2wLoad("glBlendFunciEXT")); - glBlendFuncSeparateiEXT = reinterpret_cast(gles2wLoad("glBlendFuncSeparateiEXT")); - glColorMaskiEXT = reinterpret_cast(gles2wLoad("glColorMaskiEXT")); - glIsEnablediEXT = reinterpret_cast(gles2wLoad("glIsEnablediEXT")); + glBlendFunciEXT = reinterpret_cast(gles2wLoad("glBlendFunciEXT")); + glBlendFuncSeparateiEXT = reinterpret_cast(gles2wLoad("glBlendFuncSeparateiEXT")); + glColorMaskiEXT = reinterpret_cast(gles2wLoad("glColorMaskiEXT")); + glIsEnablediEXT = reinterpret_cast(gles2wLoad("glIsEnablediEXT")); #endif /* defined(GL_EXT_draw_buffers_indexed) */ #if defined(GL_EXT_draw_elements_base_vertex) - glDrawElementsBaseVertexEXT = reinterpret_cast(gles2wLoad("glDrawElementsBaseVertexEXT")); - glDrawRangeElementsBaseVertexEXT = reinterpret_cast(gles2wLoad("glDrawRangeElementsBaseVertexEXT")); + glDrawElementsBaseVertexEXT = reinterpret_cast(gles2wLoad("glDrawElementsBaseVertexEXT")); + glDrawRangeElementsBaseVertexEXT = reinterpret_cast(gles2wLoad("glDrawRangeElementsBaseVertexEXT")); glDrawElementsInstancedBaseVertexEXT = reinterpret_cast(gles2wLoad("glDrawElementsInstancedBaseVertexEXT")); - glMultiDrawElementsBaseVertexEXT = reinterpret_cast(gles2wLoad("glMultiDrawElementsBaseVertexEXT")); + glMultiDrawElementsBaseVertexEXT = reinterpret_cast(gles2wLoad("glMultiDrawElementsBaseVertexEXT")); #endif /* defined(GL_EXT_draw_elements_base_vertex) */ #if defined(GL_EXT_draw_instanced) - glDrawArraysInstancedEXT = reinterpret_cast(gles2wLoad("glDrawArraysInstancedEXT")); + glDrawArraysInstancedEXT = reinterpret_cast(gles2wLoad("glDrawArraysInstancedEXT")); glDrawElementsInstancedEXT = reinterpret_cast(gles2wLoad("glDrawElementsInstancedEXT")); #endif /* defined(GL_EXT_draw_instanced) */ #if defined(GL_EXT_draw_transform_feedback) - glDrawTransformFeedbackEXT = reinterpret_cast(gles2wLoad("glDrawTransformFeedbackEXT")); + glDrawTransformFeedbackEXT = reinterpret_cast(gles2wLoad("glDrawTransformFeedbackEXT")); glDrawTransformFeedbackInstancedEXT = reinterpret_cast(gles2wLoad("glDrawTransformFeedbackInstancedEXT")); #endif /* defined(GL_EXT_draw_transform_feedback) */ #if defined(GL_EXT_external_buffer) - glBufferStorageExternalEXT = reinterpret_cast(gles2wLoad("glBufferStorageExternalEXT")); + glBufferStorageExternalEXT = reinterpret_cast(gles2wLoad("glBufferStorageExternalEXT")); glNamedBufferStorageExternalEXT = reinterpret_cast(gles2wLoad("glNamedBufferStorageExternalEXT")); #endif /* defined(GL_EXT_external_buffer) */ @@ -1439,29 +1436,29 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_instanced_arrays) */ #if defined(GL_EXT_map_buffer_range) - glMapBufferRangeEXT = reinterpret_cast(gles2wLoad("glMapBufferRangeEXT")); + glMapBufferRangeEXT = reinterpret_cast(gles2wLoad("glMapBufferRangeEXT")); glFlushMappedBufferRangeEXT = reinterpret_cast(gles2wLoad("glFlushMappedBufferRangeEXT")); #endif /* defined(GL_EXT_map_buffer_range) */ #if defined(GL_EXT_memory_object) - glGetUnsignedBytevEXT = reinterpret_cast(gles2wLoad("glGetUnsignedBytevEXT")); - glGetUnsignedBytei_vEXT = reinterpret_cast(gles2wLoad("glGetUnsignedBytei_vEXT")); - glDeleteMemoryObjectsEXT = reinterpret_cast(gles2wLoad("glDeleteMemoryObjectsEXT")); - glIsMemoryObjectEXT = reinterpret_cast(gles2wLoad("glIsMemoryObjectEXT")); - glCreateMemoryObjectsEXT = reinterpret_cast(gles2wLoad("glCreateMemoryObjectsEXT")); - glMemoryObjectParameterivEXT = reinterpret_cast(gles2wLoad("glMemoryObjectParameterivEXT")); + glGetUnsignedBytevEXT = reinterpret_cast(gles2wLoad("glGetUnsignedBytevEXT")); + glGetUnsignedBytei_vEXT = reinterpret_cast(gles2wLoad("glGetUnsignedBytei_vEXT")); + glDeleteMemoryObjectsEXT = reinterpret_cast(gles2wLoad("glDeleteMemoryObjectsEXT")); + glIsMemoryObjectEXT = reinterpret_cast(gles2wLoad("glIsMemoryObjectEXT")); + glCreateMemoryObjectsEXT = reinterpret_cast(gles2wLoad("glCreateMemoryObjectsEXT")); + glMemoryObjectParameterivEXT = reinterpret_cast(gles2wLoad("glMemoryObjectParameterivEXT")); glGetMemoryObjectParameterivEXT = reinterpret_cast(gles2wLoad("glGetMemoryObjectParameterivEXT")); - glTexStorageMem2DEXT = reinterpret_cast(gles2wLoad("glTexStorageMem2DEXT")); + glTexStorageMem2DEXT = reinterpret_cast(gles2wLoad("glTexStorageMem2DEXT")); glTexStorageMem2DMultisampleEXT = reinterpret_cast(gles2wLoad("glTexStorageMem2DMultisampleEXT")); - glTexStorageMem3DEXT = reinterpret_cast(gles2wLoad("glTexStorageMem3DEXT")); + glTexStorageMem3DEXT = reinterpret_cast(gles2wLoad("glTexStorageMem3DEXT")); glTexStorageMem3DMultisampleEXT = reinterpret_cast(gles2wLoad("glTexStorageMem3DMultisampleEXT")); - glBufferStorageMemEXT = reinterpret_cast(gles2wLoad("glBufferStorageMemEXT")); + glBufferStorageMemEXT = reinterpret_cast(gles2wLoad("glBufferStorageMemEXT")); - glTextureStorageMem2DEXT = reinterpret_cast(gles2wLoad("glTextureStorageMem2DEXT")); + glTextureStorageMem2DEXT = reinterpret_cast(gles2wLoad("glTextureStorageMem2DEXT")); glTextureStorageMem2DMultisampleEXT = reinterpret_cast(gles2wLoad("glTextureStorageMem2DMultisampleEXT")); - glTextureStorageMem3DEXT = reinterpret_cast(gles2wLoad("glTextureStorageMem3DEXT")); + glTextureStorageMem3DEXT = reinterpret_cast(gles2wLoad("glTextureStorageMem3DEXT")); glTextureStorageMem3DMultisampleEXT = reinterpret_cast(gles2wLoad("glTextureStorageMem3DMultisampleEXT")); - glNamedBufferStorageMemEXT = reinterpret_cast(gles2wLoad("glNamedBufferStorageMemEXT")); + glNamedBufferStorageMemEXT = reinterpret_cast(gles2wLoad("glNamedBufferStorageMemEXT")); #endif /* defined(GL_EXT_memory_object) */ #if defined(GL_EXT_memory_object_fd) @@ -1470,28 +1467,28 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_EXT_memory_object_win32) glImportMemoryWin32HandleEXT = reinterpret_cast(gles2wLoad("glImportMemoryWin32HandleEXT")); - glImportMemoryWin32NameEXT = reinterpret_cast(gles2wLoad("glImportMemoryWin32NameEXT")); + glImportMemoryWin32NameEXT = reinterpret_cast(gles2wLoad("glImportMemoryWin32NameEXT")); #endif /* defined(GL_EXT_memory_object_win32) */ #if defined(GL_EXT_multi_draw_arrays) - glMultiDrawArraysEXT = reinterpret_cast(gles2wLoad("glMultiDrawArraysEXT")); + glMultiDrawArraysEXT = reinterpret_cast(gles2wLoad("glMultiDrawArraysEXT")); glMultiDrawElementsEXT = reinterpret_cast(gles2wLoad("glMultiDrawElementsEXT")); #endif /* defined(GL_EXT_multi_draw_arrays) */ #if defined(GL_EXT_multi_draw_indirect) - glMultiDrawArraysIndirectEXT = reinterpret_cast(gles2wLoad("glMultiDrawArraysIndirectEXT")); + glMultiDrawArraysIndirectEXT = reinterpret_cast(gles2wLoad("glMultiDrawArraysIndirectEXT")); glMultiDrawElementsIndirectEXT = reinterpret_cast(gles2wLoad("glMultiDrawElementsIndirectEXT")); #endif /* defined(GL_EXT_multi_draw_indirect) */ #if defined(GL_EXT_multisampled_render_to_texture) - glRenderbufferStorageMultisampleEXT = reinterpret_cast(gles2wLoad("glRenderbufferStorageMultisampleEXT")); + glRenderbufferStorageMultisampleEXT = reinterpret_cast(gles2wLoad("glRenderbufferStorageMultisampleEXT")); glFramebufferTexture2DMultisampleEXT = reinterpret_cast(gles2wLoad("glFramebufferTexture2DMultisampleEXT")); #endif /* defined(GL_EXT_multisampled_render_to_texture) */ #if defined(GL_EXT_multiview_draw_buffers) - glReadBufferIndexedEXT = reinterpret_cast(gles2wLoad("glReadBufferIndexedEXT")); + glReadBufferIndexedEXT = reinterpret_cast(gles2wLoad("glReadBufferIndexedEXT")); glDrawBuffersIndexedEXT = reinterpret_cast(gles2wLoad("glDrawBuffersIndexedEXT")); - glGetIntegeri_vEXT = reinterpret_cast(gles2wLoad("glGetIntegeri_vEXT")); + glGetIntegeri_vEXT = reinterpret_cast(gles2wLoad("glGetIntegeri_vEXT")); #endif /* defined(GL_EXT_multiview_draw_buffers) */ #if defined(GL_EXT_polygon_offset_clamp) @@ -1508,19 +1505,19 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_EXT_robustness) glGetGraphicsResetStatusEXT = reinterpret_cast(gles2wLoad("glGetGraphicsResetStatusEXT")); - glReadnPixelsEXT = reinterpret_cast(gles2wLoad("glReadnPixelsEXT")); - glGetnUniformfvEXT = reinterpret_cast(gles2wLoad("glGetnUniformfvEXT")); - glGetnUniformivEXT = reinterpret_cast(gles2wLoad("glGetnUniformivEXT")); + glReadnPixelsEXT = reinterpret_cast(gles2wLoad("glReadnPixelsEXT")); + glGetnUniformfvEXT = reinterpret_cast(gles2wLoad("glGetnUniformfvEXT")); + glGetnUniformivEXT = reinterpret_cast(gles2wLoad("glGetnUniformivEXT")); #endif /* defined(GL_EXT_robustness) */ #if defined(GL_EXT_semaphore) - glGenSemaphoresEXT = reinterpret_cast(gles2wLoad("glGenSemaphoresEXT")); - glDeleteSemaphoresEXT = reinterpret_cast(gles2wLoad("glDeleteSemaphoresEXT")); - glIsSemaphoreEXT = reinterpret_cast(gles2wLoad("glIsSemaphoreEXT")); - glSemaphoreParameterui64vEXT = reinterpret_cast(gles2wLoad("glSemaphoreParameterui64vEXT")); + glGenSemaphoresEXT = reinterpret_cast(gles2wLoad("glGenSemaphoresEXT")); + glDeleteSemaphoresEXT = reinterpret_cast(gles2wLoad("glDeleteSemaphoresEXT")); + glIsSemaphoreEXT = reinterpret_cast(gles2wLoad("glIsSemaphoreEXT")); + glSemaphoreParameterui64vEXT = reinterpret_cast(gles2wLoad("glSemaphoreParameterui64vEXT")); glGetSemaphoreParameterui64vEXT = reinterpret_cast(gles2wLoad("glGetSemaphoreParameterui64vEXT")); - glWaitSemaphoreEXT = reinterpret_cast(gles2wLoad("glWaitSemaphoreEXT")); - glSignalSemaphoreEXT = reinterpret_cast(gles2wLoad("glSignalSemaphoreEXT")); + glWaitSemaphoreEXT = reinterpret_cast(gles2wLoad("glWaitSemaphoreEXT")); + glSignalSemaphoreEXT = reinterpret_cast(gles2wLoad("glSignalSemaphoreEXT")); #endif /* defined(GL_EXT_semaphore) */ #if defined(GL_EXT_semaphore_fd) @@ -1529,49 +1526,49 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_EXT_semaphore_win32) glImportSemaphoreWin32HandleEXT = reinterpret_cast(gles2wLoad("glImportSemaphoreWin32HandleEXT")); - glImportSemaphoreWin32NameEXT = reinterpret_cast(gles2wLoad("glImportSemaphoreWin32NameEXT")); + glImportSemaphoreWin32NameEXT = reinterpret_cast(gles2wLoad("glImportSemaphoreWin32NameEXT")); #endif /* defined(GL_EXT_semaphore_win32) */ #if defined(GL_EXT_separate_shader_objects) - glActiveShaderProgramEXT = reinterpret_cast(gles2wLoad("glActiveShaderProgramEXT")); - glBindProgramPipelineEXT = reinterpret_cast(gles2wLoad("glBindProgramPipelineEXT")); - glCreateShaderProgramvEXT = reinterpret_cast(gles2wLoad("glCreateShaderProgramvEXT")); - glDeleteProgramPipelinesEXT = reinterpret_cast(gles2wLoad("glDeleteProgramPipelinesEXT")); - glGenProgramPipelinesEXT = reinterpret_cast(gles2wLoad("glGenProgramPipelinesEXT")); + glActiveShaderProgramEXT = reinterpret_cast(gles2wLoad("glActiveShaderProgramEXT")); + glBindProgramPipelineEXT = reinterpret_cast(gles2wLoad("glBindProgramPipelineEXT")); + glCreateShaderProgramvEXT = reinterpret_cast(gles2wLoad("glCreateShaderProgramvEXT")); + glDeleteProgramPipelinesEXT = reinterpret_cast(gles2wLoad("glDeleteProgramPipelinesEXT")); + glGenProgramPipelinesEXT = reinterpret_cast(gles2wLoad("glGenProgramPipelinesEXT")); glGetProgramPipelineInfoLogEXT = reinterpret_cast(gles2wLoad("glGetProgramPipelineInfoLogEXT")); - glGetProgramPipelineivEXT = reinterpret_cast(gles2wLoad("glGetProgramPipelineivEXT")); - glIsProgramPipelineEXT = reinterpret_cast(gles2wLoad("glIsProgramPipelineEXT")); - glProgramParameteriEXT = reinterpret_cast(gles2wLoad("glProgramParameteriEXT")); - glProgramUniform1fEXT = reinterpret_cast(gles2wLoad("glProgramUniform1fEXT")); - glProgramUniform1fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform1fvEXT")); - glProgramUniform1iEXT = reinterpret_cast(gles2wLoad("glProgramUniform1iEXT")); - glProgramUniform1ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform1ivEXT")); - glProgramUniform2fEXT = reinterpret_cast(gles2wLoad("glProgramUniform2fEXT")); - glProgramUniform2fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform2fvEXT")); - glProgramUniform2iEXT = reinterpret_cast(gles2wLoad("glProgramUniform2iEXT")); - glProgramUniform2ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform2ivEXT")); - glProgramUniform3fEXT = reinterpret_cast(gles2wLoad("glProgramUniform3fEXT")); - glProgramUniform3fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform3fvEXT")); - glProgramUniform3iEXT = reinterpret_cast(gles2wLoad("glProgramUniform3iEXT")); - glProgramUniform3ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform3ivEXT")); - glProgramUniform4fEXT = reinterpret_cast(gles2wLoad("glProgramUniform4fEXT")); - glProgramUniform4fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform4fvEXT")); - glProgramUniform4iEXT = reinterpret_cast(gles2wLoad("glProgramUniform4iEXT")); - glProgramUniform4ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform4ivEXT")); - glProgramUniformMatrix2fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix2fvEXT")); - glProgramUniformMatrix3fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix3fvEXT")); - glProgramUniformMatrix4fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix4fvEXT")); - glUseProgramStagesEXT = reinterpret_cast(gles2wLoad("glUseProgramStagesEXT")); - glValidateProgramPipelineEXT = reinterpret_cast(gles2wLoad("glValidateProgramPipelineEXT")); + glGetProgramPipelineivEXT = reinterpret_cast(gles2wLoad("glGetProgramPipelineivEXT")); + glIsProgramPipelineEXT = reinterpret_cast(gles2wLoad("glIsProgramPipelineEXT")); + glProgramParameteriEXT = reinterpret_cast(gles2wLoad("glProgramParameteriEXT")); + glProgramUniform1fEXT = reinterpret_cast(gles2wLoad("glProgramUniform1fEXT")); + glProgramUniform1fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform1fvEXT")); + glProgramUniform1iEXT = reinterpret_cast(gles2wLoad("glProgramUniform1iEXT")); + glProgramUniform1ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform1ivEXT")); + glProgramUniform2fEXT = reinterpret_cast(gles2wLoad("glProgramUniform2fEXT")); + glProgramUniform2fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform2fvEXT")); + glProgramUniform2iEXT = reinterpret_cast(gles2wLoad("glProgramUniform2iEXT")); + glProgramUniform2ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform2ivEXT")); + glProgramUniform3fEXT = reinterpret_cast(gles2wLoad("glProgramUniform3fEXT")); + glProgramUniform3fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform3fvEXT")); + glProgramUniform3iEXT = reinterpret_cast(gles2wLoad("glProgramUniform3iEXT")); + glProgramUniform3ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform3ivEXT")); + glProgramUniform4fEXT = reinterpret_cast(gles2wLoad("glProgramUniform4fEXT")); + glProgramUniform4fvEXT = reinterpret_cast(gles2wLoad("glProgramUniform4fvEXT")); + glProgramUniform4iEXT = reinterpret_cast(gles2wLoad("glProgramUniform4iEXT")); + glProgramUniform4ivEXT = reinterpret_cast(gles2wLoad("glProgramUniform4ivEXT")); + glProgramUniformMatrix2fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix2fvEXT")); + glProgramUniformMatrix3fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix3fvEXT")); + glProgramUniformMatrix4fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix4fvEXT")); + glUseProgramStagesEXT = reinterpret_cast(gles2wLoad("glUseProgramStagesEXT")); + glValidateProgramPipelineEXT = reinterpret_cast(gles2wLoad("glValidateProgramPipelineEXT")); - glProgramUniform1uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform1uiEXT")); - glProgramUniform2uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform2uiEXT")); - glProgramUniform3uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform3uiEXT")); - glProgramUniform4uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform4uiEXT")); - glProgramUniform1uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform1uivEXT")); - glProgramUniform2uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform2uivEXT")); - glProgramUniform3uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform3uivEXT")); - glProgramUniform4uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform4uivEXT")); + glProgramUniform1uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform1uiEXT")); + glProgramUniform2uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform2uiEXT")); + glProgramUniform3uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform3uiEXT")); + glProgramUniform4uiEXT = reinterpret_cast(gles2wLoad("glProgramUniform4uiEXT")); + glProgramUniform1uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform1uivEXT")); + glProgramUniform2uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform2uivEXT")); + glProgramUniform3uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform3uivEXT")); + glProgramUniform4uivEXT = reinterpret_cast(gles2wLoad("glProgramUniform4uivEXT")); glProgramUniformMatrix2x3fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix2x3fvEXT")); glProgramUniformMatrix3x2fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix3x2fvEXT")); glProgramUniformMatrix2x4fvEXT = reinterpret_cast(gles2wLoad("glProgramUniformMatrix2x4fvEXT")); @@ -1585,9 +1582,9 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_shader_framebuffer_fetch_non_coherent) */ #if defined(GL_EXT_shader_pixel_local_storage2) - glFramebufferPixelLocalStorageSizeEXT = reinterpret_cast(gles2wLoad("glFramebufferPixelLocalStorageSizeEXT")); + glFramebufferPixelLocalStorageSizeEXT = reinterpret_cast(gles2wLoad("glFramebufferPixelLocalStorageSizeEXT")); glGetFramebufferPixelLocalStorageSizeEXT = reinterpret_cast(gles2wLoad("glGetFramebufferPixelLocalStorageSizeEXT")); - glClearPixelLocalStorageuiEXT = reinterpret_cast(gles2wLoad("glClearPixelLocalStorageuiEXT")); + glClearPixelLocalStorageuiEXT = reinterpret_cast(gles2wLoad("glClearPixelLocalStorageuiEXT")); #endif /* defined(GL_EXT_shader_pixel_local_storage2) */ #if defined(GL_EXT_sparse_texture) @@ -1599,18 +1596,18 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_tessellation_shader) */ #if defined(GL_EXT_texture_border_clamp) - glTexParameterIivEXT = reinterpret_cast(gles2wLoad("glTexParameterIivEXT")); - glTexParameterIuivEXT = reinterpret_cast(gles2wLoad("glTexParameterIuivEXT")); - glGetTexParameterIivEXT = reinterpret_cast(gles2wLoad("glGetTexParameterIivEXT")); - glGetTexParameterIuivEXT = reinterpret_cast(gles2wLoad("glGetTexParameterIuivEXT")); - glSamplerParameterIivEXT = reinterpret_cast(gles2wLoad("glSamplerParameterIivEXT")); - glSamplerParameterIuivEXT = reinterpret_cast(gles2wLoad("glSamplerParameterIuivEXT")); - glGetSamplerParameterIivEXT = reinterpret_cast(gles2wLoad("glGetSamplerParameterIivEXT")); + glTexParameterIivEXT = reinterpret_cast(gles2wLoad("glTexParameterIivEXT")); + glTexParameterIuivEXT = reinterpret_cast(gles2wLoad("glTexParameterIuivEXT")); + glGetTexParameterIivEXT = reinterpret_cast(gles2wLoad("glGetTexParameterIivEXT")); + glGetTexParameterIuivEXT = reinterpret_cast(gles2wLoad("glGetTexParameterIuivEXT")); + glSamplerParameterIivEXT = reinterpret_cast(gles2wLoad("glSamplerParameterIivEXT")); + glSamplerParameterIuivEXT = reinterpret_cast(gles2wLoad("glSamplerParameterIuivEXT")); + glGetSamplerParameterIivEXT = reinterpret_cast(gles2wLoad("glGetSamplerParameterIivEXT")); glGetSamplerParameterIuivEXT = reinterpret_cast(gles2wLoad("glGetSamplerParameterIuivEXT")); #endif /* defined(GL_EXT_texture_border_clamp) */ #if defined(GL_EXT_texture_buffer) - glTexBufferEXT = reinterpret_cast(gles2wLoad("glTexBufferEXT")); + glTexBufferEXT = reinterpret_cast(gles2wLoad("glTexBufferEXT")); glTexBufferRangeEXT = reinterpret_cast(gles2wLoad("glTexBufferRangeEXT")); #endif /* defined(GL_EXT_texture_buffer) */ @@ -1629,8 +1626,8 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_texture_view) */ #if defined(GL_NV_timeline_semaphore) - glCreateSemaphoresNV = reinterpret_cast(gles2wLoad("glCreateSemaphoresNV")); - glSemaphoreParameterivNV = reinterpret_cast(gles2wLoad("glSemaphoreParameterivNV")); + glCreateSemaphoresNV = reinterpret_cast(gles2wLoad("glCreateSemaphoresNV")); + glSemaphoreParameterivNV = reinterpret_cast(gles2wLoad("glSemaphoreParameterivNV")); glGetSemaphoreParameterivNV = reinterpret_cast(gles2wLoad("glGetSemaphoreParameterivNV")); #endif /* defined(GL_NV_timeline_semaphore) */ @@ -1644,21 +1641,21 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_EXT_window_rectangles) */ #if defined(GL_IMG_bindless_texture) - glGetTextureHandleIMG = reinterpret_cast(gles2wLoad("glGetTextureHandleIMG")); - glGetTextureSamplerHandleIMG = reinterpret_cast(gles2wLoad("glGetTextureSamplerHandleIMG")); - glUniformHandleui64IMG = reinterpret_cast(gles2wLoad("glUniformHandleui64IMG")); - glUniformHandleui64vIMG = reinterpret_cast(gles2wLoad("glUniformHandleui64vIMG")); - glProgramUniformHandleui64IMG = reinterpret_cast(gles2wLoad("glProgramUniformHandleui64IMG")); + glGetTextureHandleIMG = reinterpret_cast(gles2wLoad("glGetTextureHandleIMG")); + glGetTextureSamplerHandleIMG = reinterpret_cast(gles2wLoad("glGetTextureSamplerHandleIMG")); + glUniformHandleui64IMG = reinterpret_cast(gles2wLoad("glUniformHandleui64IMG")); + glUniformHandleui64vIMG = reinterpret_cast(gles2wLoad("glUniformHandleui64vIMG")); + glProgramUniformHandleui64IMG = reinterpret_cast(gles2wLoad("glProgramUniformHandleui64IMG")); glProgramUniformHandleui64vIMG = reinterpret_cast(gles2wLoad("glProgramUniformHandleui64vIMG")); #endif /* defined(GL_IMG_bindless_texture) */ #if defined(GL_IMG_framebuffer_downsample) - glFramebufferTexture2DDownsampleIMG = reinterpret_cast(gles2wLoad("glFramebufferTexture2DDownsampleIMG")); + glFramebufferTexture2DDownsampleIMG = reinterpret_cast(gles2wLoad("glFramebufferTexture2DDownsampleIMG")); glFramebufferTextureLayerDownsampleIMG = reinterpret_cast(gles2wLoad("glFramebufferTextureLayerDownsampleIMG")); #endif /* defined(GL_IMG_framebuffer_downsample) */ #if defined(GL_IMG_multisampled_render_to_texture) - glRenderbufferStorageMultisampleIMG = reinterpret_cast(gles2wLoad("glRenderbufferStorageMultisampleIMG")); + glRenderbufferStorageMultisampleIMG = reinterpret_cast(gles2wLoad("glRenderbufferStorageMultisampleIMG")); glFramebufferTexture2DMultisampleIMG = reinterpret_cast(gles2wLoad("glFramebufferTexture2DMultisampleIMG")); #endif /* defined(GL_IMG_multisampled_render_to_texture) */ @@ -1667,16 +1664,16 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_INTEL_framebuffer_CMAA) */ #if defined(GL_INTEL_performance_query) - glBeginPerfQueryINTEL = reinterpret_cast(gles2wLoad("glBeginPerfQueryINTEL")); - glCreatePerfQueryINTEL = reinterpret_cast(gles2wLoad("glCreatePerfQueryINTEL")); - glDeletePerfQueryINTEL = reinterpret_cast(gles2wLoad("glDeletePerfQueryINTEL")); - glEndPerfQueryINTEL = reinterpret_cast(gles2wLoad("glEndPerfQueryINTEL")); - glGetFirstPerfQueryIdINTEL = reinterpret_cast(gles2wLoad("glGetFirstPerfQueryIdINTEL")); - glGetNextPerfQueryIdINTEL = reinterpret_cast(gles2wLoad("glGetNextPerfQueryIdINTEL")); - glGetPerfCounterInfoINTEL = reinterpret_cast(gles2wLoad("glGetPerfCounterInfoINTEL")); - glGetPerfQueryDataINTEL = reinterpret_cast(gles2wLoad("glGetPerfQueryDataINTEL")); + glBeginPerfQueryINTEL = reinterpret_cast(gles2wLoad("glBeginPerfQueryINTEL")); + glCreatePerfQueryINTEL = reinterpret_cast(gles2wLoad("glCreatePerfQueryINTEL")); + glDeletePerfQueryINTEL = reinterpret_cast(gles2wLoad("glDeletePerfQueryINTEL")); + glEndPerfQueryINTEL = reinterpret_cast(gles2wLoad("glEndPerfQueryINTEL")); + glGetFirstPerfQueryIdINTEL = reinterpret_cast(gles2wLoad("glGetFirstPerfQueryIdINTEL")); + glGetNextPerfQueryIdINTEL = reinterpret_cast(gles2wLoad("glGetNextPerfQueryIdINTEL")); + glGetPerfCounterInfoINTEL = reinterpret_cast(gles2wLoad("glGetPerfCounterInfoINTEL")); + glGetPerfQueryDataINTEL = reinterpret_cast(gles2wLoad("glGetPerfQueryDataINTEL")); glGetPerfQueryIdByNameINTEL = reinterpret_cast(gles2wLoad("glGetPerfQueryIdByNameINTEL")); - glGetPerfQueryInfoINTEL = reinterpret_cast(gles2wLoad("glGetPerfQueryInfoINTEL")); + glGetPerfQueryInfoINTEL = reinterpret_cast(gles2wLoad("glGetPerfQueryInfoINTEL")); #endif /* defined(GL_INTEL_performance_query) */ #if defined(GL_KHR_blend_equation_advanced) @@ -1684,25 +1681,25 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_KHR_blend_equation_advanced) */ #if defined(GL_KHR_debug) - glDebugMessageControlKHR = reinterpret_cast(gles2wLoad("glDebugMessageControlKHR")); - glDebugMessageInsertKHR = reinterpret_cast(gles2wLoad("glDebugMessageInsertKHR")); + glDebugMessageControlKHR = reinterpret_cast(gles2wLoad("glDebugMessageControlKHR")); + glDebugMessageInsertKHR = reinterpret_cast(gles2wLoad("glDebugMessageInsertKHR")); glDebugMessageCallbackKHR = reinterpret_cast(gles2wLoad("glDebugMessageCallbackKHR")); - glGetDebugMessageLogKHR = reinterpret_cast(gles2wLoad("glGetDebugMessageLogKHR")); - glPushDebugGroupKHR = reinterpret_cast(gles2wLoad("glPushDebugGroupKHR")); - glPopDebugGroupKHR = reinterpret_cast(gles2wLoad("glPopDebugGroupKHR")); - glObjectLabelKHR = reinterpret_cast(gles2wLoad("glObjectLabelKHR")); - glGetObjectLabelKHR = reinterpret_cast(gles2wLoad("glGetObjectLabelKHR")); - glObjectPtrLabelKHR = reinterpret_cast(gles2wLoad("glObjectPtrLabelKHR")); - glGetObjectPtrLabelKHR = reinterpret_cast(gles2wLoad("glGetObjectPtrLabelKHR")); - glGetPointervKHR = reinterpret_cast(gles2wLoad("glGetPointervKHR")); + glGetDebugMessageLogKHR = reinterpret_cast(gles2wLoad("glGetDebugMessageLogKHR")); + glPushDebugGroupKHR = reinterpret_cast(gles2wLoad("glPushDebugGroupKHR")); + glPopDebugGroupKHR = reinterpret_cast(gles2wLoad("glPopDebugGroupKHR")); + glObjectLabelKHR = reinterpret_cast(gles2wLoad("glObjectLabelKHR")); + glGetObjectLabelKHR = reinterpret_cast(gles2wLoad("glGetObjectLabelKHR")); + glObjectPtrLabelKHR = reinterpret_cast(gles2wLoad("glObjectPtrLabelKHR")); + glGetObjectPtrLabelKHR = reinterpret_cast(gles2wLoad("glGetObjectPtrLabelKHR")); + glGetPointervKHR = reinterpret_cast(gles2wLoad("glGetPointervKHR")); #endif /* defined(GL_KHR_debug) */ #if defined(GL_KHR_robustness) glGetGraphicsResetStatusKHR = reinterpret_cast(gles2wLoad("glGetGraphicsResetStatusKHR")); - glReadnPixelsKHR = reinterpret_cast(gles2wLoad("glReadnPixelsKHR")); - glGetnUniformfvKHR = reinterpret_cast(gles2wLoad("glGetnUniformfvKHR")); - glGetnUniformivKHR = reinterpret_cast(gles2wLoad("glGetnUniformivKHR")); - glGetnUniformuivKHR = reinterpret_cast(gles2wLoad("glGetnUniformuivKHR")); + glReadnPixelsKHR = reinterpret_cast(gles2wLoad("glReadnPixelsKHR")); + glGetnUniformfvKHR = reinterpret_cast(gles2wLoad("glGetnUniformfvKHR")); + glGetnUniformivKHR = reinterpret_cast(gles2wLoad("glGetnUniformivKHR")); + glGetnUniformuivKHR = reinterpret_cast(gles2wLoad("glGetnUniformuivKHR")); #endif /* defined(GL_KHR_robustness) */ #if defined(GL_KHR_parallel_shader_compile) @@ -1710,29 +1707,29 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_KHR_parallel_shader_compile) */ #if defined(GL_MESA_framebuffer_flip_y) - glFramebufferParameteriMESA = reinterpret_cast(gles2wLoad("glFramebufferParameteriMESA")); + glFramebufferParameteriMESA = reinterpret_cast(gles2wLoad("glFramebufferParameteriMESA")); glGetFramebufferParameterivMESA = reinterpret_cast(gles2wLoad("glGetFramebufferParameterivMESA")); #endif /* defined(GL_MESA_framebuffer_flip_y) */ #if defined(GL_NV_bindless_texture) - glGetTextureHandleNV = reinterpret_cast(gles2wLoad("glGetTextureHandleNV")); - glGetTextureSamplerHandleNV = reinterpret_cast(gles2wLoad("glGetTextureSamplerHandleNV")); - glMakeTextureHandleResidentNV = reinterpret_cast(gles2wLoad("glMakeTextureHandleResidentNV")); + glGetTextureHandleNV = reinterpret_cast(gles2wLoad("glGetTextureHandleNV")); + glGetTextureSamplerHandleNV = reinterpret_cast(gles2wLoad("glGetTextureSamplerHandleNV")); + glMakeTextureHandleResidentNV = reinterpret_cast(gles2wLoad("glMakeTextureHandleResidentNV")); glMakeTextureHandleNonResidentNV = reinterpret_cast(gles2wLoad("glMakeTextureHandleNonResidentNV")); - glGetImageHandleNV = reinterpret_cast(gles2wLoad("glGetImageHandleNV")); - glMakeImageHandleResidentNV = reinterpret_cast(gles2wLoad("glMakeImageHandleResidentNV")); - glMakeImageHandleNonResidentNV = reinterpret_cast(gles2wLoad("glMakeImageHandleNonResidentNV")); - glUniformHandleui64NV = reinterpret_cast(gles2wLoad("glUniformHandleui64NV")); - glUniformHandleui64vNV = reinterpret_cast(gles2wLoad("glUniformHandleui64vNV")); - glProgramUniformHandleui64NV = reinterpret_cast(gles2wLoad("glProgramUniformHandleui64NV")); - glProgramUniformHandleui64vNV = reinterpret_cast(gles2wLoad("glProgramUniformHandleui64vNV")); - glIsTextureHandleResidentNV = reinterpret_cast(gles2wLoad("glIsTextureHandleResidentNV")); - glIsImageHandleResidentNV = reinterpret_cast(gles2wLoad("glIsImageHandleResidentNV")); + glGetImageHandleNV = reinterpret_cast(gles2wLoad("glGetImageHandleNV")); + glMakeImageHandleResidentNV = reinterpret_cast(gles2wLoad("glMakeImageHandleResidentNV")); + glMakeImageHandleNonResidentNV = reinterpret_cast(gles2wLoad("glMakeImageHandleNonResidentNV")); + glUniformHandleui64NV = reinterpret_cast(gles2wLoad("glUniformHandleui64NV")); + glUniformHandleui64vNV = reinterpret_cast(gles2wLoad("glUniformHandleui64vNV")); + glProgramUniformHandleui64NV = reinterpret_cast(gles2wLoad("glProgramUniformHandleui64NV")); + glProgramUniformHandleui64vNV = reinterpret_cast(gles2wLoad("glProgramUniformHandleui64vNV")); + glIsTextureHandleResidentNV = reinterpret_cast(gles2wLoad("glIsTextureHandleResidentNV")); + glIsImageHandleResidentNV = reinterpret_cast(gles2wLoad("glIsImageHandleResidentNV")); #endif /* defined(GL_NV_bindless_texture) */ #if defined(GL_NV_blend_equation_advanced) glBlendParameteriNV = reinterpret_cast(gles2wLoad("glBlendParameteriNV")); - glBlendBarrierNV = reinterpret_cast(gles2wLoad("glBlendBarrierNV")); + glBlendBarrierNV = reinterpret_cast(gles2wLoad("glBlendBarrierNV")); #endif /* defined(GL_NV_blend_equation_advanced) */ #if defined(GL_NV_clip_space_w_scaling) @@ -1741,7 +1738,7 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_NV_conditional_render) glBeginConditionalRenderNV = reinterpret_cast(gles2wLoad("glBeginConditionalRenderNV")); - glEndConditionalRenderNV = reinterpret_cast(gles2wLoad("glEndConditionalRenderNV")); + glEndConditionalRenderNV = reinterpret_cast(gles2wLoad("glEndConditionalRenderNV")); #endif /* defined(GL_NV_conditional_render) */ #if defined(GL_NV_conservative_raster) @@ -1757,7 +1754,7 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_NV_copy_buffer) */ #if defined(GL_NV_coverage_sample) - glCoverageMaskNV = reinterpret_cast(gles2wLoad("glCoverageMaskNV")); + glCoverageMaskNV = reinterpret_cast(gles2wLoad("glCoverageMaskNV")); glCoverageOperationNV = reinterpret_cast(gles2wLoad("glCoverageOperationNV")); #endif /* defined(GL_NV_coverage_sample) */ @@ -1766,26 +1763,26 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_NV_draw_buffers) */ #if defined(GL_NV_draw_instanced) - glDrawArraysInstancedNV = reinterpret_cast(gles2wLoad("glDrawArraysInstancedNV")); + glDrawArraysInstancedNV = reinterpret_cast(gles2wLoad("glDrawArraysInstancedNV")); glDrawElementsInstancedNV = reinterpret_cast(gles2wLoad("glDrawElementsInstancedNV")); #endif /* defined(GL_NV_draw_instanced) */ #if defined(GL_NV_draw_vulkan_image) - glDrawVkImageNV = reinterpret_cast(gles2wLoad("glDrawVkImageNV")); - glGetVkProcAddrNV = reinterpret_cast(gles2wLoad("glGetVkProcAddrNV")); - glWaitVkSemaphoreNV = reinterpret_cast(gles2wLoad("glWaitVkSemaphoreNV")); + glDrawVkImageNV = reinterpret_cast(gles2wLoad("glDrawVkImageNV")); + glGetVkProcAddrNV = reinterpret_cast(gles2wLoad("glGetVkProcAddrNV")); + glWaitVkSemaphoreNV = reinterpret_cast(gles2wLoad("glWaitVkSemaphoreNV")); glSignalVkSemaphoreNV = reinterpret_cast(gles2wLoad("glSignalVkSemaphoreNV")); - glSignalVkFenceNV = reinterpret_cast(gles2wLoad("glSignalVkFenceNV")); + glSignalVkFenceNV = reinterpret_cast(gles2wLoad("glSignalVkFenceNV")); #endif /* defined(GL_NV_draw_vulkan_image) */ #if defined(GL_NV_fence) glDeleteFencesNV = reinterpret_cast(gles2wLoad("glDeleteFencesNV")); - glGenFencesNV = reinterpret_cast(gles2wLoad("glGenFencesNV")); - glIsFenceNV = reinterpret_cast(gles2wLoad("glIsFenceNV")); - glTestFenceNV = reinterpret_cast(gles2wLoad("glTestFenceNV")); - glGetFenceivNV = reinterpret_cast(gles2wLoad("glGetFenceivNV")); - glFinishFenceNV = reinterpret_cast(gles2wLoad("glFinishFenceNV")); - glSetFenceNV = reinterpret_cast(gles2wLoad("glSetFenceNV")); + glGenFencesNV = reinterpret_cast(gles2wLoad("glGenFencesNV")); + glIsFenceNV = reinterpret_cast(gles2wLoad("glIsFenceNV")); + glTestFenceNV = reinterpret_cast(gles2wLoad("glTestFenceNV")); + glGetFenceivNV = reinterpret_cast(gles2wLoad("glGetFenceivNV")); + glFinishFenceNV = reinterpret_cast(gles2wLoad("glFinishFenceNV")); + glSetFenceNV = reinterpret_cast(gles2wLoad("glSetFenceNV")); #endif /* defined(GL_NV_fence) */ #if defined(GL_NV_fragment_coverage_to_color) @@ -1797,9 +1794,9 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_NV_framebuffer_blit) */ #if defined(GL_NV_framebuffer_mixed_samples) - glCoverageModulationTableNV = reinterpret_cast(gles2wLoad("glCoverageModulationTableNV")); + glCoverageModulationTableNV = reinterpret_cast(gles2wLoad("glCoverageModulationTableNV")); glGetCoverageModulationTableNV = reinterpret_cast(gles2wLoad("glGetCoverageModulationTableNV")); - glCoverageModulationNV = reinterpret_cast(gles2wLoad("glCoverageModulationNV")); + glCoverageModulationNV = reinterpret_cast(gles2wLoad("glCoverageModulationNV")); #endif /* defined(GL_NV_framebuffer_mixed_samples) */ #if defined(GL_NV_framebuffer_multisample) @@ -1807,36 +1804,36 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_NV_framebuffer_multisample) */ #if defined(GL_NV_gpu_shader5) - glUniform1i64NV = reinterpret_cast(gles2wLoad("glUniform1i64NV")); - glUniform2i64NV = reinterpret_cast(gles2wLoad("glUniform2i64NV")); - glUniform3i64NV = reinterpret_cast(gles2wLoad("glUniform3i64NV")); - glUniform4i64NV = reinterpret_cast(gles2wLoad("glUniform4i64NV")); - glUniform1i64vNV = reinterpret_cast(gles2wLoad("glUniform1i64vNV")); - glUniform2i64vNV = reinterpret_cast(gles2wLoad("glUniform2i64vNV")); - glUniform3i64vNV = reinterpret_cast(gles2wLoad("glUniform3i64vNV")); - glUniform4i64vNV = reinterpret_cast(gles2wLoad("glUniform4i64vNV")); - glUniform1ui64NV = reinterpret_cast(gles2wLoad("glUniform1ui64NV")); - glUniform2ui64NV = reinterpret_cast(gles2wLoad("glUniform2ui64NV")); - glUniform3ui64NV = reinterpret_cast(gles2wLoad("glUniform3ui64NV")); - glUniform4ui64NV = reinterpret_cast(gles2wLoad("glUniform4ui64NV")); - glUniform1ui64vNV = reinterpret_cast(gles2wLoad("glUniform1ui64vNV")); - glUniform2ui64vNV = reinterpret_cast(gles2wLoad("glUniform2ui64vNV")); - glUniform3ui64vNV = reinterpret_cast(gles2wLoad("glUniform3ui64vNV")); - glUniform4ui64vNV = reinterpret_cast(gles2wLoad("glUniform4ui64vNV")); + glUniform1i64NV = reinterpret_cast(gles2wLoad("glUniform1i64NV")); + glUniform2i64NV = reinterpret_cast(gles2wLoad("glUniform2i64NV")); + glUniform3i64NV = reinterpret_cast(gles2wLoad("glUniform3i64NV")); + glUniform4i64NV = reinterpret_cast(gles2wLoad("glUniform4i64NV")); + glUniform1i64vNV = reinterpret_cast(gles2wLoad("glUniform1i64vNV")); + glUniform2i64vNV = reinterpret_cast(gles2wLoad("glUniform2i64vNV")); + glUniform3i64vNV = reinterpret_cast(gles2wLoad("glUniform3i64vNV")); + glUniform4i64vNV = reinterpret_cast(gles2wLoad("glUniform4i64vNV")); + glUniform1ui64NV = reinterpret_cast(gles2wLoad("glUniform1ui64NV")); + glUniform2ui64NV = reinterpret_cast(gles2wLoad("glUniform2ui64NV")); + glUniform3ui64NV = reinterpret_cast(gles2wLoad("glUniform3ui64NV")); + glUniform4ui64NV = reinterpret_cast(gles2wLoad("glUniform4ui64NV")); + glUniform1ui64vNV = reinterpret_cast(gles2wLoad("glUniform1ui64vNV")); + glUniform2ui64vNV = reinterpret_cast(gles2wLoad("glUniform2ui64vNV")); + glUniform3ui64vNV = reinterpret_cast(gles2wLoad("glUniform3ui64vNV")); + glUniform4ui64vNV = reinterpret_cast(gles2wLoad("glUniform4ui64vNV")); glGetUniformi64vNV = reinterpret_cast(gles2wLoad("glGetUniformi64vNV")); - glProgramUniform1i64NV = reinterpret_cast(gles2wLoad("glProgramUniform1i64NV")); - glProgramUniform2i64NV = reinterpret_cast(gles2wLoad("glProgramUniform2i64NV")); - glProgramUniform3i64NV = reinterpret_cast(gles2wLoad("glProgramUniform3i64NV")); - glProgramUniform4i64NV = reinterpret_cast(gles2wLoad("glProgramUniform4i64NV")); - glProgramUniform1i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform1i64vNV")); - glProgramUniform2i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform2i64vNV")); - glProgramUniform3i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform3i64vNV")); - glProgramUniform4i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform4i64vNV")); - glProgramUniform1ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform1ui64NV")); - glProgramUniform2ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform2ui64NV")); - glProgramUniform3ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform3ui64NV")); - glProgramUniform4ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform4ui64NV")); + glProgramUniform1i64NV = reinterpret_cast(gles2wLoad("glProgramUniform1i64NV")); + glProgramUniform2i64NV = reinterpret_cast(gles2wLoad("glProgramUniform2i64NV")); + glProgramUniform3i64NV = reinterpret_cast(gles2wLoad("glProgramUniform3i64NV")); + glProgramUniform4i64NV = reinterpret_cast(gles2wLoad("glProgramUniform4i64NV")); + glProgramUniform1i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform1i64vNV")); + glProgramUniform2i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform2i64vNV")); + glProgramUniform3i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform3i64vNV")); + glProgramUniform4i64vNV = reinterpret_cast(gles2wLoad("glProgramUniform4i64vNV")); + glProgramUniform1ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform1ui64NV")); + glProgramUniform2ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform2ui64NV")); + glProgramUniform3ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform3ui64NV")); + glProgramUniform4ui64NV = reinterpret_cast(gles2wLoad("glProgramUniform4ui64NV")); glProgramUniform1ui64vNV = reinterpret_cast(gles2wLoad("glProgramUniform1ui64vNV")); glProgramUniform2ui64vNV = reinterpret_cast(gles2wLoad("glProgramUniform2ui64vNV")); glProgramUniform3ui64vNV = reinterpret_cast(gles2wLoad("glProgramUniform3ui64vNV")); @@ -1853,26 +1850,26 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_NV_memory_attachment) glGetMemoryObjectDetachedResourcesuivNV = reinterpret_cast(gles2wLoad("glGetMemoryObjectDetachedResourcesuivNV")); - glResetMemoryObjectParameterNV = reinterpret_cast(gles2wLoad("glResetMemoryObjectParameterNV")); - glTexAttachMemoryNV = reinterpret_cast(gles2wLoad("glTexAttachMemoryNV")); - glBufferAttachMemoryNV = reinterpret_cast(gles2wLoad("glBufferAttachMemoryNV")); + glResetMemoryObjectParameterNV = reinterpret_cast(gles2wLoad("glResetMemoryObjectParameterNV")); + glTexAttachMemoryNV = reinterpret_cast(gles2wLoad("glTexAttachMemoryNV")); + glBufferAttachMemoryNV = reinterpret_cast(gles2wLoad("glBufferAttachMemoryNV")); - glTextureAttachMemoryNV = reinterpret_cast(gles2wLoad("glTextureAttachMemoryNV")); + glTextureAttachMemoryNV = reinterpret_cast(gles2wLoad("glTextureAttachMemoryNV")); glNamedBufferAttachMemoryNV = reinterpret_cast(gles2wLoad("glNamedBufferAttachMemoryNV")); #endif /* defined(GL_NV_memory_attachment) */ #if defined(GL_NV_memory_object_sparse) glBufferPageCommitmentMemNV = reinterpret_cast(gles2wLoad("glBufferPageCommitmentMemNV")); - glTexPageCommitmentMemNV = reinterpret_cast(gles2wLoad("glTexPageCommitmentMemNV")); + glTexPageCommitmentMemNV = reinterpret_cast(gles2wLoad("glTexPageCommitmentMemNV")); glNamedBufferPageCommitmentMemNV = reinterpret_cast(gles2wLoad("glNamedBufferPageCommitmentMemNV")); - glTexturePageCommitmentMemNV = reinterpret_cast(gles2wLoad("glTexturePageCommitmentMemNV")); + glTexturePageCommitmentMemNV = reinterpret_cast(gles2wLoad("glTexturePageCommitmentMemNV")); #endif /* defined(GL_NV_memory_object_sparse) */ #if defined(GL_NV_mesh_shader) - glDrawMeshTasksNV = reinterpret_cast(gles2wLoad("glDrawMeshTasksNV")); - glDrawMeshTasksIndirectNV = reinterpret_cast(gles2wLoad("glDrawMeshTasksIndirectNV")); - glMultiDrawMeshTasksIndirectNV = reinterpret_cast(gles2wLoad("glMultiDrawMeshTasksIndirectNV")); + glDrawMeshTasksNV = reinterpret_cast(gles2wLoad("glDrawMeshTasksNV")); + glDrawMeshTasksIndirectNV = reinterpret_cast(gles2wLoad("glDrawMeshTasksIndirectNV")); + glMultiDrawMeshTasksIndirectNV = reinterpret_cast(gles2wLoad("glMultiDrawMeshTasksIndirectNV")); glMultiDrawMeshTasksIndirectCountNV = reinterpret_cast(gles2wLoad("glMultiDrawMeshTasksIndirectCountNV")); #endif /* defined(GL_NV_mesh_shader) */ @@ -1886,85 +1883,85 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_NV_non_square_matrices) */ #if defined(GL_NV_path_rendering) - glGenPathsNV = reinterpret_cast(gles2wLoad("glGenPathsNV")); - glDeletePathsNV = reinterpret_cast(gles2wLoad("glDeletePathsNV")); - glIsPathNV = reinterpret_cast(gles2wLoad("glIsPathNV")); - glPathCommandsNV = reinterpret_cast(gles2wLoad("glPathCommandsNV")); - glPathCoordsNV = reinterpret_cast(gles2wLoad("glPathCoordsNV")); - glPathSubCommandsNV = reinterpret_cast(gles2wLoad("glPathSubCommandsNV")); - glPathSubCoordsNV = reinterpret_cast(gles2wLoad("glPathSubCoordsNV")); - glPathStringNV = reinterpret_cast(gles2wLoad("glPathStringNV")); - glPathGlyphsNV = reinterpret_cast(gles2wLoad("glPathGlyphsNV")); - glPathGlyphRangeNV = reinterpret_cast(gles2wLoad("glPathGlyphRangeNV")); - glWeightPathsNV = reinterpret_cast(gles2wLoad("glWeightPathsNV")); - glCopyPathNV = reinterpret_cast(gles2wLoad("glCopyPathNV")); - glInterpolatePathsNV = reinterpret_cast(gles2wLoad("glInterpolatePathsNV")); - glTransformPathNV = reinterpret_cast(gles2wLoad("glTransformPathNV")); - glPathParameterivNV = reinterpret_cast(gles2wLoad("glPathParameterivNV")); - glPathParameteriNV = reinterpret_cast(gles2wLoad("glPathParameteriNV")); - glPathParameterfvNV = reinterpret_cast(gles2wLoad("glPathParameterfvNV")); - glPathParameterfNV = reinterpret_cast(gles2wLoad("glPathParameterfNV")); - glPathDashArrayNV = reinterpret_cast(gles2wLoad("glPathDashArrayNV")); - glPathStencilFuncNV = reinterpret_cast(gles2wLoad("glPathStencilFuncNV")); - glPathStencilDepthOffsetNV = reinterpret_cast(gles2wLoad("glPathStencilDepthOffsetNV")); - glStencilFillPathNV = reinterpret_cast(gles2wLoad("glStencilFillPathNV")); - glStencilStrokePathNV = reinterpret_cast(gles2wLoad("glStencilStrokePathNV")); - glStencilFillPathInstancedNV = reinterpret_cast(gles2wLoad("glStencilFillPathInstancedNV")); + glGenPathsNV = reinterpret_cast(gles2wLoad("glGenPathsNV")); + glDeletePathsNV = reinterpret_cast(gles2wLoad("glDeletePathsNV")); + glIsPathNV = reinterpret_cast(gles2wLoad("glIsPathNV")); + glPathCommandsNV = reinterpret_cast(gles2wLoad("glPathCommandsNV")); + glPathCoordsNV = reinterpret_cast(gles2wLoad("glPathCoordsNV")); + glPathSubCommandsNV = reinterpret_cast(gles2wLoad("glPathSubCommandsNV")); + glPathSubCoordsNV = reinterpret_cast(gles2wLoad("glPathSubCoordsNV")); + glPathStringNV = reinterpret_cast(gles2wLoad("glPathStringNV")); + glPathGlyphsNV = reinterpret_cast(gles2wLoad("glPathGlyphsNV")); + glPathGlyphRangeNV = reinterpret_cast(gles2wLoad("glPathGlyphRangeNV")); + glWeightPathsNV = reinterpret_cast(gles2wLoad("glWeightPathsNV")); + glCopyPathNV = reinterpret_cast(gles2wLoad("glCopyPathNV")); + glInterpolatePathsNV = reinterpret_cast(gles2wLoad("glInterpolatePathsNV")); + glTransformPathNV = reinterpret_cast(gles2wLoad("glTransformPathNV")); + glPathParameterivNV = reinterpret_cast(gles2wLoad("glPathParameterivNV")); + glPathParameteriNV = reinterpret_cast(gles2wLoad("glPathParameteriNV")); + glPathParameterfvNV = reinterpret_cast(gles2wLoad("glPathParameterfvNV")); + glPathParameterfNV = reinterpret_cast(gles2wLoad("glPathParameterfNV")); + glPathDashArrayNV = reinterpret_cast(gles2wLoad("glPathDashArrayNV")); + glPathStencilFuncNV = reinterpret_cast(gles2wLoad("glPathStencilFuncNV")); + glPathStencilDepthOffsetNV = reinterpret_cast(gles2wLoad("glPathStencilDepthOffsetNV")); + glStencilFillPathNV = reinterpret_cast(gles2wLoad("glStencilFillPathNV")); + glStencilStrokePathNV = reinterpret_cast(gles2wLoad("glStencilStrokePathNV")); + glStencilFillPathInstancedNV = reinterpret_cast(gles2wLoad("glStencilFillPathInstancedNV")); glStencilStrokePathInstancedNV = reinterpret_cast(gles2wLoad("glStencilStrokePathInstancedNV")); - glPathCoverDepthFuncNV = reinterpret_cast(gles2wLoad("glPathCoverDepthFuncNV")); - glCoverFillPathNV = reinterpret_cast(gles2wLoad("glCoverFillPathNV")); - glCoverStrokePathNV = reinterpret_cast(gles2wLoad("glCoverStrokePathNV")); - glCoverFillPathInstancedNV = reinterpret_cast(gles2wLoad("glCoverFillPathInstancedNV")); - glCoverStrokePathInstancedNV = reinterpret_cast(gles2wLoad("glCoverStrokePathInstancedNV")); - glGetPathParameterivNV = reinterpret_cast(gles2wLoad("glGetPathParameterivNV")); - glGetPathParameterfvNV = reinterpret_cast(gles2wLoad("glGetPathParameterfvNV")); - glGetPathCommandsNV = reinterpret_cast(gles2wLoad("glGetPathCommandsNV")); - glGetPathCoordsNV = reinterpret_cast(gles2wLoad("glGetPathCoordsNV")); - glGetPathDashArrayNV = reinterpret_cast(gles2wLoad("glGetPathDashArrayNV")); - glGetPathMetricsNV = reinterpret_cast(gles2wLoad("glGetPathMetricsNV")); - glGetPathMetricRangeNV = reinterpret_cast(gles2wLoad("glGetPathMetricRangeNV")); - glGetPathSpacingNV = reinterpret_cast(gles2wLoad("glGetPathSpacingNV")); - glIsPointInFillPathNV = reinterpret_cast(gles2wLoad("glIsPointInFillPathNV")); - glIsPointInStrokePathNV = reinterpret_cast(gles2wLoad("glIsPointInStrokePathNV")); - glGetPathLengthNV = reinterpret_cast(gles2wLoad("glGetPathLengthNV")); - glPointAlongPathNV = reinterpret_cast(gles2wLoad("glPointAlongPathNV")); + glPathCoverDepthFuncNV = reinterpret_cast(gles2wLoad("glPathCoverDepthFuncNV")); + glCoverFillPathNV = reinterpret_cast(gles2wLoad("glCoverFillPathNV")); + glCoverStrokePathNV = reinterpret_cast(gles2wLoad("glCoverStrokePathNV")); + glCoverFillPathInstancedNV = reinterpret_cast(gles2wLoad("glCoverFillPathInstancedNV")); + glCoverStrokePathInstancedNV = reinterpret_cast(gles2wLoad("glCoverStrokePathInstancedNV")); + glGetPathParameterivNV = reinterpret_cast(gles2wLoad("glGetPathParameterivNV")); + glGetPathParameterfvNV = reinterpret_cast(gles2wLoad("glGetPathParameterfvNV")); + glGetPathCommandsNV = reinterpret_cast(gles2wLoad("glGetPathCommandsNV")); + glGetPathCoordsNV = reinterpret_cast(gles2wLoad("glGetPathCoordsNV")); + glGetPathDashArrayNV = reinterpret_cast(gles2wLoad("glGetPathDashArrayNV")); + glGetPathMetricsNV = reinterpret_cast(gles2wLoad("glGetPathMetricsNV")); + glGetPathMetricRangeNV = reinterpret_cast(gles2wLoad("glGetPathMetricRangeNV")); + glGetPathSpacingNV = reinterpret_cast(gles2wLoad("glGetPathSpacingNV")); + glIsPointInFillPathNV = reinterpret_cast(gles2wLoad("glIsPointInFillPathNV")); + glIsPointInStrokePathNV = reinterpret_cast(gles2wLoad("glIsPointInStrokePathNV")); + glGetPathLengthNV = reinterpret_cast(gles2wLoad("glGetPathLengthNV")); + glPointAlongPathNV = reinterpret_cast(gles2wLoad("glPointAlongPathNV")); - glMatrixLoad3x2fNV = reinterpret_cast(gles2wLoad("glMatrixLoad3x2fNV")); - glMatrixLoad3x3fNV = reinterpret_cast(gles2wLoad("glMatrixLoad3x3fNV")); - glMatrixLoadTranspose3x3fNV = reinterpret_cast(gles2wLoad("glMatrixLoadTranspose3x3fNV")); - glMatrixMult3x2fNV = reinterpret_cast(gles2wLoad("glMatrixMult3x2fNV")); - glMatrixMult3x3fNV = reinterpret_cast(gles2wLoad("glMatrixMult3x3fNV")); - glMatrixMultTranspose3x3fNV = reinterpret_cast(gles2wLoad("glMatrixMultTranspose3x3fNV")); - glStencilThenCoverFillPathNV = reinterpret_cast(gles2wLoad("glStencilThenCoverFillPathNV")); - glStencilThenCoverStrokePathNV = reinterpret_cast(gles2wLoad("glStencilThenCoverStrokePathNV")); - glStencilThenCoverFillPathInstancedNV = reinterpret_cast(gles2wLoad("glStencilThenCoverFillPathInstancedNV")); + glMatrixLoad3x2fNV = reinterpret_cast(gles2wLoad("glMatrixLoad3x2fNV")); + glMatrixLoad3x3fNV = reinterpret_cast(gles2wLoad("glMatrixLoad3x3fNV")); + glMatrixLoadTranspose3x3fNV = reinterpret_cast(gles2wLoad("glMatrixLoadTranspose3x3fNV")); + glMatrixMult3x2fNV = reinterpret_cast(gles2wLoad("glMatrixMult3x2fNV")); + glMatrixMult3x3fNV = reinterpret_cast(gles2wLoad("glMatrixMult3x3fNV")); + glMatrixMultTranspose3x3fNV = reinterpret_cast(gles2wLoad("glMatrixMultTranspose3x3fNV")); + glStencilThenCoverFillPathNV = reinterpret_cast(gles2wLoad("glStencilThenCoverFillPathNV")); + glStencilThenCoverStrokePathNV = reinterpret_cast(gles2wLoad("glStencilThenCoverStrokePathNV")); + glStencilThenCoverFillPathInstancedNV = reinterpret_cast(gles2wLoad("glStencilThenCoverFillPathInstancedNV")); glStencilThenCoverStrokePathInstancedNV = reinterpret_cast(gles2wLoad("glStencilThenCoverStrokePathInstancedNV")); - glPathGlyphIndexRangeNV = reinterpret_cast(gles2wLoad("glPathGlyphIndexRangeNV")); + glPathGlyphIndexRangeNV = reinterpret_cast(gles2wLoad("glPathGlyphIndexRangeNV")); - glPathGlyphIndexArrayNV = reinterpret_cast(gles2wLoad("glPathGlyphIndexArrayNV")); - glPathMemoryGlyphIndexArrayNV = reinterpret_cast(gles2wLoad("glPathMemoryGlyphIndexArrayNV")); + glPathGlyphIndexArrayNV = reinterpret_cast(gles2wLoad("glPathGlyphIndexArrayNV")); + glPathMemoryGlyphIndexArrayNV = reinterpret_cast(gles2wLoad("glPathMemoryGlyphIndexArrayNV")); glProgramPathFragmentInputGenNV = reinterpret_cast(gles2wLoad("glProgramPathFragmentInputGenNV")); - glGetProgramResourcefvNV = reinterpret_cast(gles2wLoad("glGetProgramResourcefvNV")); + glGetProgramResourcefvNV = reinterpret_cast(gles2wLoad("glGetProgramResourcefvNV")); - glMatrixFrustumEXT = reinterpret_cast(gles2wLoad("glMatrixFrustumEXT")); - glMatrixLoadIdentityEXT = reinterpret_cast(gles2wLoad("glMatrixLoadIdentityEXT")); + glMatrixFrustumEXT = reinterpret_cast(gles2wLoad("glMatrixFrustumEXT")); + glMatrixLoadIdentityEXT = reinterpret_cast(gles2wLoad("glMatrixLoadIdentityEXT")); glMatrixLoadTransposefEXT = reinterpret_cast(gles2wLoad("glMatrixLoadTransposefEXT")); glMatrixLoadTransposedEXT = reinterpret_cast(gles2wLoad("glMatrixLoadTransposedEXT")); - glMatrixLoadfEXT = reinterpret_cast(gles2wLoad("glMatrixLoadfEXT")); - glMatrixLoaddEXT = reinterpret_cast(gles2wLoad("glMatrixLoaddEXT")); + glMatrixLoadfEXT = reinterpret_cast(gles2wLoad("glMatrixLoadfEXT")); + glMatrixLoaddEXT = reinterpret_cast(gles2wLoad("glMatrixLoaddEXT")); glMatrixMultTransposefEXT = reinterpret_cast(gles2wLoad("glMatrixMultTransposefEXT")); glMatrixMultTransposedEXT = reinterpret_cast(gles2wLoad("glMatrixMultTransposedEXT")); - glMatrixMultfEXT = reinterpret_cast(gles2wLoad("glMatrixMultfEXT")); - glMatrixMultdEXT = reinterpret_cast(gles2wLoad("glMatrixMultdEXT")); - glMatrixOrthoEXT = reinterpret_cast(gles2wLoad("glMatrixOrthoEXT")); - glMatrixPopEXT = reinterpret_cast(gles2wLoad("glMatrixPopEXT")); - glMatrixPushEXT = reinterpret_cast(gles2wLoad("glMatrixPushEXT")); - glMatrixRotatefEXT = reinterpret_cast(gles2wLoad("glMatrixRotatefEXT")); - glMatrixRotatedEXT = reinterpret_cast(gles2wLoad("glMatrixRotatedEXT")); - glMatrixScalefEXT = reinterpret_cast(gles2wLoad("glMatrixScalefEXT")); - glMatrixScaledEXT = reinterpret_cast(gles2wLoad("glMatrixScaledEXT")); - glMatrixTranslatefEXT = reinterpret_cast(gles2wLoad("glMatrixTranslatefEXT")); - glMatrixTranslatedEXT = reinterpret_cast(gles2wLoad("glMatrixTranslatedEXT")); + glMatrixMultfEXT = reinterpret_cast(gles2wLoad("glMatrixMultfEXT")); + glMatrixMultdEXT = reinterpret_cast(gles2wLoad("glMatrixMultdEXT")); + glMatrixOrthoEXT = reinterpret_cast(gles2wLoad("glMatrixOrthoEXT")); + glMatrixPopEXT = reinterpret_cast(gles2wLoad("glMatrixPopEXT")); + glMatrixPushEXT = reinterpret_cast(gles2wLoad("glMatrixPushEXT")); + glMatrixRotatefEXT = reinterpret_cast(gles2wLoad("glMatrixRotatefEXT")); + glMatrixRotatedEXT = reinterpret_cast(gles2wLoad("glMatrixRotatedEXT")); + glMatrixScalefEXT = reinterpret_cast(gles2wLoad("glMatrixScalefEXT")); + glMatrixScaledEXT = reinterpret_cast(gles2wLoad("glMatrixScaledEXT")); + glMatrixTranslatefEXT = reinterpret_cast(gles2wLoad("glMatrixTranslatefEXT")); + glMatrixTranslatedEXT = reinterpret_cast(gles2wLoad("glMatrixTranslatedEXT")); #endif /* defined(GL_NV_path_rendering) */ #if defined(GL_NV_polygon_mode) @@ -1976,39 +1973,39 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_NV_read_buffer) */ #if defined(GL_NV_sample_locations) - glFramebufferSampleLocationsfvNV = reinterpret_cast(gles2wLoad("glFramebufferSampleLocationsfvNV")); + glFramebufferSampleLocationsfvNV = reinterpret_cast(gles2wLoad("glFramebufferSampleLocationsfvNV")); glNamedFramebufferSampleLocationsfvNV = reinterpret_cast(gles2wLoad("glNamedFramebufferSampleLocationsfvNV")); - glResolveDepthValuesNV = reinterpret_cast(gles2wLoad("glResolveDepthValuesNV")); + glResolveDepthValuesNV = reinterpret_cast(gles2wLoad("glResolveDepthValuesNV")); #endif /* defined(GL_NV_sample_locations) */ #if defined(GL_NV_scissor_exclusive) - glScissorExclusiveNV = reinterpret_cast(gles2wLoad("glScissorExclusiveNV")); + glScissorExclusiveNV = reinterpret_cast(gles2wLoad("glScissorExclusiveNV")); glScissorExclusiveArrayvNV = reinterpret_cast(gles2wLoad("glScissorExclusiveArrayvNV")); #endif /* defined(GL_NV_scissor_exclusive) */ #if defined(GL_NV_shading_rate_image) - glBindShadingRateImageNV = reinterpret_cast(gles2wLoad("glBindShadingRateImageNV")); - glGetShadingRateImagePaletteNV = reinterpret_cast(gles2wLoad("glGetShadingRateImagePaletteNV")); + glBindShadingRateImageNV = reinterpret_cast(gles2wLoad("glBindShadingRateImageNV")); + glGetShadingRateImagePaletteNV = reinterpret_cast(gles2wLoad("glGetShadingRateImagePaletteNV")); glGetShadingRateSampleLocationivNV = reinterpret_cast(gles2wLoad("glGetShadingRateSampleLocationivNV")); - glShadingRateImageBarrierNV = reinterpret_cast(gles2wLoad("glShadingRateImageBarrierNV")); - glShadingRateImagePaletteNV = reinterpret_cast(gles2wLoad("glShadingRateImagePaletteNV")); - glShadingRateSampleOrderNV = reinterpret_cast(gles2wLoad("glShadingRateSampleOrderNV")); - glShadingRateSampleOrderCustomNV = reinterpret_cast(gles2wLoad("glShadingRateSampleOrderCustomNV")); + glShadingRateImageBarrierNV = reinterpret_cast(gles2wLoad("glShadingRateImageBarrierNV")); + glShadingRateImagePaletteNV = reinterpret_cast(gles2wLoad("glShadingRateImagePaletteNV")); + glShadingRateSampleOrderNV = reinterpret_cast(gles2wLoad("glShadingRateSampleOrderNV")); + glShadingRateSampleOrderCustomNV = reinterpret_cast(gles2wLoad("glShadingRateSampleOrderCustomNV")); #endif /* defined(GL_NV_shading_rate_image) */ #if defined(GL_NV_viewport_array) - glViewportArrayvNV = reinterpret_cast(gles2wLoad("glViewportArrayvNV")); - glViewportIndexedfNV = reinterpret_cast(gles2wLoad("glViewportIndexedfNV")); - glViewportIndexedfvNV = reinterpret_cast(gles2wLoad("glViewportIndexedfvNV")); - glScissorArrayvNV = reinterpret_cast(gles2wLoad("glScissorArrayvNV")); - glScissorIndexedNV = reinterpret_cast(gles2wLoad("glScissorIndexedNV")); - glScissorIndexedvNV = reinterpret_cast(gles2wLoad("glScissorIndexedvNV")); - glDepthRangeArrayfvNV = reinterpret_cast(gles2wLoad("glDepthRangeArrayfvNV")); + glViewportArrayvNV = reinterpret_cast(gles2wLoad("glViewportArrayvNV")); + glViewportIndexedfNV = reinterpret_cast(gles2wLoad("glViewportIndexedfNV")); + glViewportIndexedfvNV = reinterpret_cast(gles2wLoad("glViewportIndexedfvNV")); + glScissorArrayvNV = reinterpret_cast(gles2wLoad("glScissorArrayvNV")); + glScissorIndexedNV = reinterpret_cast(gles2wLoad("glScissorIndexedNV")); + glScissorIndexedvNV = reinterpret_cast(gles2wLoad("glScissorIndexedvNV")); + glDepthRangeArrayfvNV = reinterpret_cast(gles2wLoad("glDepthRangeArrayfvNV")); glDepthRangeIndexedfNV = reinterpret_cast(gles2wLoad("glDepthRangeIndexedfNV")); - glGetFloati_vNV = reinterpret_cast(gles2wLoad("glGetFloati_vNV")); - glEnableiNV = reinterpret_cast(gles2wLoad("glEnableiNV")); - glDisableiNV = reinterpret_cast(gles2wLoad("glDisableiNV")); - glIsEnablediNV = reinterpret_cast(gles2wLoad("glIsEnablediNV")); + glGetFloati_vNV = reinterpret_cast(gles2wLoad("glGetFloati_vNV")); + glEnableiNV = reinterpret_cast(gles2wLoad("glEnableiNV")); + glDisableiNV = reinterpret_cast(gles2wLoad("glDisableiNV")); + glIsEnablediNV = reinterpret_cast(gles2wLoad("glIsEnablediNV")); #endif /* defined(GL_NV_viewport_array) */ #if defined(GL_NV_viewport_swizzle) @@ -2016,7 +2013,7 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_NV_viewport_swizzle) */ #if defined(GL_OES_EGL_image) - glEGLImageTargetTexture2DOES = reinterpret_cast(gles2wLoad("glEGLImageTargetTexture2DOES")); + glEGLImageTargetTexture2DOES = reinterpret_cast(gles2wLoad("glEGLImageTargetTexture2DOES")); glEGLImageTargetRenderbufferStorageOES = reinterpret_cast(gles2wLoad("glEGLImageTargetRenderbufferStorageOES")); #endif /* defined(GL_OES_EGL_image) */ @@ -2025,19 +2022,19 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_OES_copy_image) */ #if defined(GL_OES_draw_buffers_indexed) - glEnableiOES = reinterpret_cast(gles2wLoad("glEnableiOES")); - glDisableiOES = reinterpret_cast(gles2wLoad("glDisableiOES")); - glBlendEquationiOES = reinterpret_cast(gles2wLoad("glBlendEquationiOES")); + glEnableiOES = reinterpret_cast(gles2wLoad("glEnableiOES")); + glDisableiOES = reinterpret_cast(gles2wLoad("glDisableiOES")); + glBlendEquationiOES = reinterpret_cast(gles2wLoad("glBlendEquationiOES")); glBlendEquationSeparateiOES = reinterpret_cast(gles2wLoad("glBlendEquationSeparateiOES")); - glBlendFunciOES = reinterpret_cast(gles2wLoad("glBlendFunciOES")); - glBlendFuncSeparateiOES = reinterpret_cast(gles2wLoad("glBlendFuncSeparateiOES")); - glColorMaskiOES = reinterpret_cast(gles2wLoad("glColorMaskiOES")); - glIsEnablediOES = reinterpret_cast(gles2wLoad("glIsEnablediOES")); + glBlendFunciOES = reinterpret_cast(gles2wLoad("glBlendFunciOES")); + glBlendFuncSeparateiOES = reinterpret_cast(gles2wLoad("glBlendFuncSeparateiOES")); + glColorMaskiOES = reinterpret_cast(gles2wLoad("glColorMaskiOES")); + glIsEnablediOES = reinterpret_cast(gles2wLoad("glIsEnablediOES")); #endif /* defined(GL_OES_draw_buffers_indexed) */ #if defined(GL_OES_draw_elements_base_vertex) - glDrawElementsBaseVertexOES = reinterpret_cast(gles2wLoad("glDrawElementsBaseVertexOES")); - glDrawRangeElementsBaseVertexOES = reinterpret_cast(gles2wLoad("glDrawRangeElementsBaseVertexOES")); + glDrawElementsBaseVertexOES = reinterpret_cast(gles2wLoad("glDrawElementsBaseVertexOES")); + glDrawRangeElementsBaseVertexOES = reinterpret_cast(gles2wLoad("glDrawRangeElementsBaseVertexOES")); glDrawElementsInstancedBaseVertexOES = reinterpret_cast(gles2wLoad("glDrawElementsInstancedBaseVertexOES")); #endif /* defined(GL_OES_draw_elements_base_vertex) */ @@ -2047,12 +2044,12 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_OES_get_program_binary) glGetProgramBinaryOES = reinterpret_cast(gles2wLoad("glGetProgramBinaryOES")); - glProgramBinaryOES = reinterpret_cast(gles2wLoad("glProgramBinaryOES")); + glProgramBinaryOES = reinterpret_cast(gles2wLoad("glProgramBinaryOES")); #endif /* defined(GL_OES_get_program_binary) */ #if defined(GL_OES_mapbuffer) - glMapBufferOES = reinterpret_cast(gles2wLoad("glMapBufferOES")); - glUnmapBufferOES = reinterpret_cast(gles2wLoad("glUnmapBufferOES")); + glMapBufferOES = reinterpret_cast(gles2wLoad("glMapBufferOES")); + glUnmapBufferOES = reinterpret_cast(gles2wLoad("glUnmapBufferOES")); glGetBufferPointervOES = reinterpret_cast(gles2wLoad("glGetBufferPointervOES")); #endif /* defined(GL_OES_mapbuffer) */ @@ -2069,27 +2066,27 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_OES_tessellation_shader) */ #if defined(GL_OES_texture_3D) - glTexImage3DOES = reinterpret_cast(gles2wLoad("glTexImage3DOES")); - glTexSubImage3DOES = reinterpret_cast(gles2wLoad("glTexSubImage3DOES")); - glCopyTexSubImage3DOES = reinterpret_cast(gles2wLoad("glCopyTexSubImage3DOES")); - glCompressedTexImage3DOES = reinterpret_cast(gles2wLoad("glCompressedTexImage3DOES")); + glTexImage3DOES = reinterpret_cast(gles2wLoad("glTexImage3DOES")); + glTexSubImage3DOES = reinterpret_cast(gles2wLoad("glTexSubImage3DOES")); + glCopyTexSubImage3DOES = reinterpret_cast(gles2wLoad("glCopyTexSubImage3DOES")); + glCompressedTexImage3DOES = reinterpret_cast(gles2wLoad("glCompressedTexImage3DOES")); glCompressedTexSubImage3DOES = reinterpret_cast(gles2wLoad("glCompressedTexSubImage3DOES")); - glFramebufferTexture3DOES = reinterpret_cast(gles2wLoad("glFramebufferTexture3DOES")); + glFramebufferTexture3DOES = reinterpret_cast(gles2wLoad("glFramebufferTexture3DOES")); #endif /* defined(GL_OES_texture_3D) */ #if defined(GL_OES_texture_border_clamp) - glTexParameterIivOES = reinterpret_cast(gles2wLoad("glTexParameterIivOES")); - glTexParameterIuivOES = reinterpret_cast(gles2wLoad("glTexParameterIuivOES")); - glGetTexParameterIivOES = reinterpret_cast(gles2wLoad("glGetTexParameterIivOES")); - glGetTexParameterIuivOES = reinterpret_cast(gles2wLoad("glGetTexParameterIuivOES")); - glSamplerParameterIivOES = reinterpret_cast(gles2wLoad("glSamplerParameterIivOES")); - glSamplerParameterIuivOES = reinterpret_cast(gles2wLoad("glSamplerParameterIuivOES")); - glGetSamplerParameterIivOES = reinterpret_cast(gles2wLoad("glGetSamplerParameterIivOES")); + glTexParameterIivOES = reinterpret_cast(gles2wLoad("glTexParameterIivOES")); + glTexParameterIuivOES = reinterpret_cast(gles2wLoad("glTexParameterIuivOES")); + glGetTexParameterIivOES = reinterpret_cast(gles2wLoad("glGetTexParameterIivOES")); + glGetTexParameterIuivOES = reinterpret_cast(gles2wLoad("glGetTexParameterIuivOES")); + glSamplerParameterIivOES = reinterpret_cast(gles2wLoad("glSamplerParameterIivOES")); + glSamplerParameterIuivOES = reinterpret_cast(gles2wLoad("glSamplerParameterIuivOES")); + glGetSamplerParameterIivOES = reinterpret_cast(gles2wLoad("glGetSamplerParameterIivOES")); glGetSamplerParameterIuivOES = reinterpret_cast(gles2wLoad("glGetSamplerParameterIuivOES")); #endif /* defined(GL_OES_texture_border_clamp) */ #if defined(GL_OES_texture_buffer) - glTexBufferOES = reinterpret_cast(gles2wLoad("glTexBufferOES")); + glTexBufferOES = reinterpret_cast(gles2wLoad("glTexBufferOES")); glTexBufferRangeOES = reinterpret_cast(gles2wLoad("glTexBufferRangeOES")); #endif /* defined(GL_OES_texture_buffer) */ @@ -2102,22 +2099,22 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_OES_texture_view) */ #if defined(GL_OES_vertex_array_object) - glBindVertexArrayOES = reinterpret_cast(gles2wLoad("glBindVertexArrayOES")); + glBindVertexArrayOES = reinterpret_cast(gles2wLoad("glBindVertexArrayOES")); glDeleteVertexArraysOES = reinterpret_cast(gles2wLoad("glDeleteVertexArraysOES")); - glGenVertexArraysOES = reinterpret_cast(gles2wLoad("glGenVertexArraysOES")); - glIsVertexArrayOES = reinterpret_cast(gles2wLoad("glIsVertexArrayOES")); + glGenVertexArraysOES = reinterpret_cast(gles2wLoad("glGenVertexArraysOES")); + glIsVertexArrayOES = reinterpret_cast(gles2wLoad("glIsVertexArrayOES")); #endif /* defined(GL_OES_vertex_array_object) */ #if defined(GL_OES_viewport_array) - glViewportArrayvOES = reinterpret_cast(gles2wLoad("glViewportArrayvOES")); - glViewportIndexedfOES = reinterpret_cast(gles2wLoad("glViewportIndexedfOES")); - glViewportIndexedfvOES = reinterpret_cast(gles2wLoad("glViewportIndexedfvOES")); - glScissorArrayvOES = reinterpret_cast(gles2wLoad("glScissorArrayvOES")); - glScissorIndexedOES = reinterpret_cast(gles2wLoad("glScissorIndexedOES")); - glScissorIndexedvOES = reinterpret_cast(gles2wLoad("glScissorIndexedvOES")); - glDepthRangeArrayfvOES = reinterpret_cast(gles2wLoad("glDepthRangeArrayfvOES")); + glViewportArrayvOES = reinterpret_cast(gles2wLoad("glViewportArrayvOES")); + glViewportIndexedfOES = reinterpret_cast(gles2wLoad("glViewportIndexedfOES")); + glViewportIndexedfvOES = reinterpret_cast(gles2wLoad("glViewportIndexedfvOES")); + glScissorArrayvOES = reinterpret_cast(gles2wLoad("glScissorArrayvOES")); + glScissorIndexedOES = reinterpret_cast(gles2wLoad("glScissorIndexedOES")); + glScissorIndexedvOES = reinterpret_cast(gles2wLoad("glScissorIndexedvOES")); + glDepthRangeArrayfvOES = reinterpret_cast(gles2wLoad("glDepthRangeArrayfvOES")); glDepthRangeIndexedfOES = reinterpret_cast(gles2wLoad("glDepthRangeIndexedfOES")); - glGetFloati_vOES = reinterpret_cast(gles2wLoad("glGetFloati_vOES")); + glGetFloati_vOES = reinterpret_cast(gles2wLoad("glGetFloati_vOES")); #endif /* defined(GL_OES_viewport_array) */ #if defined(GL_OVR_multiview) @@ -2133,37 +2130,37 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #endif /* defined(GL_QCOM_alpha_test) */ #if defined(GL_QCOM_driver_control) - glGetDriverControlsQCOM = reinterpret_cast(gles2wLoad("glGetDriverControlsQCOM")); + glGetDriverControlsQCOM = reinterpret_cast(gles2wLoad("glGetDriverControlsQCOM")); glGetDriverControlStringQCOM = reinterpret_cast(gles2wLoad("glGetDriverControlStringQCOM")); - glEnableDriverControlQCOM = reinterpret_cast(gles2wLoad("glEnableDriverControlQCOM")); - glDisableDriverControlQCOM = reinterpret_cast(gles2wLoad("glDisableDriverControlQCOM")); + glEnableDriverControlQCOM = reinterpret_cast(gles2wLoad("glEnableDriverControlQCOM")); + glDisableDriverControlQCOM = reinterpret_cast(gles2wLoad("glDisableDriverControlQCOM")); #endif /* defined(GL_QCOM_driver_control) */ #if defined(GL_QCOM_extended_get) - glExtGetTexturesQCOM = reinterpret_cast(gles2wLoad("glExtGetTexturesQCOM")); - glExtGetBuffersQCOM = reinterpret_cast(gles2wLoad("glExtGetBuffersQCOM")); - glExtGetRenderbuffersQCOM = reinterpret_cast(gles2wLoad("glExtGetRenderbuffersQCOM")); - glExtGetFramebuffersQCOM = reinterpret_cast(gles2wLoad("glExtGetFramebuffersQCOM")); - glExtGetTexLevelParameterivQCOM = reinterpret_cast(gles2wLoad("glExtGetTexLevelParameterivQCOM")); + glExtGetTexturesQCOM = reinterpret_cast(gles2wLoad("glExtGetTexturesQCOM")); + glExtGetBuffersQCOM = reinterpret_cast(gles2wLoad("glExtGetBuffersQCOM")); + glExtGetRenderbuffersQCOM = reinterpret_cast(gles2wLoad("glExtGetRenderbuffersQCOM")); + glExtGetFramebuffersQCOM = reinterpret_cast(gles2wLoad("glExtGetFramebuffersQCOM")); + glExtGetTexLevelParameterivQCOM = reinterpret_cast(gles2wLoad("glExtGetTexLevelParameterivQCOM")); glExtTexObjectStateOverrideiQCOM = reinterpret_cast(gles2wLoad("glExtTexObjectStateOverrideiQCOM")); - glExtGetTexSubImageQCOM = reinterpret_cast(gles2wLoad("glExtGetTexSubImageQCOM")); - glExtGetBufferPointervQCOM = reinterpret_cast(gles2wLoad("glExtGetBufferPointervQCOM")); + glExtGetTexSubImageQCOM = reinterpret_cast(gles2wLoad("glExtGetTexSubImageQCOM")); + glExtGetBufferPointervQCOM = reinterpret_cast(gles2wLoad("glExtGetBufferPointervQCOM")); #endif /* defined(GL_QCOM_extended_get) */ #if defined(GL_QCOM_extended_get2) - glExtGetShadersQCOM = reinterpret_cast(gles2wLoad("glExtGetShadersQCOM")); - glExtGetProgramsQCOM = reinterpret_cast(gles2wLoad("glExtGetProgramsQCOM")); - glExtIsProgramBinaryQCOM = reinterpret_cast(gles2wLoad("glExtIsProgramBinaryQCOM")); + glExtGetShadersQCOM = reinterpret_cast(gles2wLoad("glExtGetShadersQCOM")); + glExtGetProgramsQCOM = reinterpret_cast(gles2wLoad("glExtGetProgramsQCOM")); + glExtIsProgramBinaryQCOM = reinterpret_cast(gles2wLoad("glExtIsProgramBinaryQCOM")); glExtGetProgramBinarySourceQCOM = reinterpret_cast(gles2wLoad("glExtGetProgramBinarySourceQCOM")); #endif /* defined(GL_QCOM_extended_get2) */ #if defined(GL_QCOM_framebuffer_foveated) - glFramebufferFoveationConfigQCOM = reinterpret_cast(gles2wLoad("glFramebufferFoveationConfigQCOM")); + glFramebufferFoveationConfigQCOM = reinterpret_cast(gles2wLoad("glFramebufferFoveationConfigQCOM")); glFramebufferFoveationParametersQCOM = reinterpret_cast(gles2wLoad("glFramebufferFoveationParametersQCOM")); #endif /* defined(GL_QCOM_framebuffer_foveated) */ #if defined(GL_QCOM_motion_estimation) - glTexEstimateMotionQCOM = reinterpret_cast(gles2wLoad("glTexEstimateMotionQCOM")); + glTexEstimateMotionQCOM = reinterpret_cast(gles2wLoad("glTexEstimateMotionQCOM")); glTexEstimateMotionRegionsQCOM = reinterpret_cast(gles2wLoad("glTexEstimateMotionRegionsQCOM")); #endif /* defined(GL_QCOM_motion_estimation) */ @@ -2185,7 +2182,7 @@ void gles2wLoadProcs(PFNGLES2WLOADPROC gles2wLoad) { #if defined(GL_QCOM_tiled_rendering) glStartTilingQCOM = reinterpret_cast(gles2wLoad("glStartTilingQCOM")); - glEndTilingQCOM = reinterpret_cast(gles2wLoad("glEndTilingQCOM")); + glEndTilingQCOM = reinterpret_cast(gles2wLoad("glEndTilingQCOM")); #endif /* defined(GL_QCOM_tiled_rendering) */ /* GLES2W_GENERATE_GLES_LOAD */ diff --git a/native/cocos/renderer/gfx-gles-common/gles2w.h b/native/cocos/renderer/gfx-gles-common/gles2w.h index 3453c21503..3a507245d0 100644 --- a/native/cocos/renderer/gfx-gles-common/gles2w.h +++ b/native/cocos/renderer/gfx-gles-common/gles2w.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -408,7 +408,7 @@ extern PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC glFramebufferTexture2DMultisa extern PFNGLREADBUFFERINDEXEDEXTPROC glReadBufferIndexedEXT; extern PFNGLDRAWBUFFERSINDEXEDEXTPROC glDrawBuffersIndexedEXT; extern PFNGLGETINTEGERI_VEXTPROC glGetIntegeri_vEXT; // NOLINT(readability-identifier-naming) -#endif /* defined(GL_EXT_multiview_draw_buffers) */ +#endif /* defined(GL_EXT_multiview_draw_buffers) */ #if defined(GL_EXT_polygon_offset_clamp) extern PFNGLPOLYGONOFFSETCLAMPEXTPROC glPolygonOffsetClampEXT; @@ -1034,7 +1034,7 @@ extern PFNGLSCISSORINDEXEDVOESPROC glScissorIndexedvOES; extern PFNGLDEPTHRANGEARRAYFVOESPROC glDepthRangeArrayfvOES; extern PFNGLDEPTHRANGEINDEXEDFOESPROC glDepthRangeIndexedfOES; extern PFNGLGETFLOATI_VOESPROC glGetFloati_vOES; // NOLINT(readability-identifier-naming) -#endif /* defined(GL_OES_viewport_array) */ +#endif /* defined(GL_OES_viewport_array) */ #if defined(GL_OVR_multiview) extern PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC glFramebufferTextureMultiviewOVR; diff --git a/native/cocos/renderer/gfx-gles-common/gles3w.cpp b/native/cocos/renderer/gfx-gles-common/gles3w.cpp index 08db6516b3..c604fc765a 100644 --- a/native/cocos/renderer/gfx-gles-common/gles3w.cpp +++ b/native/cocos/renderer/gfx-gles-common/gles3w.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -34,218 +34,216 @@ /* GLES3W_GENERATE_GLES_DEFINITION */ /* GL_ES_VERSION_3_0 */ -PFNGLREADBUFFERPROC glReadBuffer; -PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements; -PFNGLTEXIMAGE3DPROC glTexImage3D; -PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D; -PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D; -PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D; -PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D; -PFNGLGENQUERIESPROC glGenQueries; -PFNGLDELETEQUERIESPROC glDeleteQueries; -PFNGLISQUERYPROC glIsQuery; -PFNGLBEGINQUERYPROC glBeginQuery; -PFNGLENDQUERYPROC glEndQuery; -PFNGLGETQUERYIVPROC glGetQueryiv; -PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv; -PFNGLUNMAPBUFFERPROC glUnmapBuffer; -PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv; -PFNGLDRAWBUFFERSPROC glDrawBuffers; -PFNGLUNIFORMMATRIX2X3FVPROC glUniformMatrix2x3fv; -PFNGLUNIFORMMATRIX3X2FVPROC glUniformMatrix3x2fv; -PFNGLUNIFORMMATRIX2X4FVPROC glUniformMatrix2x4fv; -PFNGLUNIFORMMATRIX4X2FVPROC glUniformMatrix4x2fv; -PFNGLUNIFORMMATRIX3X4FVPROC glUniformMatrix3x4fv; -PFNGLUNIFORMMATRIX4X3FVPROC glUniformMatrix4x3fv; -PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer; +PFNGLREADBUFFERPROC glReadBuffer; +PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements; +PFNGLTEXIMAGE3DPROC glTexImage3D; +PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D; +PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D; +PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D; +PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D; +PFNGLGENQUERIESPROC glGenQueries; +PFNGLDELETEQUERIESPROC glDeleteQueries; +PFNGLISQUERYPROC glIsQuery; +PFNGLBEGINQUERYPROC glBeginQuery; +PFNGLENDQUERYPROC glEndQuery; +PFNGLGETQUERYIVPROC glGetQueryiv; +PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv; +PFNGLUNMAPBUFFERPROC glUnmapBuffer; +PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv; +PFNGLDRAWBUFFERSPROC glDrawBuffers; +PFNGLUNIFORMMATRIX2X3FVPROC glUniformMatrix2x3fv; +PFNGLUNIFORMMATRIX3X2FVPROC glUniformMatrix3x2fv; +PFNGLUNIFORMMATRIX2X4FVPROC glUniformMatrix2x4fv; +PFNGLUNIFORMMATRIX4X2FVPROC glUniformMatrix4x2fv; +PFNGLUNIFORMMATRIX3X4FVPROC glUniformMatrix3x4fv; +PFNGLUNIFORMMATRIX4X3FVPROC glUniformMatrix4x3fv; +PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer; PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glRenderbufferStorageMultisample; -PFNGLFRAMEBUFFERTEXTURELAYERPROC glFramebufferTextureLayer; -PFNGLMAPBUFFERRANGEPROC glMapBufferRange; -PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange; -PFNGLBINDVERTEXARRAYPROC glBindVertexArray; -PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays; -PFNGLGENVERTEXARRAYSPROC glGenVertexArrays; -PFNGLISVERTEXARRAYPROC glIsVertexArray; -PFNGLGETINTEGERI_VPROC glGetIntegeri_v; -PFNGLBEGINTRANSFORMFEEDBACKPROC glBeginTransformFeedback; -PFNGLENDTRANSFORMFEEDBACKPROC glEndTransformFeedback; -PFNGLBINDBUFFERRANGEPROC glBindBufferRange; -PFNGLBINDBUFFERBASEPROC glBindBufferBase; -PFNGLTRANSFORMFEEDBACKVARYINGSPROC glTransformFeedbackVaryings; -PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glGetTransformFeedbackVarying; -PFNGLVERTEXATTRIBIPOINTERPROC glVertexAttribIPointer; -PFNGLGETVERTEXATTRIBIIVPROC glGetVertexAttribIiv; -PFNGLGETVERTEXATTRIBIUIVPROC glGetVertexAttribIuiv; -PFNGLVERTEXATTRIBI4IPROC glVertexAttribI4i; -PFNGLVERTEXATTRIBI4UIPROC glVertexAttribI4ui; -PFNGLVERTEXATTRIBI4IVPROC glVertexAttribI4iv; -PFNGLVERTEXATTRIBI4UIVPROC glVertexAttribI4uiv; -PFNGLGETUNIFORMUIVPROC glGetUniformuiv; -PFNGLGETFRAGDATALOCATIONPROC glGetFragDataLocation; -PFNGLUNIFORM1UIPROC glUniform1ui; -PFNGLUNIFORM2UIPROC glUniform2ui; -PFNGLUNIFORM3UIPROC glUniform3ui; -PFNGLUNIFORM4UIPROC glUniform4ui; -PFNGLUNIFORM1UIVPROC glUniform1uiv; -PFNGLUNIFORM2UIVPROC glUniform2uiv; -PFNGLUNIFORM3UIVPROC glUniform3uiv; -PFNGLUNIFORM4UIVPROC glUniform4uiv; -PFNGLCLEARBUFFERIVPROC glClearBufferiv; -PFNGLCLEARBUFFERUIVPROC glClearBufferuiv; -PFNGLCLEARBUFFERFVPROC glClearBufferfv; -PFNGLCLEARBUFFERFIPROC glClearBufferfi; -PFNGLGETSTRINGIPROC glGetStringi; -PFNGLCOPYBUFFERSUBDATAPROC glCopyBufferSubData; -PFNGLGETUNIFORMINDICESPROC glGetUniformIndices; -PFNGLGETACTIVEUNIFORMSIVPROC glGetActiveUniformsiv; -PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex; -PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv; -PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName; -PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding; -PFNGLDRAWARRAYSINSTANCEDPROC glDrawArraysInstanced; -PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced; -PFNGLFENCESYNCPROC glFenceSync; -PFNGLISSYNCPROC glIsSync; -PFNGLDELETESYNCPROC glDeleteSync; -PFNGLCLIENTWAITSYNCPROC glClientWaitSync; -PFNGLWAITSYNCPROC glWaitSync; -PFNGLGETINTEGER64VPROC glGetInteger64v; -PFNGLGETSYNCIVPROC glGetSynciv; -PFNGLGETINTEGER64I_VPROC glGetInteger64i_v; -PFNGLGETBUFFERPARAMETERI64VPROC glGetBufferParameteri64v; -PFNGLGENSAMPLERSPROC glGenSamplers; -PFNGLDELETESAMPLERSPROC glDeleteSamplers; -PFNGLISSAMPLERPROC glIsSampler; -PFNGLBINDSAMPLERPROC glBindSampler; -PFNGLSAMPLERPARAMETERIPROC glSamplerParameteri; -PFNGLSAMPLERPARAMETERIVPROC glSamplerParameteriv; -PFNGLSAMPLERPARAMETERFPROC glSamplerParameterf; -PFNGLSAMPLERPARAMETERFVPROC glSamplerParameterfv; -PFNGLGETSAMPLERPARAMETERIVPROC glGetSamplerParameteriv; -PFNGLGETSAMPLERPARAMETERFVPROC glGetSamplerParameterfv; -PFNGLVERTEXATTRIBDIVISORPROC glVertexAttribDivisor; -PFNGLBINDTRANSFORMFEEDBACKPROC glBindTransformFeedback; -PFNGLDELETETRANSFORMFEEDBACKSPROC glDeleteTransformFeedbacks; -PFNGLGENTRANSFORMFEEDBACKSPROC glGenTransformFeedbacks; -PFNGLISTRANSFORMFEEDBACKPROC glIsTransformFeedback; -PFNGLPAUSETRANSFORMFEEDBACKPROC glPauseTransformFeedback; -PFNGLRESUMETRANSFORMFEEDBACKPROC glResumeTransformFeedback; -PFNGLGETPROGRAMBINARYPROC glGetProgramBinary; -PFNGLPROGRAMBINARYPROC glProgramBinary; -PFNGLPROGRAMPARAMETERIPROC glProgramParameteri; -PFNGLINVALIDATEFRAMEBUFFERPROC glInvalidateFramebuffer; -PFNGLINVALIDATESUBFRAMEBUFFERPROC glInvalidateSubFramebuffer; -PFNGLTEXSTORAGE2DPROC glTexStorage2D; -PFNGLTEXSTORAGE3DPROC glTexStorage3D; -PFNGLGETINTERNALFORMATIVPROC glGetInternalformativ; - +PFNGLFRAMEBUFFERTEXTURELAYERPROC glFramebufferTextureLayer; +PFNGLMAPBUFFERRANGEPROC glMapBufferRange; +PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange; +PFNGLBINDVERTEXARRAYPROC glBindVertexArray; +PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays; +PFNGLGENVERTEXARRAYSPROC glGenVertexArrays; +PFNGLISVERTEXARRAYPROC glIsVertexArray; +PFNGLGETINTEGERI_VPROC glGetIntegeri_v; +PFNGLBEGINTRANSFORMFEEDBACKPROC glBeginTransformFeedback; +PFNGLENDTRANSFORMFEEDBACKPROC glEndTransformFeedback; +PFNGLBINDBUFFERRANGEPROC glBindBufferRange; +PFNGLBINDBUFFERBASEPROC glBindBufferBase; +PFNGLTRANSFORMFEEDBACKVARYINGSPROC glTransformFeedbackVaryings; +PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glGetTransformFeedbackVarying; +PFNGLVERTEXATTRIBIPOINTERPROC glVertexAttribIPointer; +PFNGLGETVERTEXATTRIBIIVPROC glGetVertexAttribIiv; +PFNGLGETVERTEXATTRIBIUIVPROC glGetVertexAttribIuiv; +PFNGLVERTEXATTRIBI4IPROC glVertexAttribI4i; +PFNGLVERTEXATTRIBI4UIPROC glVertexAttribI4ui; +PFNGLVERTEXATTRIBI4IVPROC glVertexAttribI4iv; +PFNGLVERTEXATTRIBI4UIVPROC glVertexAttribI4uiv; +PFNGLGETUNIFORMUIVPROC glGetUniformuiv; +PFNGLGETFRAGDATALOCATIONPROC glGetFragDataLocation; +PFNGLUNIFORM1UIPROC glUniform1ui; +PFNGLUNIFORM2UIPROC glUniform2ui; +PFNGLUNIFORM3UIPROC glUniform3ui; +PFNGLUNIFORM4UIPROC glUniform4ui; +PFNGLUNIFORM1UIVPROC glUniform1uiv; +PFNGLUNIFORM2UIVPROC glUniform2uiv; +PFNGLUNIFORM3UIVPROC glUniform3uiv; +PFNGLUNIFORM4UIVPROC glUniform4uiv; +PFNGLCLEARBUFFERIVPROC glClearBufferiv; +PFNGLCLEARBUFFERUIVPROC glClearBufferuiv; +PFNGLCLEARBUFFERFVPROC glClearBufferfv; +PFNGLCLEARBUFFERFIPROC glClearBufferfi; +PFNGLGETSTRINGIPROC glGetStringi; +PFNGLCOPYBUFFERSUBDATAPROC glCopyBufferSubData; +PFNGLGETUNIFORMINDICESPROC glGetUniformIndices; +PFNGLGETACTIVEUNIFORMSIVPROC glGetActiveUniformsiv; +PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex; +PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv; +PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName; +PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding; +PFNGLDRAWARRAYSINSTANCEDPROC glDrawArraysInstanced; +PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced; +PFNGLFENCESYNCPROC glFenceSync; +PFNGLISSYNCPROC glIsSync; +PFNGLDELETESYNCPROC glDeleteSync; +PFNGLCLIENTWAITSYNCPROC glClientWaitSync; +PFNGLWAITSYNCPROC glWaitSync; +PFNGLGETINTEGER64VPROC glGetInteger64v; +PFNGLGETSYNCIVPROC glGetSynciv; +PFNGLGETINTEGER64I_VPROC glGetInteger64i_v; +PFNGLGETBUFFERPARAMETERI64VPROC glGetBufferParameteri64v; +PFNGLGENSAMPLERSPROC glGenSamplers; +PFNGLDELETESAMPLERSPROC glDeleteSamplers; +PFNGLISSAMPLERPROC glIsSampler; +PFNGLBINDSAMPLERPROC glBindSampler; +PFNGLSAMPLERPARAMETERIPROC glSamplerParameteri; +PFNGLSAMPLERPARAMETERIVPROC glSamplerParameteriv; +PFNGLSAMPLERPARAMETERFPROC glSamplerParameterf; +PFNGLSAMPLERPARAMETERFVPROC glSamplerParameterfv; +PFNGLGETSAMPLERPARAMETERIVPROC glGetSamplerParameteriv; +PFNGLGETSAMPLERPARAMETERFVPROC glGetSamplerParameterfv; +PFNGLVERTEXATTRIBDIVISORPROC glVertexAttribDivisor; +PFNGLBINDTRANSFORMFEEDBACKPROC glBindTransformFeedback; +PFNGLDELETETRANSFORMFEEDBACKSPROC glDeleteTransformFeedbacks; +PFNGLGENTRANSFORMFEEDBACKSPROC glGenTransformFeedbacks; +PFNGLISTRANSFORMFEEDBACKPROC glIsTransformFeedback; +PFNGLPAUSETRANSFORMFEEDBACKPROC glPauseTransformFeedback; +PFNGLRESUMETRANSFORMFEEDBACKPROC glResumeTransformFeedback; +PFNGLGETPROGRAMBINARYPROC glGetProgramBinary; +PFNGLPROGRAMBINARYPROC glProgramBinary; +PFNGLPROGRAMPARAMETERIPROC glProgramParameteri; +PFNGLINVALIDATEFRAMEBUFFERPROC glInvalidateFramebuffer; +PFNGLINVALIDATESUBFRAMEBUFFERPROC glInvalidateSubFramebuffer; +PFNGLTEXSTORAGE2DPROC glTexStorage2D; +PFNGLTEXSTORAGE3DPROC glTexStorage3D; +PFNGLGETINTERNALFORMATIVPROC glGetInternalformativ; /* GL_ES_VERSION_3_1 */ -PFNGLDISPATCHCOMPUTEPROC glDispatchCompute; +PFNGLDISPATCHCOMPUTEPROC glDispatchCompute; PFNGLDISPATCHCOMPUTEINDIRECTPROC glDispatchComputeIndirect; -PFNGLDRAWARRAYSINDIRECTPROC glDrawArraysIndirect; +PFNGLDRAWARRAYSINDIRECTPROC glDrawArraysIndirect; PFNGLDRAWELEMENTSINDIRECTPROC glDrawElementsIndirect; -PFNGLFRAMEBUFFERPARAMETERIPROC glFramebufferParameteri; +PFNGLFRAMEBUFFERPARAMETERIPROC glFramebufferParameteri; PFNGLGETFRAMEBUFFERPARAMETERIVPROC glGetFramebufferParameteriv; -PFNGLGETPROGRAMINTERFACEIVPROC glGetProgramInterfaceiv; -PFNGLGETPROGRAMRESOURCEINDEXPROC glGetProgramResourceIndex; -PFNGLGETPROGRAMRESOURCENAMEPROC glGetProgramResourceName; -PFNGLGETPROGRAMRESOURCEIVPROC glGetProgramResourceiv; +PFNGLGETPROGRAMINTERFACEIVPROC glGetProgramInterfaceiv; +PFNGLGETPROGRAMRESOURCEINDEXPROC glGetProgramResourceIndex; +PFNGLGETPROGRAMRESOURCENAMEPROC glGetProgramResourceName; +PFNGLGETPROGRAMRESOURCEIVPROC glGetProgramResourceiv; PFNGLGETPROGRAMRESOURCELOCATIONPROC glGetProgramResourceLocation; -PFNGLUSEPROGRAMSTAGESPROC glUseProgramStages; -PFNGLACTIVESHADERPROGRAMPROC glActiveShaderProgram; -PFNGLCREATESHADERPROGRAMVPROC glCreateShaderProgramv; -PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline; -PFNGLDELETEPROGRAMPIPELINESPROC glDeleteProgramPipelines; -PFNGLGENPROGRAMPIPELINESPROC glGenProgramPipelines; -PFNGLISPROGRAMPIPELINEPROC glIsProgramPipeline; -PFNGLGETPROGRAMPIPELINEIVPROC glGetProgramPipelineiv; -PFNGLPROGRAMUNIFORM1IPROC glProgramUniform1i; -PFNGLPROGRAMUNIFORM2IPROC glProgramUniform2i; -PFNGLPROGRAMUNIFORM3IPROC glProgramUniform3i; -PFNGLPROGRAMUNIFORM4IPROC glProgramUniform4i; -PFNGLPROGRAMUNIFORM1UIPROC glProgramUniform1ui; -PFNGLPROGRAMUNIFORM2UIPROC glProgramUniform2ui; -PFNGLPROGRAMUNIFORM3UIPROC glProgramUniform3ui; -PFNGLPROGRAMUNIFORM4UIPROC glProgramUniform4ui; -PFNGLPROGRAMUNIFORM1FPROC glProgramUniform1f; -PFNGLPROGRAMUNIFORM2FPROC glProgramUniform2f; -PFNGLPROGRAMUNIFORM3FPROC glProgramUniform3f; -PFNGLPROGRAMUNIFORM4FPROC glProgramUniform4f; -PFNGLPROGRAMUNIFORM1IVPROC glProgramUniform1iv; -PFNGLPROGRAMUNIFORM2IVPROC glProgramUniform2iv; -PFNGLPROGRAMUNIFORM3IVPROC glProgramUniform3iv; -PFNGLPROGRAMUNIFORM4IVPROC glProgramUniform4iv; -PFNGLPROGRAMUNIFORM1UIVPROC glProgramUniform1uiv; -PFNGLPROGRAMUNIFORM2UIVPROC glProgramUniform2uiv; -PFNGLPROGRAMUNIFORM3UIVPROC glProgramUniform3uiv; -PFNGLPROGRAMUNIFORM4UIVPROC glProgramUniform4uiv; -PFNGLPROGRAMUNIFORM1FVPROC glProgramUniform1fv; -PFNGLPROGRAMUNIFORM2FVPROC glProgramUniform2fv; -PFNGLPROGRAMUNIFORM3FVPROC glProgramUniform3fv; -PFNGLPROGRAMUNIFORM4FVPROC glProgramUniform4fv; -PFNGLPROGRAMUNIFORMMATRIX2FVPROC glProgramUniformMatrix2fv; -PFNGLPROGRAMUNIFORMMATRIX3FVPROC glProgramUniformMatrix3fv; -PFNGLPROGRAMUNIFORMMATRIX4FVPROC glProgramUniformMatrix4fv; +PFNGLUSEPROGRAMSTAGESPROC glUseProgramStages; +PFNGLACTIVESHADERPROGRAMPROC glActiveShaderProgram; +PFNGLCREATESHADERPROGRAMVPROC glCreateShaderProgramv; +PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline; +PFNGLDELETEPROGRAMPIPELINESPROC glDeleteProgramPipelines; +PFNGLGENPROGRAMPIPELINESPROC glGenProgramPipelines; +PFNGLISPROGRAMPIPELINEPROC glIsProgramPipeline; +PFNGLGETPROGRAMPIPELINEIVPROC glGetProgramPipelineiv; +PFNGLPROGRAMUNIFORM1IPROC glProgramUniform1i; +PFNGLPROGRAMUNIFORM2IPROC glProgramUniform2i; +PFNGLPROGRAMUNIFORM3IPROC glProgramUniform3i; +PFNGLPROGRAMUNIFORM4IPROC glProgramUniform4i; +PFNGLPROGRAMUNIFORM1UIPROC glProgramUniform1ui; +PFNGLPROGRAMUNIFORM2UIPROC glProgramUniform2ui; +PFNGLPROGRAMUNIFORM3UIPROC glProgramUniform3ui; +PFNGLPROGRAMUNIFORM4UIPROC glProgramUniform4ui; +PFNGLPROGRAMUNIFORM1FPROC glProgramUniform1f; +PFNGLPROGRAMUNIFORM2FPROC glProgramUniform2f; +PFNGLPROGRAMUNIFORM3FPROC glProgramUniform3f; +PFNGLPROGRAMUNIFORM4FPROC glProgramUniform4f; +PFNGLPROGRAMUNIFORM1IVPROC glProgramUniform1iv; +PFNGLPROGRAMUNIFORM2IVPROC glProgramUniform2iv; +PFNGLPROGRAMUNIFORM3IVPROC glProgramUniform3iv; +PFNGLPROGRAMUNIFORM4IVPROC glProgramUniform4iv; +PFNGLPROGRAMUNIFORM1UIVPROC glProgramUniform1uiv; +PFNGLPROGRAMUNIFORM2UIVPROC glProgramUniform2uiv; +PFNGLPROGRAMUNIFORM3UIVPROC glProgramUniform3uiv; +PFNGLPROGRAMUNIFORM4UIVPROC glProgramUniform4uiv; +PFNGLPROGRAMUNIFORM1FVPROC glProgramUniform1fv; +PFNGLPROGRAMUNIFORM2FVPROC glProgramUniform2fv; +PFNGLPROGRAMUNIFORM3FVPROC glProgramUniform3fv; +PFNGLPROGRAMUNIFORM4FVPROC glProgramUniform4fv; +PFNGLPROGRAMUNIFORMMATRIX2FVPROC glProgramUniformMatrix2fv; +PFNGLPROGRAMUNIFORMMATRIX3FVPROC glProgramUniformMatrix3fv; +PFNGLPROGRAMUNIFORMMATRIX4FVPROC glProgramUniformMatrix4fv; PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glProgramUniformMatrix2x3fv; PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glProgramUniformMatrix3x2fv; PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glProgramUniformMatrix2x4fv; PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glProgramUniformMatrix4x2fv; PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glProgramUniformMatrix3x4fv; PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glProgramUniformMatrix4x3fv; -PFNGLVALIDATEPROGRAMPIPELINEPROC glValidateProgramPipeline; +PFNGLVALIDATEPROGRAMPIPELINEPROC glValidateProgramPipeline; PFNGLGETPROGRAMPIPELINEINFOLOGPROC glGetProgramPipelineInfoLog; -PFNGLBINDIMAGETEXTUREPROC glBindImageTexture; -PFNGLGETBOOLEANI_VPROC glGetBooleani_v; -PFNGLMEMORYBARRIERPROC glMemoryBarrier; +PFNGLBINDIMAGETEXTUREPROC glBindImageTexture; +PFNGLGETBOOLEANI_VPROC glGetBooleani_v; +PFNGLMEMORYBARRIERPROC glMemoryBarrier; PFNGLMEMORYBARRIERBYREGIONPROC glMemoryBarrierByRegion; PFNGLTEXSTORAGE2DMULTISAMPLEPROC glTexStorage2DMultisample; -PFNGLGETMULTISAMPLEFVPROC glGetMultisamplefv; -PFNGLSAMPLEMASKIPROC glSampleMaski; -PFNGLGETTEXLEVELPARAMETERIVPROC glGetTexLevelParameteriv; -PFNGLGETTEXLEVELPARAMETERFVPROC glGetTexLevelParameterfv; +PFNGLGETMULTISAMPLEFVPROC glGetMultisamplefv; +PFNGLSAMPLEMASKIPROC glSampleMaski; +PFNGLGETTEXLEVELPARAMETERIVPROC glGetTexLevelParameteriv; +PFNGLGETTEXLEVELPARAMETERFVPROC glGetTexLevelParameterfv; -PFNGLBINDVERTEXBUFFERPROC glBindVertexBuffer; -PFNGLVERTEXATTRIBFORMATPROC glVertexAttribFormat; -PFNGLVERTEXATTRIBIFORMATPROC glVertexAttribIFormat; -PFNGLVERTEXATTRIBBINDINGPROC glVertexAttribBinding; +PFNGLBINDVERTEXBUFFERPROC glBindVertexBuffer; +PFNGLVERTEXATTRIBFORMATPROC glVertexAttribFormat; +PFNGLVERTEXATTRIBIFORMATPROC glVertexAttribIFormat; +PFNGLVERTEXATTRIBBINDINGPROC glVertexAttribBinding; PFNGLVERTEXBINDINGDIVISORPROC glVertexBindingDivisor; - /* GL_ES_VERSION_3_2 */ PFNGLBLENDBARRIERPROC glBlendBarrier; PFNGLCOPYIMAGESUBDATAPROC glCopyImageSubData; -PFNGLDEBUGMESSAGECONTROLPROC glDebugMessageControl; -PFNGLDEBUGMESSAGEINSERTPROC glDebugMessageInsert; +PFNGLDEBUGMESSAGECONTROLPROC glDebugMessageControl; +PFNGLDEBUGMESSAGEINSERTPROC glDebugMessageInsert; PFNGLDEBUGMESSAGECALLBACKPROC glDebugMessageCallback; -PFNGLGETDEBUGMESSAGELOGPROC glGetDebugMessageLog; -PFNGLPUSHDEBUGGROUPPROC glPushDebugGroup; -PFNGLPOPDEBUGGROUPPROC glPopDebugGroup; -PFNGLOBJECTLABELPROC glObjectLabel; -PFNGLGETOBJECTLABELPROC glGetObjectLabel; -PFNGLOBJECTPTRLABELPROC glObjectPtrLabel; -PFNGLGETOBJECTPTRLABELPROC glGetObjectPtrLabel; -PFNGLGETPOINTERVPROC glGetPointerv; +PFNGLGETDEBUGMESSAGELOGPROC glGetDebugMessageLog; +PFNGLPUSHDEBUGGROUPPROC glPushDebugGroup; +PFNGLPOPDEBUGGROUPPROC glPopDebugGroup; +PFNGLOBJECTLABELPROC glObjectLabel; +PFNGLGETOBJECTLABELPROC glGetObjectLabel; +PFNGLOBJECTPTRLABELPROC glObjectPtrLabel; +PFNGLGETOBJECTPTRLABELPROC glGetObjectPtrLabel; +PFNGLGETPOINTERVPROC glGetPointerv; -PFNGLENABLEIPROC glEnablei; -PFNGLDISABLEIPROC glDisablei; -PFNGLBLENDEQUATIONIPROC glBlendEquationi; +PFNGLENABLEIPROC glEnablei; +PFNGLDISABLEIPROC glDisablei; +PFNGLBLENDEQUATIONIPROC glBlendEquationi; PFNGLBLENDEQUATIONSEPARATEIPROC glBlendEquationSeparatei; -PFNGLBLENDFUNCIPROC glBlendFunci; -PFNGLBLENDFUNCSEPARATEIPROC glBlendFuncSeparatei; -PFNGLCOLORMASKIPROC glColorMaski; -PFNGLISENABLEDIPROC glIsEnabledi; +PFNGLBLENDFUNCIPROC glBlendFunci; +PFNGLBLENDFUNCSEPARATEIPROC glBlendFuncSeparatei; +PFNGLCOLORMASKIPROC glColorMaski; +PFNGLISENABLEDIPROC glIsEnabledi; -PFNGLDRAWELEMENTSBASEVERTEXPROC glDrawElementsBaseVertex; -PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glDrawRangeElementsBaseVertex; +PFNGLDRAWELEMENTSBASEVERTEXPROC glDrawElementsBaseVertex; +PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glDrawRangeElementsBaseVertex; PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glDrawElementsInstancedBaseVertex; PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture; @@ -253,30 +251,29 @@ PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture; PFNGLPRIMITIVEBOUNDINGBOXPROC glPrimitiveBoundingBox; PFNGLGETGRAPHICSRESETSTATUSPROC glGetGraphicsResetStatus; -PFNGLREADNPIXELSPROC glReadnPixels; -PFNGLGETNUNIFORMFVPROC glGetnUniformfv; -PFNGLGETNUNIFORMIVPROC glGetnUniformiv; -PFNGLGETNUNIFORMUIVPROC glGetnUniformuiv; +PFNGLREADNPIXELSPROC glReadnPixels; +PFNGLGETNUNIFORMFVPROC glGetnUniformfv; +PFNGLGETNUNIFORMIVPROC glGetnUniformiv; +PFNGLGETNUNIFORMUIVPROC glGetnUniformuiv; PFNGLMINSAMPLESHADINGPROC glMinSampleShading; PFNGLPATCHPARAMETERIPROC glPatchParameteri; -PFNGLTEXPARAMETERIIVPROC glTexParameterIiv; -PFNGLTEXPARAMETERIUIVPROC glTexParameterIuiv; -PFNGLGETTEXPARAMETERIIVPROC glGetTexParameterIiv; -PFNGLGETTEXPARAMETERIUIVPROC glGetTexParameterIuiv; -PFNGLSAMPLERPARAMETERIIVPROC glSamplerParameterIiv; -PFNGLSAMPLERPARAMETERIUIVPROC glSamplerParameterIuiv; -PFNGLGETSAMPLERPARAMETERIIVPROC glGetSamplerParameterIiv; +PFNGLTEXPARAMETERIIVPROC glTexParameterIiv; +PFNGLTEXPARAMETERIUIVPROC glTexParameterIuiv; +PFNGLGETTEXPARAMETERIIVPROC glGetTexParameterIiv; +PFNGLGETTEXPARAMETERIUIVPROC glGetTexParameterIuiv; +PFNGLSAMPLERPARAMETERIIVPROC glSamplerParameterIiv; +PFNGLSAMPLERPARAMETERIUIVPROC glSamplerParameterIuiv; +PFNGLGETSAMPLERPARAMETERIIVPROC glGetSamplerParameterIiv; PFNGLGETSAMPLERPARAMETERIUIVPROC glGetSamplerParameterIuiv; -PFNGLTEXBUFFERPROC glTexBuffer; +PFNGLTEXBUFFERPROC glTexBuffer; PFNGLTEXBUFFERRANGEPROC glTexBufferRange; PFNGLTEXSTORAGE3DMULTISAMPLEPROC glTexStorage3DMultisample; - /* GLES3W_GENERATE_GLES_DEFINITION */ /** @@ -296,218 +293,216 @@ void gles3wLoadProcs(PFNGLES3WLOADPROC gles3wLoad) { /* GLES3W_GENERATE_GLES_LOAD */ /* GL_ES_VERSION_3_0 */ - glReadBuffer = reinterpret_cast(gles3wLoad("glReadBuffer")); - glDrawRangeElements = reinterpret_cast(gles3wLoad("glDrawRangeElements")); - glTexImage3D = reinterpret_cast(gles3wLoad("glTexImage3D")); - glTexSubImage3D = reinterpret_cast(gles3wLoad("glTexSubImage3D")); - glCopyTexSubImage3D = reinterpret_cast(gles3wLoad("glCopyTexSubImage3D")); - glCompressedTexImage3D = reinterpret_cast(gles3wLoad("glCompressedTexImage3D")); - glCompressedTexSubImage3D = reinterpret_cast(gles3wLoad("glCompressedTexSubImage3D")); - glGenQueries = reinterpret_cast(gles3wLoad("glGenQueries")); - glDeleteQueries = reinterpret_cast(gles3wLoad("glDeleteQueries")); - glIsQuery = reinterpret_cast(gles3wLoad("glIsQuery")); - glBeginQuery = reinterpret_cast(gles3wLoad("glBeginQuery")); - glEndQuery = reinterpret_cast(gles3wLoad("glEndQuery")); - glGetQueryiv = reinterpret_cast(gles3wLoad("glGetQueryiv")); - glGetQueryObjectuiv = reinterpret_cast(gles3wLoad("glGetQueryObjectuiv")); - glUnmapBuffer = reinterpret_cast(gles3wLoad("glUnmapBuffer")); - glGetBufferPointerv = reinterpret_cast(gles3wLoad("glGetBufferPointerv")); - glDrawBuffers = reinterpret_cast(gles3wLoad("glDrawBuffers")); - glUniformMatrix2x3fv = reinterpret_cast(gles3wLoad("glUniformMatrix2x3fv")); - glUniformMatrix3x2fv = reinterpret_cast(gles3wLoad("glUniformMatrix3x2fv")); - glUniformMatrix2x4fv = reinterpret_cast(gles3wLoad("glUniformMatrix2x4fv")); - glUniformMatrix4x2fv = reinterpret_cast(gles3wLoad("glUniformMatrix4x2fv")); - glUniformMatrix3x4fv = reinterpret_cast(gles3wLoad("glUniformMatrix3x4fv")); - glUniformMatrix4x3fv = reinterpret_cast(gles3wLoad("glUniformMatrix4x3fv")); - glBlitFramebuffer = reinterpret_cast(gles3wLoad("glBlitFramebuffer")); + glReadBuffer = reinterpret_cast(gles3wLoad("glReadBuffer")); + glDrawRangeElements = reinterpret_cast(gles3wLoad("glDrawRangeElements")); + glTexImage3D = reinterpret_cast(gles3wLoad("glTexImage3D")); + glTexSubImage3D = reinterpret_cast(gles3wLoad("glTexSubImage3D")); + glCopyTexSubImage3D = reinterpret_cast(gles3wLoad("glCopyTexSubImage3D")); + glCompressedTexImage3D = reinterpret_cast(gles3wLoad("glCompressedTexImage3D")); + glCompressedTexSubImage3D = reinterpret_cast(gles3wLoad("glCompressedTexSubImage3D")); + glGenQueries = reinterpret_cast(gles3wLoad("glGenQueries")); + glDeleteQueries = reinterpret_cast(gles3wLoad("glDeleteQueries")); + glIsQuery = reinterpret_cast(gles3wLoad("glIsQuery")); + glBeginQuery = reinterpret_cast(gles3wLoad("glBeginQuery")); + glEndQuery = reinterpret_cast(gles3wLoad("glEndQuery")); + glGetQueryiv = reinterpret_cast(gles3wLoad("glGetQueryiv")); + glGetQueryObjectuiv = reinterpret_cast(gles3wLoad("glGetQueryObjectuiv")); + glUnmapBuffer = reinterpret_cast(gles3wLoad("glUnmapBuffer")); + glGetBufferPointerv = reinterpret_cast(gles3wLoad("glGetBufferPointerv")); + glDrawBuffers = reinterpret_cast(gles3wLoad("glDrawBuffers")); + glUniformMatrix2x3fv = reinterpret_cast(gles3wLoad("glUniformMatrix2x3fv")); + glUniformMatrix3x2fv = reinterpret_cast(gles3wLoad("glUniformMatrix3x2fv")); + glUniformMatrix2x4fv = reinterpret_cast(gles3wLoad("glUniformMatrix2x4fv")); + glUniformMatrix4x2fv = reinterpret_cast(gles3wLoad("glUniformMatrix4x2fv")); + glUniformMatrix3x4fv = reinterpret_cast(gles3wLoad("glUniformMatrix3x4fv")); + glUniformMatrix4x3fv = reinterpret_cast(gles3wLoad("glUniformMatrix4x3fv")); + glBlitFramebuffer = reinterpret_cast(gles3wLoad("glBlitFramebuffer")); glRenderbufferStorageMultisample = reinterpret_cast(gles3wLoad("glRenderbufferStorageMultisample")); - glFramebufferTextureLayer = reinterpret_cast(gles3wLoad("glFramebufferTextureLayer")); - glMapBufferRange = reinterpret_cast(gles3wLoad("glMapBufferRange")); - glFlushMappedBufferRange = reinterpret_cast(gles3wLoad("glFlushMappedBufferRange")); - glBindVertexArray = reinterpret_cast(gles3wLoad("glBindVertexArray")); - glDeleteVertexArrays = reinterpret_cast(gles3wLoad("glDeleteVertexArrays")); - glGenVertexArrays = reinterpret_cast(gles3wLoad("glGenVertexArrays")); - glIsVertexArray = reinterpret_cast(gles3wLoad("glIsVertexArray")); - glGetIntegeri_v = reinterpret_cast(gles3wLoad("glGetIntegeri_v")); - glBeginTransformFeedback = reinterpret_cast(gles3wLoad("glBeginTransformFeedback")); - glEndTransformFeedback = reinterpret_cast(gles3wLoad("glEndTransformFeedback")); - glBindBufferRange = reinterpret_cast(gles3wLoad("glBindBufferRange")); - glBindBufferBase = reinterpret_cast(gles3wLoad("glBindBufferBase")); - glTransformFeedbackVaryings = reinterpret_cast(gles3wLoad("glTransformFeedbackVaryings")); - glGetTransformFeedbackVarying = reinterpret_cast(gles3wLoad("glGetTransformFeedbackVarying")); - glVertexAttribIPointer = reinterpret_cast(gles3wLoad("glVertexAttribIPointer")); - glGetVertexAttribIiv = reinterpret_cast(gles3wLoad("glGetVertexAttribIiv")); - glGetVertexAttribIuiv = reinterpret_cast(gles3wLoad("glGetVertexAttribIuiv")); - glVertexAttribI4i = reinterpret_cast(gles3wLoad("glVertexAttribI4i")); - glVertexAttribI4ui = reinterpret_cast(gles3wLoad("glVertexAttribI4ui")); - glVertexAttribI4iv = reinterpret_cast(gles3wLoad("glVertexAttribI4iv")); - glVertexAttribI4uiv = reinterpret_cast(gles3wLoad("glVertexAttribI4uiv")); - glGetUniformuiv = reinterpret_cast(gles3wLoad("glGetUniformuiv")); - glGetFragDataLocation = reinterpret_cast(gles3wLoad("glGetFragDataLocation")); - glUniform1ui = reinterpret_cast(gles3wLoad("glUniform1ui")); - glUniform2ui = reinterpret_cast(gles3wLoad("glUniform2ui")); - glUniform3ui = reinterpret_cast(gles3wLoad("glUniform3ui")); - glUniform4ui = reinterpret_cast(gles3wLoad("glUniform4ui")); - glUniform1uiv = reinterpret_cast(gles3wLoad("glUniform1uiv")); - glUniform2uiv = reinterpret_cast(gles3wLoad("glUniform2uiv")); - glUniform3uiv = reinterpret_cast(gles3wLoad("glUniform3uiv")); - glUniform4uiv = reinterpret_cast(gles3wLoad("glUniform4uiv")); - glClearBufferiv = reinterpret_cast(gles3wLoad("glClearBufferiv")); - glClearBufferuiv = reinterpret_cast(gles3wLoad("glClearBufferuiv")); - glClearBufferfv = reinterpret_cast(gles3wLoad("glClearBufferfv")); - glClearBufferfi = reinterpret_cast(gles3wLoad("glClearBufferfi")); - glGetStringi = reinterpret_cast(gles3wLoad("glGetStringi")); - glCopyBufferSubData = reinterpret_cast(gles3wLoad("glCopyBufferSubData")); - glGetUniformIndices = reinterpret_cast(gles3wLoad("glGetUniformIndices")); - glGetActiveUniformsiv = reinterpret_cast(gles3wLoad("glGetActiveUniformsiv")); - glGetUniformBlockIndex = reinterpret_cast(gles3wLoad("glGetUniformBlockIndex")); - glGetActiveUniformBlockiv = reinterpret_cast(gles3wLoad("glGetActiveUniformBlockiv")); - glGetActiveUniformBlockName = reinterpret_cast(gles3wLoad("glGetActiveUniformBlockName")); - glUniformBlockBinding = reinterpret_cast(gles3wLoad("glUniformBlockBinding")); - glDrawArraysInstanced = reinterpret_cast(gles3wLoad("glDrawArraysInstanced")); - glDrawElementsInstanced = reinterpret_cast(gles3wLoad("glDrawElementsInstanced")); - glFenceSync = reinterpret_cast(gles3wLoad("glFenceSync")); - glIsSync = reinterpret_cast(gles3wLoad("glIsSync")); - glDeleteSync = reinterpret_cast(gles3wLoad("glDeleteSync")); - glClientWaitSync = reinterpret_cast(gles3wLoad("glClientWaitSync")); - glWaitSync = reinterpret_cast(gles3wLoad("glWaitSync")); - glGetInteger64v = reinterpret_cast(gles3wLoad("glGetInteger64v")); - glGetSynciv = reinterpret_cast(gles3wLoad("glGetSynciv")); - glGetInteger64i_v = reinterpret_cast(gles3wLoad("glGetInteger64i_v")); - glGetBufferParameteri64v = reinterpret_cast(gles3wLoad("glGetBufferParameteri64v")); - glGenSamplers = reinterpret_cast(gles3wLoad("glGenSamplers")); - glDeleteSamplers = reinterpret_cast(gles3wLoad("glDeleteSamplers")); - glIsSampler = reinterpret_cast(gles3wLoad("glIsSampler")); - glBindSampler = reinterpret_cast(gles3wLoad("glBindSampler")); - glSamplerParameteri = reinterpret_cast(gles3wLoad("glSamplerParameteri")); - glSamplerParameteriv = reinterpret_cast(gles3wLoad("glSamplerParameteriv")); - glSamplerParameterf = reinterpret_cast(gles3wLoad("glSamplerParameterf")); - glSamplerParameterfv = reinterpret_cast(gles3wLoad("glSamplerParameterfv")); - glGetSamplerParameteriv = reinterpret_cast(gles3wLoad("glGetSamplerParameteriv")); - glGetSamplerParameterfv = reinterpret_cast(gles3wLoad("glGetSamplerParameterfv")); - glVertexAttribDivisor = reinterpret_cast(gles3wLoad("glVertexAttribDivisor")); - glBindTransformFeedback = reinterpret_cast(gles3wLoad("glBindTransformFeedback")); - glDeleteTransformFeedbacks = reinterpret_cast(gles3wLoad("glDeleteTransformFeedbacks")); - glGenTransformFeedbacks = reinterpret_cast(gles3wLoad("glGenTransformFeedbacks")); - glIsTransformFeedback = reinterpret_cast(gles3wLoad("glIsTransformFeedback")); - glPauseTransformFeedback = reinterpret_cast(gles3wLoad("glPauseTransformFeedback")); - glResumeTransformFeedback = reinterpret_cast(gles3wLoad("glResumeTransformFeedback")); - glGetProgramBinary = reinterpret_cast(gles3wLoad("glGetProgramBinary")); - glProgramBinary = reinterpret_cast(gles3wLoad("glProgramBinary")); - glProgramParameteri = reinterpret_cast(gles3wLoad("glProgramParameteri")); - glInvalidateFramebuffer = reinterpret_cast(gles3wLoad("glInvalidateFramebuffer")); - glInvalidateSubFramebuffer = reinterpret_cast(gles3wLoad("glInvalidateSubFramebuffer")); - glTexStorage2D = reinterpret_cast(gles3wLoad("glTexStorage2D")); - glTexStorage3D = reinterpret_cast(gles3wLoad("glTexStorage3D")); - glGetInternalformativ = reinterpret_cast(gles3wLoad("glGetInternalformativ")); - + glFramebufferTextureLayer = reinterpret_cast(gles3wLoad("glFramebufferTextureLayer")); + glMapBufferRange = reinterpret_cast(gles3wLoad("glMapBufferRange")); + glFlushMappedBufferRange = reinterpret_cast(gles3wLoad("glFlushMappedBufferRange")); + glBindVertexArray = reinterpret_cast(gles3wLoad("glBindVertexArray")); + glDeleteVertexArrays = reinterpret_cast(gles3wLoad("glDeleteVertexArrays")); + glGenVertexArrays = reinterpret_cast(gles3wLoad("glGenVertexArrays")); + glIsVertexArray = reinterpret_cast(gles3wLoad("glIsVertexArray")); + glGetIntegeri_v = reinterpret_cast(gles3wLoad("glGetIntegeri_v")); + glBeginTransformFeedback = reinterpret_cast(gles3wLoad("glBeginTransformFeedback")); + glEndTransformFeedback = reinterpret_cast(gles3wLoad("glEndTransformFeedback")); + glBindBufferRange = reinterpret_cast(gles3wLoad("glBindBufferRange")); + glBindBufferBase = reinterpret_cast(gles3wLoad("glBindBufferBase")); + glTransformFeedbackVaryings = reinterpret_cast(gles3wLoad("glTransformFeedbackVaryings")); + glGetTransformFeedbackVarying = reinterpret_cast(gles3wLoad("glGetTransformFeedbackVarying")); + glVertexAttribIPointer = reinterpret_cast(gles3wLoad("glVertexAttribIPointer")); + glGetVertexAttribIiv = reinterpret_cast(gles3wLoad("glGetVertexAttribIiv")); + glGetVertexAttribIuiv = reinterpret_cast(gles3wLoad("glGetVertexAttribIuiv")); + glVertexAttribI4i = reinterpret_cast(gles3wLoad("glVertexAttribI4i")); + glVertexAttribI4ui = reinterpret_cast(gles3wLoad("glVertexAttribI4ui")); + glVertexAttribI4iv = reinterpret_cast(gles3wLoad("glVertexAttribI4iv")); + glVertexAttribI4uiv = reinterpret_cast(gles3wLoad("glVertexAttribI4uiv")); + glGetUniformuiv = reinterpret_cast(gles3wLoad("glGetUniformuiv")); + glGetFragDataLocation = reinterpret_cast(gles3wLoad("glGetFragDataLocation")); + glUniform1ui = reinterpret_cast(gles3wLoad("glUniform1ui")); + glUniform2ui = reinterpret_cast(gles3wLoad("glUniform2ui")); + glUniform3ui = reinterpret_cast(gles3wLoad("glUniform3ui")); + glUniform4ui = reinterpret_cast(gles3wLoad("glUniform4ui")); + glUniform1uiv = reinterpret_cast(gles3wLoad("glUniform1uiv")); + glUniform2uiv = reinterpret_cast(gles3wLoad("glUniform2uiv")); + glUniform3uiv = reinterpret_cast(gles3wLoad("glUniform3uiv")); + glUniform4uiv = reinterpret_cast(gles3wLoad("glUniform4uiv")); + glClearBufferiv = reinterpret_cast(gles3wLoad("glClearBufferiv")); + glClearBufferuiv = reinterpret_cast(gles3wLoad("glClearBufferuiv")); + glClearBufferfv = reinterpret_cast(gles3wLoad("glClearBufferfv")); + glClearBufferfi = reinterpret_cast(gles3wLoad("glClearBufferfi")); + glGetStringi = reinterpret_cast(gles3wLoad("glGetStringi")); + glCopyBufferSubData = reinterpret_cast(gles3wLoad("glCopyBufferSubData")); + glGetUniformIndices = reinterpret_cast(gles3wLoad("glGetUniformIndices")); + glGetActiveUniformsiv = reinterpret_cast(gles3wLoad("glGetActiveUniformsiv")); + glGetUniformBlockIndex = reinterpret_cast(gles3wLoad("glGetUniformBlockIndex")); + glGetActiveUniformBlockiv = reinterpret_cast(gles3wLoad("glGetActiveUniformBlockiv")); + glGetActiveUniformBlockName = reinterpret_cast(gles3wLoad("glGetActiveUniformBlockName")); + glUniformBlockBinding = reinterpret_cast(gles3wLoad("glUniformBlockBinding")); + glDrawArraysInstanced = reinterpret_cast(gles3wLoad("glDrawArraysInstanced")); + glDrawElementsInstanced = reinterpret_cast(gles3wLoad("glDrawElementsInstanced")); + glFenceSync = reinterpret_cast(gles3wLoad("glFenceSync")); + glIsSync = reinterpret_cast(gles3wLoad("glIsSync")); + glDeleteSync = reinterpret_cast(gles3wLoad("glDeleteSync")); + glClientWaitSync = reinterpret_cast(gles3wLoad("glClientWaitSync")); + glWaitSync = reinterpret_cast(gles3wLoad("glWaitSync")); + glGetInteger64v = reinterpret_cast(gles3wLoad("glGetInteger64v")); + glGetSynciv = reinterpret_cast(gles3wLoad("glGetSynciv")); + glGetInteger64i_v = reinterpret_cast(gles3wLoad("glGetInteger64i_v")); + glGetBufferParameteri64v = reinterpret_cast(gles3wLoad("glGetBufferParameteri64v")); + glGenSamplers = reinterpret_cast(gles3wLoad("glGenSamplers")); + glDeleteSamplers = reinterpret_cast(gles3wLoad("glDeleteSamplers")); + glIsSampler = reinterpret_cast(gles3wLoad("glIsSampler")); + glBindSampler = reinterpret_cast(gles3wLoad("glBindSampler")); + glSamplerParameteri = reinterpret_cast(gles3wLoad("glSamplerParameteri")); + glSamplerParameteriv = reinterpret_cast(gles3wLoad("glSamplerParameteriv")); + glSamplerParameterf = reinterpret_cast(gles3wLoad("glSamplerParameterf")); + glSamplerParameterfv = reinterpret_cast(gles3wLoad("glSamplerParameterfv")); + glGetSamplerParameteriv = reinterpret_cast(gles3wLoad("glGetSamplerParameteriv")); + glGetSamplerParameterfv = reinterpret_cast(gles3wLoad("glGetSamplerParameterfv")); + glVertexAttribDivisor = reinterpret_cast(gles3wLoad("glVertexAttribDivisor")); + glBindTransformFeedback = reinterpret_cast(gles3wLoad("glBindTransformFeedback")); + glDeleteTransformFeedbacks = reinterpret_cast(gles3wLoad("glDeleteTransformFeedbacks")); + glGenTransformFeedbacks = reinterpret_cast(gles3wLoad("glGenTransformFeedbacks")); + glIsTransformFeedback = reinterpret_cast(gles3wLoad("glIsTransformFeedback")); + glPauseTransformFeedback = reinterpret_cast(gles3wLoad("glPauseTransformFeedback")); + glResumeTransformFeedback = reinterpret_cast(gles3wLoad("glResumeTransformFeedback")); + glGetProgramBinary = reinterpret_cast(gles3wLoad("glGetProgramBinary")); + glProgramBinary = reinterpret_cast(gles3wLoad("glProgramBinary")); + glProgramParameteri = reinterpret_cast(gles3wLoad("glProgramParameteri")); + glInvalidateFramebuffer = reinterpret_cast(gles3wLoad("glInvalidateFramebuffer")); + glInvalidateSubFramebuffer = reinterpret_cast(gles3wLoad("glInvalidateSubFramebuffer")); + glTexStorage2D = reinterpret_cast(gles3wLoad("glTexStorage2D")); + glTexStorage3D = reinterpret_cast(gles3wLoad("glTexStorage3D")); + glGetInternalformativ = reinterpret_cast(gles3wLoad("glGetInternalformativ")); /* GL_ES_VERSION_3_1 */ - glDispatchCompute = reinterpret_cast(gles3wLoad("glDispatchCompute")); + glDispatchCompute = reinterpret_cast(gles3wLoad("glDispatchCompute")); glDispatchComputeIndirect = reinterpret_cast(gles3wLoad("glDispatchComputeIndirect")); - glDrawArraysIndirect = reinterpret_cast(gles3wLoad("glDrawArraysIndirect")); + glDrawArraysIndirect = reinterpret_cast(gles3wLoad("glDrawArraysIndirect")); glDrawElementsIndirect = reinterpret_cast(gles3wLoad("glDrawElementsIndirect")); - glFramebufferParameteri = reinterpret_cast(gles3wLoad("glFramebufferParameteri")); + glFramebufferParameteri = reinterpret_cast(gles3wLoad("glFramebufferParameteri")); glGetFramebufferParameteriv = reinterpret_cast(gles3wLoad("glGetFramebufferParameteriv")); - glGetProgramInterfaceiv = reinterpret_cast(gles3wLoad("glGetProgramInterfaceiv")); - glGetProgramResourceIndex = reinterpret_cast(gles3wLoad("glGetProgramResourceIndex")); - glGetProgramResourceName = reinterpret_cast(gles3wLoad("glGetProgramResourceName")); - glGetProgramResourceiv = reinterpret_cast(gles3wLoad("glGetProgramResourceiv")); + glGetProgramInterfaceiv = reinterpret_cast(gles3wLoad("glGetProgramInterfaceiv")); + glGetProgramResourceIndex = reinterpret_cast(gles3wLoad("glGetProgramResourceIndex")); + glGetProgramResourceName = reinterpret_cast(gles3wLoad("glGetProgramResourceName")); + glGetProgramResourceiv = reinterpret_cast(gles3wLoad("glGetProgramResourceiv")); glGetProgramResourceLocation = reinterpret_cast(gles3wLoad("glGetProgramResourceLocation")); - glUseProgramStages = reinterpret_cast(gles3wLoad("glUseProgramStages")); - glActiveShaderProgram = reinterpret_cast(gles3wLoad("glActiveShaderProgram")); - glCreateShaderProgramv = reinterpret_cast(gles3wLoad("glCreateShaderProgramv")); - glBindProgramPipeline = reinterpret_cast(gles3wLoad("glBindProgramPipeline")); - glDeleteProgramPipelines = reinterpret_cast(gles3wLoad("glDeleteProgramPipelines")); - glGenProgramPipelines = reinterpret_cast(gles3wLoad("glGenProgramPipelines")); - glIsProgramPipeline = reinterpret_cast(gles3wLoad("glIsProgramPipeline")); - glGetProgramPipelineiv = reinterpret_cast(gles3wLoad("glGetProgramPipelineiv")); - glProgramUniform1i = reinterpret_cast(gles3wLoad("glProgramUniform1i")); - glProgramUniform2i = reinterpret_cast(gles3wLoad("glProgramUniform2i")); - glProgramUniform3i = reinterpret_cast(gles3wLoad("glProgramUniform3i")); - glProgramUniform4i = reinterpret_cast(gles3wLoad("glProgramUniform4i")); - glProgramUniform1ui = reinterpret_cast(gles3wLoad("glProgramUniform1ui")); - glProgramUniform2ui = reinterpret_cast(gles3wLoad("glProgramUniform2ui")); - glProgramUniform3ui = reinterpret_cast(gles3wLoad("glProgramUniform3ui")); - glProgramUniform4ui = reinterpret_cast(gles3wLoad("glProgramUniform4ui")); - glProgramUniform1f = reinterpret_cast(gles3wLoad("glProgramUniform1f")); - glProgramUniform2f = reinterpret_cast(gles3wLoad("glProgramUniform2f")); - glProgramUniform3f = reinterpret_cast(gles3wLoad("glProgramUniform3f")); - glProgramUniform4f = reinterpret_cast(gles3wLoad("glProgramUniform4f")); - glProgramUniform1iv = reinterpret_cast(gles3wLoad("glProgramUniform1iv")); - glProgramUniform2iv = reinterpret_cast(gles3wLoad("glProgramUniform2iv")); - glProgramUniform3iv = reinterpret_cast(gles3wLoad("glProgramUniform3iv")); - glProgramUniform4iv = reinterpret_cast(gles3wLoad("glProgramUniform4iv")); - glProgramUniform1uiv = reinterpret_cast(gles3wLoad("glProgramUniform1uiv")); - glProgramUniform2uiv = reinterpret_cast(gles3wLoad("glProgramUniform2uiv")); - glProgramUniform3uiv = reinterpret_cast(gles3wLoad("glProgramUniform3uiv")); - glProgramUniform4uiv = reinterpret_cast(gles3wLoad("glProgramUniform4uiv")); - glProgramUniform1fv = reinterpret_cast(gles3wLoad("glProgramUniform1fv")); - glProgramUniform2fv = reinterpret_cast(gles3wLoad("glProgramUniform2fv")); - glProgramUniform3fv = reinterpret_cast(gles3wLoad("glProgramUniform3fv")); - glProgramUniform4fv = reinterpret_cast(gles3wLoad("glProgramUniform4fv")); - glProgramUniformMatrix2fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix2fv")); - glProgramUniformMatrix3fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix3fv")); - glProgramUniformMatrix4fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix4fv")); + glUseProgramStages = reinterpret_cast(gles3wLoad("glUseProgramStages")); + glActiveShaderProgram = reinterpret_cast(gles3wLoad("glActiveShaderProgram")); + glCreateShaderProgramv = reinterpret_cast(gles3wLoad("glCreateShaderProgramv")); + glBindProgramPipeline = reinterpret_cast(gles3wLoad("glBindProgramPipeline")); + glDeleteProgramPipelines = reinterpret_cast(gles3wLoad("glDeleteProgramPipelines")); + glGenProgramPipelines = reinterpret_cast(gles3wLoad("glGenProgramPipelines")); + glIsProgramPipeline = reinterpret_cast(gles3wLoad("glIsProgramPipeline")); + glGetProgramPipelineiv = reinterpret_cast(gles3wLoad("glGetProgramPipelineiv")); + glProgramUniform1i = reinterpret_cast(gles3wLoad("glProgramUniform1i")); + glProgramUniform2i = reinterpret_cast(gles3wLoad("glProgramUniform2i")); + glProgramUniform3i = reinterpret_cast(gles3wLoad("glProgramUniform3i")); + glProgramUniform4i = reinterpret_cast(gles3wLoad("glProgramUniform4i")); + glProgramUniform1ui = reinterpret_cast(gles3wLoad("glProgramUniform1ui")); + glProgramUniform2ui = reinterpret_cast(gles3wLoad("glProgramUniform2ui")); + glProgramUniform3ui = reinterpret_cast(gles3wLoad("glProgramUniform3ui")); + glProgramUniform4ui = reinterpret_cast(gles3wLoad("glProgramUniform4ui")); + glProgramUniform1f = reinterpret_cast(gles3wLoad("glProgramUniform1f")); + glProgramUniform2f = reinterpret_cast(gles3wLoad("glProgramUniform2f")); + glProgramUniform3f = reinterpret_cast(gles3wLoad("glProgramUniform3f")); + glProgramUniform4f = reinterpret_cast(gles3wLoad("glProgramUniform4f")); + glProgramUniform1iv = reinterpret_cast(gles3wLoad("glProgramUniform1iv")); + glProgramUniform2iv = reinterpret_cast(gles3wLoad("glProgramUniform2iv")); + glProgramUniform3iv = reinterpret_cast(gles3wLoad("glProgramUniform3iv")); + glProgramUniform4iv = reinterpret_cast(gles3wLoad("glProgramUniform4iv")); + glProgramUniform1uiv = reinterpret_cast(gles3wLoad("glProgramUniform1uiv")); + glProgramUniform2uiv = reinterpret_cast(gles3wLoad("glProgramUniform2uiv")); + glProgramUniform3uiv = reinterpret_cast(gles3wLoad("glProgramUniform3uiv")); + glProgramUniform4uiv = reinterpret_cast(gles3wLoad("glProgramUniform4uiv")); + glProgramUniform1fv = reinterpret_cast(gles3wLoad("glProgramUniform1fv")); + glProgramUniform2fv = reinterpret_cast(gles3wLoad("glProgramUniform2fv")); + glProgramUniform3fv = reinterpret_cast(gles3wLoad("glProgramUniform3fv")); + glProgramUniform4fv = reinterpret_cast(gles3wLoad("glProgramUniform4fv")); + glProgramUniformMatrix2fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix2fv")); + glProgramUniformMatrix3fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix3fv")); + glProgramUniformMatrix4fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix4fv")); glProgramUniformMatrix2x3fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix2x3fv")); glProgramUniformMatrix3x2fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix3x2fv")); glProgramUniformMatrix2x4fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix2x4fv")); glProgramUniformMatrix4x2fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix4x2fv")); glProgramUniformMatrix3x4fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix3x4fv")); glProgramUniformMatrix4x3fv = reinterpret_cast(gles3wLoad("glProgramUniformMatrix4x3fv")); - glValidateProgramPipeline = reinterpret_cast(gles3wLoad("glValidateProgramPipeline")); + glValidateProgramPipeline = reinterpret_cast(gles3wLoad("glValidateProgramPipeline")); glGetProgramPipelineInfoLog = reinterpret_cast(gles3wLoad("glGetProgramPipelineInfoLog")); - glBindImageTexture = reinterpret_cast(gles3wLoad("glBindImageTexture")); - glGetBooleani_v = reinterpret_cast(gles3wLoad("glGetBooleani_v")); - glMemoryBarrier = reinterpret_cast(gles3wLoad("glMemoryBarrier")); + glBindImageTexture = reinterpret_cast(gles3wLoad("glBindImageTexture")); + glGetBooleani_v = reinterpret_cast(gles3wLoad("glGetBooleani_v")); + glMemoryBarrier = reinterpret_cast(gles3wLoad("glMemoryBarrier")); glMemoryBarrierByRegion = reinterpret_cast(gles3wLoad("glMemoryBarrierByRegion")); glTexStorage2DMultisample = reinterpret_cast(gles3wLoad("glTexStorage2DMultisample")); - glGetMultisamplefv = reinterpret_cast(gles3wLoad("glGetMultisamplefv")); - glSampleMaski = reinterpret_cast(gles3wLoad("glSampleMaski")); - glGetTexLevelParameteriv = reinterpret_cast(gles3wLoad("glGetTexLevelParameteriv")); - glGetTexLevelParameterfv = reinterpret_cast(gles3wLoad("glGetTexLevelParameterfv")); + glGetMultisamplefv = reinterpret_cast(gles3wLoad("glGetMultisamplefv")); + glSampleMaski = reinterpret_cast(gles3wLoad("glSampleMaski")); + glGetTexLevelParameteriv = reinterpret_cast(gles3wLoad("glGetTexLevelParameteriv")); + glGetTexLevelParameterfv = reinterpret_cast(gles3wLoad("glGetTexLevelParameterfv")); - glBindVertexBuffer = reinterpret_cast(gles3wLoad("glBindVertexBuffer")); - glVertexAttribFormat = reinterpret_cast(gles3wLoad("glVertexAttribFormat")); - glVertexAttribIFormat = reinterpret_cast(gles3wLoad("glVertexAttribIFormat")); - glVertexAttribBinding = reinterpret_cast(gles3wLoad("glVertexAttribBinding")); + glBindVertexBuffer = reinterpret_cast(gles3wLoad("glBindVertexBuffer")); + glVertexAttribFormat = reinterpret_cast(gles3wLoad("glVertexAttribFormat")); + glVertexAttribIFormat = reinterpret_cast(gles3wLoad("glVertexAttribIFormat")); + glVertexAttribBinding = reinterpret_cast(gles3wLoad("glVertexAttribBinding")); glVertexBindingDivisor = reinterpret_cast(gles3wLoad("glVertexBindingDivisor")); - /* GL_ES_VERSION_3_2 */ glBlendBarrier = reinterpret_cast(gles3wLoad("glBlendBarrier")); glCopyImageSubData = reinterpret_cast(gles3wLoad("glCopyImageSubData")); - glDebugMessageControl = reinterpret_cast(gles3wLoad("glDebugMessageControl")); - glDebugMessageInsert = reinterpret_cast(gles3wLoad("glDebugMessageInsert")); + glDebugMessageControl = reinterpret_cast(gles3wLoad("glDebugMessageControl")); + glDebugMessageInsert = reinterpret_cast(gles3wLoad("glDebugMessageInsert")); glDebugMessageCallback = reinterpret_cast(gles3wLoad("glDebugMessageCallback")); - glGetDebugMessageLog = reinterpret_cast(gles3wLoad("glGetDebugMessageLog")); - glPushDebugGroup = reinterpret_cast(gles3wLoad("glPushDebugGroup")); - glPopDebugGroup = reinterpret_cast(gles3wLoad("glPopDebugGroup")); - glObjectLabel = reinterpret_cast(gles3wLoad("glObjectLabel")); - glGetObjectLabel = reinterpret_cast(gles3wLoad("glGetObjectLabel")); - glObjectPtrLabel = reinterpret_cast(gles3wLoad("glObjectPtrLabel")); - glGetObjectPtrLabel = reinterpret_cast(gles3wLoad("glGetObjectPtrLabel")); - glGetPointerv = reinterpret_cast(gles3wLoad("glGetPointerv")); + glGetDebugMessageLog = reinterpret_cast(gles3wLoad("glGetDebugMessageLog")); + glPushDebugGroup = reinterpret_cast(gles3wLoad("glPushDebugGroup")); + glPopDebugGroup = reinterpret_cast(gles3wLoad("glPopDebugGroup")); + glObjectLabel = reinterpret_cast(gles3wLoad("glObjectLabel")); + glGetObjectLabel = reinterpret_cast(gles3wLoad("glGetObjectLabel")); + glObjectPtrLabel = reinterpret_cast(gles3wLoad("glObjectPtrLabel")); + glGetObjectPtrLabel = reinterpret_cast(gles3wLoad("glGetObjectPtrLabel")); + glGetPointerv = reinterpret_cast(gles3wLoad("glGetPointerv")); - glEnablei = reinterpret_cast(gles3wLoad("glEnablei")); - glDisablei = reinterpret_cast(gles3wLoad("glDisablei")); - glBlendEquationi = reinterpret_cast(gles3wLoad("glBlendEquationi")); + glEnablei = reinterpret_cast(gles3wLoad("glEnablei")); + glDisablei = reinterpret_cast(gles3wLoad("glDisablei")); + glBlendEquationi = reinterpret_cast(gles3wLoad("glBlendEquationi")); glBlendEquationSeparatei = reinterpret_cast(gles3wLoad("glBlendEquationSeparatei")); - glBlendFunci = reinterpret_cast(gles3wLoad("glBlendFunci")); - glBlendFuncSeparatei = reinterpret_cast(gles3wLoad("glBlendFuncSeparatei")); - glColorMaski = reinterpret_cast(gles3wLoad("glColorMaski")); - glIsEnabledi = reinterpret_cast(gles3wLoad("glIsEnabledi")); + glBlendFunci = reinterpret_cast(gles3wLoad("glBlendFunci")); + glBlendFuncSeparatei = reinterpret_cast(gles3wLoad("glBlendFuncSeparatei")); + glColorMaski = reinterpret_cast(gles3wLoad("glColorMaski")); + glIsEnabledi = reinterpret_cast(gles3wLoad("glIsEnabledi")); - glDrawElementsBaseVertex = reinterpret_cast(gles3wLoad("glDrawElementsBaseVertex")); - glDrawRangeElementsBaseVertex = reinterpret_cast(gles3wLoad("glDrawRangeElementsBaseVertex")); + glDrawElementsBaseVertex = reinterpret_cast(gles3wLoad("glDrawElementsBaseVertex")); + glDrawRangeElementsBaseVertex = reinterpret_cast(gles3wLoad("glDrawRangeElementsBaseVertex")); glDrawElementsInstancedBaseVertex = reinterpret_cast(gles3wLoad("glDrawElementsInstancedBaseVertex")); glFramebufferTexture = reinterpret_cast(gles3wLoad("glFramebufferTexture")); @@ -515,30 +510,29 @@ void gles3wLoadProcs(PFNGLES3WLOADPROC gles3wLoad) { glPrimitiveBoundingBox = reinterpret_cast(gles3wLoad("glPrimitiveBoundingBox")); glGetGraphicsResetStatus = reinterpret_cast(gles3wLoad("glGetGraphicsResetStatus")); - glReadnPixels = reinterpret_cast(gles3wLoad("glReadnPixels")); - glGetnUniformfv = reinterpret_cast(gles3wLoad("glGetnUniformfv")); - glGetnUniformiv = reinterpret_cast(gles3wLoad("glGetnUniformiv")); - glGetnUniformuiv = reinterpret_cast(gles3wLoad("glGetnUniformuiv")); + glReadnPixels = reinterpret_cast(gles3wLoad("glReadnPixels")); + glGetnUniformfv = reinterpret_cast(gles3wLoad("glGetnUniformfv")); + glGetnUniformiv = reinterpret_cast(gles3wLoad("glGetnUniformiv")); + glGetnUniformuiv = reinterpret_cast(gles3wLoad("glGetnUniformuiv")); glMinSampleShading = reinterpret_cast(gles3wLoad("glMinSampleShading")); glPatchParameteri = reinterpret_cast(gles3wLoad("glPatchParameteri")); - glTexParameterIiv = reinterpret_cast(gles3wLoad("glTexParameterIiv")); - glTexParameterIuiv = reinterpret_cast(gles3wLoad("glTexParameterIuiv")); - glGetTexParameterIiv = reinterpret_cast(gles3wLoad("glGetTexParameterIiv")); - glGetTexParameterIuiv = reinterpret_cast(gles3wLoad("glGetTexParameterIuiv")); - glSamplerParameterIiv = reinterpret_cast(gles3wLoad("glSamplerParameterIiv")); - glSamplerParameterIuiv = reinterpret_cast(gles3wLoad("glSamplerParameterIuiv")); - glGetSamplerParameterIiv = reinterpret_cast(gles3wLoad("glGetSamplerParameterIiv")); + glTexParameterIiv = reinterpret_cast(gles3wLoad("glTexParameterIiv")); + glTexParameterIuiv = reinterpret_cast(gles3wLoad("glTexParameterIuiv")); + glGetTexParameterIiv = reinterpret_cast(gles3wLoad("glGetTexParameterIiv")); + glGetTexParameterIuiv = reinterpret_cast(gles3wLoad("glGetTexParameterIuiv")); + glSamplerParameterIiv = reinterpret_cast(gles3wLoad("glSamplerParameterIiv")); + glSamplerParameterIuiv = reinterpret_cast(gles3wLoad("glSamplerParameterIuiv")); + glGetSamplerParameterIiv = reinterpret_cast(gles3wLoad("glGetSamplerParameterIiv")); glGetSamplerParameterIuiv = reinterpret_cast(gles3wLoad("glGetSamplerParameterIuiv")); - glTexBuffer = reinterpret_cast(gles3wLoad("glTexBuffer")); + glTexBuffer = reinterpret_cast(gles3wLoad("glTexBuffer")); glTexBufferRange = reinterpret_cast(gles3wLoad("glTexBufferRange")); glTexStorage3DMultisample = reinterpret_cast(gles3wLoad("glTexStorage3DMultisample")); - /* GLES3W_GENERATE_GLES_LOAD */ /** diff --git a/native/cocos/renderer/gfx-gles-common/gles3w.h b/native/cocos/renderer/gfx-gles-common/gles3w.h index 24264d88dd..00c23d3759 100644 --- a/native/cocos/renderer/gfx-gles-common/gles3w.h +++ b/native/cocos/renderer/gfx-gles-common/gles3w.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -37,218 +37,216 @@ /* GLES3W_GENERATE_GLES_DECLARATION */ /* GL_ES_VERSION_3_0 */ -extern PFNGLREADBUFFERPROC glReadBuffer; -extern PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements; -extern PFNGLTEXIMAGE3DPROC glTexImage3D; -extern PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D; -extern PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D; -extern PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D; -extern PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D; -extern PFNGLGENQUERIESPROC glGenQueries; -extern PFNGLDELETEQUERIESPROC glDeleteQueries; -extern PFNGLISQUERYPROC glIsQuery; -extern PFNGLBEGINQUERYPROC glBeginQuery; -extern PFNGLENDQUERYPROC glEndQuery; -extern PFNGLGETQUERYIVPROC glGetQueryiv; -extern PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv; -extern PFNGLUNMAPBUFFERPROC glUnmapBuffer; -extern PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv; -extern PFNGLDRAWBUFFERSPROC glDrawBuffers; -extern PFNGLUNIFORMMATRIX2X3FVPROC glUniformMatrix2x3fv; -extern PFNGLUNIFORMMATRIX3X2FVPROC glUniformMatrix3x2fv; -extern PFNGLUNIFORMMATRIX2X4FVPROC glUniformMatrix2x4fv; -extern PFNGLUNIFORMMATRIX4X2FVPROC glUniformMatrix4x2fv; -extern PFNGLUNIFORMMATRIX3X4FVPROC glUniformMatrix3x4fv; -extern PFNGLUNIFORMMATRIX4X3FVPROC glUniformMatrix4x3fv; -extern PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer; +extern PFNGLREADBUFFERPROC glReadBuffer; +extern PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements; +extern PFNGLTEXIMAGE3DPROC glTexImage3D; +extern PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D; +extern PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D; +extern PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D; +extern PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D; +extern PFNGLGENQUERIESPROC glGenQueries; +extern PFNGLDELETEQUERIESPROC glDeleteQueries; +extern PFNGLISQUERYPROC glIsQuery; +extern PFNGLBEGINQUERYPROC glBeginQuery; +extern PFNGLENDQUERYPROC glEndQuery; +extern PFNGLGETQUERYIVPROC glGetQueryiv; +extern PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv; +extern PFNGLUNMAPBUFFERPROC glUnmapBuffer; +extern PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv; +extern PFNGLDRAWBUFFERSPROC glDrawBuffers; +extern PFNGLUNIFORMMATRIX2X3FVPROC glUniformMatrix2x3fv; +extern PFNGLUNIFORMMATRIX3X2FVPROC glUniformMatrix3x2fv; +extern PFNGLUNIFORMMATRIX2X4FVPROC glUniformMatrix2x4fv; +extern PFNGLUNIFORMMATRIX4X2FVPROC glUniformMatrix4x2fv; +extern PFNGLUNIFORMMATRIX3X4FVPROC glUniformMatrix3x4fv; +extern PFNGLUNIFORMMATRIX4X3FVPROC glUniformMatrix4x3fv; +extern PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer; extern PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glRenderbufferStorageMultisample; -extern PFNGLFRAMEBUFFERTEXTURELAYERPROC glFramebufferTextureLayer; -extern PFNGLMAPBUFFERRANGEPROC glMapBufferRange; -extern PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange; -extern PFNGLBINDVERTEXARRAYPROC glBindVertexArray; -extern PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays; -extern PFNGLGENVERTEXARRAYSPROC glGenVertexArrays; -extern PFNGLISVERTEXARRAYPROC glIsVertexArray; -extern PFNGLGETINTEGERI_VPROC glGetIntegeri_v; // NOLINT(readability-identifier-naming) -extern PFNGLBEGINTRANSFORMFEEDBACKPROC glBeginTransformFeedback; -extern PFNGLENDTRANSFORMFEEDBACKPROC glEndTransformFeedback; -extern PFNGLBINDBUFFERRANGEPROC glBindBufferRange; -extern PFNGLBINDBUFFERBASEPROC glBindBufferBase; -extern PFNGLTRANSFORMFEEDBACKVARYINGSPROC glTransformFeedbackVaryings; -extern PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glGetTransformFeedbackVarying; -extern PFNGLVERTEXATTRIBIPOINTERPROC glVertexAttribIPointer; -extern PFNGLGETVERTEXATTRIBIIVPROC glGetVertexAttribIiv; -extern PFNGLGETVERTEXATTRIBIUIVPROC glGetVertexAttribIuiv; -extern PFNGLVERTEXATTRIBI4IPROC glVertexAttribI4i; -extern PFNGLVERTEXATTRIBI4UIPROC glVertexAttribI4ui; -extern PFNGLVERTEXATTRIBI4IVPROC glVertexAttribI4iv; -extern PFNGLVERTEXATTRIBI4UIVPROC glVertexAttribI4uiv; -extern PFNGLGETUNIFORMUIVPROC glGetUniformuiv; -extern PFNGLGETFRAGDATALOCATIONPROC glGetFragDataLocation; -extern PFNGLUNIFORM1UIPROC glUniform1ui; -extern PFNGLUNIFORM2UIPROC glUniform2ui; -extern PFNGLUNIFORM3UIPROC glUniform3ui; -extern PFNGLUNIFORM4UIPROC glUniform4ui; -extern PFNGLUNIFORM1UIVPROC glUniform1uiv; -extern PFNGLUNIFORM2UIVPROC glUniform2uiv; -extern PFNGLUNIFORM3UIVPROC glUniform3uiv; -extern PFNGLUNIFORM4UIVPROC glUniform4uiv; -extern PFNGLCLEARBUFFERIVPROC glClearBufferiv; -extern PFNGLCLEARBUFFERUIVPROC glClearBufferuiv; -extern PFNGLCLEARBUFFERFVPROC glClearBufferfv; -extern PFNGLCLEARBUFFERFIPROC glClearBufferfi; -extern PFNGLGETSTRINGIPROC glGetStringi; -extern PFNGLCOPYBUFFERSUBDATAPROC glCopyBufferSubData; -extern PFNGLGETUNIFORMINDICESPROC glGetUniformIndices; -extern PFNGLGETACTIVEUNIFORMSIVPROC glGetActiveUniformsiv; -extern PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex; -extern PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv; -extern PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName; -extern PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding; -extern PFNGLDRAWARRAYSINSTANCEDPROC glDrawArraysInstanced; -extern PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced; -extern PFNGLFENCESYNCPROC glFenceSync; -extern PFNGLISSYNCPROC glIsSync; -extern PFNGLDELETESYNCPROC glDeleteSync; -extern PFNGLCLIENTWAITSYNCPROC glClientWaitSync; -extern PFNGLWAITSYNCPROC glWaitSync; -extern PFNGLGETINTEGER64VPROC glGetInteger64v; -extern PFNGLGETSYNCIVPROC glGetSynciv; -extern PFNGLGETINTEGER64I_VPROC glGetInteger64i_v; // NOLINT(readability-identifier-naming) -extern PFNGLGETBUFFERPARAMETERI64VPROC glGetBufferParameteri64v; -extern PFNGLGENSAMPLERSPROC glGenSamplers; -extern PFNGLDELETESAMPLERSPROC glDeleteSamplers; -extern PFNGLISSAMPLERPROC glIsSampler; -extern PFNGLBINDSAMPLERPROC glBindSampler; -extern PFNGLSAMPLERPARAMETERIPROC glSamplerParameteri; -extern PFNGLSAMPLERPARAMETERIVPROC glSamplerParameteriv; -extern PFNGLSAMPLERPARAMETERFPROC glSamplerParameterf; -extern PFNGLSAMPLERPARAMETERFVPROC glSamplerParameterfv; -extern PFNGLGETSAMPLERPARAMETERIVPROC glGetSamplerParameteriv; -extern PFNGLGETSAMPLERPARAMETERFVPROC glGetSamplerParameterfv; -extern PFNGLVERTEXATTRIBDIVISORPROC glVertexAttribDivisor; -extern PFNGLBINDTRANSFORMFEEDBACKPROC glBindTransformFeedback; -extern PFNGLDELETETRANSFORMFEEDBACKSPROC glDeleteTransformFeedbacks; -extern PFNGLGENTRANSFORMFEEDBACKSPROC glGenTransformFeedbacks; -extern PFNGLISTRANSFORMFEEDBACKPROC glIsTransformFeedback; -extern PFNGLPAUSETRANSFORMFEEDBACKPROC glPauseTransformFeedback; -extern PFNGLRESUMETRANSFORMFEEDBACKPROC glResumeTransformFeedback; -extern PFNGLGETPROGRAMBINARYPROC glGetProgramBinary; -extern PFNGLPROGRAMBINARYPROC glProgramBinary; -extern PFNGLPROGRAMPARAMETERIPROC glProgramParameteri; -extern PFNGLINVALIDATEFRAMEBUFFERPROC glInvalidateFramebuffer; -extern PFNGLINVALIDATESUBFRAMEBUFFERPROC glInvalidateSubFramebuffer; -extern PFNGLTEXSTORAGE2DPROC glTexStorage2D; -extern PFNGLTEXSTORAGE3DPROC glTexStorage3D; -extern PFNGLGETINTERNALFORMATIVPROC glGetInternalformativ; - +extern PFNGLFRAMEBUFFERTEXTURELAYERPROC glFramebufferTextureLayer; +extern PFNGLMAPBUFFERRANGEPROC glMapBufferRange; +extern PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange; +extern PFNGLBINDVERTEXARRAYPROC glBindVertexArray; +extern PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays; +extern PFNGLGENVERTEXARRAYSPROC glGenVertexArrays; +extern PFNGLISVERTEXARRAYPROC glIsVertexArray; +extern PFNGLGETINTEGERI_VPROC glGetIntegeri_v; // NOLINT(readability-identifier-naming) +extern PFNGLBEGINTRANSFORMFEEDBACKPROC glBeginTransformFeedback; +extern PFNGLENDTRANSFORMFEEDBACKPROC glEndTransformFeedback; +extern PFNGLBINDBUFFERRANGEPROC glBindBufferRange; +extern PFNGLBINDBUFFERBASEPROC glBindBufferBase; +extern PFNGLTRANSFORMFEEDBACKVARYINGSPROC glTransformFeedbackVaryings; +extern PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glGetTransformFeedbackVarying; +extern PFNGLVERTEXATTRIBIPOINTERPROC glVertexAttribIPointer; +extern PFNGLGETVERTEXATTRIBIIVPROC glGetVertexAttribIiv; +extern PFNGLGETVERTEXATTRIBIUIVPROC glGetVertexAttribIuiv; +extern PFNGLVERTEXATTRIBI4IPROC glVertexAttribI4i; +extern PFNGLVERTEXATTRIBI4UIPROC glVertexAttribI4ui; +extern PFNGLVERTEXATTRIBI4IVPROC glVertexAttribI4iv; +extern PFNGLVERTEXATTRIBI4UIVPROC glVertexAttribI4uiv; +extern PFNGLGETUNIFORMUIVPROC glGetUniformuiv; +extern PFNGLGETFRAGDATALOCATIONPROC glGetFragDataLocation; +extern PFNGLUNIFORM1UIPROC glUniform1ui; +extern PFNGLUNIFORM2UIPROC glUniform2ui; +extern PFNGLUNIFORM3UIPROC glUniform3ui; +extern PFNGLUNIFORM4UIPROC glUniform4ui; +extern PFNGLUNIFORM1UIVPROC glUniform1uiv; +extern PFNGLUNIFORM2UIVPROC glUniform2uiv; +extern PFNGLUNIFORM3UIVPROC glUniform3uiv; +extern PFNGLUNIFORM4UIVPROC glUniform4uiv; +extern PFNGLCLEARBUFFERIVPROC glClearBufferiv; +extern PFNGLCLEARBUFFERUIVPROC glClearBufferuiv; +extern PFNGLCLEARBUFFERFVPROC glClearBufferfv; +extern PFNGLCLEARBUFFERFIPROC glClearBufferfi; +extern PFNGLGETSTRINGIPROC glGetStringi; +extern PFNGLCOPYBUFFERSUBDATAPROC glCopyBufferSubData; +extern PFNGLGETUNIFORMINDICESPROC glGetUniformIndices; +extern PFNGLGETACTIVEUNIFORMSIVPROC glGetActiveUniformsiv; +extern PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex; +extern PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv; +extern PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName; +extern PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding; +extern PFNGLDRAWARRAYSINSTANCEDPROC glDrawArraysInstanced; +extern PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced; +extern PFNGLFENCESYNCPROC glFenceSync; +extern PFNGLISSYNCPROC glIsSync; +extern PFNGLDELETESYNCPROC glDeleteSync; +extern PFNGLCLIENTWAITSYNCPROC glClientWaitSync; +extern PFNGLWAITSYNCPROC glWaitSync; +extern PFNGLGETINTEGER64VPROC glGetInteger64v; +extern PFNGLGETSYNCIVPROC glGetSynciv; +extern PFNGLGETINTEGER64I_VPROC glGetInteger64i_v; // NOLINT(readability-identifier-naming) +extern PFNGLGETBUFFERPARAMETERI64VPROC glGetBufferParameteri64v; +extern PFNGLGENSAMPLERSPROC glGenSamplers; +extern PFNGLDELETESAMPLERSPROC glDeleteSamplers; +extern PFNGLISSAMPLERPROC glIsSampler; +extern PFNGLBINDSAMPLERPROC glBindSampler; +extern PFNGLSAMPLERPARAMETERIPROC glSamplerParameteri; +extern PFNGLSAMPLERPARAMETERIVPROC glSamplerParameteriv; +extern PFNGLSAMPLERPARAMETERFPROC glSamplerParameterf; +extern PFNGLSAMPLERPARAMETERFVPROC glSamplerParameterfv; +extern PFNGLGETSAMPLERPARAMETERIVPROC glGetSamplerParameteriv; +extern PFNGLGETSAMPLERPARAMETERFVPROC glGetSamplerParameterfv; +extern PFNGLVERTEXATTRIBDIVISORPROC glVertexAttribDivisor; +extern PFNGLBINDTRANSFORMFEEDBACKPROC glBindTransformFeedback; +extern PFNGLDELETETRANSFORMFEEDBACKSPROC glDeleteTransformFeedbacks; +extern PFNGLGENTRANSFORMFEEDBACKSPROC glGenTransformFeedbacks; +extern PFNGLISTRANSFORMFEEDBACKPROC glIsTransformFeedback; +extern PFNGLPAUSETRANSFORMFEEDBACKPROC glPauseTransformFeedback; +extern PFNGLRESUMETRANSFORMFEEDBACKPROC glResumeTransformFeedback; +extern PFNGLGETPROGRAMBINARYPROC glGetProgramBinary; +extern PFNGLPROGRAMBINARYPROC glProgramBinary; +extern PFNGLPROGRAMPARAMETERIPROC glProgramParameteri; +extern PFNGLINVALIDATEFRAMEBUFFERPROC glInvalidateFramebuffer; +extern PFNGLINVALIDATESUBFRAMEBUFFERPROC glInvalidateSubFramebuffer; +extern PFNGLTEXSTORAGE2DPROC glTexStorage2D; +extern PFNGLTEXSTORAGE3DPROC glTexStorage3D; +extern PFNGLGETINTERNALFORMATIVPROC glGetInternalformativ; /* GL_ES_VERSION_3_1 */ -extern PFNGLDISPATCHCOMPUTEPROC glDispatchCompute; +extern PFNGLDISPATCHCOMPUTEPROC glDispatchCompute; extern PFNGLDISPATCHCOMPUTEINDIRECTPROC glDispatchComputeIndirect; -extern PFNGLDRAWARRAYSINDIRECTPROC glDrawArraysIndirect; +extern PFNGLDRAWARRAYSINDIRECTPROC glDrawArraysIndirect; extern PFNGLDRAWELEMENTSINDIRECTPROC glDrawElementsIndirect; -extern PFNGLFRAMEBUFFERPARAMETERIPROC glFramebufferParameteri; +extern PFNGLFRAMEBUFFERPARAMETERIPROC glFramebufferParameteri; extern PFNGLGETFRAMEBUFFERPARAMETERIVPROC glGetFramebufferParameteriv; -extern PFNGLGETPROGRAMINTERFACEIVPROC glGetProgramInterfaceiv; -extern PFNGLGETPROGRAMRESOURCEINDEXPROC glGetProgramResourceIndex; -extern PFNGLGETPROGRAMRESOURCENAMEPROC glGetProgramResourceName; -extern PFNGLGETPROGRAMRESOURCEIVPROC glGetProgramResourceiv; +extern PFNGLGETPROGRAMINTERFACEIVPROC glGetProgramInterfaceiv; +extern PFNGLGETPROGRAMRESOURCEINDEXPROC glGetProgramResourceIndex; +extern PFNGLGETPROGRAMRESOURCENAMEPROC glGetProgramResourceName; +extern PFNGLGETPROGRAMRESOURCEIVPROC glGetProgramResourceiv; extern PFNGLGETPROGRAMRESOURCELOCATIONPROC glGetProgramResourceLocation; -extern PFNGLUSEPROGRAMSTAGESPROC glUseProgramStages; -extern PFNGLACTIVESHADERPROGRAMPROC glActiveShaderProgram; -extern PFNGLCREATESHADERPROGRAMVPROC glCreateShaderProgramv; -extern PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline; -extern PFNGLDELETEPROGRAMPIPELINESPROC glDeleteProgramPipelines; -extern PFNGLGENPROGRAMPIPELINESPROC glGenProgramPipelines; -extern PFNGLISPROGRAMPIPELINEPROC glIsProgramPipeline; -extern PFNGLGETPROGRAMPIPELINEIVPROC glGetProgramPipelineiv; -extern PFNGLPROGRAMUNIFORM1IPROC glProgramUniform1i; -extern PFNGLPROGRAMUNIFORM2IPROC glProgramUniform2i; -extern PFNGLPROGRAMUNIFORM3IPROC glProgramUniform3i; -extern PFNGLPROGRAMUNIFORM4IPROC glProgramUniform4i; -extern PFNGLPROGRAMUNIFORM1UIPROC glProgramUniform1ui; -extern PFNGLPROGRAMUNIFORM2UIPROC glProgramUniform2ui; -extern PFNGLPROGRAMUNIFORM3UIPROC glProgramUniform3ui; -extern PFNGLPROGRAMUNIFORM4UIPROC glProgramUniform4ui; -extern PFNGLPROGRAMUNIFORM1FPROC glProgramUniform1f; -extern PFNGLPROGRAMUNIFORM2FPROC glProgramUniform2f; -extern PFNGLPROGRAMUNIFORM3FPROC glProgramUniform3f; -extern PFNGLPROGRAMUNIFORM4FPROC glProgramUniform4f; -extern PFNGLPROGRAMUNIFORM1IVPROC glProgramUniform1iv; -extern PFNGLPROGRAMUNIFORM2IVPROC glProgramUniform2iv; -extern PFNGLPROGRAMUNIFORM3IVPROC glProgramUniform3iv; -extern PFNGLPROGRAMUNIFORM4IVPROC glProgramUniform4iv; -extern PFNGLPROGRAMUNIFORM1UIVPROC glProgramUniform1uiv; -extern PFNGLPROGRAMUNIFORM2UIVPROC glProgramUniform2uiv; -extern PFNGLPROGRAMUNIFORM3UIVPROC glProgramUniform3uiv; -extern PFNGLPROGRAMUNIFORM4UIVPROC glProgramUniform4uiv; -extern PFNGLPROGRAMUNIFORM1FVPROC glProgramUniform1fv; -extern PFNGLPROGRAMUNIFORM2FVPROC glProgramUniform2fv; -extern PFNGLPROGRAMUNIFORM3FVPROC glProgramUniform3fv; -extern PFNGLPROGRAMUNIFORM4FVPROC glProgramUniform4fv; -extern PFNGLPROGRAMUNIFORMMATRIX2FVPROC glProgramUniformMatrix2fv; -extern PFNGLPROGRAMUNIFORMMATRIX3FVPROC glProgramUniformMatrix3fv; -extern PFNGLPROGRAMUNIFORMMATRIX4FVPROC glProgramUniformMatrix4fv; +extern PFNGLUSEPROGRAMSTAGESPROC glUseProgramStages; +extern PFNGLACTIVESHADERPROGRAMPROC glActiveShaderProgram; +extern PFNGLCREATESHADERPROGRAMVPROC glCreateShaderProgramv; +extern PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline; +extern PFNGLDELETEPROGRAMPIPELINESPROC glDeleteProgramPipelines; +extern PFNGLGENPROGRAMPIPELINESPROC glGenProgramPipelines; +extern PFNGLISPROGRAMPIPELINEPROC glIsProgramPipeline; +extern PFNGLGETPROGRAMPIPELINEIVPROC glGetProgramPipelineiv; +extern PFNGLPROGRAMUNIFORM1IPROC glProgramUniform1i; +extern PFNGLPROGRAMUNIFORM2IPROC glProgramUniform2i; +extern PFNGLPROGRAMUNIFORM3IPROC glProgramUniform3i; +extern PFNGLPROGRAMUNIFORM4IPROC glProgramUniform4i; +extern PFNGLPROGRAMUNIFORM1UIPROC glProgramUniform1ui; +extern PFNGLPROGRAMUNIFORM2UIPROC glProgramUniform2ui; +extern PFNGLPROGRAMUNIFORM3UIPROC glProgramUniform3ui; +extern PFNGLPROGRAMUNIFORM4UIPROC glProgramUniform4ui; +extern PFNGLPROGRAMUNIFORM1FPROC glProgramUniform1f; +extern PFNGLPROGRAMUNIFORM2FPROC glProgramUniform2f; +extern PFNGLPROGRAMUNIFORM3FPROC glProgramUniform3f; +extern PFNGLPROGRAMUNIFORM4FPROC glProgramUniform4f; +extern PFNGLPROGRAMUNIFORM1IVPROC glProgramUniform1iv; +extern PFNGLPROGRAMUNIFORM2IVPROC glProgramUniform2iv; +extern PFNGLPROGRAMUNIFORM3IVPROC glProgramUniform3iv; +extern PFNGLPROGRAMUNIFORM4IVPROC glProgramUniform4iv; +extern PFNGLPROGRAMUNIFORM1UIVPROC glProgramUniform1uiv; +extern PFNGLPROGRAMUNIFORM2UIVPROC glProgramUniform2uiv; +extern PFNGLPROGRAMUNIFORM3UIVPROC glProgramUniform3uiv; +extern PFNGLPROGRAMUNIFORM4UIVPROC glProgramUniform4uiv; +extern PFNGLPROGRAMUNIFORM1FVPROC glProgramUniform1fv; +extern PFNGLPROGRAMUNIFORM2FVPROC glProgramUniform2fv; +extern PFNGLPROGRAMUNIFORM3FVPROC glProgramUniform3fv; +extern PFNGLPROGRAMUNIFORM4FVPROC glProgramUniform4fv; +extern PFNGLPROGRAMUNIFORMMATRIX2FVPROC glProgramUniformMatrix2fv; +extern PFNGLPROGRAMUNIFORMMATRIX3FVPROC glProgramUniformMatrix3fv; +extern PFNGLPROGRAMUNIFORMMATRIX4FVPROC glProgramUniformMatrix4fv; extern PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glProgramUniformMatrix2x3fv; extern PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glProgramUniformMatrix3x2fv; extern PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glProgramUniformMatrix2x4fv; extern PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glProgramUniformMatrix4x2fv; extern PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glProgramUniformMatrix3x4fv; extern PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glProgramUniformMatrix4x3fv; -extern PFNGLVALIDATEPROGRAMPIPELINEPROC glValidateProgramPipeline; +extern PFNGLVALIDATEPROGRAMPIPELINEPROC glValidateProgramPipeline; extern PFNGLGETPROGRAMPIPELINEINFOLOGPROC glGetProgramPipelineInfoLog; -extern PFNGLBINDIMAGETEXTUREPROC glBindImageTexture; -extern PFNGLGETBOOLEANI_VPROC glGetBooleani_v; // NOLINT(readability-identifier-naming) -extern PFNGLMEMORYBARRIERPROC glMemoryBarrier; +extern PFNGLBINDIMAGETEXTUREPROC glBindImageTexture; +extern PFNGLGETBOOLEANI_VPROC glGetBooleani_v; // NOLINT(readability-identifier-naming) +extern PFNGLMEMORYBARRIERPROC glMemoryBarrier; extern PFNGLMEMORYBARRIERBYREGIONPROC glMemoryBarrierByRegion; extern PFNGLTEXSTORAGE2DMULTISAMPLEPROC glTexStorage2DMultisample; -extern PFNGLGETMULTISAMPLEFVPROC glGetMultisamplefv; -extern PFNGLSAMPLEMASKIPROC glSampleMaski; -extern PFNGLGETTEXLEVELPARAMETERIVPROC glGetTexLevelParameteriv; -extern PFNGLGETTEXLEVELPARAMETERFVPROC glGetTexLevelParameterfv; +extern PFNGLGETMULTISAMPLEFVPROC glGetMultisamplefv; +extern PFNGLSAMPLEMASKIPROC glSampleMaski; +extern PFNGLGETTEXLEVELPARAMETERIVPROC glGetTexLevelParameteriv; +extern PFNGLGETTEXLEVELPARAMETERFVPROC glGetTexLevelParameterfv; -extern PFNGLBINDVERTEXBUFFERPROC glBindVertexBuffer; -extern PFNGLVERTEXATTRIBFORMATPROC glVertexAttribFormat; -extern PFNGLVERTEXATTRIBIFORMATPROC glVertexAttribIFormat; -extern PFNGLVERTEXATTRIBBINDINGPROC glVertexAttribBinding; +extern PFNGLBINDVERTEXBUFFERPROC glBindVertexBuffer; +extern PFNGLVERTEXATTRIBFORMATPROC glVertexAttribFormat; +extern PFNGLVERTEXATTRIBIFORMATPROC glVertexAttribIFormat; +extern PFNGLVERTEXATTRIBBINDINGPROC glVertexAttribBinding; extern PFNGLVERTEXBINDINGDIVISORPROC glVertexBindingDivisor; - /* GL_ES_VERSION_3_2 */ extern PFNGLBLENDBARRIERPROC glBlendBarrier; extern PFNGLCOPYIMAGESUBDATAPROC glCopyImageSubData; -extern PFNGLDEBUGMESSAGECONTROLPROC glDebugMessageControl; -extern PFNGLDEBUGMESSAGEINSERTPROC glDebugMessageInsert; +extern PFNGLDEBUGMESSAGECONTROLPROC glDebugMessageControl; +extern PFNGLDEBUGMESSAGEINSERTPROC glDebugMessageInsert; extern PFNGLDEBUGMESSAGECALLBACKPROC glDebugMessageCallback; -extern PFNGLGETDEBUGMESSAGELOGPROC glGetDebugMessageLog; -extern PFNGLPUSHDEBUGGROUPPROC glPushDebugGroup; -extern PFNGLPOPDEBUGGROUPPROC glPopDebugGroup; -extern PFNGLOBJECTLABELPROC glObjectLabel; -extern PFNGLGETOBJECTLABELPROC glGetObjectLabel; -extern PFNGLOBJECTPTRLABELPROC glObjectPtrLabel; -extern PFNGLGETOBJECTPTRLABELPROC glGetObjectPtrLabel; -extern PFNGLGETPOINTERVPROC glGetPointerv; +extern PFNGLGETDEBUGMESSAGELOGPROC glGetDebugMessageLog; +extern PFNGLPUSHDEBUGGROUPPROC glPushDebugGroup; +extern PFNGLPOPDEBUGGROUPPROC glPopDebugGroup; +extern PFNGLOBJECTLABELPROC glObjectLabel; +extern PFNGLGETOBJECTLABELPROC glGetObjectLabel; +extern PFNGLOBJECTPTRLABELPROC glObjectPtrLabel; +extern PFNGLGETOBJECTPTRLABELPROC glGetObjectPtrLabel; +extern PFNGLGETPOINTERVPROC glGetPointerv; -extern PFNGLENABLEIPROC glEnablei; -extern PFNGLDISABLEIPROC glDisablei; -extern PFNGLBLENDEQUATIONIPROC glBlendEquationi; +extern PFNGLENABLEIPROC glEnablei; +extern PFNGLDISABLEIPROC glDisablei; +extern PFNGLBLENDEQUATIONIPROC glBlendEquationi; extern PFNGLBLENDEQUATIONSEPARATEIPROC glBlendEquationSeparatei; -extern PFNGLBLENDFUNCIPROC glBlendFunci; -extern PFNGLBLENDFUNCSEPARATEIPROC glBlendFuncSeparatei; -extern PFNGLCOLORMASKIPROC glColorMaski; -extern PFNGLISENABLEDIPROC glIsEnabledi; +extern PFNGLBLENDFUNCIPROC glBlendFunci; +extern PFNGLBLENDFUNCSEPARATEIPROC glBlendFuncSeparatei; +extern PFNGLCOLORMASKIPROC glColorMaski; +extern PFNGLISENABLEDIPROC glIsEnabledi; -extern PFNGLDRAWELEMENTSBASEVERTEXPROC glDrawElementsBaseVertex; -extern PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glDrawRangeElementsBaseVertex; +extern PFNGLDRAWELEMENTSBASEVERTEXPROC glDrawElementsBaseVertex; +extern PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glDrawRangeElementsBaseVertex; extern PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glDrawElementsInstancedBaseVertex; extern PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture; @@ -256,30 +254,29 @@ extern PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture; extern PFNGLPRIMITIVEBOUNDINGBOXPROC glPrimitiveBoundingBox; extern PFNGLGETGRAPHICSRESETSTATUSPROC glGetGraphicsResetStatus; -extern PFNGLREADNPIXELSPROC glReadnPixels; -extern PFNGLGETNUNIFORMFVPROC glGetnUniformfv; -extern PFNGLGETNUNIFORMIVPROC glGetnUniformiv; -extern PFNGLGETNUNIFORMUIVPROC glGetnUniformuiv; +extern PFNGLREADNPIXELSPROC glReadnPixels; +extern PFNGLGETNUNIFORMFVPROC glGetnUniformfv; +extern PFNGLGETNUNIFORMIVPROC glGetnUniformiv; +extern PFNGLGETNUNIFORMUIVPROC glGetnUniformuiv; extern PFNGLMINSAMPLESHADINGPROC glMinSampleShading; extern PFNGLPATCHPARAMETERIPROC glPatchParameteri; -extern PFNGLTEXPARAMETERIIVPROC glTexParameterIiv; -extern PFNGLTEXPARAMETERIUIVPROC glTexParameterIuiv; -extern PFNGLGETTEXPARAMETERIIVPROC glGetTexParameterIiv; -extern PFNGLGETTEXPARAMETERIUIVPROC glGetTexParameterIuiv; -extern PFNGLSAMPLERPARAMETERIIVPROC glSamplerParameterIiv; -extern PFNGLSAMPLERPARAMETERIUIVPROC glSamplerParameterIuiv; -extern PFNGLGETSAMPLERPARAMETERIIVPROC glGetSamplerParameterIiv; +extern PFNGLTEXPARAMETERIIVPROC glTexParameterIiv; +extern PFNGLTEXPARAMETERIUIVPROC glTexParameterIuiv; +extern PFNGLGETTEXPARAMETERIIVPROC glGetTexParameterIiv; +extern PFNGLGETTEXPARAMETERIUIVPROC glGetTexParameterIuiv; +extern PFNGLSAMPLERPARAMETERIIVPROC glSamplerParameterIiv; +extern PFNGLSAMPLERPARAMETERIUIVPROC glSamplerParameterIuiv; +extern PFNGLGETSAMPLERPARAMETERIIVPROC glGetSamplerParameterIiv; extern PFNGLGETSAMPLERPARAMETERIUIVPROC glGetSamplerParameterIuiv; -extern PFNGLTEXBUFFERPROC glTexBuffer; +extern PFNGLTEXBUFFERPROC glTexBuffer; extern PFNGLTEXBUFFERRANGEPROC glTexBufferRange; extern PFNGLTEXSTORAGE3DMULTISAMPLEPROC glTexStorage3DMultisample; - /* GLES3W_GENERATE_GLES_DECLARATION */ /** diff --git a/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp index b6d6d5a657..4f93016da8 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Buffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Buffer.h b/native/cocos/renderer/gfx-gles2/GLES2Buffer.h index 04a8f621ef..c97aaaa583 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Buffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Buffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp index af8ba8679a..418f8533e7 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h index ad5a337650..1d6656e282 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2CommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp b/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp index 955f37c096..95d1b239ed 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Commands.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Commands.h b/native/cocos/renderer/gfx-gles2/GLES2Commands.h index 8297f7436b..3e2e5b6b95 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Commands.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Commands.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -205,48 +205,48 @@ void cmdFuncGLES2CreateFramebuffer(GLES2Device *device, GLES2GPUFramebuffer *gpu void cmdFuncGLES2DestroyFramebuffer(GLES2Device *device, GLES2GPUFramebuffer *gpuFBO); void cmdFuncGLES2BeginRenderPass(GLES2Device *device, uint32_t subpassIdx, - GLES2GPURenderPass * gpuRenderPass = nullptr, - GLES2GPUFramebuffer *gpuFramebuffer = nullptr, - const Rect * renderArea = nullptr, - const Color * clearColors = nullptr, - float clearDepth = 1.F, - uint32_t clearStencil = 0); + GLES2GPURenderPass * gpuRenderPass = nullptr, + GLES2GPUFramebuffer *gpuFramebuffer = nullptr, + const Rect * renderArea = nullptr, + const Color * clearColors = nullptr, + float clearDepth = 1.F, + uint32_t clearStencil = 0); void cmdFuncGLES2EndRenderPass(GLES2Device *device); void cmdFuncGLES2BindState(GLES2Device * device, - GLES2GPUPipelineState * gpuPipelineState, - GLES2GPUInputAssembler * gpuInputAssembler, - const GLES2GPUDescriptorSet *const *gpuDescriptorSets, - const uint32_t * dynamicOffsets = nullptr, - const DynamicStates * dynamicStates = nullptr); + GLES2GPUPipelineState * gpuPipelineState, + GLES2GPUInputAssembler * gpuInputAssembler, + const GLES2GPUDescriptorSet *const *gpuDescriptorSets, + const uint32_t * dynamicOffsets = nullptr, + const DynamicStates * dynamicStates = nullptr); void cmdFuncGLES2Draw(GLES2Device *device, const DrawInfo &drawInfo); void cmdFuncGLES2UpdateBuffer(GLES2Device * device, - GLES2GPUBuffer *gpuBuffer, - const void * buffer, - uint32_t offset, - uint32_t size); + GLES2GPUBuffer *gpuBuffer, + const void * buffer, + uint32_t offset, + uint32_t size); void cmdFuncGLES2CopyBuffersToTexture(GLES2Device * device, - const uint8_t *const * buffers, - GLES2GPUTexture * gpuTexture, - const BufferTextureCopy *regions, - uint32_t count); + const uint8_t *const * buffers, + GLES2GPUTexture * gpuTexture, + const BufferTextureCopy *regions, + uint32_t count); void cmdFuncGLES2CopyTextureToBuffers(GLES2Device * device, - GLES2GPUTexture * gpuTexture, - uint8_t *const * buffers, - const BufferTextureCopy *regions, - uint32_t count); + GLES2GPUTexture * gpuTexture, + uint8_t *const * buffers, + const BufferTextureCopy *regions, + uint32_t count); void cmdFuncGLES2BlitTexture(GLES2Device * device, - GLES2GPUTexture * gpuTextureSrc, - GLES2GPUTexture * gpuTextureDst, - const TextureBlit *regions, - uint32_t count, - Filter filter); + GLES2GPUTexture * gpuTextureSrc, + GLES2GPUTexture * gpuTextureDst, + const TextureBlit *regions, + uint32_t count, + Filter filter); void cmdFuncGLES2ExecuteCmds(GLES2Device *device, GLES2CmdPackage *cmdPackage); diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp index 0706fb8144..0797bb7751 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h index bf9e19bfd3..884b4d1e3f 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp index d6a1640f89..1f5f9863a1 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h index 709211c1eb..bf234fc695 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-gles2/GLES2DescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Device.cpp b/native/cocos/renderer/gfx-gles2/GLES2Device.cpp index 7487dfdd0a..335c2b5700 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Device.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Device.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Device.h b/native/cocos/renderer/gfx-gles2/GLES2Device.h index 0cb8cdf631..ecd96bf70a 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Device.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Device.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp index bf3ab697f8..a7aec18905 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h index d28dfaf7da..7d781cd05b 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Framebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp b/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp index a75a09d411..49b1cfd397 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2GPUContext.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h b/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h index df9fb22823..303c0b7d25 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h +++ b/native/cocos/renderer/gfx-gles2/GLES2GPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp index 05bdf06f28..af8b8d823c 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h index f76feca56a..ff91984104 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h +++ b/native/cocos/renderer/gfx-gles2/GLES2InputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp index e978a09406..1fc0092368 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h index 355261113a..e7a58732dc 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp index d46029ad3a..c6d0b3c511 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h index 384b3d5ea4..19507a2205 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h +++ b/native/cocos/renderer/gfx-gles2/GLES2PipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp index bcb1adfb0b..728add88f0 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h index 936488cd71..ab532c6d73 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h +++ b/native/cocos/renderer/gfx-gles2/GLES2PrimaryCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp index e2016259f1..967dbcda43 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h index 1bd7fde540..79747b9572 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h +++ b/native/cocos/renderer/gfx-gles2/GLES2QueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp b/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp index bd1e95a8ef..14b60614a7 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Queue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Queue.h b/native/cocos/renderer/gfx-gles2/GLES2Queue.h index 6675fe3907..a02e6f133c 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Queue.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Queue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp index 4daba28854..751a5f5fbc 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h index 0eb3b22fec..ba2e31e87f 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h +++ b/native/cocos/renderer/gfx-gles2/GLES2RenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp b/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp index d817b7564f..706412d4cb 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Shader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Shader.h b/native/cocos/renderer/gfx-gles2/GLES2Shader.h index 0e35336075..18431c9465 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Shader.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Shader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Std.cpp b/native/cocos/renderer/gfx-gles2/GLES2Std.cpp index 432486de89..9ff19756a0 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Std.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Std.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Std.h b/native/cocos/renderer/gfx-gles2/GLES2Std.h index 214779b3ef..e913c75271 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Std.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Std.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -24,44 +24,46 @@ ****************************************************************************/ #ifndef __CC_GFXGLES2_STD_H__ -#define __CC_GFXGLES2_STD_H__ + #define __CC_GFXGLES2_STD_H__ -#include "base/CoreStd.h" + #include "base/CoreStd.h" -#if (CC_PLATFORM == CC_PLATFORM_WINDOWS) - #if defined(CC_STATIC) - #define CC_GLES2_API - #else - #ifdef CC_GLES2_EXPORTS - #define CC_GLES2_API __declspec(dllexport) + #if (CC_PLATFORM == CC_PLATFORM_WINDOWS) + #if defined(CC_STATIC) + #define CC_GLES2_API #else - #define CC_GLES2_API __declspec(dllimport) + #ifdef CC_GLES2_EXPORTS + #define CC_GLES2_API __declspec(dllexport) + #else + #define CC_GLES2_API __declspec(dllimport) + #endif #endif + #else + #define CC_GLES2_API #endif -#else - #define CC_GLES2_API -#endif #endif #if CC_DEBUG > 0 -#define GL_CHECK(x) \ - do { \ - x; GLenum err = glGetError(); \ - if (err != GL_NO_ERROR) { \ - CC_LOG_ERROR("%s returned GL error: 0x%x", #x, err); \ - CCASSERT(0, "GL error"); \ - } \ - } while (0) -#define EGL_CHECK(x) \ - do { \ - x; EGLint err = eglGetError(); \ - if (err != EGL_SUCCESS) { \ - CC_LOG_ERROR("%s returned EGL error: 0x%x", #x, err); \ - CCASSERT(0, "EGL error"); \ - } \ - } while (0) + #define GL_CHECK(x) \ + do { \ + x; \ + GLenum err = glGetError(); \ + if (err != GL_NO_ERROR) { \ + CC_LOG_ERROR("%s returned GL error: 0x%x", #x, err); \ + CCASSERT(0, "GL error"); \ + } \ + } while (0) + #define EGL_CHECK(x) \ + do { \ + x; \ + EGLint err = eglGetError(); \ + if (err != EGL_SUCCESS) { \ + CC_LOG_ERROR("%s returned EGL error: 0x%x", #x, err); \ + CCASSERT(0, "EGL error"); \ + } \ + } while (0) #else -#define GL_CHECK(x) x -#define EGL_CHECK(x) x + #define GL_CHECK(x) x + #define EGL_CHECK(x) x #endif diff --git a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp index 4d0370ce8d..0381bce59d 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -49,7 +49,7 @@ GLES2Swapchain::~GLES2Swapchain() { void GLES2Swapchain::doInit(const SwapchainInfo& info) { const auto* context = GLES2Device::getInstance()->context(); _gpuSwapchain = CC_NEW(GLES2GPUSwapchain); - auto window = reinterpret_cast(info.windowHandle); //NOLINT[readability-qualified-auto] + auto window = reinterpret_cast(info.windowHandle); //NOLINT[readability-qualified-auto] #if CC_PLATFORM == CC_PLATFORM_ANDROID || CC_PLATFORM == CC_PLATFORM_OHOS EGLint nFmt; @@ -130,7 +130,7 @@ void GLES2Swapchain::doDestroySurface() { void GLES2Swapchain::doCreateSurface(void* windowHandle) { auto* context = GLES2Device::getInstance()->context(); - auto window = reinterpret_cast(windowHandle); //NOLINT [readability-qualified-auto] + auto window = reinterpret_cast(windowHandle); //NOLINT [readability-qualified-auto] EGLint nFmt = 0; if (eglGetConfigAttrib(context->eglDisplay, context->eglConfig, EGL_NATIVE_VISUAL_ID, &nFmt) == EGL_FALSE) { diff --git a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h index 704a7cc0b7..9c2c426804 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp b/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp index 6c282db8dd..521be04bb3 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Texture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Texture.h b/native/cocos/renderer/gfx-gles2/GLES2Texture.h index 3b2bbc0e45..855b68f969 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Texture.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Texture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp index 248004d0fd..dc9919bf48 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -56,7 +56,7 @@ static void *libegl = nullptr; static void *libgles = nullptr; bool gles2wOpen() { - libegl = dlopen("libEGL.so", RTLD_LAZY | RTLD_GLOBAL); + libegl = dlopen("libEGL.so", RTLD_LAZY | RTLD_GLOBAL); #if __OHOS__ libgles = dlopen("libGLESv3.so", RTLD_LAZY | RTLD_GLOBAL); #else diff --git a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h index 88c524763e..7ac0a591c8 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp index 82ff2cfd35..9e80cd1e86 100644 --- a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp +++ b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h index efe99dea96..433790b60a 100644 --- a/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h +++ b/native/cocos/renderer/gfx-gles2/states/GLES2Sampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp index c23e3ec213..bb7ebeae4d 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Buffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Buffer.h b/native/cocos/renderer/gfx-gles3/GLES3Buffer.h index 1835b3051e..7509e835fe 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Buffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Buffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp index e85ca86ae9..6288fd1aca 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h index 927a5fefa7..e8899b913b 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3CommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp b/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp index 21c2df7013..595d8f89ec 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Commands.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Commands.h b/native/cocos/renderer/gfx-gles3/GLES3Commands.h index 68315c6462..9296292689 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Commands.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Commands.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp index 678df0dc28..56260d66ea 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h index bb6edec95a..52b8f4e7f6 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp index 61f67a517e..573a67faf3 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h index b99e8d729a..fa3cad9ba0 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-gles3/GLES3DescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Device.cpp b/native/cocos/renderer/gfx-gles3/GLES3Device.cpp index 1863ad40d0..c851c638ec 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Device.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Device.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Device.h b/native/cocos/renderer/gfx-gles3/GLES3Device.h index db19feb9ab..fb57bbd0d5 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Device.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Device.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp index 8b0faa86b4..bee7e2d026 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h index 30dac5e3de..9a7bbe0472 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Framebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp b/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp index 1bed8c17b3..a181178837 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3GPUContext.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h b/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h index ae84953e2f..751ad9c56f 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h +++ b/native/cocos/renderer/gfx-gles3/GLES3GPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp index f02a8608e3..44defe028d 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h index 521395a0d5..0116f6447f 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h +++ b/native/cocos/renderer/gfx-gles3/GLES3InputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp index 8f620e7617..0f731b6bc1 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h index 84a591e3f7..1f70adf2b3 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp index 68d4873c35..2394ab0548 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h index d2ab126432..66a744c2f0 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h +++ b/native/cocos/renderer/gfx-gles3/GLES3PipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp index 6bc6bc3bf5..33c750ffdc 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h index affadcc6e1..1076c346ef 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h +++ b/native/cocos/renderer/gfx-gles3/GLES3PrimaryCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp index 69f402b5fb..c34bc11c80 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h index 8e176d2bd7..69b22d4a52 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h +++ b/native/cocos/renderer/gfx-gles3/GLES3QueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp b/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp index 095ca09f3b..8f17077428 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Queue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Queue.h b/native/cocos/renderer/gfx-gles3/GLES3Queue.h index 457f9a57bb..3c1cfb40a8 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Queue.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Queue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp index a448fad75b..bcff8236ea 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h index cf2f3717c7..3576fa1cd2 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h +++ b/native/cocos/renderer/gfx-gles3/GLES3RenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp b/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp index f73189e196..5eb427aabe 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Shader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Shader.h b/native/cocos/renderer/gfx-gles3/GLES3Shader.h index 6d77db49ce..3ba44ee5bc 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Shader.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Shader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Std.cpp b/native/cocos/renderer/gfx-gles3/GLES3Std.cpp index 86ee1990ac..7349af5692 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Std.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Std.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Std.h b/native/cocos/renderer/gfx-gles3/GLES3Std.h index 4b7e0d4002..b675c9791e 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Std.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Std.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -42,23 +42,25 @@ #endif #if CC_DEBUG > 0 -#define GL_CHECK(x) \ - do { \ - x; GLenum err = glGetError(); \ - if (err != GL_NO_ERROR) { \ - CC_LOG_ERROR("%s returned GL error: 0x%x", #x, err); \ - CCASSERT(0, "GL error"); \ - } \ - } while (0) -#define EGL_CHECK(x) \ - do { \ - x; EGLint err = eglGetError(); \ - if (err != EGL_SUCCESS) { \ - CC_LOG_ERROR("%s returned EGL error: 0x%x", #x, err); \ - CCASSERT(0, "EGL error"); \ - } \ - } while (0) + #define GL_CHECK(x) \ + do { \ + x; \ + GLenum err = glGetError(); \ + if (err != GL_NO_ERROR) { \ + CC_LOG_ERROR("%s returned GL error: 0x%x", #x, err); \ + CCASSERT(0, "GL error"); \ + } \ + } while (0) + #define EGL_CHECK(x) \ + do { \ + x; \ + EGLint err = eglGetError(); \ + if (err != EGL_SUCCESS) { \ + CC_LOG_ERROR("%s returned EGL error: 0x%x", #x, err); \ + CCASSERT(0, "EGL error"); \ + } \ + } while (0) #else -#define GL_CHECK(x) x -#define EGL_CHECK(x) x + #define GL_CHECK(x) x + #define EGL_CHECK(x) x #endif diff --git a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp index 27a36cb6c8..a4ccc81e12 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -49,7 +49,7 @@ GLES3Swapchain::~GLES3Swapchain() { void GLES3Swapchain::doInit(const SwapchainInfo& info) { const auto* context = GLES3Device::getInstance()->context(); _gpuSwapchain = CC_NEW(GLES3GPUSwapchain); - auto window = reinterpret_cast(info.windowHandle); //NOLINT [readability-qualified-auto] + auto window = reinterpret_cast(info.windowHandle); //NOLINT [readability-qualified-auto] #if CC_PLATFORM == CC_PLATFORM_ANDROID || CC_PLATFORM == CC_PLATFORM_OHOS EGLint nFmt; @@ -130,7 +130,7 @@ void GLES3Swapchain::doDestroySurface() { void GLES3Swapchain::doCreateSurface(void* windowHandle) { auto* context = GLES3Device::getInstance()->context(); - auto window = reinterpret_cast(windowHandle); //NOLINT [readability-qualified-auto] + auto window = reinterpret_cast(windowHandle); //NOLINT [readability-qualified-auto] EGLint nFmt = 0; if (eglGetConfigAttrib(context->eglDisplay, context->eglConfig, EGL_NATIVE_VISUAL_ID, &nFmt) == EGL_FALSE) { diff --git a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h index 2c8ee22ef4..2a9f8d3c15 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp b/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp index 660ea0bd34..5167b68b9b 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Texture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Texture.h b/native/cocos/renderer/gfx-gles3/GLES3Texture.h index b4475de813..1650ab8749 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Texture.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Texture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp index 82af16a4bd..aa7b32029d 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -56,7 +56,7 @@ static void *libegl = nullptr; static void *libgles = nullptr; bool gles3wOpen() { - libegl = dlopen("libEGL.so", RTLD_LAZY | RTLD_GLOBAL); + libegl = dlopen("libEGL.so", RTLD_LAZY | RTLD_GLOBAL); #if __OHOS__ libgles = dlopen("libGLESv3.so", RTLD_LAZY | RTLD_GLOBAL); #else diff --git a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h index fc6b817ac0..479024ebb9 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp index 7e3a2d34da..113368e164 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp +++ b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h index 8541ed6030..630e257a8d 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h +++ b/native/cocos/renderer/gfx-gles3/states/GLES3GlobalBarrier.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp index c8cf2f5eba..f8b4c8ae9a 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp +++ b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h index 497052d6c1..05e571fb76 100644 --- a/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h +++ b/native/cocos/renderer/gfx-gles3/states/GLES3Sampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLBuffer.h b/native/cocos/renderer/gfx-metal/MTLBuffer.h index a9b769e929..92073f4af8 100644 --- a/native/cocos/renderer/gfx-metal/MTLBuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -50,9 +50,9 @@ public: void encodeBuffer(CCMTLCommandEncoder &encoder, uint offset, uint binding, ShaderStageFlags stages); - id getMTLBuffer() const; - - inline CCMTLGPUBuffer* gpuBuffer() { return _gpuBuffer; } + id getMTLBuffer() const; + + inline CCMTLGPUBuffer * gpuBuffer() { return _gpuBuffer; } inline MTLIndexType getIndexType() const { return _indexType; } inline bool isDrawIndirectByIndex() const { return _isDrawIndirectByIndex; } inline const DrawInfoList &getDrawInfos() const { return _drawInfos; } @@ -75,8 +75,8 @@ protected: vector _indexedPrimitivesIndirectArguments; vector _primitiveIndirectArguments; DrawInfoList _drawInfos; - - CCMTLGPUBuffer* _gpuBuffer = nullptr; + + CCMTLGPUBuffer *_gpuBuffer = nullptr; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLBuffer.mm b/native/cocos/renderer/gfx-metal/MTLBuffer.mm index f9b374df3f..294a163376 100644 --- a/native/cocos/renderer/gfx-metal/MTLBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLBuffer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h index d02c6fe624..fb3cbe2014 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm index 03d32f0c75..d8cb314b57 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h index 47b63aca80..b90c483e28 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLCommandEncoder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h index 956e04c143..86aed63a51 100644 --- a/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,13 +25,13 @@ #pragma once +#include +#include #include "MTLCommandEncoder.h" #include "MTLStd.h" #include "MTLUtils.h" #include "base/Macros.h" #include "math/Math.h" -#include -#include namespace cc { namespace gfx { @@ -54,7 +54,7 @@ public: } inline void setComputePipelineState(id pipelineState) { - if(_pipelineState == pipelineState) + if (_pipelineState == pipelineState) return; [_mtlEncoder setComputePipelineState:pipelineState]; _pipelineState = pipelineState; @@ -68,17 +68,17 @@ public: [_mtlEncoder setTexture:texture atIndex:index]; _resourceSize = {texture.width, texture.height, texture.depth}; } - + inline void dispatch(MTLSize groupsPerGrid) { // GLSL -> SPIRV -> MSL // GLSL shader request to specify the compute thread size, // no such limit in Metal and have to set compute thread size explicity - NSUInteger w = _pipelineState.threadExecutionWidth; - NSUInteger h = _pipelineState.maxTotalThreadsPerThreadgroup / w; - MTLSize threadsPerThreadgroup = MTLSizeMake(w, h, 1); + NSUInteger w = _pipelineState.threadExecutionWidth; + NSUInteger h = _pipelineState.maxTotalThreadsPerThreadgroup / w; + MTLSize threadsPerThreadgroup = MTLSizeMake(w, h, 1); [_mtlEncoder dispatchThreadgroups:groupsPerGrid threadsPerThreadgroup:threadsPerThreadgroup]; } - + inline void dispatch(id indirectBuffer, NSUInteger offset, MTLSize groupsPerGrid) { [_mtlEncoder dispatchThreadgroupsWithIndirectBuffer:indirectBuffer indirectBufferOffset:offset threadsPerThreadgroup:groupsPerGrid]; } @@ -86,9 +86,9 @@ public: inline void endEncoding() { [_mtlEncoder endEncoding]; [_mtlEncoder release]; - _mtlEncoder = nil; + _mtlEncoder = nil; _pipelineState = nil; - _initialized = false; + _initialized = false; } inline id const getMTLEncoder() { @@ -97,9 +97,9 @@ public: private: bool _initialized = false; - MTLSize _resourceSize; - id _mtlEncoder = nil; - id _pipelineState = nil; + MTLSize _resourceSize; + id _mtlEncoder = nil; + id _pipelineState = nil; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLConfig.h b/native/cocos/renderer/gfx-metal/MTLConfig.h index 2161f691e2..37bde3eb12 100644 --- a/native/cocos/renderer/gfx-metal/MTLConfig.h +++ b/native/cocos/renderer/gfx-metal/MTLConfig.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,5 +25,5 @@ #pragma once -#define MAX_FRAMES_IN_FLIGHT 3 +#define MAX_FRAMES_IN_FLIGHT 3 #define MAX_COMMAND_BUFFER_COUNT 256 diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h index 1aaa29730d..5792d55002 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -36,10 +36,10 @@ class CCMTLDescriptorSet final : public DescriptorSet { public: explicit CCMTLDescriptorSet(); ~CCMTLDescriptorSet(); - CCMTLDescriptorSet(const CCMTLDescriptorSet &)=delete; - CCMTLDescriptorSet(CCMTLDescriptorSet &&)=delete; - CCMTLDescriptorSet &operator=(const CCMTLDescriptorSet &)=delete; - CCMTLDescriptorSet &operator=(CCMTLDescriptorSet &&)=delete; + CCMTLDescriptorSet(const CCMTLDescriptorSet &) = delete; + CCMTLDescriptorSet(CCMTLDescriptorSet &&) = delete; + CCMTLDescriptorSet &operator=(const CCMTLDescriptorSet &) = delete; + CCMTLDescriptorSet &operator=(CCMTLDescriptorSet &&) = delete; void update() override; diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm index 312c50c3a6..6f7cb7588c 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h index 8bb6076730..28dbaf7cd4 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,10 +35,10 @@ class CCMTLDescriptorSetLayout final : public DescriptorSetLayout { public: explicit CCMTLDescriptorSetLayout(); ~CCMTLDescriptorSetLayout(); - CCMTLDescriptorSetLayout(const CCMTLDescriptorSetLayout &)=delete; - CCMTLDescriptorSetLayout(CCMTLDescriptorSetLayout &&)=delete; - CCMTLDescriptorSetLayout &operator=(const CCMTLDescriptorSetLayout &)=delete; - CCMTLDescriptorSetLayout &operator=(CCMTLDescriptorSetLayout &&)=delete; + CCMTLDescriptorSetLayout(const CCMTLDescriptorSetLayout &) = delete; + CCMTLDescriptorSetLayout(CCMTLDescriptorSetLayout &&) = delete; + CCMTLDescriptorSetLayout &operator=(const CCMTLDescriptorSetLayout &) = delete; + CCMTLDescriptorSetLayout &operator=(CCMTLDescriptorSetLayout &&) = delete; inline CCMTLGPUDescriptorSetLayout *gpuDescriptorSetLayout() const { return _gpuDescriptorSetLayout; } diff --git a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm index 086290ba35..ea536d8eb7 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDevice.h b/native/cocos/renderer/gfx-metal/MTLDevice.h index 9c17ca7ce0..8b195c5498 100644 --- a/native/cocos/renderer/gfx-metal/MTLDevice.h +++ b/native/cocos/renderer/gfx-metal/MTLDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLDevice.mm b/native/cocos/renderer/gfx-metal/MTLDevice.mm index bb4c694de4..b9f8bffbb6 100644 --- a/native/cocos/renderer/gfx-metal/MTLDevice.mm +++ b/native/cocos/renderer/gfx-metal/MTLDevice.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLFramebuffer.h b/native/cocos/renderer/gfx-metal/MTLFramebuffer.h index 769bd9c473..dcdc5239e0 100644 --- a/native/cocos/renderer/gfx-metal/MTLFramebuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -34,20 +34,20 @@ class CCMTLFramebuffer final : public Framebuffer { public: explicit CCMTLFramebuffer(); ~CCMTLFramebuffer(); - CCMTLFramebuffer(const CCMTLFramebuffer &)=delete; - CCMTLFramebuffer(CCMTLFramebuffer &&)=delete; - CCMTLFramebuffer &operator=(const CCMTLFramebuffer &)=delete; - CCMTLFramebuffer &operator=(CCMTLFramebuffer &&)=delete; + CCMTLFramebuffer(const CCMTLFramebuffer &) = delete; + CCMTLFramebuffer(CCMTLFramebuffer &&) = delete; + CCMTLFramebuffer &operator=(const CCMTLFramebuffer &) = delete; + CCMTLFramebuffer &operator=(CCMTLFramebuffer &&) = delete; - inline bool isOffscreen() const { return _isOffscreen; } - inline CCMTLSwapchain* swapChain() const { return _swapChain; } + inline bool isOffscreen() const { return _isOffscreen; } + inline CCMTLSwapchain *swapChain() const { return _swapChain; } protected: void doInit(const FramebufferInfo &info) override; void doDestroy() override; - bool _isOffscreen = false; - CCMTLSwapchain* _swapChain = nullptr; + bool _isOffscreen = false; + CCMTLSwapchain *_swapChain = nullptr; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm b/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm index 52c1007b06..8a0f5bb888 100644 --- a/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLFramebuffer.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLGPUObjects.h b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h index c00dfb6ecf..1138ba6e75 100644 --- a/native/cocos/renderer/gfx-metal/MTLGPUObjects.h +++ b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLInputAssembler.h b/native/cocos/renderer/gfx-metal/MTLInputAssembler.h index 229b2fa010..d2f23a4b18 100644 --- a/native/cocos/renderer/gfx-metal/MTLInputAssembler.h +++ b/native/cocos/renderer/gfx-metal/MTLInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -36,10 +36,10 @@ class CCMTLInputAssembler final : public InputAssembler { public: explicit CCMTLInputAssembler(); ~CCMTLInputAssembler(); - CCMTLInputAssembler(const CCMTLInputAssembler &)=delete; - CCMTLInputAssembler(CCMTLInputAssembler &&)=delete; - CCMTLInputAssembler &operator=(const CCMTLInputAssembler &)=delete; - CCMTLInputAssembler &operator=(CCMTLInputAssembler &&)=delete; + CCMTLInputAssembler(const CCMTLInputAssembler &) = delete; + CCMTLInputAssembler(CCMTLInputAssembler &&) = delete; + CCMTLInputAssembler &operator=(const CCMTLInputAssembler &) = delete; + CCMTLInputAssembler &operator=(CCMTLInputAssembler &&) = delete; protected: friend class CCMTLQueue; diff --git a/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm b/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm index b11221bc2e..bce1897302 100644 --- a/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm +++ b/native/cocos/renderer/gfx-metal/MTLInputAssembler.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h index ea7b7c83de..6e4d2e31eb 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h +++ b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm index f0213310e9..3c06ec6224 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm +++ b/native/cocos/renderer/gfx-metal/MTLPipelineLayout.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineState.h b/native/cocos/renderer/gfx-metal/MTLPipelineState.h index 244f9e103e..8ed3e28226 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineState.h +++ b/native/cocos/renderer/gfx-metal/MTLPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,14 +41,14 @@ class CCMTLPipelineState final : public PipelineState { public: explicit CCMTLPipelineState(); ~CCMTLPipelineState(); - CCMTLPipelineState(const CCMTLPipelineState &)=delete; - CCMTLPipelineState(CCMTLPipelineState &&)=delete; - CCMTLPipelineState &operator=(const CCMTLPipelineState &)=delete; - CCMTLPipelineState &operator=(CCMTLPipelineState &&)=delete; + CCMTLPipelineState(const CCMTLPipelineState &) = delete; + CCMTLPipelineState(CCMTLPipelineState &&) = delete; + CCMTLPipelineState &operator=(const CCMTLPipelineState &) = delete; + CCMTLPipelineState &operator=(CCMTLPipelineState &&) = delete; inline CCMTLGPUPipelineState *getGPUPipelineState() const { return _GPUPipelineState; } - - void check(CCMTLRenderPass* renderPass = nullptr); + + void check(CCMTLRenderPass *renderPass = nullptr); protected: void doInit(const PipelineStateInfo &info) override; @@ -64,11 +64,11 @@ protected: void setBlendStates(MTLRenderPipelineDescriptor *); bool createMTLRenderPipeline(MTLRenderPipelineDescriptor *); - bool _renderPipelineReady = false; - id _mtlRenderPipelineState = nil; - id _mtlDepthStencilState = nil; - id _mtlComputePipeline = nil; - CCMTLGPUPipelineState *_GPUPipelineState = nullptr; + bool _renderPipelineReady = false; + id _mtlRenderPipelineState = nil; + id _mtlDepthStencilState = nil; + id _mtlComputePipeline = nil; + CCMTLGPUPipelineState * _GPUPipelineState = nullptr; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLPipelineState.mm b/native/cocos/renderer/gfx-metal/MTLPipelineState.mm index 3567fd25df..c8e0e32d77 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineState.mm +++ b/native/cocos/renderer/gfx-metal/MTLPipelineState.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLQueryPool.h b/native/cocos/renderer/gfx-metal/MTLQueryPool.h index 3452505d79..c938eeb84b 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueryPool.h +++ b/native/cocos/renderer/gfx-metal/MTLQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLQueryPool.mm b/native/cocos/renderer/gfx-metal/MTLQueryPool.mm index 90a67247a3..ea089388b9 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueryPool.mm +++ b/native/cocos/renderer/gfx-metal/MTLQueryPool.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLQueue.h b/native/cocos/renderer/gfx-metal/MTLQueue.h index 8b71d3e3b7..fa279e6ecc 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueue.h +++ b/native/cocos/renderer/gfx-metal/MTLQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -36,20 +36,20 @@ class CCMTLQueue final : public Queue { public: explicit CCMTLQueue(); ~CCMTLQueue(); - CCMTLQueue(const CCMTLQueue &)=delete; - CCMTLQueue(CCMTLQueue &&)=delete; - CCMTLQueue &operator=(const CCMTLQueue &)=delete; - CCMTLQueue &operator=(CCMTLQueue &&)=delete; + CCMTLQueue(const CCMTLQueue &) = delete; + CCMTLQueue(CCMTLQueue &&) = delete; + CCMTLQueue &operator=(const CCMTLQueue &) = delete; + CCMTLQueue &operator=(CCMTLQueue &&) = delete; void submit(CommandBuffer *const *cmdBuffs, uint count) override; - - inline CCMTLGPUQueueObject* gpuQueueObj() { return _gpuQueueObj; } + + inline CCMTLGPUQueueObject *gpuQueueObj() { return _gpuQueueObj; } protected: void doInit(const QueueInfo &info) override; void doDestroy() override; - - CCMTLGPUQueueObject* _gpuQueueObj = nullptr; + + CCMTLGPUQueueObject *_gpuQueueObj = nullptr; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLQueue.mm b/native/cocos/renderer/gfx-metal/MTLQueue.mm index 58afd2980a..a28a4b59c4 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueue.mm +++ b/native/cocos/renderer/gfx-metal/MTLQueue.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h index 3986888b4c..49e4a84170 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,15 +25,15 @@ #pragma once +#import +#import +#import +#include +#include "MTLCommandEncoder.h" #include "MTLStd.h" #include "MTLUtils.h" #include "base/Macros.h" #include "math/Math.h" -#include "MTLCommandEncoder.h" -#import -#import -#import -#include namespace cc { namespace gfx { @@ -43,14 +43,14 @@ struct Color; class CCMTLRenderCommandEncoder final : public CCMTLCommandEncoder { struct BufferBinding final { id buffer; - uint offset = 0; + uint offset = 0; }; public: - CCMTLRenderCommandEncoder() = default; - ~CCMTLRenderCommandEncoder() = default; + CCMTLRenderCommandEncoder() = default; + ~CCMTLRenderCommandEncoder() = default; CCMTLRenderCommandEncoder(const CCMTLRenderCommandEncoder &) = delete; - CCMTLRenderCommandEncoder(CCMTLRenderCommandEncoder &&) = delete; + CCMTLRenderCommandEncoder(CCMTLRenderCommandEncoder &&) = delete; CCMTLRenderCommandEncoder &operator=(const CCMTLRenderCommandEncoder &) = delete; CCMTLRenderCommandEncoder &operator=(CCMTLRenderCommandEncoder &&) = delete; @@ -64,20 +64,20 @@ public: } inline void clearStates() { - _isViewportSet = false; - _isScissorRectSet = false; - _isCullModeSet = false; - _isFrontFacingWinding = false; + _isViewportSet = false; + _isScissorRectSet = false; + _isCullModeSet = false; + _isFrontFacingWinding = false; _isTriangleFillModeSet = false; - _isDepthClipModeSet = false; - _isDepthBiasSet = false; - _isBlendColorSet = false; + _isDepthClipModeSet = false; + _isDepthBiasSet = false; + _isBlendColorSet = false; - _pipelineState = nil; + _pipelineState = nil; _depthStencilState = nil; _frontReferenceValue = UINT_MAX; - _backReferenceValue = UINT_MAX; + _backReferenceValue = UINT_MAX; _vertexBufferMap.clear(); _fragmentBufferMap.clear(); @@ -96,7 +96,7 @@ public: if (_isViewportSet && _viewport == vp) return; - _viewport = vp; + _viewport = vp; _isViewportSet = true; [_mtlEncoder setViewport:mu::toMTLViewport(_viewport)]; } @@ -105,7 +105,7 @@ public: if (_isScissorRectSet && _scissorRect == rect) return; - _scissorRect = rect; + _scissorRect = rect; _isScissorRectSet = true; [_mtlEncoder setScissorRect:mu::toMTLScissorRect(_scissorRect)]; } @@ -114,7 +114,7 @@ public: if (_isCullModeSet && (_cullMode == mode)) return; - _cullMode = mode; + _cullMode = mode; _isCullModeSet = true; [_mtlEncoder setCullMode:mode]; } @@ -123,7 +123,7 @@ public: if (_isFrontFacingWinding && (_frontFacingWinding == winding)) return; - _frontFacingWinding = winding; + _frontFacingWinding = winding; _isFrontFacingWinding = true; [_mtlEncoder setFrontFacingWinding:_frontFacingWinding]; } @@ -134,7 +134,7 @@ public: if (_isDepthClipModeSet && (_depthClipMode == mode)) return; - _depthClipMode = mode; + _depthClipMode = mode; _isDepthClipModeSet = true; [_mtlEncoder setDepthClipMode:_depthClipMode]; } @@ -145,7 +145,7 @@ public: if (_isTriangleFillModeSet && (_triangleFillMode == mode)) return; - _triangleFillMode = mode; + _triangleFillMode = mode; _isTriangleFillModeSet = true; [_mtlEncoder setTriangleFillMode:_triangleFillMode]; } @@ -163,7 +163,7 @@ public: return; _frontReferenceValue = frontReferenceValue; - _backReferenceValue = backReferenceValue; + _backReferenceValue = backReferenceValue; [_mtlEncoder setStencilFrontReferenceValue:_frontReferenceValue backReferenceValue:_backReferenceValue]; } @@ -184,9 +184,9 @@ public: return; } - _depthBias = depthBias; - _clamp = clamp; - _slope = slope; + _depthBias = depthBias; + _clamp = clamp; + _slope = slope; _isDepthBiasSet = true; [_mtlEncoder setDepthBias:_depthBias slopeScale:_slope @@ -197,7 +197,7 @@ public: if (_isBlendColorSet && _blendColor == color) return; - _blendColor = color; + _blendColor = color; _isBlendColorSet = true; [_mtlEncoder setBlendColorRed:_blendColor.x green:_blendColor.y @@ -276,33 +276,33 @@ public: } protected: - bool _isViewportSet = false; - bool _isScissorRectSet = false; - bool _isCullModeSet = false; - bool _isFrontFacingWinding = false; - bool _isTriangleFillModeSet = false; - bool _isDepthClipModeSet = false; - bool _isDepthBiasSet = false; - bool _isBlendColorSet = false; - id _mtlEncoder = nil; - id _pipelineState = nil; - id _depthStencilState = nil; - uint _frontReferenceValue = UINT_MAX; - uint _backReferenceValue = UINT_MAX; - float _depthBias = 0.f; - float _clamp = 0.f; - float _slope = 0.f; - MTLCullMode _cullMode = MTLCullModeNone; - MTLWinding _frontFacingWinding = MTLWindingClockwise; - CC_UNUSED MTLDepthClipMode _depthClipMode = MTLDepthClipModeClip; - MTLTriangleFillMode _triangleFillMode = MTLTriangleFillModeFill; - Viewport _viewport; - Rect _scissorRect; - Color _blendColor; - std::unordered_map _vertexBufferMap; - std::unordered_map _fragmentBufferMap; - std::unordered_map> _vertexTextureMap; - std::unordered_map> _fragmentTextureMap; + bool _isViewportSet = false; + bool _isScissorRectSet = false; + bool _isCullModeSet = false; + bool _isFrontFacingWinding = false; + bool _isTriangleFillModeSet = false; + bool _isDepthClipModeSet = false; + bool _isDepthBiasSet = false; + bool _isBlendColorSet = false; + id _mtlEncoder = nil; + id _pipelineState = nil; + id _depthStencilState = nil; + uint _frontReferenceValue = UINT_MAX; + uint _backReferenceValue = UINT_MAX; + float _depthBias = 0.f; + float _clamp = 0.f; + float _slope = 0.f; + MTLCullMode _cullMode = MTLCullModeNone; + MTLWinding _frontFacingWinding = MTLWindingClockwise; + CC_UNUSED MTLDepthClipMode _depthClipMode = MTLDepthClipModeClip; + MTLTriangleFillMode _triangleFillMode = MTLTriangleFillModeFill; + Viewport _viewport; + Rect _scissorRect; + Color _blendColor; + std::unordered_map _vertexBufferMap; + std::unordered_map _fragmentBufferMap; + std::unordered_map> _vertexTextureMap; + std::unordered_map> _fragmentTextureMap; std::unordered_map> _vertexSamplerMap; std::unordered_map> _fragmentSamplerMap; }; diff --git a/native/cocos/renderer/gfx-metal/MTLRenderPass.h b/native/cocos/renderer/gfx-metal/MTLRenderPass.h index c6c372dde9..24ee83bbcf 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderPass.h +++ b/native/cocos/renderer/gfx-metal/MTLRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -42,25 +42,25 @@ public: explicit CCMTLRenderPass(); ~CCMTLRenderPass(); - void setColorAttachment(size_t slot, CCMTLTexture* texture, int level); - void setDepthStencilAttachment(CCMTLTexture* texture, int level); + void setColorAttachment(size_t slot, CCMTLTexture *texture, int level); + void setDepthStencilAttachment(CCMTLTexture *texture, int level); inline MTLRenderPassDescriptor *getMTLRenderPassDescriptor() const { return _mtlRenderPassDescriptor; } - inline uint getColorRenderTargetNums() const { return _colorRenderTargetNums; } - inline const vector &getRenderTargetSizes() const { return _renderTargetSizes; } - inline void nextSubpass() { _currentSubpassIndex++; } - inline uint getCurrentSubpassIndex() { return _currentSubpassIndex; } - inline void reset() { _currentSubpassIndex = 0; } + inline uint getColorRenderTargetNums() const { return _colorRenderTargetNums; } + inline const vector & getRenderTargetSizes() const { return _renderTargetSizes; } + inline void nextSubpass() { _currentSubpassIndex++; } + inline uint getCurrentSubpassIndex() { return _currentSubpassIndex; } + inline void reset() { _currentSubpassIndex = 0; } protected: void doInit(const RenderPassInfo &info) override; void doDestroy() override; - uint _outputAttachmentOffset = 0; - uint _currentSubpassIndex = 0; + uint _outputAttachmentOffset = 0; + uint _currentSubpassIndex = 0; MTLRenderPassDescriptor *_mtlRenderPassDescriptor = nil; - uint _colorRenderTargetNums = 0; - vector _renderTargetSizes; + uint _colorRenderTargetNums = 0; + vector _renderTargetSizes; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLRenderPass.mm b/native/cocos/renderer/gfx-metal/MTLRenderPass.mm index 4aebbc6abd..ed3c2c8f53 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderPass.mm +++ b/native/cocos/renderer/gfx-metal/MTLRenderPass.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSampler.h b/native/cocos/renderer/gfx-metal/MTLSampler.h index fa48565774..eaaf079386 100644 --- a/native/cocos/renderer/gfx-metal/MTLSampler.h +++ b/native/cocos/renderer/gfx-metal/MTLSampler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -34,21 +34,20 @@ namespace gfx { class CCMTLSampler final : public Sampler { public: - explicit CCMTLSampler(const SamplerInfo& info); + explicit CCMTLSampler(const SamplerInfo &info); ~CCMTLSampler(); - CCMTLSampler() = delete; - CCMTLSampler(const CCMTLSampler &)=delete; - CCMTLSampler(CCMTLSampler &&)=delete; - CCMTLSampler &operator=(const CCMTLSampler &)=delete; - CCMTLSampler &operator=(CCMTLSampler &&)=delete; + CCMTLSampler() = delete; + CCMTLSampler(const CCMTLSampler &) = delete; + CCMTLSampler(CCMTLSampler &&) = delete; + CCMTLSampler &operator=(const CCMTLSampler &) = delete; + CCMTLSampler &operator=(CCMTLSampler &&) = delete; inline id getMTLSamplerState() const { return _mtlSamplerState; } - - static CCMTLSampler* getDefaultSampler(); - static void deleteDefaultSampler(); + + static CCMTLSampler *getDefaultSampler(); + static void deleteDefaultSampler(); protected: - id _mtlSamplerState = nil; }; diff --git a/native/cocos/renderer/gfx-metal/MTLSampler.mm b/native/cocos/renderer/gfx-metal/MTLSampler.mm index a456e69fdd..5efa7e5a67 100644 --- a/native/cocos/renderer/gfx-metal/MTLSampler.mm +++ b/native/cocos/renderer/gfx-metal/MTLSampler.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSemaphore.h b/native/cocos/renderer/gfx-metal/MTLSemaphore.h index 339e57cf3e..51057a1917 100644 --- a/native/cocos/renderer/gfx-metal/MTLSemaphore.h +++ b/native/cocos/renderer/gfx-metal/MTLSemaphore.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,9 +35,9 @@ public: explicit CCMTLSemaphore(uint initialValue) : _semaphoreCount(initialValue) { _semaphore = dispatch_semaphore_create(initialValue); } - ~CCMTLSemaphore() = default; + ~CCMTLSemaphore() = default; CCMTLSemaphore(const CCMTLSemaphore &) = delete; - CCMTLSemaphore(CCMTLSemaphore &&) = delete; + CCMTLSemaphore(CCMTLSemaphore &&) = delete; CCMTLSemaphore &operator=(const CCMTLSemaphore &) = delete; CCMTLSemaphore &operator=(CCMTLSemaphore &&) = delete; @@ -48,7 +48,7 @@ public: void wait() const { dispatch_semaphore_wait(_semaphore, DISPATCH_TIME_FOREVER); } - + void trySyncAll(uint64_t nanoSec) { for (uint i = 0; i < _semaphoreCount; i++) { dispatch_semaphore_wait(_semaphore, nanoSec); @@ -62,8 +62,8 @@ public: } protected: - dispatch_semaphore_t _semaphore = nullptr; - uint _semaphoreCount = 0; + dispatch_semaphore_t _semaphore = nullptr; + uint _semaphoreCount = 0; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLShader.h b/native/cocos/renderer/gfx-metal/MTLShader.h index 832bd330b5..45d1c2cd02 100644 --- a/native/cocos/renderer/gfx-metal/MTLShader.h +++ b/native/cocos/renderer/gfx-metal/MTLShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -37,20 +37,20 @@ class CCMTLShader final : public Shader { public: explicit CCMTLShader(); ~CCMTLShader(); - CCMTLShader(const CCMTLShader &)=delete; - CCMTLShader(CCMTLShader &&)=delete; - CCMTLShader &operator=(const CCMTLShader &)=delete; - CCMTLShader &operator=(CCMTLShader &&)=delete; + CCMTLShader(const CCMTLShader &) = delete; + CCMTLShader(CCMTLShader &&) = delete; + CCMTLShader &operator=(const CCMTLShader &) = delete; + CCMTLShader &operator=(CCMTLShader &&) = delete; - inline id getVertMTLFunction() const { return _vertFunction; } - inline id getFragmentMTLFunction() const { return _fragFunction; } - inline id getComputeMTLFunction() const { return _cmptFunction; } + inline id getVertMTLFunction() const { return _vertFunction; } + inline id getFragmentMTLFunction() const { return _fragFunction; } + inline id getComputeMTLFunction() const { return _cmptFunction; } inline const unordered_map &getFragmentSamplerBindings() const { return _mtlFragmentSamplerBindings; } - inline const CCMTLGPUShader *gpuShader() const { return _gpuShader; } + inline const CCMTLGPUShader * gpuShader() const { return _gpuShader; } uint getAvailableBufferBindingIndex(ShaderStageFlagBit stage, uint stream); - - id getSpecializedFragFunction(uint* index, int* val, uint count); + + id getSpecializedFragFunction(uint *index, int *val, uint count); #ifdef DEBUG_SHADER inline const String &getVertGlslShader() const { return _vertGlslShader; } @@ -71,21 +71,21 @@ protected: id _vertFunction = nil; id _fragFunction = nil; id _cmptFunction = nil; - + id _vertLibrary = nil; id _fragLibrary = nil; id _cmptLibrary = nil; - + // function constant hash , specialized MTLFunction - NSMutableDictionary>* _specializedFragFuncs = nil; - + NSMutableDictionary> *_specializedFragFuncs = nil; + unordered_map _mtlFragmentSamplerBindings; - vector _availableVertexBufferBindingIndex; - vector _availableFragmentBufferBindingIndex; + vector _availableVertexBufferBindingIndex; + vector _availableFragmentBufferBindingIndex; CCMTLGPUShader *_gpuShader = nullptr; - - static SPIRVUtils* spirv; + + static SPIRVUtils *spirv; // For debug #ifdef DEBUG_SHADER diff --git a/native/cocos/renderer/gfx-metal/MTLShader.mm b/native/cocos/renderer/gfx-metal/MTLShader.mm index 102e4115a5..5d5b0aec8e 100644 --- a/native/cocos/renderer/gfx-metal/MTLShader.mm +++ b/native/cocos/renderer/gfx-metal/MTLShader.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLStd.cpp b/native/cocos/renderer/gfx-metal/MTLStd.cpp index aaf694197e..945e12b151 100644 --- a/native/cocos/renderer/gfx-metal/MTLStd.cpp +++ b/native/cocos/renderer/gfx-metal/MTLStd.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLStd.h b/native/cocos/renderer/gfx-metal/MTLStd.h index 4c4a92a5a1..7644dc2f6f 100644 --- a/native/cocos/renderer/gfx-metal/MTLStd.h +++ b/native/cocos/renderer/gfx-metal/MTLStd.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLSwapchain.h b/native/cocos/renderer/gfx-metal/MTLSwapchain.h index 76ba92719c..415ce1eb14 100644 --- a/native/cocos/renderer/gfx-metal/MTLSwapchain.h +++ b/native/cocos/renderer/gfx-metal/MTLSwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,8 +25,8 @@ #pragma once #import -#import "gfx-base/GFXSwapchain.h" #import "MTLTexture.h" +#import "gfx-base/GFXSwapchain.h" namespace cc { namespace gfx { @@ -40,8 +40,8 @@ public: ~CCMTLSwapchain(); inline CCMTLGPUSwapChainObject* gpuSwapChainObj() { return _gpuSwapchainObj; } - CCMTLTexture* colorTexture(); - CCMTLTexture* depthStencilTexture(); + CCMTLTexture* colorTexture(); + CCMTLTexture* depthStencilTexture(); id currentDrawable(); @@ -50,11 +50,11 @@ public: void release(); protected: - void doInit(const SwapchainInfo &info) override; + void doInit(const SwapchainInfo& info) override; void doDestroy() override; void doResize(uint32_t width, uint32_t height, SurfaceTransform transform) override; void doDestroySurface() override; - void doCreateSurface(void *windowHandle) override; + void doCreateSurface(void* windowHandle) override; private: CCMTLGPUSwapChainObject* _gpuSwapchainObj = nullptr; diff --git a/native/cocos/renderer/gfx-metal/MTLSwapchain.mm b/native/cocos/renderer/gfx-metal/MTLSwapchain.mm index 6cea11e57c..3ffc9d0a0c 100644 --- a/native/cocos/renderer/gfx-metal/MTLSwapchain.mm +++ b/native/cocos/renderer/gfx-metal/MTLSwapchain.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -22,6 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ + #import "../gfx-base/GFXDef-common.h" #import "MTLSwapchain.h" #if CC_PLATFORM == CC_PLATFORM_MAC_OSX diff --git a/native/cocos/renderer/gfx-metal/MTLTexture.h b/native/cocos/renderer/gfx-metal/MTLTexture.h index 1b998e737f..d75c4a90a3 100644 --- a/native/cocos/renderer/gfx-metal/MTLTexture.h +++ b/native/cocos/renderer/gfx-metal/MTLTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,7 +40,7 @@ public: explicit CCMTLTexture(); ~CCMTLTexture(); CCMTLTexture(const CCMTLTexture &) = delete; - CCMTLTexture(CCMTLTexture &&) = delete; + CCMTLTexture(CCMTLTexture &&) = delete; CCMTLTexture &operator=(const CCMTLTexture &) = delete; CCMTLTexture &operator=(CCMTLTexture &&) = delete; @@ -48,17 +48,17 @@ public: return _isTextureView ? _mtlTextureView : _mtlTexture; } inline Format getConvertedFormat() const { return _convertedFormat; } - inline bool isArray() const { return _isArray; } - inline bool isPVRTC() const { return _isPVRTC; } - + inline bool isArray() const { return _isArray; } + inline bool isPVRTC() const { return _isPVRTC; } + //update drawable from swapchain. void update(); - - const TextureInfo& textureInfo(); - CCMTLSwapchain* swapChain(); - - static CCMTLTexture* getDefaultTexture(); - static void deleteDefaultTexture(); + + const TextureInfo &textureInfo(); + CCMTLSwapchain * swapChain(); + + static CCMTLTexture *getDefaultTexture(); + static void deleteDefaultTexture(); protected: void doInit(const TextureInfo &info) override; @@ -70,10 +70,10 @@ protected: bool createMTLTexture(); Format _convertedFormat = Format::UNKNOWN; - bool _isArray = false; - bool _isPVRTC = false; + bool _isArray = false; + bool _isPVRTC = false; - id _mtlTexture = nil; + id _mtlTexture = nil; id _mtlTextureView = nil; }; diff --git a/native/cocos/renderer/gfx-metal/MTLTexture.mm b/native/cocos/renderer/gfx-metal/MTLTexture.mm index 00696133fd..8a5edbb2fc 100644 --- a/native/cocos/renderer/gfx-metal/MTLTexture.mm +++ b/native/cocos/renderer/gfx-metal/MTLTexture.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.h b/native/cocos/renderer/gfx-metal/MTLUtils.h index 49981f26f5..c72c1517f2 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.h +++ b/native/cocos/renderer/gfx-metal/MTLUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -40,74 +40,75 @@ class CCMTLGPUShader; class CCMTLDevice; namespace mu { -API_AVAILABLE(ios(12.0)) MTLMultisampleStencilResolveFilter toMTLStencilResolveMode(ResolveMode mode); +API_AVAILABLE(ios(12.0)) +MTLMultisampleStencilResolveFilter toMTLStencilResolveMode(ResolveMode mode); -MTLResourceOptions toMTLResourceOption(MemoryUsage usage); -MTLLoadAction toMTLLoadAction(LoadOp op); -MTLStoreAction toMTLStoreAction(StoreOp op); -MTLStoreAction toMTLMSAAStoreAction(StoreOp op); -MTLClearColor toMTLClearColor(const Color &clearColor); -MTLVertexFormat toMTLVertexFormat(Format, bool); -MTLPixelFormat toMTLPixelFormat(Format); +MTLResourceOptions toMTLResourceOption(MemoryUsage usage); +MTLLoadAction toMTLLoadAction(LoadOp op); +MTLStoreAction toMTLStoreAction(StoreOp op); +MTLStoreAction toMTLMSAAStoreAction(StoreOp op); +MTLClearColor toMTLClearColor(const Color &clearColor); +MTLVertexFormat toMTLVertexFormat(Format, bool); +MTLPixelFormat toMTLPixelFormat(Format); MTLMultisampleDepthResolveFilter toMTLDepthResolveMode(ResolveMode mode); // Because some pixel format is not supported on metal, so need to convert to supported pixel format. -Format convertGFXPixelFormat(Format); -MTLColorWriteMask toMTLColorWriteMask(ColorMask); -MTLBlendFactor toMTLBlendFactor(BlendFactor); -MTLBlendOperation toMTLBlendOperation(BlendOp); -MTLCullMode toMTLCullMode(CullMode); -MTLWinding toMTLWinding(bool isFrontFaceCCW); -MTLViewport toMTLViewport(const Viewport &); -MTLScissorRect toMTLScissorRect(const Rect &); -MTLTriangleFillMode toMTLTriangleFillMode(PolygonMode); -MTLDepthClipMode toMTLDepthClipMode(bool isClip); -MTLCompareFunction toMTLCompareFunction(ComparisonFunc); -MTLStencilOperation toMTLStencilOperation(StencilOp); -MTLPrimitiveType toMTLPrimitiveType(PrimitiveMode); -MTLTextureUsage toMTLTextureUsage(TextureUsage); -MTLTextureType toMTLTextureType(TextureType type); -NSUInteger toMTLSampleCount(SampleCount); -MTLSamplerAddressMode toMTLSamplerAddressMode(Address); -int toMTLSamplerBorderColor(const Color &); +Format convertGFXPixelFormat(Format); +MTLColorWriteMask toMTLColorWriteMask(ColorMask); +MTLBlendFactor toMTLBlendFactor(BlendFactor); +MTLBlendOperation toMTLBlendOperation(BlendOp); +MTLCullMode toMTLCullMode(CullMode); +MTLWinding toMTLWinding(bool isFrontFaceCCW); +MTLViewport toMTLViewport(const Viewport &); +MTLScissorRect toMTLScissorRect(const Rect &); +MTLTriangleFillMode toMTLTriangleFillMode(PolygonMode); +MTLDepthClipMode toMTLDepthClipMode(bool isClip); +MTLCompareFunction toMTLCompareFunction(ComparisonFunc); +MTLStencilOperation toMTLStencilOperation(StencilOp); +MTLPrimitiveType toMTLPrimitiveType(PrimitiveMode); +MTLTextureUsage toMTLTextureUsage(TextureUsage); +MTLTextureType toMTLTextureType(TextureType type); +NSUInteger toMTLSampleCount(SampleCount); +MTLSamplerAddressMode toMTLSamplerAddressMode(Address); +int toMTLSamplerBorderColor(const Color &); MTLSamplerMinMagFilter toMTLSamplerMinMagFilter(Filter); -MTLSamplerMipFilter toMTLSamplerMipFilter(Filter); -String spirv2MSL(const uint32_t *ir, size_t word_count, ShaderStageFlagBit shaderType, CCMTLGPUShader *gpuShader); -const uint8_t *convertRGB8ToRGBA8(const uint8_t *source, uint length); -const uint8_t *convertRGB32FToRGBA32F(const uint8_t *source, uint length); -NSUInteger highestSupportedFeatureSet(id device); -uint getGPUFamily(MTLFeatureSet featureSet); -uint getMaxVertexAttributes(uint family); -uint getMaxEntriesInBufferArgumentTable(uint family); -uint getMaxEntriesInTextureArgumentTable(uint family); -uint getMaxEntriesInSamplerStateArgumentTable(uint family); -uint getMaxTexture2DWidthHeight(uint family); -uint getMaxCubeMapTextureWidthHeight(uint family); -uint getMaxColorRenderTarget(uint family); -uint getMinBufferOffsetAlignment(uint family); -uint getMaxThreadsPerGroup(uint family); -bool isPVRTCSuppported(uint family); -bool isEAC_ETCCSuppported(uint family); -bool isASTCSuppported(uint family); -bool isBCSupported(uint family); -bool isColorBufferFloatSupported(uint family); -bool isColorBufferHalfFloatSupported(uint family); -bool isLinearTextureSupported(uint family); -bool isIndirectCommandBufferSupported(MTLFeatureSet featureSet); -bool isDepthStencilFormatSupported(id device, Format format, uint family); -MTLPixelFormat getSupportedDepthStencilFormat(id device, uint family, uint &depthBits); -bool isIndirectDrawSupported(uint family); -bool isImageBlockSupported(); -bool isFramebufferFetchSupported(); -String featureSetToString(MTLFeatureSet featureSet); -const uint8_t *const convertData(const uint8_t *source, uint length, Format type); -uint getBlockSize(Format format); -uint getBytesPerRow(Format format, uint width); -bool pixelFormatIsColorRenderable(Format format); -bool isSamplerDescriptorCompareFunctionSupported(uint family); -void clearRenderArea(CCMTLDevice *device, id renderEncoder, RenderPass *renderPass, const Rect &renderArea, const Color *colors, float depth, uint stencil); -inline uint alignUp(uint inSize, uint align) { return ((inSize + align - 1) / align) * align; } -void clearUtilResource(); -inline uint roundUp(uint dividend, uint divisor) { return (dividend - 1) / divisor + 1; } +MTLSamplerMipFilter toMTLSamplerMipFilter(Filter); +String spirv2MSL(const uint32_t *ir, size_t word_count, ShaderStageFlagBit shaderType, CCMTLGPUShader *gpuShader); +const uint8_t * convertRGB8ToRGBA8(const uint8_t *source, uint length); +const uint8_t * convertRGB32FToRGBA32F(const uint8_t *source, uint length); +NSUInteger highestSupportedFeatureSet(id device); +uint getGPUFamily(MTLFeatureSet featureSet); +uint getMaxVertexAttributes(uint family); +uint getMaxEntriesInBufferArgumentTable(uint family); +uint getMaxEntriesInTextureArgumentTable(uint family); +uint getMaxEntriesInSamplerStateArgumentTable(uint family); +uint getMaxTexture2DWidthHeight(uint family); +uint getMaxCubeMapTextureWidthHeight(uint family); +uint getMaxColorRenderTarget(uint family); +uint getMinBufferOffsetAlignment(uint family); +uint getMaxThreadsPerGroup(uint family); +bool isPVRTCSuppported(uint family); +bool isEAC_ETCCSuppported(uint family); +bool isASTCSuppported(uint family); +bool isBCSupported(uint family); +bool isColorBufferFloatSupported(uint family); +bool isColorBufferHalfFloatSupported(uint family); +bool isLinearTextureSupported(uint family); +bool isIndirectCommandBufferSupported(MTLFeatureSet featureSet); +bool isDepthStencilFormatSupported(id device, Format format, uint family); +MTLPixelFormat getSupportedDepthStencilFormat(id device, uint family, uint &depthBits); +bool isIndirectDrawSupported(uint family); +bool isImageBlockSupported(); +bool isFramebufferFetchSupported(); +String featureSetToString(MTLFeatureSet featureSet); +const uint8_t *const convertData(const uint8_t *source, uint length, Format type); +uint getBlockSize(Format format); +uint getBytesPerRow(Format format, uint width); +bool pixelFormatIsColorRenderable(Format format); +bool isSamplerDescriptorCompareFunctionSupported(uint family); +void clearRenderArea(CCMTLDevice *device, id renderEncoder, RenderPass *renderPass, const Rect &renderArea, const Color *colors, float depth, uint stencil); +inline uint alignUp(uint inSize, uint align) { return ((inSize + align - 1) / align) * align; } +void clearUtilResource(); +inline uint roundUp(uint dividend, uint divisor) { return (dividend - 1) / divisor + 1; } } // namespace mu } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.mm b/native/cocos/renderer/gfx-metal/MTLUtils.mm index 619caf5f14..a5f98bb963 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.mm +++ b/native/cocos/renderer/gfx-metal/MTLUtils.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2019-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2019-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/BufferValidator.cpp b/native/cocos/renderer/gfx-validator/BufferValidator.cpp index 854c866837..11a4d13691 100644 --- a/native/cocos/renderer/gfx-validator/BufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/BufferValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/BufferValidator.h b/native/cocos/renderer/gfx-validator/BufferValidator.h index bf8ddbc4a6..d9b2676ecd 100644 --- a/native/cocos/renderer/gfx-validator/BufferValidator.h +++ b/native/cocos/renderer/gfx-validator/BufferValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp b/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp index 55cdbae47b..e3cf37924e 100644 --- a/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/CommandBufferValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/CommandBufferValidator.h b/native/cocos/renderer/gfx-validator/CommandBufferValidator.h index e65e009f40..7b6fb0472f 100644 --- a/native/cocos/renderer/gfx-validator/CommandBufferValidator.h +++ b/native/cocos/renderer/gfx-validator/CommandBufferValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp index bfb8bff2b0..7db3944e12 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp +++ b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h index 2ddd04c505..ff9035e463 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h +++ b/native/cocos/renderer/gfx-validator/DescriptorSetLayoutValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp index 9c89b8b682..85edfb58ac 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp +++ b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h index 8d5a25204f..bbc24a94e8 100644 --- a/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h +++ b/native/cocos/renderer/gfx-validator/DescriptorSetValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DeviceValidator.cpp b/native/cocos/renderer/gfx-validator/DeviceValidator.cpp index 5b221498c6..8ebd14c4b6 100644 --- a/native/cocos/renderer/gfx-validator/DeviceValidator.cpp +++ b/native/cocos/renderer/gfx-validator/DeviceValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/DeviceValidator.h b/native/cocos/renderer/gfx-validator/DeviceValidator.h index 0a1eeaa22f..2fe7027fd2 100644 --- a/native/cocos/renderer/gfx-validator/DeviceValidator.h +++ b/native/cocos/renderer/gfx-validator/DeviceValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp b/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp index 28006647c8..03f96653bb 100644 --- a/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp +++ b/native/cocos/renderer/gfx-validator/FramebufferValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/FramebufferValidator.h b/native/cocos/renderer/gfx-validator/FramebufferValidator.h index a69f3049e3..2611d67bc1 100644 --- a/native/cocos/renderer/gfx-validator/FramebufferValidator.h +++ b/native/cocos/renderer/gfx-validator/FramebufferValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp index 3bd7c3533e..88bdd8f8a5 100644 --- a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp +++ b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h index cb2419d69f..5dbf967a41 100644 --- a/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h +++ b/native/cocos/renderer/gfx-validator/InputAssemblerValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp index e75fa9e5ff..df17ddd57d 100644 --- a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp +++ b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h index 60dc5e9342..fc76ea2250 100644 --- a/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h +++ b/native/cocos/renderer/gfx-validator/PipelineLayoutValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp b/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp index f0542c2059..77f4390fd5 100644 --- a/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp +++ b/native/cocos/renderer/gfx-validator/PipelineStateValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/PipelineStateValidator.h b/native/cocos/renderer/gfx-validator/PipelineStateValidator.h index 12e54fca00..309152a16e 100644 --- a/native/cocos/renderer/gfx-validator/PipelineStateValidator.h +++ b/native/cocos/renderer/gfx-validator/PipelineStateValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp b/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp index 0db46e0259..b53e35d145 100644 --- a/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp +++ b/native/cocos/renderer/gfx-validator/QueryPoolValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueryPoolValidator.h b/native/cocos/renderer/gfx-validator/QueryPoolValidator.h index 3165673f1f..853648c62b 100644 --- a/native/cocos/renderer/gfx-validator/QueryPoolValidator.h +++ b/native/cocos/renderer/gfx-validator/QueryPoolValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueueValidator.cpp b/native/cocos/renderer/gfx-validator/QueueValidator.cpp index 3d353b8012..daf6c0ff79 100644 --- a/native/cocos/renderer/gfx-validator/QueueValidator.cpp +++ b/native/cocos/renderer/gfx-validator/QueueValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/QueueValidator.h b/native/cocos/renderer/gfx-validator/QueueValidator.h index 402340a601..3acef2a602 100644 --- a/native/cocos/renderer/gfx-validator/QueueValidator.h +++ b/native/cocos/renderer/gfx-validator/QueueValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp b/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp index afbc7de906..353f7b32db 100644 --- a/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp +++ b/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -55,7 +55,7 @@ void RenderPassValidator::doInit(const RenderPassInfo &info) { } } - for (auto & attachment : _colorAttachments) { + for (auto &attachment : _colorAttachments) { if (attachment.loadOp == LoadOp::LOAD && attachment.beginAccesses.empty()) { CCASSERT(false, "Attachment missing beginAccesses for LoadOp::LOAD"); } diff --git a/native/cocos/renderer/gfx-validator/RenderPassValidator.h b/native/cocos/renderer/gfx-validator/RenderPassValidator.h index 6f097faf5a..5f3082918d 100644 --- a/native/cocos/renderer/gfx-validator/RenderPassValidator.h +++ b/native/cocos/renderer/gfx-validator/RenderPassValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ShaderValidator.cpp b/native/cocos/renderer/gfx-validator/ShaderValidator.cpp index a183adc7d8..62074cfd68 100644 --- a/native/cocos/renderer/gfx-validator/ShaderValidator.cpp +++ b/native/cocos/renderer/gfx-validator/ShaderValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ShaderValidator.h b/native/cocos/renderer/gfx-validator/ShaderValidator.h index aa997947c1..b9af0fde57 100644 --- a/native/cocos/renderer/gfx-validator/ShaderValidator.h +++ b/native/cocos/renderer/gfx-validator/ShaderValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp b/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp index 3341b22a13..a95af5ef24 100644 --- a/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp +++ b/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -100,7 +100,7 @@ void SwapchainValidator::doResize(uint32_t width, uint32_t height, SurfaceTransf auto *depthStencilTexture = static_cast(_depthStencilTexture); colorTexture->_info.width = depthStencilTexture->_info.width = _actor->getWidth(); colorTexture->_info.height = depthStencilTexture->_info.height = _actor->getHeight(); - _transform = _actor->getSurfaceTransform(); + _transform = _actor->getSurfaceTransform(); } void SwapchainValidator::doDestroySurface() { diff --git a/native/cocos/renderer/gfx-validator/SwapchainValidator.h b/native/cocos/renderer/gfx-validator/SwapchainValidator.h index 6a3a145a43..a8d086b6eb 100644 --- a/native/cocos/renderer/gfx-validator/SwapchainValidator.h +++ b/native/cocos/renderer/gfx-validator/SwapchainValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/TextureValidator.cpp b/native/cocos/renderer/gfx-validator/TextureValidator.cpp index eca9ebdda9..531a698ac1 100644 --- a/native/cocos/renderer/gfx-validator/TextureValidator.cpp +++ b/native/cocos/renderer/gfx-validator/TextureValidator.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -26,8 +26,8 @@ #include "base/CoreStd.h" #include "DeviceValidator.h" -#include "TextureValidator.h" #include "SwapchainValidator.h" +#include "TextureValidator.h" #include "ValidationUtils.h" namespace cc { @@ -36,7 +36,7 @@ namespace gfx { namespace { struct EnumHasher final { template ::value>> - size_t operator()(const T& v) const { + size_t operator()(const T &v) const { return static_cast(v); } }; @@ -72,7 +72,7 @@ void TextureValidator::doInit(const TextureInfo &info) { void TextureValidator::doInit(const TextureViewInfo &info) { CCASSERT(!isInited(), "initializing twice?"); _inited = true; - CCASSERT(info.texture && static_cast(info.texture)->isInited(), "alread destroyed?"); + CCASSERT(info.texture && static_cast(info.texture)->isInited(), "alread destroyed?"); /////////// execute /////////// @@ -86,7 +86,7 @@ void TextureValidator::doInit(const SwapchainTextureInfo &info) { CCASSERT(!isInited(), "initializing twice?"); _inited = true; CC_UNUSED_PARAM(info); // workaround tidy issue - CCASSERT(info.swapchain && static_cast(info.swapchain)->isInited(), "alread destroyed?"); + CCASSERT(info.swapchain && static_cast(info.swapchain)->isInited(), "alread destroyed?"); // the actor is already initialized } diff --git a/native/cocos/renderer/gfx-validator/TextureValidator.h b/native/cocos/renderer/gfx-validator/TextureValidator.h index fbcb87b0e9..c9c95ed936 100644 --- a/native/cocos/renderer/gfx-validator/TextureValidator.h +++ b/native/cocos/renderer/gfx-validator/TextureValidator.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ValidationUtils.cpp b/native/cocos/renderer/gfx-validator/ValidationUtils.cpp index 5b394b9645..d64577515b 100644 --- a/native/cocos/renderer/gfx-validator/ValidationUtils.cpp +++ b/native/cocos/renderer/gfx-validator/ValidationUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-validator/ValidationUtils.h b/native/cocos/renderer/gfx-validator/ValidationUtils.h index b38ed65081..e7b6392ffa 100644 --- a/native/cocos/renderer/gfx-validator/ValidationUtils.h +++ b/native/cocos/renderer/gfx-validator/ValidationUtils.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,8 +25,8 @@ #pragma once -#include #include +#include #include "base/Utils.h" #include "gfx-base/GFXDef.h" diff --git a/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp b/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp index 8619e6b9cc..39dfd33e97 100644 --- a/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKBuffer.h b/native/cocos/renderer/gfx-vulkan/VKBuffer.h index 8aa7113029..441449c611 100644 --- a/native/cocos/renderer/gfx-vulkan/VKBuffer.h +++ b/native/cocos/renderer/gfx-vulkan/VKBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp index 985f0f495a..e9c7fc9e43 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h index 785b6a56dc..886a396c52 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h +++ b/native/cocos/renderer/gfx-vulkan/VKCommandBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp index e7ba46d040..bfc03c7e5f 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKCommands.h b/native/cocos/renderer/gfx-vulkan/VKCommands.h index 9bca940d8c..933acbe01a 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommands.h +++ b/native/cocos/renderer/gfx-vulkan/VKCommands.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp index bce83d2975..c4ecb14b0e 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h index 74a38e7e99..b7b8a8e57e 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSet.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp index 7cf6313c73..bdb63a0661 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h index 801da2e9f3..73dddbcd1e 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-vulkan/VKDescriptorSetLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp index b2b64dd31e..17f7ecca74 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -598,8 +598,8 @@ void CCVKDevice::acquire(Swapchain *const *swapchains, uint32_t count) { for (uint32_t i = 0; i < vkSwapchains.size(); ++i) { VkSemaphore acquireSemaphore = _gpuSemaphorePool->alloc(); - VkResult res = vkAcquireNextImageKHR(_gpuDevice->vkDevice, vkSwapchains[i], ~0ULL, - acquireSemaphore, VK_NULL_HANDLE, &vkSwapchainIndices[i]); + VkResult res = vkAcquireNextImageKHR(_gpuDevice->vkDevice, vkSwapchains[i], ~0ULL, + acquireSemaphore, VK_NULL_HANDLE, &vkSwapchainIndices[i]); CCASSERT(res == VK_SUCCESS || res == VK_SUBOPTIMAL_KHR, "acquire surface failed"); gpuSwapchains[i]->curImageIndex = vkSwapchainIndices[i]; queue->gpuQueue()->lastSignaledSemaphores.push_back(acquireSemaphore); diff --git a/native/cocos/renderer/gfx-vulkan/VKDevice.h b/native/cocos/renderer/gfx-vulkan/VKDevice.h index 715d9a0dbe..72506c2bf6 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDevice.h +++ b/native/cocos/renderer/gfx-vulkan/VKDevice.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,9 +25,9 @@ #pragma once +#include #include "VKStd.h" #include "gfx-base/GFXDevice.h" -#include namespace cc { namespace gfx { diff --git a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp index 3d63a8b830..2c9bb9231b 100644 --- a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h index 3b49cfaaef..156d29417a 100644 --- a/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h +++ b/native/cocos/renderer/gfx-vulkan/VKFramebuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp b/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp index 82d2ba077e..0ddc727af2 100644 --- a/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -36,7 +36,7 @@ constexpr uint32_t FORCE_MINOR_VERSION = 0; // 0 for default version, otherwise #define FORCE_DISABLE_VALIDATION 1 #if CC_DEBUG > 0 && !FORCE_DISABLE_VALIDATION || FORCE_ENABLE_VALIDATION -constexpr uint32_t DISABLE_VALIDATION_ASSERTIONS = 1; // 0 for default behavior, otherwise assertions will be disabled +constexpr uint32_t DISABLE_VALIDATION_ASSERTIONS = 1; // 0 for default behavior, otherwise assertions will be disabled VKAPI_ATTR VkBool32 VKAPI_CALL debugUtilsMessengerCallback(VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT /*messageType*/, const VkDebugUtilsMessengerCallbackDataEXT *callbackData, diff --git a/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h b/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h index 65ef3bd57a..a95f29b8e0 100644 --- a/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h +++ b/native/cocos/renderer/gfx-vulkan/VKGPUObjects.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp index 3fa6bfa69a..175c9b2fb2 100644 --- a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h index 3ef7b3b339..f6d1e4eb12 100644 --- a/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h +++ b/native/cocos/renderer/gfx-vulkan/VKInputAssembler.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp index d3cffc5510..575bc743e3 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h index df6016b54a..3f2b765ff5 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineLayout.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp b/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp index c74182ec5f..5328e08834 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineState.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKPipelineState.h b/native/cocos/renderer/gfx-vulkan/VKPipelineState.h index ea9c1ce7d6..3147bb4bbc 100644 --- a/native/cocos/renderer/gfx-vulkan/VKPipelineState.h +++ b/native/cocos/renderer/gfx-vulkan/VKPipelineState.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp b/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp index 13c27fbe58..879d8a41d8 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKQueryPool.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueryPool.h b/native/cocos/renderer/gfx-vulkan/VKQueryPool.h index 559c35313c..a5fff32da0 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueryPool.h +++ b/native/cocos/renderer/gfx-vulkan/VKQueryPool.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueue.cpp b/native/cocos/renderer/gfx-vulkan/VKQueue.cpp index 522a4e7003..09bc6d7202 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueue.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKQueue.h b/native/cocos/renderer/gfx-vulkan/VKQueue.h index 1d9d21fe7a..83b637398b 100644 --- a/native/cocos/renderer/gfx-vulkan/VKQueue.h +++ b/native/cocos/renderer/gfx-vulkan/VKQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp b/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp index a74df8fc06..c33ab82cf0 100644 --- a/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKRenderPass.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKRenderPass.h b/native/cocos/renderer/gfx-vulkan/VKRenderPass.h index 8b6b33ebcf..45b71f5ccd 100644 --- a/native/cocos/renderer/gfx-vulkan/VKRenderPass.h +++ b/native/cocos/renderer/gfx-vulkan/VKRenderPass.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKShader.cpp b/native/cocos/renderer/gfx-vulkan/VKShader.cpp index 3dca39c09a..85a7edc1fa 100644 --- a/native/cocos/renderer/gfx-vulkan/VKShader.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKShader.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKShader.h b/native/cocos/renderer/gfx-vulkan/VKShader.h index 70acbc32eb..e33df32750 100644 --- a/native/cocos/renderer/gfx-vulkan/VKShader.h +++ b/native/cocos/renderer/gfx-vulkan/VKShader.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKStd.cpp b/native/cocos/renderer/gfx-vulkan/VKStd.cpp index 1fd9a74a38..09dda236ba 100644 --- a/native/cocos/renderer/gfx-vulkan/VKStd.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKStd.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKStd.h b/native/cocos/renderer/gfx-vulkan/VKStd.h index d65dd00963..2fe6e3ea19 100644 --- a/native/cocos/renderer/gfx-vulkan/VKStd.h +++ b/native/cocos/renderer/gfx-vulkan/VKStd.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -42,15 +42,15 @@ #endif #if CC_DEBUG > 0 -#define VK_CHECK(x) \ - do { \ - VkResult err = x; \ - if (err) { \ - CC_LOG_ERROR("%s returned Vulkan error: %d", #x, err); \ - CCASSERT(false, "Vulkan Error"); \ - } \ - } while (0) + #define VK_CHECK(x) \ + do { \ + VkResult err = x; \ + if (err) { \ + CC_LOG_ERROR("%s returned Vulkan error: %d", #x, err); \ + CCASSERT(false, "Vulkan Error"); \ + } \ + } while (0) #else -#define VK_CHECK(x) x + #define VK_CHECK(x) x #endif diff --git a/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp b/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp index 83f7a03b3f..bb34c3f1d3 100644 --- a/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKSwapchain.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKSwapchain.h b/native/cocos/renderer/gfx-vulkan/VKSwapchain.h index c2216d4a2f..f86b2c0f64 100644 --- a/native/cocos/renderer/gfx-vulkan/VKSwapchain.h +++ b/native/cocos/renderer/gfx-vulkan/VKSwapchain.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKTexture.cpp b/native/cocos/renderer/gfx-vulkan/VKTexture.cpp index 677e956b65..3ecbda6a5f 100644 --- a/native/cocos/renderer/gfx-vulkan/VKTexture.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKTexture.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKTexture.h b/native/cocos/renderer/gfx-vulkan/VKTexture.h index 8ada991c93..1935c81651 100644 --- a/native/cocos/renderer/gfx-vulkan/VKTexture.h +++ b/native/cocos/renderer/gfx-vulkan/VKTexture.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/gfx-vulkan/VKUtils.cpp b/native/cocos/renderer/gfx-vulkan/VKUtils.cpp index 7e52adda89..9e7585b290 100644 --- a/native/cocos/renderer/gfx-vulkan/VKUtils.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKUtils.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -586,9 +586,9 @@ bool isExtensionSupported(const char *required, const vector diff --git a/native/cocos/renderer/pipeline/GeometryRenderer.h b/native/cocos/renderer/pipeline/GeometryRenderer.h index 7bc029f0c3..87aad7e6c1 100644 --- a/native/cocos/renderer/pipeline/GeometryRenderer.h +++ b/native/cocos/renderer/pipeline/GeometryRenderer.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp index f58d8fabab..fb3d55cceb 100644 --- a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp +++ b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -184,8 +184,8 @@ void GlobalDSManager::setDescriptorSetLayout() { localDescriptorSetLayout.bindings[UBOLocalBatched::BINDING] = UBOLocalBatched::DESCRIPTOR; localDescriptorSetLayout.blocks[UBOLocal::NAME] = UBOLocal::LAYOUT; localDescriptorSetLayout.bindings[UBOLocal::BINDING] = UBOLocal::DESCRIPTOR; - localDescriptorSetLayout.blocks[UBOWorldBound::NAME] = UBOWorldBound::LAYOUT; - localDescriptorSetLayout.bindings[UBOWorldBound::BINDING] = UBOWorldBound::DESCRIPTOR; + localDescriptorSetLayout.blocks[UBOWorldBound::NAME] = UBOWorldBound::LAYOUT; + localDescriptorSetLayout.bindings[UBOWorldBound::BINDING] = UBOWorldBound::DESCRIPTOR; localDescriptorSetLayout.blocks[UBOForwardLight::NAME] = UBOForwardLight::LAYOUT; localDescriptorSetLayout.bindings[UBOForwardLight::BINDING] = UBOForwardLight::DESCRIPTOR; localDescriptorSetLayout.blocks[UBOSkinningTexture::NAME] = UBOSkinningTexture::LAYOUT; diff --git a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h index 506f33596e..9e498099e8 100644 --- a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h +++ b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/InstancedBuffer.cpp b/native/cocos/renderer/pipeline/InstancedBuffer.cpp index c8e048d959..f4d1ae6ffd 100644 --- a/native/cocos/renderer/pipeline/InstancedBuffer.cpp +++ b/native/cocos/renderer/pipeline/InstancedBuffer.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -141,8 +141,7 @@ void InstancedBuffer::merge(const scene::Model *model, const scene::SubModel *su attribute.isNormalized, static_cast(vertexBuffers.size()), // stream true, - attribute.location - }); + attribute.location}); } auto *data = static_cast(CC_MALLOC(newSize)); diff --git a/native/cocos/renderer/pipeline/InstancedBuffer.h b/native/cocos/renderer/pipeline/InstancedBuffer.h index c344c8f321..f86c97f353 100644 --- a/native/cocos/renderer/pipeline/InstancedBuffer.h +++ b/native/cocos/renderer/pipeline/InstancedBuffer.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineSceneData.cpp b/native/cocos/renderer/pipeline/PipelineSceneData.cpp index d386f2c466..5f5009acda 100644 --- a/native/cocos/renderer/pipeline/PipelineSceneData.cpp +++ b/native/cocos/renderer/pipeline/PipelineSceneData.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -30,19 +30,16 @@ namespace cc { namespace pipeline { -void PipelineSceneData::activate(gfx::Device *device, RenderPipeline *pipeline) -{ - _device = device; +void PipelineSceneData::activate(gfx::Device *device, RenderPipeline *pipeline) { + _device = device; _pipeline = pipeline; } -void PipelineSceneData::setPipelineSharedSceneData(scene::PipelineSharedSceneData *data) -{ +void PipelineSceneData::setPipelineSharedSceneData(scene::PipelineSharedSceneData *data) { _sharedSceneData = data; } -void PipelineSceneData::destroy() -{ +void PipelineSceneData::destroy() { for (auto &pair : _shadowFrameBufferMap) { pair.second->destroy(); delete pair.second; diff --git a/native/cocos/renderer/pipeline/PipelineSceneData.h b/native/cocos/renderer/pipeline/PipelineSceneData.h index e1d2b63e1f..26824fa528 100644 --- a/native/cocos/renderer/pipeline/PipelineSceneData.h +++ b/native/cocos/renderer/pipeline/PipelineSceneData.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineStateManager.cpp b/native/cocos/renderer/pipeline/PipelineStateManager.cpp index ab23e17100..e6bed0e2f9 100644 --- a/native/cocos/renderer/pipeline/PipelineStateManager.cpp +++ b/native/cocos/renderer/pipeline/PipelineStateManager.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineStateManager.h b/native/cocos/renderer/pipeline/PipelineStateManager.h index 26339d417d..00970e9fc7 100644 --- a/native/cocos/renderer/pipeline/PipelineStateManager.h +++ b/native/cocos/renderer/pipeline/PipelineStateManager.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index e0f2efbf51..9a20c62251 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PipelineUBO.h b/native/cocos/renderer/pipeline/PipelineUBO.h index 9a1b17c47d..489da6ee49 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.h +++ b/native/cocos/renderer/pipeline/PipelineUBO.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp index b19463d58d..c4adbb182a 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.h b/native/cocos/renderer/pipeline/PlanarShadowQueue.h index 1e79d1dcab..b3a9f9a7cf 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.h +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp index 27f7ef2a64..d3de2f5ec7 100644 --- a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h index 283bf90e1e..c28d148ac4 100644 --- a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h +++ b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -46,11 +46,11 @@ class RenderBatchedQueue; class ForwardPipeline; struct AdditiveLightPass { - const scene::SubModel * subModel = nullptr; - const scene::Pass * pass = nullptr; - gfx::Shader * shader = nullptr; - vector dynamicOffsets; - vector lights; + const scene::SubModel *subModel = nullptr; + const scene::Pass * pass = nullptr; + gfx::Shader * shader = nullptr; + vector dynamicOffsets; + vector lights; }; class RenderAdditiveLightQueue : public Object { @@ -65,12 +65,12 @@ private: static bool cullSphereLight(const scene::SphereLight *light, const scene::Model *model); static bool cullSpotLight(const scene::SpotLight *light, const scene::Model *model); - void clear(); - void addRenderQueue(const scene::Pass *pass, const scene::SubModel *subModel, const scene::Model *model, uint lightPassIdx); - void updateUBOs(const scene::Camera *camera, gfx::CommandBuffer *cmdBuffer); - void updateLightDescriptorSet(const scene::Camera *camera, gfx::CommandBuffer *cmdBuffer); - bool getLightPassIndex(const scene::Model *model, vector *lightPassIndices) const; - void lightCulling(const scene::Model *model); + void clear(); + void addRenderQueue(const scene::Pass *pass, const scene::SubModel *subModel, const scene::Model *model, uint lightPassIdx); + void updateUBOs(const scene::Camera *camera, gfx::CommandBuffer *cmdBuffer); + void updateLightDescriptorSet(const scene::Camera *camera, gfx::CommandBuffer *cmdBuffer); + bool getLightPassIndex(const scene::Model *model, vector *lightPassIndices) const; + void lightCulling(const scene::Model *model); RenderPipeline * _pipeline = nullptr; vector> _sortedSubModelsArray; @@ -85,7 +85,7 @@ private: gfx::Buffer * _lightBuffer = nullptr; gfx::Buffer * _firstLightBufferView = nullptr; - std::array _shadowUBO{}; + std::array _shadowUBO{}; uint _lightBufferStride = 0; uint _lightBufferElementCount = 0; diff --git a/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp b/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp index c1736cebb6..cd978b401f 100644 --- a/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderBatchedQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderBatchedQueue.h b/native/cocos/renderer/pipeline/RenderBatchedQueue.h index daa1029cc6..4d07c2bde9 100644 --- a/native/cocos/renderer/pipeline/RenderBatchedQueue.h +++ b/native/cocos/renderer/pipeline/RenderBatchedQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -35,7 +35,7 @@ class BatchedBuffer; class CC_DLL RenderBatchedQueue : public Object { public: - RenderBatchedQueue() = default; + RenderBatchedQueue() = default; ~RenderBatchedQueue() override = default; void clear(); diff --git a/native/cocos/renderer/pipeline/RenderFlow.cpp b/native/cocos/renderer/pipeline/RenderFlow.cpp index a6b750c3a3..7ddb415c8f 100644 --- a/native/cocos/renderer/pipeline/RenderFlow.cpp +++ b/native/cocos/renderer/pipeline/RenderFlow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderFlow.h b/native/cocos/renderer/pipeline/RenderFlow.h index 6e064c65b3..614be80b2d 100644 --- a/native/cocos/renderer/pipeline/RenderFlow.h +++ b/native/cocos/renderer/pipeline/RenderFlow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -54,7 +54,7 @@ public: inline const String &getName() const { return _name; } inline uint getPriority() const { return _priority; } inline uint getTag() const { return _tag; } - RenderStage *getRenderstageByName(const String &name) const; + RenderStage * getRenderstageByName(const String &name) const; protected: RenderStageList _stages; diff --git a/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp b/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp index 48bc640746..fd730cad9b 100644 --- a/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderInstancedQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderInstancedQueue.h b/native/cocos/renderer/pipeline/RenderInstancedQueue.h index 4269ebaccc..5891a3486a 100644 --- a/native/cocos/renderer/pipeline/RenderInstancedQueue.h +++ b/native/cocos/renderer/pipeline/RenderInstancedQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -41,7 +41,7 @@ class InstancedBuffer; class CC_DLL RenderInstancedQueue : public Object { public: - RenderInstancedQueue() = default; + RenderInstancedQueue() = default; ~RenderInstancedQueue() override = default; void recordCommandBuffer(gfx::Device *device, gfx::RenderPass *renderPass, gfx::CommandBuffer *cmdBuffer); diff --git a/native/cocos/renderer/pipeline/RenderPipeline.cpp b/native/cocos/renderer/pipeline/RenderPipeline.cpp index 5b780e8f9e..8f60c4ab1e 100644 --- a/native/cocos/renderer/pipeline/RenderPipeline.cpp +++ b/native/cocos/renderer/pipeline/RenderPipeline.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderPipeline.h b/native/cocos/renderer/pipeline/RenderPipeline.h index 52194df440..60a88776dd 100644 --- a/native/cocos/renderer/pipeline/RenderPipeline.h +++ b/native/cocos/renderer/pipeline/RenderPipeline.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderQueue.cpp b/native/cocos/renderer/pipeline/RenderQueue.cpp index be0e47f976..1cb5669bf6 100644 --- a/native/cocos/renderer/pipeline/RenderQueue.cpp +++ b/native/cocos/renderer/pipeline/RenderQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderQueue.h b/native/cocos/renderer/pipeline/RenderQueue.h index 676ba7548a..e6372f46e7 100644 --- a/native/cocos/renderer/pipeline/RenderQueue.h +++ b/native/cocos/renderer/pipeline/RenderQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/RenderStage.cpp b/native/cocos/renderer/pipeline/RenderStage.cpp index c2cba49538..a1c5a25254 100644 --- a/native/cocos/renderer/pipeline/RenderStage.cpp +++ b/native/cocos/renderer/pipeline/RenderStage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,24 +29,23 @@ namespace cc { namespace pipeline { RenderStage::RenderStage() -:_device(gfx::Device::getInstance()){ - +: _device(gfx::Device::getInstance()) { } RenderStage::~RenderStage() { } bool RenderStage::initialize(const RenderStageInfo &info) { - _name = info.name; + _name = info.name; _priority = info.priority; - _tag = info.tag; + _tag = info.tag; return true; } void RenderStage::activate(RenderPipeline *pipeline, RenderFlow *flow) { _pipeline = pipeline; - _flow = flow; + _flow = flow; } void RenderStage::destroy() { diff --git a/native/cocos/renderer/pipeline/RenderStage.h b/native/cocos/renderer/pipeline/RenderStage.h index 00e3bbe484..6df6a19b80 100644 --- a/native/cocos/renderer/pipeline/RenderStage.h +++ b/native/cocos/renderer/pipeline/RenderStage.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -64,7 +64,7 @@ public: inline RenderFlow * getFlow() const { return _flow; } protected: - gfx::Rect _renderArea; + gfx::Rect _renderArea; // Generate quad ia, cannot be updated inside renderpass gfx::InputAssembler * _inputAssembler{nullptr}; RenderQueueDescList _renderQueueDescriptors; diff --git a/native/cocos/renderer/pipeline/SceneCulling.cpp b/native/cocos/renderer/pipeline/SceneCulling.cpp index e90cc92f0c..9d9f722c88 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.cpp +++ b/native/cocos/renderer/pipeline/SceneCulling.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/SceneCulling.h b/native/cocos/renderer/pipeline/SceneCulling.h index e8e9c3901c..ed8928be2d 100644 --- a/native/cocos/renderer/pipeline/SceneCulling.h +++ b/native/cocos/renderer/pipeline/SceneCulling.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp index 4e9c268050..e72851916c 100644 --- a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp +++ b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h index fcb90d478a..377a3be262 100644 --- a/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h +++ b/native/cocos/renderer/pipeline/ShadowMapBatchedQueue.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/UIPhase.cpp b/native/cocos/renderer/pipeline/UIPhase.cpp index e87b91a184..4013e2e12a 100644 --- a/native/cocos/renderer/pipeline/UIPhase.cpp +++ b/native/cocos/renderer/pipeline/UIPhase.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/UIPhase.h b/native/cocos/renderer/pipeline/UIPhase.h index 7ef52d89bd..e57be56e36 100644 --- a/native/cocos/renderer/pipeline/UIPhase.h +++ b/native/cocos/renderer/pipeline/UIPhase.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp b/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp index b47784aa0c..e60fae7538 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardFlow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardFlow.h b/native/cocos/renderer/pipeline/forward/ForwardFlow.h index 096fc15765..ca26b0d32b 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardFlow.h +++ b/native/cocos/renderer/pipeline/forward/ForwardFlow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp b/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp index bb982170c8..ab121ad486 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -25,11 +25,11 @@ #include "ForwardPipeline.h" #include "../SceneCulling.h" +#include "../helper/Utils.h" #include "../shadow/ShadowFlow.h" #include "ForwardFlow.h" #include "gfx-base/GFXDevice.h" #include "scene/RenderScene.h" -#include "../helper/Utils.h" namespace cc { namespace pipeline { diff --git a/native/cocos/renderer/pipeline/forward/ForwardPipeline.h b/native/cocos/renderer/pipeline/forward/ForwardPipeline.h index 45e6ca217f..784514426f 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardPipeline.h +++ b/native/cocos/renderer/pipeline/forward/ForwardPipeline.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -63,11 +63,11 @@ private: bool activeRenderer(gfx::Swapchain *swapchain); void updateUBO(scene::Camera *); - gfx::Buffer * _lightsUBO = nullptr; - LightList _validLights; - gfx::BufferList _lightBuffers; - UintList _lightIndexOffsets; - UintList _lightIndices; + gfx::Buffer * _lightsUBO = nullptr; + LightList _validLights; + gfx::BufferList _lightBuffers; + UintList _lightIndexOffsets; + UintList _lightIndices; }; } // namespace pipeline diff --git a/native/cocos/renderer/pipeline/forward/ForwardStage.cpp b/native/cocos/renderer/pipeline/forward/ForwardStage.cpp index f254e38737..6006783aaf 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardStage.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardStage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/forward/ForwardStage.h b/native/cocos/renderer/pipeline/forward/ForwardStage.h index 789e22fdf9..bcf7352d06 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardStage.h +++ b/native/cocos/renderer/pipeline/forward/ForwardStage.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/helper/DefineMap.cpp b/native/cocos/renderer/pipeline/helper/DefineMap.cpp index da98818eb6..a4b4063434 100644 --- a/native/cocos/renderer/pipeline/helper/DefineMap.cpp +++ b/native/cocos/renderer/pipeline/helper/DefineMap.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/helper/DefineMap.h b/native/cocos/renderer/pipeline/helper/DefineMap.h index 20ac0f9874..42da62b698 100644 --- a/native/cocos/renderer/pipeline/helper/DefineMap.h +++ b/native/cocos/renderer/pipeline/helper/DefineMap.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/helper/Utils.h b/native/cocos/renderer/pipeline/helper/Utils.h index 1e821c1705..b62135a608 100644 --- a/native/cocos/renderer/pipeline/helper/Utils.h +++ b/native/cocos/renderer/pipeline/helper/Utils.h @@ -1,88 +1,88 @@ -/**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - - http://www.cocos.com - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated engine source code (the "Software"), a limited, - worldwide, royalty-free, non-assignable, revocable and non-exclusive license - to use Cocos Creator solely to develop games on your target platforms. You shall - not use Cocos Creator software for developing other software or tools that's - used for developing games. You are not granted to publish, distribute, - sublicense, and/or sell copies of Cocos Creator. - - The software or tools in this License Agreement are licensed, not sold. - Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. -****************************************************************************/ - -#pragma once - -#include "../PipelineStateManager.h" -#include "gfx-base/GFXCommandBuffer.h" -#include "gfx-base/GFXDef-common.h" -#include "gfx-base/GFXDef.h" -#include "gfx-base/GFXSwapchain.h" -#include "pipeline/Define.h" -#include "scene/Model.h" -#include "scene/SubModel.h" -#include "scene/Camera.h" - -namespace cc { -namespace pipeline { - -inline void srgbToLinear(gfx::Color *out, const gfx::Color &gamma) { - out->x = gamma.x * gamma.x; - out->y = gamma.y * gamma.y; - out->z = gamma.z * gamma.z; -} - -inline void linearToSrgb(gfx::Color *out, const gfx::Color &linear) { - out->x = std::sqrt(linear.x); - out->y = std::sqrt(linear.y); - out->z = std::sqrt(linear.z); -} - -extern const scene::Camera *profilerCamera; - -inline void decideProfilerCamera(const vector &cameras) { - for (int i = static_cast(cameras.size() - 1); i >= 0; --i) { - if (cameras[i]->window->swapchain) { - profilerCamera = cameras[i]; - return; - } - } - profilerCamera = nullptr; -} - -inline void renderProfiler(gfx::RenderPass *renderPass, gfx::CommandBuffer *cmdBuff, scene::Model *profiler, const scene::Camera *camera) { - if (profiler && profiler->getEnabled() && camera == profilerCamera) { - auto *submodel = profiler->getSubModels()[0]; - auto *pass = submodel->getPass(0); - auto *ia = submodel->getInputAssembler(); - auto *pso = PipelineStateManager::getOrCreatePipelineState(pass, submodel->getShader(0), ia, renderPass); - - gfx::Viewport profilerViewport; - gfx::Rect profilerScissor; - profilerViewport.width = profilerScissor.width = camera->window->getWidth(); - profilerViewport.height = profilerScissor.height = camera->window->getHeight(); - cmdBuff->setViewport(profilerViewport); - cmdBuff->setScissor(profilerScissor); - - cmdBuff->bindPipelineState(pso); - cmdBuff->bindDescriptorSet(materialSet, pass->getDescriptorSet()); - cmdBuff->bindDescriptorSet(localSet, submodel->getDescriptorSet()); - cmdBuff->bindInputAssembler(ia); - cmdBuff->draw(ia); - } -} - -} // namespace pipeline -} // namespace cc +/**************************************************************************** + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + + http://www.cocos.com + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +****************************************************************************/ + +#pragma once + +#include "../PipelineStateManager.h" +#include "gfx-base/GFXCommandBuffer.h" +#include "gfx-base/GFXDef-common.h" +#include "gfx-base/GFXDef.h" +#include "gfx-base/GFXSwapchain.h" +#include "pipeline/Define.h" +#include "scene/Camera.h" +#include "scene/Model.h" +#include "scene/SubModel.h" + +namespace cc { +namespace pipeline { + +inline void srgbToLinear(gfx::Color *out, const gfx::Color &gamma) { + out->x = gamma.x * gamma.x; + out->y = gamma.y * gamma.y; + out->z = gamma.z * gamma.z; +} + +inline void linearToSrgb(gfx::Color *out, const gfx::Color &linear) { + out->x = std::sqrt(linear.x); + out->y = std::sqrt(linear.y); + out->z = std::sqrt(linear.z); +} + +extern const scene::Camera *profilerCamera; + +inline void decideProfilerCamera(const vector &cameras) { + for (int i = static_cast(cameras.size() - 1); i >= 0; --i) { + if (cameras[i]->window->swapchain) { + profilerCamera = cameras[i]; + return; + } + } + profilerCamera = nullptr; +} + +inline void renderProfiler(gfx::RenderPass *renderPass, gfx::CommandBuffer *cmdBuff, scene::Model *profiler, const scene::Camera *camera) { + if (profiler && profiler->getEnabled() && camera == profilerCamera) { + auto *submodel = profiler->getSubModels()[0]; + auto *pass = submodel->getPass(0); + auto *ia = submodel->getInputAssembler(); + auto *pso = PipelineStateManager::getOrCreatePipelineState(pass, submodel->getShader(0), ia, renderPass); + + gfx::Viewport profilerViewport; + gfx::Rect profilerScissor; + profilerViewport.width = profilerScissor.width = camera->window->getWidth(); + profilerViewport.height = profilerScissor.height = camera->window->getHeight(); + cmdBuff->setViewport(profilerViewport); + cmdBuff->setScissor(profilerScissor); + + cmdBuff->bindPipelineState(pso); + cmdBuff->bindDescriptorSet(materialSet, pass->getDescriptorSet()); + cmdBuff->bindDescriptorSet(localSet, submodel->getDescriptorSet()); + cmdBuff->bindInputAssembler(ia); + cmdBuff->draw(ia); + } +} + +} // namespace pipeline +} // namespace cc diff --git a/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp b/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp index f792175915..ebbbdda940 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp +++ b/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -97,8 +97,8 @@ void ShadowFlow::render(scene::Camera *camera) { } for (uint l = 0; l < _validLights.size(); ++l) { - const scene::Light *light = _validLights[l]; - gfx::DescriptorSet *globalDS = _pipeline->getGlobalDSManager()->getOrCreateDescriptorSet(l); + const scene::Light *light = _validLights[l]; + gfx::DescriptorSet *globalDS = _pipeline->getGlobalDSManager()->getOrCreateDescriptorSet(l); if (!shadowFramebufferMap.count(light)) { initShadowFrameBuffer(_pipeline, light); @@ -117,7 +117,7 @@ void ShadowFlow::render(scene::Camera *camera) { void ShadowFlow::lightCollecting() { _validLights.clear(); - const vector validPunctualLights = _pipeline->getPipelineSceneData()->getValidPunctualLights(); + const vector validPunctualLights = _pipeline->getPipelineSceneData()->getValidPunctualLights(); for (const scene::Light *light : validPunctualLights) { if (light->getType() == scene::LightType::SPOT) { _validLights.emplace_back(light); @@ -145,8 +145,8 @@ void ShadowFlow::clearShadowMap(scene::Camera *camera) { } for (uint l = 0; l < _validLights.size(); ++l) { - const scene::Light *light = _validLights[l]; - gfx::DescriptorSet *globalDS = _pipeline->getGlobalDSManager()->getOrCreateDescriptorSet(l); + const scene::Light *light = _validLights[l]; + gfx::DescriptorSet *globalDS = _pipeline->getGlobalDSManager()->getOrCreateDescriptorSet(l); if (!shadowFramebufferMap.count(light)) { continue; @@ -247,7 +247,7 @@ void ShadowFlow::initShadowFrameBuffer(RenderPipeline *pipeline, const scene::Li rpInfo.depthStencilAttachment = depthStencilAttachment; size_t rpHash = cc::gfx::RenderPass::computeHash(rpInfo); - auto iter = renderPassHashMap.find(rpHash); + auto iter = renderPassHashMap.find(rpHash); if (iter != renderPassHashMap.end()) { _renderPass = iter->second; } else { diff --git a/native/cocos/renderer/pipeline/shadow/ShadowFlow.h b/native/cocos/renderer/pipeline/shadow/ShadowFlow.h index b9b2e61c99..e5fca96c3e 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowFlow.h +++ b/native/cocos/renderer/pipeline/shadow/ShadowFlow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp b/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp index a37d791b12..76ce2bb59a 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp +++ b/native/cocos/renderer/pipeline/shadow/ShadowStage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/renderer/pipeline/shadow/ShadowStage.h b/native/cocos/renderer/pipeline/shadow/ShadowStage.h index 5cf5fb3b27..7f80f449e2 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowStage.h +++ b/native/cocos/renderer/pipeline/shadow/ShadowStage.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -57,9 +57,9 @@ private: static RenderStageInfo initInfo; gfx::Rect _renderArea; - gfx::DescriptorSet *_globalDS = nullptr; - const scene::Light *_light = nullptr; - gfx::Framebuffer * _framebuffer = nullptr; + gfx::DescriptorSet *_globalDS = nullptr; + const scene::Light *_light = nullptr; + gfx::Framebuffer * _framebuffer = nullptr; ShadowMapBatchedQueue *_additiveShadowQueue = nullptr; }; diff --git a/native/cocos/scene/AABB.cpp b/native/cocos/scene/AABB.cpp index cbdbe7af66..80d55c4217 100644 --- a/native/cocos/scene/AABB.cpp +++ b/native/cocos/scene/AABB.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "AABB.h" diff --git a/native/cocos/scene/AABB.h b/native/cocos/scene/AABB.h index 8f2be0b001..2798849dc9 100644 --- a/native/cocos/scene/AABB.h +++ b/native/cocos/scene/AABB.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/BakedSkinningModel.cpp b/native/cocos/scene/BakedSkinningModel.cpp index 638b29260f..0fd4130c8e 100644 --- a/native/cocos/scene/BakedSkinningModel.cpp +++ b/native/cocos/scene/BakedSkinningModel.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "scene/BakedSkinningModel.h" #include "scene/RenderScene.h" diff --git a/native/cocos/scene/BakedSkinningModel.h b/native/cocos/scene/BakedSkinningModel.h index 0849ee586b..8fa27c12dc 100644 --- a/native/cocos/scene/BakedSkinningModel.h +++ b/native/cocos/scene/BakedSkinningModel.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/BaseNode.cpp b/native/cocos/scene/BaseNode.cpp index bead4ea801..91bc3ef30c 100644 --- a/native/cocos/scene/BaseNode.cpp +++ b/native/cocos/scene/BaseNode.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/BaseNode.h" diff --git a/native/cocos/scene/BaseNode.h b/native/cocos/scene/BaseNode.h index 12151006df..f2eb513ca8 100644 --- a/native/cocos/scene/BaseNode.h +++ b/native/cocos/scene/BaseNode.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once #include @@ -42,11 +42,11 @@ public: BaseNode &operator=(const BaseNode &) = delete; BaseNode &operator=(const BaseNode &&) = delete; - virtual inline void updateWorldTransform(){} - virtual inline void updateWorldRTMatrix(){} + virtual inline void updateWorldTransform() {} + virtual inline void updateWorldRTMatrix() {} - virtual inline void setWorldPosition(float x, float y, float z){} - virtual inline void setWorldRotation(float x, float y, float z, float w){} + virtual inline void setWorldPosition(float x, float y, float z) {} + virtual inline void setWorldRotation(float x, float y, float z, float w) {} void setParent(BaseNode *parent); inline void addChild(BaseNode *node) { _children.emplace_back(node); } @@ -57,18 +57,18 @@ public: } } - virtual inline void setFlagsChanged(uint32_t value){} - virtual inline void setDirtyFlag(uint32_t value){} - virtual inline void setLayer(uint32_t layer){} - virtual inline void setWorldMatrix(const Mat4 &matrix){} - virtual inline void setWorldPosition(const Vec3 &pos){} - virtual inline void setWorldRotation(const Quaternion &rotation){} - virtual inline void setWorldScale(const Vec3 &scale){} - virtual inline void setLocalPosition(const Vec3 &pos){} - virtual inline void setLocalPosition(float x, float y, float z){} - virtual inline void setLocalRotation(const Quaternion &rotation){} - virtual inline void setLocalRotation(float x, float y, float z, float w){} - virtual inline void setLocalScale(const Vec3 &scale){} + virtual inline void setFlagsChanged(uint32_t value) {} + virtual inline void setDirtyFlag(uint32_t value) {} + virtual inline void setLayer(uint32_t layer) {} + virtual inline void setWorldMatrix(const Mat4 &matrix) {} + virtual inline void setWorldPosition(const Vec3 &pos) {} + virtual inline void setWorldRotation(const Quaternion &rotation) {} + virtual inline void setWorldScale(const Vec3 &scale) {} + virtual inline void setLocalPosition(const Vec3 &pos) {} + virtual inline void setLocalPosition(float x, float y, float z) {} + virtual inline void setLocalRotation(const Quaternion &rotation) {} + virtual inline void setLocalRotation(float x, float y, float z, float w) {} + virtual inline void setLocalScale(const Vec3 &scale) {} inline const std::vector &getChilds() { return _children; } inline BaseNode * getParent() const { return _parent; } diff --git a/native/cocos/scene/Camera.h b/native/cocos/scene/Camera.h index 8ea61afd92..b554220045 100644 --- a/native/cocos/scene/Camera.h +++ b/native/cocos/scene/Camera.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Define.cpp b/native/cocos/scene/Define.cpp index 16b183278d..8e36e6d032 100644 --- a/native/cocos/scene/Define.cpp +++ b/native/cocos/scene/Define.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Define.h" diff --git a/native/cocos/scene/Define.h b/native/cocos/scene/Define.h index b992fca0c6..de04efc114 100644 --- a/native/cocos/scene/Define.h +++ b/native/cocos/scene/Define.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once @@ -73,10 +73,10 @@ struct Shadow { ShadowType shadowType{ShadowType::PLANAR}; float distance{0.0F}; - bool dirty{false}; - bool shadowMapDirty{false}; - Pass * instancePass{nullptr}; - Pass * planarPass{nullptr}; + bool dirty{false}; + bool shadowMapDirty{false}; + Pass *instancePass{nullptr}; + Pass *planarPass{nullptr}; Vec4 color; Vec2 size; diff --git a/native/cocos/scene/DirectionalLight.cpp b/native/cocos/scene/DirectionalLight.cpp index 14953eb18b..64927eee75 100644 --- a/native/cocos/scene/DirectionalLight.cpp +++ b/native/cocos/scene/DirectionalLight.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/DirectionalLight.h" diff --git a/native/cocos/scene/DirectionalLight.h b/native/cocos/scene/DirectionalLight.h index e0d30ae95b..c181f183c1 100644 --- a/native/cocos/scene/DirectionalLight.h +++ b/native/cocos/scene/DirectionalLight.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/DrawBatch2D.h b/native/cocos/scene/DrawBatch2D.h index 42a453406d..38bcbf2bf3 100644 --- a/native/cocos/scene/DrawBatch2D.h +++ b/native/cocos/scene/DrawBatch2D.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Frustum.cpp b/native/cocos/scene/Frustum.cpp index 939a4e617a..175d2be22a 100644 --- a/native/cocos/scene/Frustum.cpp +++ b/native/cocos/scene/Frustum.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Frustum.h" #include "scene/Define.h" diff --git a/native/cocos/scene/Frustum.h b/native/cocos/scene/Frustum.h index 7c99541a7c..286c2a9f13 100644 --- a/native/cocos/scene/Frustum.h +++ b/native/cocos/scene/Frustum.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Light.cpp b/native/cocos/scene/Light.cpp index 864a623c2c..20a3debdf1 100644 --- a/native/cocos/scene/Light.cpp +++ b/native/cocos/scene/Light.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Light.h" diff --git a/native/cocos/scene/Light.h b/native/cocos/scene/Light.h index c7c319b3d7..4068569e1d 100644 --- a/native/cocos/scene/Light.h +++ b/native/cocos/scene/Light.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Model.cpp b/native/cocos/scene/Model.cpp index 336e38642d..44391cfc9a 100644 --- a/native/cocos/scene/Model.cpp +++ b/native/cocos/scene/Model.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "scene/Model.h" #include "renderer/pipeline/Define.h" #include "renderer/pipeline/RenderPipeline.h" diff --git a/native/cocos/scene/Model.h b/native/cocos/scene/Model.h index 80c877e4f8..00b0e0dd7a 100644 --- a/native/cocos/scene/Model.h +++ b/native/cocos/scene/Model.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/MorphModel.h b/native/cocos/scene/MorphModel.h index 78482e4bb1..e853ed8b4b 100644 --- a/native/cocos/scene/MorphModel.h +++ b/native/cocos/scene/MorphModel.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Node.cpp b/native/cocos/scene/Node.cpp index 8e9ba4be0d..cd17e85419 100644 --- a/native/cocos/scene/Node.cpp +++ b/native/cocos/scene/Node.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Node.h" #include "scene/Define.h" diff --git a/native/cocos/scene/Node.h b/native/cocos/scene/Node.h index 5c44472750..b6c60a47c4 100644 --- a/native/cocos/scene/Node.h +++ b/native/cocos/scene/Node.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Octree.cpp b/native/cocos/scene/Octree.cpp index fad5b39cf2..5b1eb6d144 100644 --- a/native/cocos/scene/Octree.cpp +++ b/native/cocos/scene/Octree.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "Octree.h" #include diff --git a/native/cocos/scene/Octree.h b/native/cocos/scene/Octree.h index 4b1d5bb525..4b43d748f2 100644 --- a/native/cocos/scene/Octree.h +++ b/native/cocos/scene/Octree.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2020-2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2020-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Pass.cpp b/native/cocos/scene/Pass.cpp index 793d7076b3..3d7a116b07 100644 --- a/native/cocos/scene/Pass.cpp +++ b/native/cocos/scene/Pass.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Pass.h" diff --git a/native/cocos/scene/Pass.h b/native/cocos/scene/Pass.h index 8ec8037465..4a4ba40243 100644 --- a/native/cocos/scene/Pass.h +++ b/native/cocos/scene/Pass.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/RenderScene.cpp b/native/cocos/scene/RenderScene.cpp index 6221c6a074..4ba6a7cb16 100644 --- a/native/cocos/scene/RenderScene.cpp +++ b/native/cocos/scene/RenderScene.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/RenderScene.h" #include diff --git a/native/cocos/scene/RenderScene.h b/native/cocos/scene/RenderScene.h index 77224d8023..da4ea6e970 100644 --- a/native/cocos/scene/RenderScene.h +++ b/native/cocos/scene/RenderScene.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/RenderWindow.h b/native/cocos/scene/RenderWindow.h index 1616dbbde1..446a48f301 100644 --- a/native/cocos/scene/RenderWindow.h +++ b/native/cocos/scene/RenderWindow.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Scene.cpp b/native/cocos/scene/Scene.cpp index d2eae55041..bdfe738739 100644 --- a/native/cocos/scene/Scene.cpp +++ b/native/cocos/scene/Scene.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ namespace cc { namespace scene { diff --git a/native/cocos/scene/Scene.h b/native/cocos/scene/Scene.h index 418d481cea..0770fb683e 100644 --- a/native/cocos/scene/Scene.h +++ b/native/cocos/scene/Scene.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once #include "scene/BaseNode.h" diff --git a/native/cocos/scene/SkinningModel.cpp b/native/cocos/scene/SkinningModel.cpp index 4a787ef56f..3e5c04291f 100644 --- a/native/cocos/scene/SkinningModel.cpp +++ b/native/cocos/scene/SkinningModel.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/SkinningModel.h" #include diff --git a/native/cocos/scene/SkinningModel.h b/native/cocos/scene/SkinningModel.h index d2ef643c98..11d4adde75 100644 --- a/native/cocos/scene/SkinningModel.h +++ b/native/cocos/scene/SkinningModel.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/Sphere.cpp b/native/cocos/scene/Sphere.cpp index fd70a75f73..1c41080c39 100644 --- a/native/cocos/scene/Sphere.cpp +++ b/native/cocos/scene/Sphere.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/Sphere.h" #include diff --git a/native/cocos/scene/Sphere.h b/native/cocos/scene/Sphere.h index 5b45e6c501..af280f6a71 100644 --- a/native/cocos/scene/Sphere.h +++ b/native/cocos/scene/Sphere.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/SphereLight.cpp b/native/cocos/scene/SphereLight.cpp index 44ac9d1bf8..3f593a6989 100644 --- a/native/cocos/scene/SphereLight.cpp +++ b/native/cocos/scene/SphereLight.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/SphereLight.h" diff --git a/native/cocos/scene/SphereLight.h b/native/cocos/scene/SphereLight.h index b0f805a2cd..9233874a0f 100644 --- a/native/cocos/scene/SphereLight.h +++ b/native/cocos/scene/SphereLight.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/SpotLight.cpp b/native/cocos/scene/SpotLight.cpp index 59bfcdfffa..2a6460d9e1 100644 --- a/native/cocos/scene/SpotLight.cpp +++ b/native/cocos/scene/SpotLight.cpp @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "scene/SpotLight.h" diff --git a/native/cocos/scene/SpotLight.h b/native/cocos/scene/SpotLight.h index 72120b02b2..9d659f2b36 100644 --- a/native/cocos/scene/SpotLight.h +++ b/native/cocos/scene/SpotLight.h @@ -1,8 +1,8 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. + http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license @@ -10,10 +10,10 @@ not use Cocos Creator software for developing other software or tools that's used for developing games. You are not granted to publish, distribute, sublicense, and/or sell copies of Cocos Creator. - + The software or tools in this License Agreement are licensed, not sold. Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. - + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once diff --git a/native/cocos/scene/SubModel.cpp b/native/cocos/scene/SubModel.cpp index d7838d1c83..44eb31b1f6 100644 --- a/native/cocos/scene/SubModel.cpp +++ b/native/cocos/scene/SubModel.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ + #include "scene/SubModel.h" #include "scene/Pass.h" diff --git a/native/cocos/scene/SubModel.h b/native/cocos/scene/SubModel.h index 788133263f..f67599277c 100644 --- a/native/cocos/scene/SubModel.h +++ b/native/cocos/scene/SubModel.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -21,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #pragma once @@ -32,7 +32,6 @@ #include "renderer/gfx-base/GFXShader.h" #include "scene/Define.h" - namespace cc { namespace scene { diff --git a/native/cocos/storage/local-storage/LocalStorage-android.cpp b/native/cocos/storage/local-storage/LocalStorage-android.cpp index 298fabda39..0bd4c0f4af 100644 --- a/native/cocos/storage/local-storage/LocalStorage-android.cpp +++ b/native/cocos/storage/local-storage/LocalStorage-android.cpp @@ -3,7 +3,7 @@ Copyright (c) 2013 cocos2d-x.org Copyright (c) 2013-2016 Chukong Technologic Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/storage/local-storage/LocalStorage.cpp b/native/cocos/storage/local-storage/LocalStorage.cpp index cca1455087..fa43b9d5ee 100644 --- a/native/cocos/storage/local-storage/LocalStorage.cpp +++ b/native/cocos/storage/local-storage/LocalStorage.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/storage/local-storage/LocalStorage.h b/native/cocos/storage/local-storage/LocalStorage.h index 0d59daf174..33815b2f2b 100644 --- a/native/cocos/storage/local-storage/LocalStorage.h +++ b/native/cocos/storage/local-storage/LocalStorage.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2012 Zynga Inc. Copyright (c) 2013-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-android.cpp b/native/cocos/ui/edit-box/EditBox-android.cpp index 92f089295f..56c7cfdd9c 100644 --- a/native/cocos/ui/edit-box/EditBox-android.cpp +++ b/native/cocos/ui/edit-box/EditBox-android.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -46,7 +46,7 @@ void getTextInputCallback() { return; } - auto* global = se::ScriptEngine::getInstance()->getGlobalObject(); + auto * global = se::ScriptEngine::getInstance()->getGlobalObject(); se::Value jsbVal; if (global->getProperty("jsb", &jsbVal) && jsbVal.isObject()) { jsbVal.toObject()->getProperty("onTextInput", &textInputCallback); diff --git a/native/cocos/ui/edit-box/EditBox-ios.mm b/native/cocos/ui/edit-box/EditBox-ios.mm index 581cf40f02..ca64e7707f 100644 --- a/native/cocos/ui/edit-box/EditBox-ios.mm +++ b/native/cocos/ui/edit-box/EditBox-ios.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-linux.cpp b/native/cocos/ui/edit-box/EditBox-linux.cpp index 183d88b234..4d466c4584 100644 --- a/native/cocos/ui/edit-box/EditBox-linux.cpp +++ b/native/cocos/ui/edit-box/EditBox-linux.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -38,4 +38,4 @@ void EditBox::hide() { bool EditBox::complete() { return true; } -} +} // namespace cc diff --git a/native/cocos/ui/edit-box/EditBox-mac.mm b/native/cocos/ui/edit-box/EditBox-mac.mm index 4ebcaa02c3..d5ffe4a8de 100644 --- a/native/cocos/ui/edit-box/EditBox-mac.mm +++ b/native/cocos/ui/edit-box/EditBox-mac.mm @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/edit-box/EditBox-ohos.cpp b/native/cocos/ui/edit-box/EditBox-ohos.cpp index 4c6619fb36..202acd808f 100644 --- a/native/cocos/ui/edit-box/EditBox-ohos.cpp +++ b/native/cocos/ui/edit-box/EditBox-ohos.cpp @@ -1,18 +1,19 @@ /**************************************************************************** - Copyright (c) 2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2021-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com - + Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - + of this software and associated engine source code (the "Software"), a limited, + worldwide, royalty-free, non-assignable, revocable and non-exclusive license + to use Cocos Creator solely to develop games on your target platforms. You shall + not use Cocos Creator software for developing other software or tools that's + used for developing games. You are not granted to publish, distribute, + sublicense, and/or sell copies of Cocos Creator. + + The software or tools in this License Agreement are licensed, not sold. + Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -20,7 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ****************************************************************************/ +****************************************************************************/ #include "EditBox.h" #include "cocos/bindings/event/EventDispatcher.h" diff --git a/native/cocos/ui/edit-box/EditBox-win32.cpp b/native/cocos/ui/edit-box/EditBox-win32.cpp index cd5b43ec12..4874b40629 100644 --- a/native/cocos/ui/edit-box/EditBox-win32.cpp +++ b/native/cocos/ui/edit-box/EditBox-win32.cpp @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -29,7 +29,6 @@ #include "cocos/bindings/manual/jsb_global.h" #include "cocos/platform/interfaces/modules/ISystemWindow.h" - #include #include #include diff --git a/native/cocos/ui/edit-box/EditBox.h b/native/cocos/ui/edit-box/EditBox.h index e7ce51c451..cf12b3692b 100644 --- a/native/cocos/ui/edit-box/EditBox.h +++ b/native/cocos/ui/edit-box/EditBox.h @@ -1,5 +1,5 @@ /**************************************************************************** - Copyright (c) 2018-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2018-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -34,15 +34,15 @@ class EditBox { public: struct ShowInfo { std::string defaultValue = ""; - std::string confirmType = ""; - std::string inputType = ""; - int maxLength = 0; - int x = 0; - int y = 0; - int width = 0; - int height = 0; - bool confirmHold = false; - bool isMultiline = false; + std::string confirmType = ""; + std::string inputType = ""; + int maxLength = 0; + int x = 0; + int y = 0; + int width = 0; + int height = 0; + bool confirmHold = false; + bool isMultiline = false; }; static void show(const ShowInfo &showInfo); diff --git a/native/cocos/ui/videoplayer/VideoPlayer-ios.mm b/native/cocos/ui/videoplayer/VideoPlayer-ios.mm index a3570b4d07..e58d0d4556 100644 --- a/native/cocos/ui/videoplayer/VideoPlayer-ios.mm +++ b/native/cocos/ui/videoplayer/VideoPlayer-ios.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/videoplayer/VideoPlayer-java.cpp b/native/cocos/ui/videoplayer/VideoPlayer-java.cpp index 57468f284b..80e1c504b7 100644 --- a/native/cocos/ui/videoplayer/VideoPlayer-java.cpp +++ b/native/cocos/ui/videoplayer/VideoPlayer-java.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014 Chukong Technologies Inc. - Copyright (c) undefined-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) undefined-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/videoplayer/VideoPlayer.h b/native/cocos/ui/videoplayer/VideoPlayer.h index 0cf1d0e43d..c0da99eab9 100644 --- a/native/cocos/ui/videoplayer/VideoPlayer.h +++ b/native/cocos/ui/videoplayer/VideoPlayer.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2016-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2016-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebView-inl.h b/native/cocos/ui/webview/WebView-inl.h index 85fa5e57dc..ac304afe59 100644 --- a/native/cocos/ui/webview/WebView-inl.h +++ b/native/cocos/ui/webview/WebView-inl.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebView.h b/native/cocos/ui/webview/WebView.h index 434fd74915..61036f7b17 100644 --- a/native/cocos/ui/webview/WebView.h +++ b/native/cocos/ui/webview/WebView.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-android.cpp b/native/cocos/ui/webview/WebViewImpl-android.cpp index e1053dcd89..d89fde6db3 100644 --- a/native/cocos/ui/webview/WebViewImpl-android.cpp +++ b/native/cocos/ui/webview/WebViewImpl-android.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-ios.h b/native/cocos/ui/webview/WebViewImpl-ios.h index 6af385e3d7..9b019ceca5 100644 --- a/native/cocos/ui/webview/WebViewImpl-ios.h +++ b/native/cocos/ui/webview/WebViewImpl-ios.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com @@ -46,7 +46,7 @@ public: void setJavascriptInterfaceScheme(const std::string &scheme); - void loadData(const cc::Data &data, + void loadData(const cc::Data & data, const std::string &MIMEType, const std::string &encoding, const std::string &baseURL); @@ -83,7 +83,7 @@ public: private: UIWebViewWrapper *_uiWebViewWrapper; - WebView *_webView; + WebView * _webView; }; } //namespace cc diff --git a/native/cocos/ui/webview/WebViewImpl-ios.mm b/native/cocos/ui/webview/WebViewImpl-ios.mm index 4df43f36f7..aa0a374be8 100644 --- a/native/cocos/ui/webview/WebViewImpl-ios.mm +++ b/native/cocos/ui/webview/WebViewImpl-ios.mm @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-java.h b/native/cocos/ui/webview/WebViewImpl-java.h index ed8371749d..6562816686 100644 --- a/native/cocos/ui/webview/WebViewImpl-java.h +++ b/native/cocos/ui/webview/WebViewImpl-java.h @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/cocos/ui/webview/WebViewImpl-ohos.cpp b/native/cocos/ui/webview/WebViewImpl-ohos.cpp index ef40514544..1e853ab1a6 100644 --- a/native/cocos/ui/webview/WebViewImpl-ohos.cpp +++ b/native/cocos/ui/webview/WebViewImpl-ohos.cpp @@ -1,6 +1,6 @@ /**************************************************************************** Copyright (c) 2014-2016 Chukong Technologies Inc. - Copyright (c) 2017-2021 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2017-2022 Xiamen Yaji Software Co., Ltd. http://www.cocos.com diff --git a/native/tools/license-upgrader/generate.js b/native/tools/license-upgrader/generate.js index 15f2fe449b..7f0d4b96b8 100644 --- a/native/tools/license-upgrader/generate.js +++ b/native/tools/license-upgrader/generate.js @@ -56,6 +56,7 @@ const genHeader = (history) => { const headerRE = /\/\*{5,}.*?\*{5,}\/\s*/s; const ownerRE = /^\s*Copyright\s*\(c\)\s*([0-9]+)(?:-([0-9]+))?\s*(.*)/gm; +const skippingRE = /\bOGRE\b/; const curYear = new Date().getFullYear(); const companyName = 'Xiamen Yaji Software Co., Ltd.'; const update = (path) => { @@ -69,6 +70,7 @@ const update = (path) => { const headerCap = content.match(headerRE); if (headerCap) { content = content.slice(headerCap.index + headerCap[0].length); + if (skippingRE.test(headerCap[0])) { return; } // extract let ownerCap = ownerRE.exec(headerCap[0]); while (ownerCap) {