diff --git a/native/.github/workflows/compile-platforms.yml b/native/.github/workflows/compile-platforms.yml index a7bfb1549b..4ac021a104 100644 --- a/native/.github/workflows/compile-platforms.yml +++ b/native/.github/workflows/compile-platforms.yml @@ -228,3 +228,33 @@ jobs: cmake --build . --config Debug -- -jobs $NUM_OF_CORES CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO fi echo "Compile iOS Done!" + + compile_wgpu_mac: + name: "Emscripten" + runs-on: macos-latest + if: contains( github.event.head_commit.message, 'WGPU_CI_ON' ) + steps: + - uses: actions/checkout@v2 + - name: Download external libraries + shell: bash + run: | + EXT_VERSION=`grep version external/config.json |awk -F'"' '{print $4}'` + rm external/config.json + git clone --branch $EXT_VERSION --depth 1 https://github.com/cocos-creator/engine-native-external external + - name: Setup Emscripten + run: | + git clone https://github.com/emscripten-core/emsdk.git ../emsdk + cd ../emsdk + ./emsdk install latest + ./emsdk activate latest + source ./emsdk_env.sh + emcc -v + - name: Compile + env: + COCOS_ENGINE_DEV: 1 + run: | + COCOS2DX_ROOT=$GITHUB_WORKSPACE + cd $COCOS2DX_ROOT/cocos/renderer/gfx-wgpu + $COCOS2DX_ROOT/../emsdk/upstream/emscripten/emcmake cmake . + $COCOS2DX_ROOT/../emsdk/upstream/emscripten/emmake make + echo "Compile WGPU by ems on MacOS Done!" diff --git a/native/cocos/application/CocosApplication.cpp b/native/cocos/application/CocosApplication.cpp index 1f4ceac951..e2d8ec0e22 100644 --- a/native/cocos/application/CocosApplication.cpp +++ b/native/cocos/application/CocosApplication.cpp @@ -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/audio/AudioEngine.cpp b/native/cocos/audio/AudioEngine.cpp index d84a35154c..35d8a12334 100644 --- a/native/cocos/audio/AudioEngine.cpp +++ b/native/cocos/audio/AudioEngine.cpp @@ -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 f7c7184d94..ea4617a7f7 100644 --- a/native/cocos/audio/apple/AudioCache.h +++ b/native/cocos/audio/apple/AudioCache.h @@ -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/AudioDecoder.h b/native/cocos/audio/apple/AudioDecoder.h index c5b1f55996..5c1f866160 100644 --- a/native/cocos/audio/apple/AudioDecoder.h +++ b/native/cocos/audio/apple/AudioDecoder.h @@ -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/AudioPlayer.h b/native/cocos/audio/apple/AudioPlayer.h index a1c5de1189..1cc55b8212 100644 --- a/native/cocos/audio/apple/AudioPlayer.h +++ b/native/cocos/audio/apple/AudioPlayer.h @@ -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/oalsoft/AudioCache.h b/native/cocos/audio/oalsoft/AudioCache.h index afa31d43b2..145773c2cc 100644 --- a/native/cocos/audio/oalsoft/AudioCache.h +++ b/native/cocos/audio/oalsoft/AudioCache.h @@ -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 4aa94a9ef9..033c4e0d66 100644 --- a/native/cocos/audio/oalsoft/AudioDecoder.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoder.cpp @@ -25,9 +25,9 @@ ****************************************************************************/ #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/AudioDecoderManager.h b/native/cocos/audio/oalsoft/AudioDecoderManager.h index 1465fbfe26..08dcb726c8 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderManager.h +++ b/native/cocos/audio/oalsoft/AudioDecoderManager.h @@ -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 de3b3be3de..d7d99a4a06 100644 --- a/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp +++ b/native/cocos/audio/oalsoft/AudioDecoderMp3.cpp @@ -31,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/AudioEngine-soft.cpp b/native/cocos/audio/oalsoft/AudioEngine-soft.cpp index 9953106734..28f9a0d9f9 100644 --- a/native/cocos/audio/oalsoft/AudioEngine-soft.cpp +++ b/native/cocos/audio/oalsoft/AudioEngine-soft.cpp @@ -41,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/AudioMacros.h b/native/cocos/audio/oalsoft/AudioMacros.h index 5167de10cb..37d3c21303 100644 --- a/native/cocos/audio/oalsoft/AudioMacros.h +++ b/native/cocos/audio/oalsoft/AudioMacros.h @@ -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 099af25dd1..e330ae19fb 100644 --- a/native/cocos/audio/oalsoft/AudioPlayer.cpp +++ b/native/cocos/audio/oalsoft/AudioPlayer.cpp @@ -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 3c5b07afdd..472e69fe34 100644 --- a/native/cocos/audio/oalsoft/AudioPlayer.h +++ b/native/cocos/audio/oalsoft/AudioPlayer.h @@ -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.h b/native/cocos/audio/ohos/AudioDecoderWav.h index 1652d5a77f..4102f32d46 100644 --- a/native/cocos/audio/ohos/AudioDecoderWav.h +++ b/native/cocos/audio/ohos/AudioDecoderWav.h @@ -36,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/base/Agent.h b/native/cocos/base/Agent.h index 11eb83668a..8afe77b53a 100644 --- a/native/cocos/base/Agent.h +++ b/native/cocos/base/Agent.h @@ -25,8 +25,8 @@ #pragma once -#include "Macros.h" #include +#include "Macros.h" namespace cc { diff --git a/native/cocos/base/AutoreleasePool.h b/native/cocos/base/AutoreleasePool.h index 0b899005eb..ec6335af7b 100644 --- a/native/cocos/base/AutoreleasePool.h +++ b/native/cocos/base/AutoreleasePool.h @@ -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 b8fb68ef49..b9cc65f924 --- a/native/cocos/base/CachedArray.h +++ b/native/cocos/base/CachedArray.h @@ -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/Data.cpp b/native/cocos/base/Data.cpp index 744a042e92..f219ced3dc 100644 --- a/native/cocos/base/Data.cpp +++ b/native/cocos/base/Data.cpp @@ -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/Log.cpp b/native/cocos/base/Log.cpp old mode 100755 new mode 100644 index eadb460ae3..215a210952 --- a/native/cocos/base/Log.cpp +++ b/native/cocos/base/Log.cpp @@ -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 3c1ec2908f..6108896331 --- a/native/cocos/base/Log.h +++ b/native/cocos/base/Log.h @@ -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 f77e463bc3..caf624c975 100644 --- a/native/cocos/base/Macros.h +++ b/native/cocos/base/Macros.h @@ -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 850ffc95bd..f8053307ed 100644 --- a/native/cocos/base/Map.h +++ b/native/cocos/base/Map.h @@ -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/Random.h b/native/cocos/base/Random.h index 0bca912817..a039373787 100644 --- a/native/cocos/base/Random.h +++ b/native/cocos/base/Random.h @@ -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.h b/native/cocos/base/Ref.h index 065459d49c..b760579ea2 100644 --- a/native/cocos/base/Ref.h +++ b/native/cocos/base/Ref.h @@ -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 cae5514c38..2c79360918 100644 --- a/native/cocos/base/Scheduler.cpp +++ b/native/cocos/base/Scheduler.cpp @@ -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/StringUtil.cpp b/native/cocos/base/StringUtil.cpp old mode 100755 new mode 100644 index e0a5d8089d..b5f156c9c1 --- a/native/cocos/base/StringUtil.cpp +++ b/native/cocos/base/StringUtil.cpp @@ -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 91394614d5..5e40b502f4 --- a/native/cocos/base/StringUtil.h +++ b/native/cocos/base/StringUtil.h @@ -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 90c3e0b5a9..5ece758c81 100644 --- a/native/cocos/base/ThreadPool.cpp +++ b/native/cocos/base/ThreadPool.cpp @@ -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/Timer.h b/native/cocos/base/Timer.h index 6e4ec981f0..6c3a56357b 100644 --- a/native/cocos/base/Timer.h +++ b/native/cocos/base/Timer.h @@ -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 a7094505a2..33627fcf4a --- a/native/cocos/base/TypeDef.h +++ b/native/cocos/base/TypeDef.h @@ -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/Utils.h b/native/cocos/base/Utils.h index 7dacaa5de1..fafa139800 100644 --- a/native/cocos/base/Utils.h +++ b/native/cocos/base/Utils.h @@ -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 4c57ffe05c..59e2fb79ed 100644 --- a/native/cocos/base/Value.cpp +++ b/native/cocos/base/Value.cpp @@ -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 c872c5464a..499df588d4 100644 --- a/native/cocos/base/Value.h +++ b/native/cocos/base/Value.h @@ -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/astc.cpp b/native/cocos/base/astc.cpp index d2d5c1f9e6..833b7453a7 100644 --- a/native/cocos/base/astc.cpp +++ b/native/cocos/base/astc.cpp @@ -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 563d1f1b2e..7fd9ab1c48 100644 --- a/native/cocos/base/astc.h +++ b/native/cocos/base/astc.h @@ -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/csscolorparser.cpp b/native/cocos/base/csscolorparser.cpp index 4fa70dd980..b9d17c3a6c 100644 --- a/native/cocos/base/csscolorparser.cpp +++ b/native/cocos/base/csscolorparser.cpp @@ -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 74526adc4f..4f1bfe4ff1 100644 --- a/native/cocos/base/csscolorparser.h +++ b/native/cocos/base/csscolorparser.h @@ -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 68f4570b40..16af2b5af8 100644 --- a/native/cocos/base/etc1.cpp +++ b/native/cocos/base/etc1.cpp @@ -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 829e2d4e73..a18a7986f4 100644 --- a/native/cocos/base/etc1.h +++ b/native/cocos/base/etc1.h @@ -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 4a0d1bc435..27cdafd768 100644 --- a/native/cocos/base/etc2.cpp +++ b/native/cocos/base/etc2.cpp @@ -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 52bb509f90..6b388dce76 100644 --- a/native/cocos/base/etc2.h +++ b/native/cocos/base/etc2.h @@ -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/job-system-taskflow/TFJobSystem.h b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h index be5c4f54d3..859cfa3c40 100644 --- a/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h +++ b/native/cocos/base/job-system/job-system-taskflow/TFJobSystem.h @@ -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/TBBJobSystem.h b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h index 5f15a54432..70af8494c3 100644 --- a/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h +++ b/native/cocos/base/job-system/job-system-tbb/TBBJobSystem.h @@ -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 c48c65e03d..108c7090fa 100644 --- a/native/cocos/base/memory/CallStack.cpp +++ b/native/cocos/base/memory/CallStack.cpp @@ -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 649e27e69f..24e8049886 100644 --- a/native/cocos/base/memory/CallStack.h +++ b/native/cocos/base/memory/CallStack.h @@ -36,7 +36,6 @@ #include #include "../Macros.h" - namespace cc { #define MAX_STACK_FRAMES 32 diff --git a/native/cocos/base/memory/Memory.h b/native/cocos/base/memory/Memory.h old mode 100755 new mode 100644 index f2f5f278ed..d538254dcb --- a/native/cocos/base/memory/Memory.h +++ b/native/cocos/base/memory/Memory.h @@ -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 2913e9c65d..e408f3f839 100644 --- a/native/cocos/base/memory/MemoryHook.cpp +++ b/native/cocos/base/memory/MemoryHook.cpp @@ -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 6fac9b9032..4e449eacf1 100644 --- a/native/cocos/base/memory/MemoryHook.h +++ b/native/cocos/base/memory/MemoryHook.h @@ -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.cpp b/native/cocos/base/threading/AutoReleasePool.cpp index baac3cd69a..051a6de7de 100644 --- a/native/cocos/base/threading/AutoReleasePool.cpp +++ b/native/cocos/base/threading/AutoReleasePool.cpp @@ -27,7 +27,7 @@ namespace cc { -AutoReleasePool::AutoReleasePool() = default; +AutoReleasePool::AutoReleasePool() = default; AutoReleasePool::~AutoReleasePool() = default; void AutoReleasePool::drain() { diff --git a/native/cocos/base/threading/ConditionVariable.h b/native/cocos/base/threading/ConditionVariable.h index 5046808d39..7e49363597 100644 --- a/native/cocos/base/threading/ConditionVariable.h +++ b/native/cocos/base/threading/ConditionVariable.h @@ -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/ReadWriteLock.h b/native/cocos/base/threading/ReadWriteLock.h index ae4dcfcde9..6bc58d9120 100644 --- a/native/cocos/base/threading/ReadWriteLock.h +++ b/native/cocos/base/threading/ReadWriteLock.h @@ -29,8 +29,8 @@ #include "base/Macros.h" // clang-format on -#include #include +#include namespace cc { diff --git a/native/cocos/base/threading/Semaphore.h b/native/cocos/base/threading/Semaphore.h index b5a95201f8..ba4a049fa2 100644 --- a/native/cocos/base/threading/Semaphore.h +++ b/native/cocos/base/threading/Semaphore.h @@ -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/ThreadSafeLinearAllocator.cpp b/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp index 99871bdf1b..9bf33b4afe 100644 --- a/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp +++ b/native/cocos/base/threading/ThreadSafeLinearAllocator.cpp @@ -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/bindings/auto/jsb_audio_auto.cpp b/native/cocos/bindings/auto/jsb_audio_auto.cpp index cb7c3b37b6..2c62ffb7fb 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.cpp +++ b/native/cocos/bindings/auto/jsb_audio_auto.cpp @@ -25,19 +25,19 @@ #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) { @@ -45,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()); @@ -56,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; @@ -72,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()); @@ -83,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; @@ -99,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()); @@ -110,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; @@ -131,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); @@ -164,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*/); @@ -186,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; @@ -198,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*/); @@ -215,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); @@ -230,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"); @@ -242,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); @@ -255,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); @@ -277,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); @@ -296,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); @@ -316,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); @@ -335,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); @@ -355,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); @@ -373,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; @@ -385,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); @@ -403,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; @@ -415,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); @@ -433,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; @@ -445,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); @@ -467,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); @@ -487,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); @@ -507,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); @@ -527,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); @@ -547,16 +544,15 @@ 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(); @@ -569,22 +565,19 @@ static bool js_audio_AudioEngine_setFinishCallback(se::State& s) // NOLINT(reada 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; @@ -596,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*/); @@ -613,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); @@ -633,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); @@ -651,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; @@ -663,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"); @@ -682,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"); @@ -697,18 +696,20 @@ 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(); @@ -720,23 +721,23 @@ static bool js_audio_AudioEngine_preload(se::State& s) // NOLINT(readability-ide 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; } @@ -745,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; } @@ -757,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*/); @@ -774,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); @@ -791,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*/); @@ -806,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); @@ -850,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 7aabab129a..32d313db38 100644 --- a/native/cocos/bindings/auto/jsb_audio_auto.h +++ b/native/cocos/bindings/auto/jsb_audio_auto.h @@ -26,13 +26,13 @@ #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); @@ -41,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 40cdc5f9b4..33789fb6ef 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.cpp +++ b/native/cocos/bindings/auto/jsb_cocos_auto.cpp @@ -24,31 +24,31 @@ ****************************************************************************/ #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()); @@ -58,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"); @@ -74,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()); @@ -96,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()); @@ -118,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 = {}; @@ -142,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()); @@ -164,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*/); @@ -183,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()); @@ -205,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()); @@ -227,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*/); @@ -246,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*/); @@ -265,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()); @@ -287,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()); @@ -309,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"); @@ -333,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()); @@ -355,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()); @@ -377,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*/); @@ -396,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()); @@ -418,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()); @@ -440,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()); @@ -462,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()); @@ -485,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; @@ -499,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()); @@ -521,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()); @@ -541,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) { @@ -570,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; @@ -592,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()); @@ -611,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()); @@ -630,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()); @@ -649,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()); @@ -673,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 = {}; @@ -697,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"); @@ -721,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"); @@ -745,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"); @@ -767,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*/); @@ -784,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); @@ -801,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); @@ -821,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); @@ -839,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); @@ -904,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) { @@ -922,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()); @@ -945,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); @@ -962,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; @@ -983,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 = {}; @@ -1009,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; @@ -1023,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 = {}; @@ -1052,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; @@ -1066,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()); @@ -1093,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 = {}; @@ -1118,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()); @@ -1143,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 = {}; @@ -1164,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()); @@ -1186,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 = {}; @@ -1207,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 = {}; @@ -1233,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; @@ -1247,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()); @@ -1267,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; @@ -1281,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 = {}; @@ -1302,18 +1311,17 @@ 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; @@ -1321,22 +1329,19 @@ static bool js_engine_ICanvasRenderingContext2D_setCanvasBufferUpdatedCallback(s 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; @@ -1350,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()); @@ -1369,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()); @@ -1388,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()); @@ -1407,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()); @@ -1426,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()); @@ -1445,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()); @@ -1464,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()); @@ -1483,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()); @@ -1502,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()); @@ -1521,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()); @@ -1540,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 = {}; @@ -1569,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()); @@ -1589,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; @@ -1603,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()); @@ -1628,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 = {}; @@ -1657,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 = {}; @@ -1674,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); @@ -1723,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) @@ -1736,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); @@ -1766,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"); @@ -1786,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); @@ -1816,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*/); @@ -1837,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*/); @@ -1854,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); @@ -1871,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); @@ -1888,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*/); @@ -1905,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*/); @@ -1922,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); @@ -1939,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); @@ -1956,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*/); @@ -1973,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*/); @@ -1990,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*/); @@ -2005,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); @@ -2032,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()); @@ -2056,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); @@ -2072,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); diff --git a/native/cocos/bindings/auto/jsb_cocos_auto.h b/native/cocos/bindings/auto/jsb_cocos_auto.h index 9d8dd7dae4..f55fc3bc67 100644 --- a/native/cocos/bindings/auto/jsb_cocos_auto.h +++ b/native/cocos/bindings/auto/jsb_cocos_auto.h @@ -24,18 +24,18 @@ ****************************************************************************/ #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); @@ -79,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); @@ -87,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); @@ -96,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); @@ -126,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); @@ -135,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); @@ -144,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); @@ -163,7 +163,7 @@ 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); diff --git a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp index 5961fb792c..76807098ff 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.cpp @@ -25,26 +25,26 @@ #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; @@ -56,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); @@ -75,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; @@ -94,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); @@ -113,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; @@ -141,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); @@ -172,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) { @@ -180,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()); @@ -191,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; @@ -207,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()); @@ -218,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; @@ -234,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()); @@ -245,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; @@ -261,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()); @@ -272,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; @@ -288,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()); @@ -299,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; @@ -315,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()); @@ -326,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; @@ -336,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); @@ -358,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); @@ -386,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()); @@ -397,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; @@ -413,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()); @@ -424,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; @@ -440,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()); @@ -451,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; @@ -467,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()); @@ -478,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; @@ -494,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()); @@ -505,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; @@ -521,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()); @@ -532,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; @@ -542,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); @@ -565,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()); @@ -590,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*/); @@ -609,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()); @@ -633,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()); @@ -644,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; @@ -654,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); @@ -674,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*/); @@ -699,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*/); @@ -718,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*/); @@ -737,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()); @@ -756,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()); @@ -773,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*/); @@ -788,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); @@ -810,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*/); @@ -835,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()); @@ -857,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*/); @@ -876,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()); @@ -898,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*/); @@ -917,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*/); @@ -936,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 = {}; @@ -962,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*/); @@ -981,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()); @@ -1003,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()); @@ -1025,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*/); @@ -1044,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()); @@ -1063,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()); @@ -1082,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()); @@ -1101,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()); @@ -1121,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; @@ -1137,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()); @@ -1148,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; @@ -1164,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()); @@ -1175,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; @@ -1185,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); @@ -1219,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*/); @@ -1244,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*/); @@ -1263,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()); @@ -1284,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()); @@ -1295,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; @@ -1311,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()); @@ -1322,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; @@ -1332,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); @@ -1353,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*/); @@ -1378,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*/); @@ -1397,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()); @@ -1416,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()); @@ -1437,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()); @@ -1448,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; @@ -1464,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()); @@ -1475,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; @@ -1485,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); @@ -1507,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()); @@ -1532,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()); @@ -1554,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*/); @@ -1573,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*/); @@ -1594,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()); @@ -1605,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; @@ -1615,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); @@ -1636,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) { @@ -1644,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()); @@ -1655,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; @@ -1665,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); @@ -1682,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()); @@ -1710,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*/); @@ -1729,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()); @@ -1751,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*/); @@ -1770,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()); @@ -1791,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()); @@ -1802,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; @@ -1818,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()); @@ -1829,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; @@ -1845,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()); @@ -1856,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; @@ -1872,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()); @@ -1883,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; @@ -1899,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()); @@ -1910,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; @@ -1920,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); @@ -1946,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()); @@ -1971,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()); @@ -1990,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"); @@ -2011,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()); @@ -2030,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 = {}; @@ -2055,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; @@ -2069,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*/); @@ -2088,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*/); @@ -2107,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()); @@ -2129,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*/); @@ -2148,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*/); @@ -2167,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*/); @@ -2186,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*/); @@ -2205,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*/); @@ -2224,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*/); @@ -2243,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*/); @@ -2262,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*/); @@ -2281,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()); @@ -2303,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; @@ -2319,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"); @@ -2336,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; @@ -2350,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()); @@ -2369,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()); @@ -2388,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()); @@ -2407,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()); @@ -2422,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); @@ -2462,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*/); @@ -2487,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*/); @@ -2506,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*/); @@ -2525,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*/); @@ -2544,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*/); @@ -2564,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; @@ -2574,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); @@ -2596,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()); @@ -2614,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"); @@ -2630,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 = {}; @@ -2651,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()); @@ -2673,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()); @@ -2685,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"); @@ -2701,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*/); @@ -2720,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*/); @@ -2739,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*/); @@ -2758,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*/); @@ -2777,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*/); @@ -2796,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*/); @@ -2815,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*/); @@ -2834,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*/); @@ -2853,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*/); @@ -2872,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*/); @@ -2892,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; @@ -2907,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; @@ -2921,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()); @@ -2933,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"); @@ -2949,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()); @@ -2969,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; @@ -2985,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()); @@ -2996,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; @@ -3012,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()); @@ -3023,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; @@ -3039,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()); @@ -3050,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; @@ -3066,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()); @@ -3077,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; @@ -3093,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()); @@ -3104,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; @@ -3120,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()); @@ -3131,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; @@ -3147,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()); @@ -3158,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; @@ -3174,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()); @@ -3185,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; @@ -3195,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); @@ -3238,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()); @@ -3266,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*/); @@ -3285,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*/); @@ -3304,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*/); @@ -3323,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*/); @@ -3342,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*/); @@ -3361,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"); @@ -3383,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; @@ -3397,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()); @@ -3416,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()); @@ -3435,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()); @@ -3455,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; @@ -3465,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); @@ -3493,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()); @@ -3522,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; @@ -3536,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 = {}; @@ -3560,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*/); @@ -3579,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*/); @@ -3598,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*/); @@ -3617,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*/); @@ -3636,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*/); @@ -3655,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*/); @@ -3675,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; @@ -3689,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()); @@ -3708,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()); @@ -3727,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()); @@ -3747,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; @@ -3763,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()); @@ -3774,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; @@ -3790,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()); @@ -3801,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; @@ -3811,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); @@ -3843,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()); @@ -3869,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; @@ -3883,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*/); @@ -3903,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; @@ -3917,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()); @@ -3934,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*/); @@ -3949,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); @@ -3971,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()); @@ -3996,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()); @@ -4011,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"); @@ -4023,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()); @@ -4037,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()); @@ -4053,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()); @@ -4070,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()); @@ -4098,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*/); @@ -4117,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*/); @@ -4136,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*/); @@ -4155,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()); @@ -4177,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()); @@ -4191,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()); @@ -4203,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()); @@ -4225,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()); @@ -4240,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"); @@ -4252,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()); @@ -4273,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()); @@ -4288,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"); @@ -4300,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()); @@ -4321,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()); @@ -4335,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()); @@ -4355,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()); @@ -4370,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"); @@ -4389,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()); @@ -4404,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"); @@ -4423,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()); @@ -4445,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()); @@ -4464,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*/); @@ -4483,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*/); @@ -4502,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*/); @@ -4524,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"); @@ -4544,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; @@ -4558,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()); @@ -4579,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()); @@ -4590,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; @@ -4600,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); @@ -4636,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*/); @@ -4661,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*/); @@ -4680,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*/); @@ -4699,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*/); @@ -4720,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()); @@ -4731,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; @@ -4747,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()); @@ -4758,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; @@ -4774,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()); @@ -4785,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; @@ -4801,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()); @@ -4812,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; @@ -4828,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()); @@ -4839,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; @@ -4855,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()); @@ -4866,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; @@ -4876,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); @@ -4902,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()); @@ -4920,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"); @@ -4936,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()); @@ -4948,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"); @@ -4964,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()); @@ -5028,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()); @@ -5054,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; @@ -5077,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()); @@ -5111,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*/); @@ -5130,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()); @@ -5152,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()); @@ -5167,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"); @@ -5179,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()); @@ -5200,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()); @@ -5212,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"); @@ -5228,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()); @@ -5240,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"); @@ -5256,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()); @@ -5272,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()); @@ -5294,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()); @@ -5322,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()); @@ -5344,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()); @@ -5368,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); @@ -5398,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; @@ -5415,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); @@ -5432,22 +5387,21 @@ 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()); @@ -5459,22 +5413,19 @@ static bool js_dragonbones_CCArmatureDisplay_addDBEventListener(se::State& s) // 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; @@ -5488,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*/); @@ -5507,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 = {}; @@ -5532,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; @@ -5546,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()); @@ -5566,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; @@ -5581,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; @@ -5595,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()); @@ -5616,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; @@ -5639,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*/); @@ -5658,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*/); @@ -5677,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*/); @@ -5696,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*/); @@ -5715,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*/); @@ -5734,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()); @@ -5756,16 +5707,15 @@ 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()); @@ -5777,22 +5727,19 @@ static bool js_dragonbones_CCArmatureDisplay_removeDBEventListener(se::State& s) 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; @@ -5806,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()); @@ -5825,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()); @@ -5844,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 = {}; @@ -5869,14 +5816,13 @@ 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()); @@ -5888,22 +5834,19 @@ static bool js_dragonbones_CCArmatureDisplay_setDBEventCallback(se::State& s) // 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; @@ -5917,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()); @@ -5936,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()); @@ -5953,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(); @@ -5979,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; } @@ -6027,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 = {}; @@ -6059,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()); @@ -6076,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*/); @@ -6094,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; @@ -6104,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); @@ -6137,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()); @@ -6162,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*/); @@ -6182,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; @@ -6196,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()); @@ -6218,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; @@ -6232,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*/); @@ -6251,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*/); @@ -6270,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*/); @@ -6289,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*/); @@ -6309,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; @@ -6324,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; @@ -6338,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"); @@ -6359,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()); @@ -6378,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()); @@ -6397,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()); @@ -6416,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()); @@ -6435,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 = {}; @@ -6460,14 +6399,13 @@ 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()); @@ -6479,22 +6417,19 @@ static bool js_dragonbones_CCArmatureCacheDisplay_setDBEventCallback(se::State& 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; @@ -6508,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()); @@ -6527,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()); @@ -6547,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; @@ -6561,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()); @@ -6581,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; @@ -6595,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()); @@ -6614,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()); @@ -6631,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; } @@ -6680,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()); @@ -6705,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()); @@ -6769,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*/); @@ -6788,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*/); @@ -6807,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"); @@ -6831,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*/); @@ -6850,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()); @@ -6878,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()); @@ -6898,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()); @@ -6917,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()); @@ -6929,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"); @@ -6945,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"); @@ -6966,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()); @@ -6985,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()); @@ -7005,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; @@ -7019,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()); @@ -7036,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*/); @@ -7053,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*/); @@ -7071,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; @@ -7083,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*/); @@ -7109,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); @@ -7157,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) { @@ -7175,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) { @@ -7192,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 91d5e65989..9fedf064b7 100644 --- a/native/cocos/bindings/auto/jsb_dragonbones_auto.h +++ b/native/cocos/bindings/auto/jsb_dragonbones_auto.h @@ -26,13 +26,13 @@ #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); @@ -43,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); @@ -53,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); @@ -61,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); @@ -70,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); @@ -81,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); @@ -95,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); @@ -119,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); @@ -130,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); @@ -142,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); @@ -154,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); @@ -162,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); @@ -175,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); @@ -207,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); @@ -221,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); @@ -248,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); @@ -268,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); @@ -290,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); @@ -304,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); @@ -331,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); @@ -343,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); @@ -365,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); @@ -374,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); @@ -406,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); @@ -418,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); @@ -451,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); @@ -478,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); @@ -486,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 fbe821cc3e..ef5a594d0f 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.cpp +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.cpp @@ -26,27 +26,27 @@ #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*/); @@ -63,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*/); @@ -82,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*/); @@ -101,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()); @@ -120,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()); @@ -139,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()); @@ -158,14 +158,13 @@ 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()); @@ -181,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; @@ -216,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; } @@ -248,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*/); @@ -273,14 +267,13 @@ 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()); @@ -288,22 +281,19 @@ static bool js_editor_support_SharedBufferManager_setResizeCallback(se::State& s 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; @@ -317,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"); @@ -329,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); @@ -361,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*/); @@ -386,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()); @@ -408,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 = {}; @@ -432,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()); @@ -456,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*/); @@ -475,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 = {}; @@ -499,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()); @@ -523,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()); @@ -542,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()); @@ -559,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*/); @@ -577,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; @@ -589,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*/); @@ -615,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); @@ -656,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); diff --git a/native/cocos/bindings/auto/jsb_editor_support_auto.h b/native/cocos/bindings/auto/jsb_editor_support_auto.h index 9f4705d21a..c0ec756cc1 100644 --- a/native/cocos/bindings/auto/jsb_editor_support_auto.h +++ b/native/cocos/bindings/auto/jsb_editor_support_auto.h @@ -24,16 +24,16 @@ ****************************************************************************/ #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); @@ -49,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); @@ -60,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); diff --git a/native/cocos/bindings/auto/jsb_extension_auto.cpp b/native/cocos/bindings/auto/jsb_extension_auto.cpp index 0c86553eea..d9d9079040 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.cpp +++ b/native/cocos/bindings/auto/jsb_extension_auto.cpp @@ -29,22 +29,22 @@ #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*/); @@ -61,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*/); @@ -80,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*/); @@ -99,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*/); @@ -118,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*/); @@ -137,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*/); @@ -156,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*/); @@ -175,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*/); @@ -194,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*/); @@ -213,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*/); @@ -232,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*/); @@ -251,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*/); @@ -270,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*/); @@ -289,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()); @@ -304,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; } @@ -342,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*/); @@ -367,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*/); @@ -386,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*/); @@ -405,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*/); @@ -424,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*/); @@ -443,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*/); @@ -462,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*/); @@ -481,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*/); @@ -500,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*/); @@ -519,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()); @@ -538,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 = {}; @@ -559,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()); @@ -578,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; } @@ -653,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; @@ -675,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; @@ -689,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*/); @@ -708,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*/); @@ -727,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*/); @@ -746,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*/); @@ -765,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*/); @@ -784,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*/); @@ -803,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*/); @@ -822,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*/); @@ -841,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*/); @@ -860,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*/); @@ -877,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; @@ -922,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()); @@ -945,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; @@ -959,14 +973,13 @@ 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()); @@ -978,22 +991,19 @@ static bool js_extension_AssetsManagerEx_setEventCallback(se::State& s) // NOLIN 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; @@ -1007,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()); @@ -1026,14 +1036,13 @@ 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()); @@ -1046,10 +1055,10 @@ static bool js_extension_AssetsManagerEx_setVerifyCallback(se::State& s) // NOLI 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(); } @@ -1059,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; @@ -1079,14 +1085,13 @@ 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()); @@ -1099,10 +1104,10 @@ static bool js_extension_AssetsManagerEx_setVersionCompareHandle(se::State& s) / 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(); } @@ -1112,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; @@ -1133,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; @@ -1145,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 = {}; @@ -1170,21 +1172,26 @@ 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()); @@ -1197,10 +1204,10 @@ static bool js_extension_AssetsManagerEx_constructor(se::State& s) // NOLINT(rea 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(); } @@ -1210,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; } @@ -1286,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); diff --git a/native/cocos/bindings/auto/jsb_extension_auto.h b/native/cocos/bindings/auto/jsb_extension_auto.h index feed21aaaa..79d5760d7c 100644 --- a/native/cocos/bindings/auto/jsb_extension_auto.h +++ b/native/cocos/bindings/auto/jsb_extension_auto.h @@ -24,14 +24,14 @@ ****************************************************************************/ #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); @@ -53,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); @@ -74,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); @@ -102,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 8eba456d1a..ca8164ab62 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.cpp +++ b/native/cocos/bindings/auto/jsb_gfx_auto.cpp @@ -29,14 +29,14 @@ #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) { @@ -44,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()); @@ -55,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; @@ -71,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()); @@ -82,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; @@ -98,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()); @@ -109,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; @@ -119,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; @@ -151,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; @@ -192,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; @@ -204,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); @@ -237,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) { @@ -245,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()); @@ -256,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; @@ -272,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()); @@ -283,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; @@ -299,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()); @@ -310,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; @@ -326,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()); @@ -337,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; @@ -353,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()); @@ -364,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; @@ -380,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()); @@ -391,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; @@ -407,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()); @@ -418,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; @@ -434,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()); @@ -445,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; @@ -461,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()); @@ -472,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; @@ -488,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()); @@ -499,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; @@ -515,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()); @@ -526,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; @@ -542,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()); @@ -553,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; @@ -569,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()); @@ -580,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; @@ -596,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()); @@ -607,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; @@ -623,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()); @@ -634,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; @@ -650,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()); @@ -661,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; @@ -677,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()); @@ -688,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; @@ -704,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()); @@ -715,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; @@ -731,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()); @@ -742,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; @@ -758,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()); @@ -769,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; @@ -785,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()); @@ -796,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; @@ -812,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()); @@ -823,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; @@ -833,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; @@ -941,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; @@ -1039,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; @@ -1051,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); @@ -1103,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) { @@ -1111,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()); @@ -1122,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; @@ -1138,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()); @@ -1149,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; @@ -1165,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()); @@ -1176,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; @@ -1186,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; @@ -1218,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; @@ -1259,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; @@ -1271,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); @@ -1304,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) { @@ -1312,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()); @@ -1323,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; @@ -1339,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()); @@ -1350,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; @@ -1366,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()); @@ -1377,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; @@ -1393,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()); @@ -1404,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; @@ -1414,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; @@ -1450,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; @@ -1494,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; @@ -1506,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); @@ -1540,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) { @@ -1548,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()); @@ -1559,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; @@ -1575,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()); @@ -1586,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; @@ -1602,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()); @@ -1613,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; @@ -1623,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; @@ -1655,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; @@ -1696,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; @@ -1708,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); @@ -1741,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) { @@ -1749,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()); @@ -1760,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; @@ -1776,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()); @@ -1787,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; @@ -1803,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()); @@ -1814,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; @@ -1824,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; @@ -1856,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; @@ -1897,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; @@ -1909,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); @@ -1942,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) { @@ -1950,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()); @@ -1961,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; @@ -1977,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()); @@ -1988,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; @@ -2004,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()); @@ -2015,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; @@ -2031,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()); @@ -2042,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; @@ -2052,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; @@ -2088,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; @@ -2132,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; @@ -2144,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); @@ -2178,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) { @@ -2186,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()); @@ -2197,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; @@ -2213,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()); @@ -2224,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; @@ -2240,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()); @@ -2251,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; @@ -2267,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()); @@ -2278,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; @@ -2294,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()); @@ -2305,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; @@ -2315,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; @@ -2355,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; @@ -2402,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; @@ -2414,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); @@ -2449,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) { @@ -2457,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()); @@ -2468,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; @@ -2484,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()); @@ -2495,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; @@ -2511,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()); @@ -2522,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; @@ -2538,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()); @@ -2549,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; @@ -2565,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()); @@ -2576,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; @@ -2592,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()); @@ -2603,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; @@ -2613,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; @@ -2657,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; @@ -2707,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; @@ -2719,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); @@ -2755,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) { @@ -2763,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()); @@ -2774,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; @@ -2790,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()); @@ -2801,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; @@ -2817,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()); @@ -2828,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; @@ -2844,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()); @@ -2855,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; @@ -2871,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()); @@ -2882,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; @@ -2892,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; @@ -2932,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; @@ -2979,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; @@ -2991,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); @@ -3026,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) { @@ -3034,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()); @@ -3045,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; @@ -3061,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()); @@ -3072,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; @@ -3088,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()); @@ -3099,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; @@ -3115,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()); @@ -3126,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; @@ -3142,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()); @@ -3153,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; @@ -3169,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()); @@ -3180,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; @@ -3190,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; @@ -3234,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; @@ -3284,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; @@ -3296,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); @@ -3332,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) { @@ -3340,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()); @@ -3351,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; @@ -3367,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()); @@ -3378,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; @@ -3394,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()); @@ -3405,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; @@ -3421,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()); @@ -3432,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; @@ -3442,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; @@ -3478,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; @@ -3522,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; @@ -3534,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); @@ -3568,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) { @@ -3576,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()); @@ -3587,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; @@ -3603,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()); @@ -3614,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; @@ -3630,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()); @@ -3641,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; @@ -3657,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()); @@ -3668,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; @@ -3684,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()); @@ -3695,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; @@ -3711,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()); @@ -3722,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; @@ -3738,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()); @@ -3749,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; @@ -3765,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()); @@ -3776,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; @@ -3786,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; @@ -3838,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; @@ -3894,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; @@ -3906,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); @@ -3944,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) { @@ -3952,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()); @@ -3963,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; @@ -3979,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()); @@ -3990,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; @@ -4006,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()); @@ -4017,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; @@ -4033,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()); @@ -4044,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; @@ -4054,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; @@ -4090,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; @@ -4134,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; @@ -4146,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); @@ -4180,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) { @@ -4188,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()); @@ -4199,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; @@ -4209,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; @@ -4233,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); @@ -4250,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; @@ -4262,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); @@ -4293,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) { @@ -4301,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()); @@ -4312,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; @@ -4328,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()); @@ -4339,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; @@ -4355,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()); @@ -4366,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; @@ -4382,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()); @@ -4393,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; @@ -4409,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()); @@ -4420,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; @@ -4430,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; @@ -4470,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; @@ -4517,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; @@ -4529,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); @@ -4564,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) { @@ -4572,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()); @@ -4583,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; @@ -4599,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()); @@ -4610,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; @@ -4626,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()); @@ -4637,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; @@ -4647,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; @@ -4679,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; @@ -4720,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; @@ -4732,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); @@ -4765,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) { @@ -4773,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()); @@ -4784,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; @@ -4800,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()); @@ -4811,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; @@ -4827,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()); @@ -4838,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; @@ -4854,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()); @@ -4865,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; @@ -4881,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()); @@ -4892,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; @@ -4908,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()); @@ -4919,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; @@ -4935,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()); @@ -4946,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; @@ -4956,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; @@ -5004,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; @@ -5057,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; @@ -5069,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); @@ -5106,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) { @@ -5114,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()); @@ -5125,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; @@ -5141,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()); @@ -5152,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; @@ -5168,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()); @@ -5179,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; @@ -5195,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()); @@ -5206,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; @@ -5222,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()); @@ -5233,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; @@ -5243,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; @@ -5283,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; @@ -5330,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; @@ -5342,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); @@ -5377,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) { @@ -5385,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()); @@ -5396,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; @@ -5406,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; @@ -5430,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); @@ -5447,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; @@ -5459,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); @@ -5490,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) { @@ -5498,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()); @@ -5509,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; @@ -5525,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()); @@ -5536,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; @@ -5552,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()); @@ -5563,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; @@ -5579,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()); @@ -5590,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; @@ -5606,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()); @@ -5617,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; @@ -5633,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()); @@ -5644,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; @@ -5660,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()); @@ -5671,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; @@ -5687,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()); @@ -5698,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; @@ -5714,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()); @@ -5725,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; @@ -5741,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()); @@ -5752,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; @@ -5768,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()); @@ -5779,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; @@ -5789,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; @@ -5853,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; @@ -5918,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; @@ -5930,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); @@ -5971,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) { @@ -5979,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()); @@ -5990,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; @@ -6006,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()); @@ -6017,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; @@ -6033,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()); @@ -6044,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; @@ -6060,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()); @@ -6071,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; @@ -6087,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()); @@ -6098,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; @@ -6114,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()); @@ -6125,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; @@ -6141,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()); @@ -6152,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; @@ -6162,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; @@ -6210,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; @@ -6263,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; @@ -6275,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); @@ -6312,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) { @@ -6320,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()); @@ -6331,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; @@ -6347,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()); @@ -6358,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; @@ -6374,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()); @@ -6385,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; @@ -6401,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()); @@ -6412,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; @@ -6428,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()); @@ -6439,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; @@ -6455,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()); @@ -6466,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; @@ -6482,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()); @@ -6493,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; @@ -6509,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()); @@ -6520,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; @@ -6530,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; @@ -6582,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; @@ -6638,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; @@ -6650,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); @@ -6688,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) { @@ -6696,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()); @@ -6707,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; @@ -6723,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()); @@ -6734,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; @@ -6750,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()); @@ -6761,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; @@ -6771,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; @@ -6803,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; @@ -6844,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; @@ -6856,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); @@ -6889,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) { @@ -6897,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()); @@ -6908,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; @@ -6924,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()); @@ -6935,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; @@ -6951,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()); @@ -6962,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; @@ -6978,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()); @@ -6989,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; @@ -7005,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()); @@ -7016,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; @@ -7026,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; @@ -7066,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; @@ -7113,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; @@ -7125,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); @@ -7160,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) { @@ -7168,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()); @@ -7179,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; @@ -7195,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()); @@ -7206,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; @@ -7222,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()); @@ -7233,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; @@ -7249,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()); @@ -7260,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; @@ -7276,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()); @@ -7287,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; @@ -7297,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; @@ -7337,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; @@ -7384,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; @@ -7396,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); @@ -7431,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) { @@ -7439,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()); @@ -7450,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; @@ -7466,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()); @@ -7477,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; @@ -7493,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()); @@ -7504,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; @@ -7520,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()); @@ -7531,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; @@ -7541,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; @@ -7577,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; @@ -7621,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; @@ -7633,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); @@ -7667,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) { @@ -7675,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()); @@ -7686,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; @@ -7702,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()); @@ -7713,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; @@ -7729,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()); @@ -7740,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; @@ -7756,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()); @@ -7767,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; @@ -7783,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()); @@ -7794,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; @@ -7804,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; @@ -7844,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; @@ -7891,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; @@ -7903,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); @@ -7938,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) { @@ -7946,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()); @@ -7957,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; @@ -7973,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()); @@ -7984,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; @@ -8000,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()); @@ -8011,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; @@ -8027,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()); @@ -8038,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; @@ -8054,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()); @@ -8065,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; @@ -8081,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()); @@ -8092,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; @@ -8102,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; @@ -8146,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; @@ -8196,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; @@ -8208,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); @@ -8244,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) { @@ -8252,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()); @@ -8263,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; @@ -8279,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()); @@ -8290,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; @@ -8306,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()); @@ -8317,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; @@ -8333,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()); @@ -8344,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; @@ -8360,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()); @@ -8371,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; @@ -8381,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; @@ -8421,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; @@ -8468,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; @@ -8480,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); @@ -8515,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) { @@ -8523,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()); @@ -8534,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; @@ -8550,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()); @@ -8561,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; @@ -8577,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()); @@ -8588,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; @@ -8604,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()); @@ -8615,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; @@ -8625,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; @@ -8661,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; @@ -8705,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; @@ -8717,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); @@ -8751,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) { @@ -8759,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()); @@ -8770,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; @@ -8786,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()); @@ -8797,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; @@ -8807,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; @@ -8835,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; @@ -8873,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; @@ -8885,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); @@ -8917,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) { @@ -8925,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()); @@ -8936,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; @@ -8952,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()); @@ -8963,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; @@ -8979,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()); @@ -8990,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; @@ -9006,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()); @@ -9017,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; @@ -9033,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()); @@ -9044,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; @@ -9060,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()); @@ -9071,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; @@ -9081,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; @@ -9125,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; @@ -9175,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; @@ -9187,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); @@ -9223,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) { @@ -9231,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()); @@ -9242,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; @@ -9258,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()); @@ -9269,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; @@ -9285,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()); @@ -9296,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; @@ -9312,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()); @@ -9323,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; @@ -9339,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()); @@ -9350,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; @@ -9366,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()); @@ -9377,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; @@ -9393,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()); @@ -9404,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; @@ -9420,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()); @@ -9431,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; @@ -9447,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()); @@ -9458,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; @@ -9474,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()); @@ -9485,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; @@ -9495,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; @@ -9555,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; @@ -9617,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; @@ -9629,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); @@ -9669,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) { @@ -9677,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()); @@ -9688,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; @@ -9704,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()); @@ -9715,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; @@ -9731,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()); @@ -9742,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; @@ -9758,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()); @@ -9769,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; @@ -9779,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; @@ -9815,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; @@ -9859,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; @@ -9871,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); @@ -9905,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) { @@ -9913,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()); @@ -9924,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; @@ -9940,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()); @@ -9951,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; @@ -9967,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()); @@ -9978,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; @@ -9994,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()); @@ -10005,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; @@ -10021,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()); @@ -10032,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; @@ -10048,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()); @@ -10059,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; @@ -10075,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()); @@ -10086,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; @@ -10096,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; @@ -10144,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; @@ -10197,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; @@ -10209,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); @@ -10246,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) { @@ -10254,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()); @@ -10265,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; @@ -10281,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()); @@ -10292,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; @@ -10308,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()); @@ -10319,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; @@ -10335,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()); @@ -10346,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; @@ -10362,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()); @@ -10373,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; @@ -10389,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()); @@ -10400,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; @@ -10416,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()); @@ -10427,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; @@ -10443,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()); @@ -10454,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; @@ -10470,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()); @@ -10481,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; @@ -10491,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; @@ -10547,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; @@ -10606,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; @@ -10618,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); @@ -10657,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) { @@ -10665,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()); @@ -10676,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; @@ -10692,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()); @@ -10703,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; @@ -10719,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()); @@ -10730,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; @@ -10746,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()); @@ -10757,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; @@ -10773,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()); @@ -10784,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; @@ -10800,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()); @@ -10811,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; @@ -10827,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()); @@ -10838,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; @@ -10854,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()); @@ -10865,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; @@ -10875,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; @@ -10927,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; @@ -10983,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; @@ -10995,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); @@ -11033,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) { @@ -11041,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()); @@ -11052,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; @@ -11068,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()); @@ -11079,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; @@ -11095,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()); @@ -11106,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; @@ -11122,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()); @@ -11133,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; @@ -11143,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; @@ -11179,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; @@ -11223,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; @@ -11235,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); @@ -11269,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) { @@ -11277,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()); @@ -11288,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; @@ -11304,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()); @@ -11315,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; @@ -11331,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()); @@ -11342,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; @@ -11358,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()); @@ -11369,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; @@ -11379,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; @@ -11415,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; @@ -11459,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; @@ -11471,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); @@ -11505,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) { @@ -11513,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()); @@ -11524,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; @@ -11540,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()); @@ -11551,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; @@ -11561,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; @@ -11589,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; @@ -11627,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; @@ -11639,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); @@ -11671,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) { @@ -11679,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()); @@ -11690,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; @@ -11706,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()); @@ -11717,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; @@ -11733,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()); @@ -11744,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; @@ -11760,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()); @@ -11771,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; @@ -11787,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()); @@ -11798,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; @@ -11808,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; @@ -11848,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; @@ -11895,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; @@ -11907,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); @@ -11942,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) { @@ -11950,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()); @@ -11961,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; @@ -11977,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()); @@ -11988,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; @@ -12004,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()); @@ -12015,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; @@ -12025,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; @@ -12057,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; @@ -12098,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; @@ -12110,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); @@ -12143,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) { @@ -12151,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()); @@ -12162,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; @@ -12178,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()); @@ -12189,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; @@ -12205,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()); @@ -12216,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; @@ -12232,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()); @@ -12243,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; @@ -12259,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()); @@ -12270,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; @@ -12280,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; @@ -12320,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; @@ -12367,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; @@ -12379,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); @@ -12414,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) { @@ -12422,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()); @@ -12433,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; @@ -12443,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; @@ -12467,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); @@ -12484,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; @@ -12496,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); @@ -12527,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) { @@ -12535,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()); @@ -12546,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; @@ -12556,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; @@ -12580,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); @@ -12597,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; @@ -12609,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); @@ -12640,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) { @@ -12648,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()); @@ -12659,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; @@ -12669,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; @@ -12693,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); @@ -12710,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; @@ -12722,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); @@ -12753,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) { @@ -12761,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()); @@ -12772,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; @@ -12782,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; @@ -12806,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); @@ -12823,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; @@ -12835,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); @@ -12866,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) { @@ -12874,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()); @@ -12885,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; @@ -12901,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()); @@ -12912,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; @@ -12928,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()); @@ -12939,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; @@ -12955,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()); @@ -12966,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; @@ -12982,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()); @@ -12993,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; @@ -13009,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()); @@ -13020,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; @@ -13036,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()); @@ -13047,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; @@ -13063,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()); @@ -13074,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; @@ -13090,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()); @@ -13101,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; @@ -13117,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()); @@ -13128,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; @@ -13144,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()); @@ -13155,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; @@ -13171,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()); @@ -13182,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; @@ -13192,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; @@ -13260,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; @@ -13328,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; @@ -13340,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); @@ -13382,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) { @@ -13390,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()); @@ -13401,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; @@ -13417,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()); @@ -13428,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; @@ -13444,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()); @@ -13455,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; @@ -13471,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()); @@ -13482,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; @@ -13498,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()); @@ -13509,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; @@ -13525,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()); @@ -13536,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; @@ -13552,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()); @@ -13563,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; @@ -13579,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()); @@ -13590,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; @@ -13606,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()); @@ -13617,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; @@ -13633,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()); @@ -13644,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; @@ -13660,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()); @@ -13671,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; @@ -13687,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()); @@ -13698,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; @@ -13714,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()); @@ -13725,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; @@ -13741,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()); @@ -13752,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; @@ -13768,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()); @@ -13779,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; @@ -13795,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()); @@ -13806,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; @@ -13822,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()); @@ -13833,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; @@ -13849,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()); @@ -13860,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; @@ -13876,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()); @@ -13887,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; @@ -13897,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; @@ -13993,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; @@ -14082,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; @@ -14094,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); @@ -14143,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) { @@ -14151,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()); @@ -14162,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; @@ -14178,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()); @@ -14189,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; @@ -14205,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()); @@ -14216,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; @@ -14232,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()); @@ -14243,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; @@ -14259,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()); @@ -14270,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; @@ -14286,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()); @@ -14297,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; @@ -14313,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()); @@ -14324,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; @@ -14340,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()); @@ -14351,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; @@ -14361,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; @@ -14413,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; @@ -14469,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; @@ -14481,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); @@ -14519,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) { @@ -14527,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()); @@ -14538,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; @@ -14554,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()); @@ -14565,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; @@ -14581,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()); @@ -14592,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; @@ -14608,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()); @@ -14619,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; @@ -14629,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; @@ -14665,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; @@ -14709,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; @@ -14721,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); @@ -14755,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) { @@ -14763,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()); @@ -14774,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; @@ -14790,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()); @@ -14801,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; @@ -14817,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()); @@ -14828,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; @@ -14844,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()); @@ -14855,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; @@ -14871,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()); @@ -14882,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; @@ -14898,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()); @@ -14909,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; @@ -14925,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()); @@ -14936,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; @@ -14952,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()); @@ -14963,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; @@ -14979,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()); @@ -14990,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; @@ -15006,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()); @@ -15017,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; @@ -15033,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()); @@ -15044,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; @@ -15054,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; @@ -15118,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; @@ -15183,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; @@ -15195,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); @@ -15236,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) { @@ -15244,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()); @@ -15255,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; @@ -15271,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()); @@ -15282,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; @@ -15292,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; @@ -15320,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; @@ -15358,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; @@ -15370,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); @@ -15402,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) { @@ -15410,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()); @@ -15421,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; @@ -15431,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; @@ -15455,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); @@ -15472,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; @@ -15484,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); @@ -15515,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) { @@ -15523,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()); @@ -15534,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; @@ -15550,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()); @@ -15561,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; @@ -15577,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()); @@ -15588,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; @@ -15598,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; @@ -15630,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; @@ -15671,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; @@ -15683,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); @@ -15716,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) { @@ -15724,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()); @@ -15735,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; @@ -15751,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()); @@ -15762,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; @@ -15772,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; @@ -15800,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; @@ -15838,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; @@ -15850,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); @@ -15882,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*/); @@ -15907,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*/); @@ -15926,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*/); @@ -15945,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"); @@ -15957,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); @@ -15990,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; @@ -16011,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*/); @@ -16030,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*/); @@ -16049,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*/); @@ -16068,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*/); @@ -16087,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*/); @@ -16106,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*/); @@ -16125,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*/); @@ -16144,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()); @@ -16161,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); @@ -16189,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); @@ -16229,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; @@ -16250,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*/); @@ -16269,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*/); @@ -16288,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*/); @@ -16307,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*/); @@ -16326,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*/); @@ -16345,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*/); @@ -16364,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*/); @@ -16383,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*/); @@ -16402,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*/); @@ -16421,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*/); @@ -16440,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()); @@ -16459,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*/); @@ -16478,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*/); @@ -16497,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()); @@ -16516,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()); @@ -16535,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()); @@ -16554,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()); @@ -16573,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()); @@ -16592,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()); @@ -16611,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()); @@ -16630,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()); @@ -16655,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); @@ -16700,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; @@ -16768,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"); @@ -16787,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; @@ -16912,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; @@ -16977,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()); @@ -16996,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()); @@ -17013,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; @@ -17070,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()); @@ -17090,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; @@ -17104,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()); @@ -17121,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; @@ -17158,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; @@ -17172,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"); @@ -17194,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; @@ -17208,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*/); @@ -17227,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*/); @@ -17246,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*/); @@ -17265,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*/); @@ -17284,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*/); @@ -17303,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()); @@ -17323,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; @@ -17335,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; @@ -17397,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()); @@ -17416,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()); @@ -17435,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 = {}; @@ -17458,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 = {}; @@ -17479,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()); @@ -17498,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()); @@ -17517,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()); @@ -17540,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"); @@ -17561,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()); @@ -17586,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); @@ -17647,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; @@ -17696,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()); @@ -17720,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; @@ -17765,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()); @@ -17789,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; @@ -17834,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()); @@ -17861,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; @@ -17873,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) { @@ -17898,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; @@ -17918,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*/); @@ -17935,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) { @@ -17960,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; @@ -17978,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) { @@ -18003,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; @@ -18023,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()); @@ -18043,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; @@ -18063,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); @@ -18106,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; @@ -18127,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*/); @@ -18146,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*/); @@ -18165,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*/); @@ -18184,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()); @@ -18209,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); @@ -18244,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; @@ -18265,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()); @@ -18284,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*/); @@ -18303,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*/); @@ -18322,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()); @@ -18339,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); @@ -18367,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); @@ -18403,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; @@ -18424,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()); @@ -18443,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()); @@ -18468,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); @@ -18501,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; @@ -18522,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*/); @@ -18541,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*/); @@ -18560,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*/); @@ -18579,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*/); @@ -18598,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*/); @@ -18617,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*/); @@ -18636,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*/); @@ -18655,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*/); @@ -18674,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*/); @@ -18693,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*/); @@ -18712,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()); @@ -18737,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); @@ -18779,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; @@ -18800,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*/); @@ -18819,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*/); @@ -18838,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()); @@ -18860,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*/); @@ -18879,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()); @@ -18901,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()); @@ -18926,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); @@ -18963,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; @@ -18984,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*/); @@ -19003,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()); @@ -19020,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; @@ -19065,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); @@ -19099,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; @@ -19120,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*/); @@ -19139,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*/); @@ -19158,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*/); @@ -19177,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*/); @@ -19196,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()); @@ -19213,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); @@ -19241,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); @@ -19278,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; @@ -19299,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*/); @@ -19318,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*/); @@ -19337,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*/); @@ -19356,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*/); @@ -19375,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*/); @@ -19394,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*/); @@ -19413,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*/); @@ -19432,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*/); @@ -19451,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*/); @@ -19470,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*/); @@ -19489,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()); @@ -19514,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); @@ -19556,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; @@ -19577,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*/); @@ -19596,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*/); @@ -19615,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*/); @@ -19634,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*/); @@ -19653,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*/); @@ -19672,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*/); @@ -19691,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*/); @@ -19710,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*/); @@ -19729,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 = {}; @@ -19748,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"); @@ -19767,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"); @@ -19790,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); @@ -19831,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()); @@ -19857,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; @@ -19872,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; @@ -19886,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*/); @@ -19905,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*/); @@ -19924,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*/); @@ -19943,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*/); @@ -19962,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*/); @@ -19981,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*/); @@ -20000,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*/); @@ -20019,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()); @@ -20038,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()); @@ -20067,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); @@ -20109,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*/); @@ -20134,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*/); @@ -20151,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); @@ -20179,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); @@ -20212,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*/); @@ -20237,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*/); @@ -20254,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); @@ -20282,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); @@ -20315,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*/); @@ -20340,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*/); @@ -20357,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); @@ -20385,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); @@ -20418,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; @@ -20461,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*/); @@ -20480,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()); @@ -20503,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()); @@ -20526,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()); @@ -20549,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()); @@ -20572,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()); @@ -20595,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()); @@ -20618,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()); @@ -20641,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()); @@ -20664,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()); @@ -20687,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()); @@ -20710,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()); @@ -20733,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()); @@ -20757,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; @@ -20769,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; @@ -20808,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*/); @@ -20827,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*/); @@ -20846,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*/); @@ -20865,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*/); @@ -20884,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()); @@ -20906,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*/); @@ -20925,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*/); @@ -20944,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*/); @@ -20963,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*/); @@ -20982,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*/); @@ -21001,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()); @@ -21020,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*/); @@ -21039,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*/); @@ -21058,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()); @@ -21080,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()); @@ -21102,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*/); @@ -21121,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()); @@ -21143,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()); @@ -21166,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; @@ -21176,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); @@ -21227,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); @@ -21252,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; @@ -21265,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; @@ -21275,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); @@ -21306,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); diff --git a/native/cocos/bindings/auto/jsb_gfx_auto.h b/native/cocos/bindings/auto/jsb_gfx_auto.h index ad970158d9..f2c2d43c09 100644 --- a/native/cocos/bindings/auto/jsb_gfx_auto.h +++ b/native/cocos/bindings/auto/jsb_gfx_auto.h @@ -24,584 +24,584 @@ ****************************************************************************/ #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); @@ -610,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); @@ -623,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); @@ -634,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); @@ -674,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); @@ -695,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); @@ -709,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); @@ -721,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); @@ -733,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); @@ -746,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); @@ -762,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); @@ -774,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); @@ -789,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); @@ -805,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); @@ -818,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); @@ -834,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); @@ -846,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); @@ -857,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); @@ -869,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); @@ -901,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); diff --git a/native/cocos/bindings/auto/jsb_network_auto.cpp b/native/cocos/bindings/auto/jsb_network_auto.cpp index 9d4baf7d81..1b67c9b69d 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.cpp +++ b/native/cocos/bindings/auto/jsb_network_auto.cpp @@ -29,14 +29,14 @@ #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) { @@ -44,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()); @@ -55,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; @@ -71,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()); @@ -82,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; @@ -98,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()); @@ -109,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; @@ -119,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; @@ -151,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; @@ -192,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; @@ -204,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); @@ -237,24 +230,23 @@ 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; @@ -265,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; @@ -294,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); @@ -315,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); @@ -351,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); diff --git a/native/cocos/bindings/auto/jsb_network_auto.h b/native/cocos/bindings/auto/jsb_network_auto.h index 6c601b8c8a..26e1e0e3ee 100644 --- a/native/cocos/bindings/auto/jsb_network_auto.h +++ b/native/cocos/bindings/auto/jsb_network_auto.h @@ -24,24 +24,24 @@ ****************************************************************************/ #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); diff --git a/native/cocos/bindings/auto/jsb_physics_auto.cpp b/native/cocos/bindings/auto/jsb_physics_auto.cpp index fca4c51036..3e55599420 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.cpp +++ b/native/cocos/bindings/auto/jsb_physics_auto.cpp @@ -29,22 +29,22 @@ #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()); @@ -64,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()); @@ -86,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()); @@ -118,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()); @@ -141,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; @@ -156,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; @@ -170,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*/); @@ -189,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*/); @@ -208,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()); @@ -230,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()); @@ -252,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*/); @@ -271,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*/); @@ -290,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()); @@ -309,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 = {}; @@ -330,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 = {}; @@ -353,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()); @@ -373,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; @@ -388,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; @@ -409,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); @@ -457,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 = {}; @@ -492,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 = {}; @@ -521,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 = {}; @@ -550,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 = {}; @@ -579,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 = {}; @@ -602,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 = {}; @@ -626,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; @@ -641,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; @@ -656,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; @@ -670,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*/); @@ -689,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*/); @@ -708,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*/); @@ -727,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*/); @@ -746,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*/); @@ -765,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*/); @@ -784,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*/); @@ -803,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()); @@ -826,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*/); @@ -845,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*/); @@ -864,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*/); @@ -884,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; @@ -899,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; @@ -914,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; @@ -928,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()); @@ -947,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()); @@ -966,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 = {}; @@ -989,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 = {}; @@ -1012,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()); @@ -1031,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()); @@ -1050,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 = {}; @@ -1073,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 = {}; @@ -1096,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()); @@ -1115,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()); @@ -1134,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()); @@ -1153,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()); @@ -1173,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; @@ -1187,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()); @@ -1206,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()); @@ -1226,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; @@ -1247,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); @@ -1316,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*/); @@ -1341,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*/); @@ -1360,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*/); @@ -1379,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*/); @@ -1398,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*/); @@ -1417,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()); @@ -1437,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; @@ -1452,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; @@ -1467,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; @@ -1481,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()); @@ -1500,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 = {}; @@ -1523,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()); @@ -1542,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()); @@ -1561,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()); @@ -1590,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()); @@ -1609,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()); @@ -1635,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); @@ -1681,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*/); @@ -1706,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*/); @@ -1725,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*/); @@ -1744,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*/); @@ -1763,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*/); @@ -1782,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()); @@ -1802,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; @@ -1817,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; @@ -1832,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; @@ -1846,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()); @@ -1865,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 = {}; @@ -1888,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()); @@ -1907,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()); @@ -1926,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()); @@ -1955,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 = {}; @@ -1978,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()); @@ -2004,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); @@ -2050,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*/); @@ -2075,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*/); @@ -2094,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*/); @@ -2113,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*/); @@ -2132,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*/); @@ -2151,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()); @@ -2171,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; @@ -2186,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; @@ -2201,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; @@ -2215,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()); @@ -2234,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 = {}; @@ -2257,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()); @@ -2276,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()); @@ -2295,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()); @@ -2314,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()); @@ -2333,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()); @@ -2362,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()); @@ -2381,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()); @@ -2407,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); @@ -2455,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*/); @@ -2480,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*/); @@ -2499,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*/); @@ -2518,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*/); @@ -2537,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*/); @@ -2556,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()); @@ -2576,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; @@ -2591,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; @@ -2606,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; @@ -2620,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()); @@ -2639,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 = {}; @@ -2662,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()); @@ -2681,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()); @@ -2700,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()); @@ -2719,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()); @@ -2748,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 = {}; @@ -2771,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()); @@ -2797,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); @@ -2844,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*/); @@ -2869,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*/); @@ -2888,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*/); @@ -2907,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*/); @@ -2926,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*/); @@ -2945,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()); @@ -2965,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; @@ -2980,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; @@ -2995,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; @@ -3009,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()); @@ -3028,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 = {}; @@ -3051,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()); @@ -3070,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()); @@ -3089,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()); @@ -3118,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()); @@ -3137,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()); @@ -3156,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()); @@ -3182,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); @@ -3229,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*/); @@ -3254,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*/); @@ -3273,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*/); @@ -3292,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*/); @@ -3311,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*/); @@ -3330,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()); @@ -3350,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; @@ -3365,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; @@ -3380,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; @@ -3394,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()); @@ -3413,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 = {}; @@ -3436,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()); @@ -3455,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()); @@ -3478,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()); @@ -3497,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()); @@ -3516,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()); @@ -3545,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()); @@ -3571,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); @@ -3618,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*/); @@ -3643,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*/); @@ -3662,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*/); @@ -3681,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*/); @@ -3700,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*/); @@ -3719,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()); @@ -3739,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; @@ -3754,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; @@ -3769,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; @@ -3783,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()); @@ -3802,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 = {}; @@ -3825,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()); @@ -3848,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()); @@ -3867,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()); @@ -3886,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()); @@ -3905,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()); @@ -3934,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()); @@ -3960,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); @@ -4007,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*/); @@ -4032,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*/); @@ -4051,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*/); @@ -4070,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*/); @@ -4089,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*/); @@ -4108,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()); @@ -4128,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; @@ -4143,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; @@ -4158,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; @@ -4172,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()); @@ -4191,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 = {}; @@ -4214,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()); @@ -4233,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()); @@ -4252,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()); @@ -4281,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()); @@ -4306,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()); @@ -4332,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); @@ -4378,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*/); @@ -4403,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()); @@ -4423,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; @@ -4438,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; @@ -4453,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; @@ -4467,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 = {}; @@ -4490,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()); @@ -4509,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()); @@ -4528,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 = {}; @@ -4551,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 = {}; @@ -4581,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); @@ -4621,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*/); @@ -4646,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()); @@ -4666,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; @@ -4681,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; @@ -4696,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; @@ -4710,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()); @@ -4729,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()); @@ -4748,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 = {}; @@ -4771,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 = {}; @@ -4801,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); @@ -4839,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); diff --git a/native/cocos/bindings/auto/jsb_physics_auto.h b/native/cocos/bindings/auto/jsb_physics_auto.h index adb9d41d15..568eab2c39 100644 --- a/native/cocos/bindings/auto/jsb_physics_auto.h +++ b/native/cocos/bindings/auto/jsb_physics_auto.h @@ -24,16 +24,16 @@ ****************************************************************************/ #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); @@ -60,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); @@ -108,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); @@ -133,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); @@ -158,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); @@ -185,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); @@ -211,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); @@ -237,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); @@ -263,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); @@ -289,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); @@ -314,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); @@ -333,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); diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp index a1169d572c..509f8506a1 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.cpp +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.cpp @@ -26,35 +26,35 @@ #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) { @@ -62,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()); @@ -73,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; @@ -89,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()); @@ -100,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; @@ -116,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()); @@ -127,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; @@ -137,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; @@ -169,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; @@ -210,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; @@ -222,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); @@ -255,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()); @@ -282,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()); @@ -303,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()); @@ -324,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*/); @@ -343,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()); @@ -362,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*/); @@ -381,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*/); @@ -400,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()); @@ -422,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*/); @@ -442,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; @@ -463,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); @@ -503,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) { @@ -511,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()); @@ -522,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; @@ -538,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()); @@ -549,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; @@ -559,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; @@ -587,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; @@ -625,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; @@ -637,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); @@ -669,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()); @@ -697,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()); @@ -724,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; @@ -738,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()); @@ -757,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"); @@ -778,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*/); @@ -797,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()); @@ -819,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*/); @@ -838,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*/); @@ -857,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*/); @@ -876,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*/); @@ -895,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*/); @@ -914,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*/); @@ -933,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*/); @@ -952,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*/); @@ -971,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*/); @@ -990,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()); @@ -1012,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*/); @@ -1031,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*/); @@ -1050,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()); @@ -1069,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()); @@ -1091,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()); @@ -1113,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()); @@ -1135,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*/); @@ -1154,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()); @@ -1176,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*/); @@ -1195,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()); @@ -1219,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()); @@ -1238,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()); @@ -1257,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()); @@ -1276,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()); @@ -1295,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()); @@ -1314,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()); @@ -1333,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()); @@ -1352,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"); @@ -1373,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()); @@ -1392,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*/); @@ -1409,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); @@ -1427,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); @@ -1479,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) @@ -1492,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); @@ -1522,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) { @@ -1530,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()); @@ -1541,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; @@ -1557,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()); @@ -1568,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; @@ -1584,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()); @@ -1595,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; @@ -1611,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()); @@ -1622,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; @@ -1632,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; @@ -1668,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; @@ -1712,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; @@ -1724,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); @@ -1758,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()); @@ -1783,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()); @@ -1805,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*/); @@ -1824,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()); @@ -1842,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); @@ -1862,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*/); @@ -1892,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); @@ -1923,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) { @@ -1931,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()); @@ -1942,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; @@ -1958,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()); @@ -1969,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; @@ -1985,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()); @@ -1996,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; @@ -2012,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()); @@ -2023,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; @@ -2033,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; @@ -2069,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; @@ -2113,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; @@ -2125,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); @@ -2159,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"); @@ -2186,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*/); @@ -2205,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*/); @@ -2224,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()); @@ -2242,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); @@ -2262,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*/); @@ -2292,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); @@ -2323,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*/); @@ -2353,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); @@ -2384,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()); @@ -2409,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()); @@ -2430,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*/); @@ -2456,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); @@ -2489,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; @@ -2510,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 = {}; @@ -2529,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"); @@ -2551,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"); @@ -2567,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; @@ -2581,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"); @@ -2593,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); @@ -2627,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) @@ -2640,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); @@ -2670,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*/); @@ -2700,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); @@ -2731,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*/); @@ -2761,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); @@ -2792,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*/); @@ -2822,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); @@ -2853,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*/); @@ -2878,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()); @@ -2897,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*/); @@ -2916,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*/); @@ -2935,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*/); @@ -2954,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*/); @@ -2973,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*/); @@ -2992,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()); @@ -3011,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()); @@ -3030,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()); @@ -3049,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()); @@ -3066,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*/); @@ -3092,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); @@ -3131,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*/); @@ -3161,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); @@ -3192,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) @@ -3205,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); @@ -3234,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); diff --git a/native/cocos/bindings/auto/jsb_pipeline_auto.h b/native/cocos/bindings/auto/jsb_pipeline_auto.h index 1167e2470c..a14a2c3b0e 100644 --- a/native/cocos/bindings/auto/jsb_pipeline_auto.h +++ b/native/cocos/bindings/auto/jsb_pipeline_auto.h @@ -24,43 +24,43 @@ ****************************************************************************/ #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); @@ -79,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); @@ -127,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); @@ -136,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); @@ -158,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); @@ -168,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); @@ -190,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); @@ -200,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); @@ -210,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); @@ -222,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); @@ -235,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); @@ -244,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); @@ -254,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); @@ -264,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); @@ -274,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); @@ -289,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); @@ -299,7 +299,7 @@ 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); diff --git a/native/cocos/bindings/auto/jsb_scene_auto.cpp b/native/cocos/bindings/auto/jsb_scene_auto.cpp index 26022578be..81097510c7 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.cpp +++ b/native/cocos/bindings/auto/jsb_scene_auto.cpp @@ -26,44 +26,43 @@ #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()); @@ -78,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()); @@ -104,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); @@ -136,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) @@ -149,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); @@ -179,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()); @@ -215,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); @@ -246,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*/); @@ -271,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()); @@ -290,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()); @@ -309,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()); @@ -328,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()); @@ -347,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()); @@ -366,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()); @@ -386,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; @@ -396,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); @@ -420,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*/); @@ -445,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*/); @@ -464,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*/); @@ -483,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*/); @@ -502,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*/); @@ -521,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*/); @@ -540,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*/); @@ -559,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*/); @@ -578,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*/); @@ -597,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*/); @@ -616,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*/); @@ -635,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()); @@ -654,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()); @@ -673,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()); @@ -692,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()); @@ -711,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()); @@ -730,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()); @@ -749,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()); @@ -768,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()); @@ -787,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()); @@ -806,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()); @@ -825,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()); @@ -844,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()); @@ -863,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()); @@ -882,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()); @@ -908,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); @@ -963,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*/); @@ -986,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) { @@ -1012,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; @@ -1031,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()); @@ -1055,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()); @@ -1066,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; @@ -1082,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()); @@ -1093,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; @@ -1103,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; @@ -1131,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; @@ -1169,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; @@ -1181,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); @@ -1216,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*/); @@ -1241,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()); @@ -1268,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()); @@ -1295,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()); @@ -1316,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()); @@ -1327,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; @@ -1343,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()); @@ -1354,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; @@ -1364,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; @@ -1396,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; @@ -1437,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; @@ -1449,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); @@ -1485,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()); @@ -1513,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*/); @@ -1532,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()); @@ -1558,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); @@ -1591,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*/); @@ -1616,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*/); @@ -1635,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*/); @@ -1654,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*/); @@ -1673,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()); @@ -1692,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()); @@ -1711,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()); @@ -1730,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()); @@ -1749,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()); @@ -1768,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()); @@ -1787,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()); @@ -1806,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()); @@ -1825,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()); @@ -1844,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()); @@ -1863,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()); @@ -1882,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()); @@ -1901,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()); @@ -1920,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()); @@ -1939,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()); @@ -1965,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); @@ -2014,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()); @@ -2039,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()); @@ -2058,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()); @@ -2077,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()); @@ -2096,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()); @@ -2115,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()); @@ -2141,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); @@ -2177,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*/); @@ -2202,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*/); @@ -2221,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*/); @@ -2240,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*/); @@ -2259,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*/); @@ -2278,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*/); @@ -2297,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*/); @@ -2316,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*/); @@ -2335,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*/); @@ -2354,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*/); @@ -2373,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()); @@ -2392,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*/); @@ -2411,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*/); @@ -2430,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*/); @@ -2449,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*/); @@ -2468,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*/); @@ -2487,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()); @@ -2506,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()); @@ -2525,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()); @@ -2544,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()); @@ -2563,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()); @@ -2582,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()); @@ -2601,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()); @@ -2620,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()); @@ -2639,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()); @@ -2660,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()); @@ -2679,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()); @@ -2698,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()); @@ -2721,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()); @@ -2740,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()); @@ -2760,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; @@ -2781,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); @@ -2842,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) { @@ -2850,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()); @@ -2861,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; @@ -2877,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()); @@ -2888,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; @@ -2904,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()); @@ -2915,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; @@ -2931,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()); @@ -2942,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; @@ -2958,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()); @@ -2969,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; @@ -2985,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()); @@ -2996,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; @@ -3012,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()); @@ -3023,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; @@ -3039,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()); @@ -3050,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; @@ -3066,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()); @@ -3077,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; @@ -3093,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()); @@ -3104,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; @@ -3114,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; @@ -3174,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; @@ -3236,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; @@ -3248,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); @@ -3288,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) { @@ -3296,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()); @@ -3307,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; @@ -3323,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()); @@ -3334,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; @@ -3350,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()); @@ -3361,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; @@ -3377,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()); @@ -3388,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; @@ -3404,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()); @@ -3415,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; @@ -3431,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()); @@ -3442,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; @@ -3458,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()); @@ -3469,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; @@ -3485,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()); @@ -3496,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; @@ -3512,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()); @@ -3523,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; @@ -3539,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()); @@ -3550,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; @@ -3566,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()); @@ -3577,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; @@ -3587,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; @@ -3651,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; @@ -3716,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; @@ -3728,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); @@ -3769,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) { @@ -3777,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()); @@ -3788,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; @@ -3804,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()); @@ -3815,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; @@ -3831,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()); @@ -3842,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; @@ -3858,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()); @@ -3869,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; @@ -3885,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()); @@ -3896,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; @@ -3912,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()); @@ -3923,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; @@ -3933,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; @@ -3977,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; @@ -4027,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; @@ -4039,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); @@ -4075,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) { @@ -4083,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()); @@ -4094,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; @@ -4110,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()); @@ -4121,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; @@ -4137,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()); @@ -4148,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; @@ -4164,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()); @@ -4175,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; @@ -4185,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; @@ -4221,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; @@ -4265,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; @@ -4277,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); @@ -4311,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) { @@ -4319,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()); @@ -4330,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; @@ -4346,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()); @@ -4357,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; @@ -4373,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()); @@ -4384,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; @@ -4400,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()); @@ -4411,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; @@ -4421,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; @@ -4457,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; @@ -4501,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; @@ -4513,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); @@ -4547,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) { @@ -4555,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()); @@ -4566,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; @@ -4582,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()); @@ -4593,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; @@ -4609,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()); @@ -4620,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; @@ -4636,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()); @@ -4647,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; @@ -4663,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()); @@ -4674,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; @@ -4690,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()); @@ -4701,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; @@ -4717,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()); @@ -4728,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; @@ -4744,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()); @@ -4755,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; @@ -4771,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()); @@ -4782,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; @@ -4798,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()); @@ -4809,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; @@ -4825,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()); @@ -4836,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; @@ -4852,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()); @@ -4863,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; @@ -4879,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()); @@ -4890,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; @@ -4906,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()); @@ -4917,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; @@ -4933,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()); @@ -4944,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; @@ -4960,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()); @@ -4971,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; @@ -4987,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()); @@ -4998,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; @@ -5014,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()); @@ -5025,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; @@ -5041,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()); @@ -5052,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; @@ -5068,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()); @@ -5079,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; @@ -5095,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()); @@ -5106,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; @@ -5122,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()); @@ -5133,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; @@ -5149,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()); @@ -5160,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; @@ -5176,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()); @@ -5187,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; @@ -5197,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; @@ -5313,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; @@ -5417,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; @@ -5429,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); @@ -5483,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) { @@ -5491,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()); @@ -5502,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; @@ -5518,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()); @@ -5529,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; @@ -5539,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; @@ -5567,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; @@ -5605,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; @@ -5617,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); @@ -5649,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*/); @@ -5674,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*/); @@ -5693,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()); @@ -5715,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()); @@ -5734,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*/); @@ -5753,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*/); @@ -5772,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*/); @@ -5791,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()); @@ -5813,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()); @@ -5832,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*/); @@ -5851,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()); @@ -5870,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()); @@ -5889,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()); @@ -5908,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()); @@ -5927,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()); @@ -5946,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()); @@ -5965,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()); @@ -5984,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()); @@ -6003,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()); @@ -6023,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; @@ -6044,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); @@ -6094,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*/); @@ -6119,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*/); @@ -6138,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*/); @@ -6157,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*/); @@ -6176,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*/); @@ -6195,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*/); @@ -6214,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*/); @@ -6233,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*/); @@ -6252,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*/); @@ -6271,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*/); @@ -6290,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*/); @@ -6309,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*/); @@ -6328,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()); @@ -6347,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()); @@ -6366,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()); @@ -6385,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()); @@ -6404,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()); @@ -6423,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()); @@ -6442,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()); @@ -6461,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()); @@ -6480,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()); @@ -6499,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()); @@ -6518,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()); @@ -6537,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()); @@ -6556,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()); @@ -6575,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()); @@ -6595,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; @@ -6616,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); @@ -6673,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*/); @@ -6694,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; @@ -6726,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; @@ -6767,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; @@ -6779,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); @@ -6810,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; @@ -6848,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; @@ -6892,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; @@ -6904,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); @@ -6934,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()); @@ -6959,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()); @@ -6980,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()); @@ -7006,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); @@ -7039,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; @@ -7081,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; @@ -7128,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; @@ -7140,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); @@ -7170,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; @@ -7208,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; @@ -7252,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; @@ -7264,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); @@ -7294,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; @@ -7344,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; @@ -7397,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; @@ -7409,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); @@ -7439,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()); @@ -7464,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()); @@ -7485,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()); @@ -7504,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()); @@ -7532,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); @@ -7566,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; @@ -7587,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()); @@ -7606,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()); @@ -7625,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()); @@ -7644,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()); @@ -7663,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()); @@ -7682,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()); @@ -7701,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()); @@ -7720,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*/); @@ -7739,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()); @@ -7758,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()); @@ -7777,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()); @@ -7794,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; @@ -7831,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; @@ -7845,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()); @@ -7865,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; @@ -7879,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()); @@ -7899,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; @@ -7913,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()); @@ -7933,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; @@ -7947,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()); @@ -7966,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()); @@ -7992,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); @@ -8044,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*/); @@ -8069,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*/); @@ -8090,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()); @@ -8101,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; @@ -8117,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()); @@ -8128,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; @@ -8138,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; @@ -8166,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; @@ -8204,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; @@ -8216,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); @@ -8250,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) { @@ -8258,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()); @@ -8269,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; @@ -8285,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()); @@ -8296,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; @@ -8312,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()); @@ -8323,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; @@ -8339,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()); @@ -8350,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; @@ -8366,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()); @@ -8377,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; @@ -8393,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()); @@ -8404,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; @@ -8420,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()); @@ -8431,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; @@ -8447,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()); @@ -8458,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; @@ -8474,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()); @@ -8485,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; @@ -8501,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()); @@ -8512,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; @@ -8528,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()); @@ -8539,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; @@ -8555,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()); @@ -8566,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; @@ -8582,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()); @@ -8593,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; @@ -8609,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()); @@ -8620,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; @@ -8636,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()); @@ -8647,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; @@ -8663,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()); @@ -8674,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; @@ -8690,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()); @@ -8701,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; @@ -8717,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()); @@ -8728,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; @@ -8744,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()); @@ -8755,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; @@ -8771,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()); @@ -8782,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; @@ -8798,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()); @@ -8809,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; @@ -8825,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()); @@ -8836,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; @@ -8852,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()); @@ -8863,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; @@ -8879,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()); @@ -8890,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; @@ -8906,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()); @@ -8917,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; @@ -8933,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()); @@ -8944,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; @@ -8960,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()); @@ -8971,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; @@ -8987,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()); @@ -8998,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; @@ -9008,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; @@ -9140,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; @@ -9256,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; @@ -9268,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); @@ -9326,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*/); @@ -9351,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*/); @@ -9370,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()); @@ -9389,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()); @@ -9415,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); @@ -9448,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); diff --git a/native/cocos/bindings/auto/jsb_scene_auto.h b/native/cocos/bindings/auto/jsb_scene_auto.h index 61c59ba0f0..7ce5795c15 100644 --- a/native/cocos/bindings/auto/jsb_scene_auto.h +++ b/native/cocos/bindings/auto/jsb_scene_auto.h @@ -24,32 +24,31 @@ ****************************************************************************/ #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); @@ -60,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); @@ -69,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); @@ -79,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); @@ -95,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); @@ -129,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); @@ -156,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); @@ -168,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); @@ -196,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); @@ -211,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); @@ -251,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); @@ -350,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); @@ -386,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); @@ -419,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); @@ -462,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); @@ -493,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); diff --git a/native/cocos/bindings/auto/jsb_spine_auto.cpp b/native/cocos/bindings/auto/jsb_spine_auto.cpp index f0ef1fbeee..37c36d97d0 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.cpp +++ b/native/cocos/bindings/auto/jsb_spine_auto.cpp @@ -29,22 +29,22 @@ #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*/); @@ -61,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*/); @@ -80,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()); @@ -99,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()); @@ -121,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()); @@ -136,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); @@ -157,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*/); @@ -182,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*/); @@ -201,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*/); @@ -220,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*/); @@ -239,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*/); @@ -258,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*/); @@ -277,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*/); @@ -296,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*/); @@ -315,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*/); @@ -334,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*/); @@ -353,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*/); @@ -372,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*/); @@ -391,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*/); @@ -410,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*/); @@ -429,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*/); @@ -448,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*/); @@ -467,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*/); @@ -486,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*/); @@ -505,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*/); @@ -524,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*/); @@ -543,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*/); @@ -562,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*/); @@ -581,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*/); @@ -601,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; @@ -615,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()); @@ -634,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()); @@ -653,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()); @@ -672,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()); @@ -691,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()); @@ -710,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()); @@ -729,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()); @@ -748,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()); @@ -767,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()); @@ -786,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()); @@ -805,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()); @@ -824,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()); @@ -843,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()); @@ -862,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()); @@ -881,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()); @@ -900,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()); @@ -915,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); @@ -971,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; @@ -1033,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()); @@ -1059,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()); @@ -1079,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; @@ -1094,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; @@ -1109,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; @@ -1123,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()); @@ -1145,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*/); @@ -1164,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*/); @@ -1183,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()); @@ -1200,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*/); @@ -1222,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*/); @@ -1241,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; @@ -1252,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"); @@ -1276,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()); @@ -1295,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()); @@ -1314,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()); @@ -1329,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); @@ -1360,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*/); @@ -1385,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 = {}; @@ -1409,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*/); @@ -1428,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()); @@ -1445,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); @@ -1510,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*/); @@ -1536,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; @@ -1550,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*/); @@ -1569,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*/); @@ -1589,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; @@ -1599,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); @@ -1620,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*/); @@ -1641,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); @@ -1658,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*/); @@ -1683,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*/); @@ -1702,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*/); @@ -1721,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*/); @@ -1740,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*/); @@ -1759,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()); @@ -1782,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()); @@ -1797,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); @@ -1820,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*/); @@ -1845,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*/); @@ -1864,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*/); @@ -1883,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*/); @@ -1902,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*/); @@ -1921,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*/); @@ -1940,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*/); @@ -1959,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*/); @@ -1978,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*/); @@ -1997,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*/); @@ -2016,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()); @@ -2035,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*/); @@ -2054,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*/); @@ -2073,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*/); @@ -2092,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*/); @@ -2111,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*/); @@ -2130,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*/); @@ -2149,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*/); @@ -2168,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*/); @@ -2187,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*/); @@ -2206,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*/); @@ -2225,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*/); @@ -2244,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*/); @@ -2263,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*/); @@ -2282,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*/); @@ -2301,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*/); @@ -2320,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*/); @@ -2339,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*/); @@ -2358,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*/); @@ -2377,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*/); @@ -2396,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*/); @@ -2415,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*/); @@ -2434,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()); @@ -2453,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()); @@ -2472,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()); @@ -2491,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()); @@ -2510,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()); @@ -2529,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()); @@ -2548,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()); @@ -2567,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()); @@ -2586,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()); @@ -2605,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()); @@ -2624,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()); @@ -2643,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()); @@ -2662,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()); @@ -2681,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()); @@ -2700,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()); @@ -2719,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()); @@ -2738,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()); @@ -2757,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()); @@ -2776,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()); @@ -2796,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; @@ -2810,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()); @@ -2829,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()); @@ -2848,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()); @@ -2867,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()); @@ -2887,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; @@ -2899,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 = {}; @@ -2915,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; @@ -2948,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); @@ -2965,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*/); @@ -2980,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); @@ -3056,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*/); @@ -3081,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*/); @@ -3100,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*/); @@ -3119,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*/); @@ -3138,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*/); @@ -3157,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*/); @@ -3176,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*/); @@ -3195,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*/); @@ -3214,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*/); @@ -3233,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*/); @@ -3252,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*/); @@ -3271,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*/); @@ -3290,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*/); @@ -3309,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()); @@ -3328,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()); @@ -3347,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()); @@ -3366,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()); @@ -3385,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()); @@ -3404,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()); @@ -3423,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()); @@ -3442,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()); @@ -3461,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()); @@ -3480,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()); @@ -3495,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); @@ -3534,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()); @@ -3559,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*/); @@ -3578,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*/); @@ -3597,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*/); @@ -3616,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*/); @@ -3635,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()); @@ -3654,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()); @@ -3669,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); @@ -3692,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*/); @@ -3713,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); @@ -3730,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*/); @@ -3755,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*/); @@ -3774,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()); @@ -3789,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); @@ -3808,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*/); @@ -3835,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()); @@ -3846,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; @@ -3862,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()); @@ -3873,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; @@ -3889,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()); @@ -3900,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; @@ -3916,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()); @@ -3927,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; @@ -3937,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); @@ -3958,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"); @@ -3988,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()); @@ -4010,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*/); @@ -4029,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*/); @@ -4048,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()); @@ -4075,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()); @@ -4094,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()); @@ -4109,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); @@ -4132,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*/); @@ -4157,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*/); @@ -4176,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*/); @@ -4195,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 = {}; @@ -4224,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()); @@ -4239,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); @@ -4260,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*/); @@ -4285,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*/); @@ -4304,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*/); @@ -4323,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()); @@ -4342,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()); @@ -4357,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); @@ -4378,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*/); @@ -4403,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*/); @@ -4422,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*/); @@ -4441,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*/); @@ -4460,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()); @@ -4479,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()); @@ -4494,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); @@ -4516,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*/); @@ -4541,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*/); @@ -4560,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*/); @@ -4575,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); @@ -4594,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*/); @@ -4619,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*/); @@ -4638,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*/); @@ -4657,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*/); @@ -4676,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*/); @@ -4695,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*/); @@ -4714,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*/); @@ -4733,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()); @@ -4752,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()); @@ -4771,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()); @@ -4790,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()); @@ -4809,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()); @@ -4824,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); @@ -4852,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*/); @@ -4877,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*/); @@ -4896,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*/); @@ -4915,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*/); @@ -4934,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*/); @@ -4953,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*/); @@ -4972,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*/); @@ -4991,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()); @@ -5010,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()); @@ -5029,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()); @@ -5048,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()); @@ -5067,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()); @@ -5086,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()); @@ -5101,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); @@ -5130,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()); @@ -5155,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*/); @@ -5174,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*/); @@ -5193,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*/); @@ -5212,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()); @@ -5229,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); @@ -5250,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*/); @@ -5275,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()); @@ -5294,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*/); @@ -5313,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*/); @@ -5332,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*/); @@ -5351,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*/); @@ -5370,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*/); @@ -5389,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*/); @@ -5408,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*/); @@ -5427,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*/); @@ -5446,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()); @@ -5465,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()); @@ -5484,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()); @@ -5503,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()); @@ -5522,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()); @@ -5541,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()); @@ -5560,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()); @@ -5580,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; @@ -5590,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); @@ -5624,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*/); @@ -5649,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()); @@ -5668,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*/); @@ -5687,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*/); @@ -5706,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*/); @@ -5725,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*/); @@ -5744,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*/); @@ -5763,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*/); @@ -5782,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()); @@ -5801,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()); @@ -5820,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()); @@ -5839,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()); @@ -5858,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()); @@ -5877,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()); @@ -5896,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()); @@ -5911,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); @@ -5942,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*/); @@ -5967,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()); @@ -5994,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); @@ -6012,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*/); @@ -6037,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*/); @@ -6056,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*/); @@ -6075,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*/); @@ -6094,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*/); @@ -6113,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*/); @@ -6132,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*/); @@ -6151,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*/); @@ -6170,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*/); @@ -6189,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*/); @@ -6208,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*/); @@ -6227,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*/); @@ -6246,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*/); @@ -6265,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*/); @@ -6284,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*/); @@ -6303,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*/); @@ -6322,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*/); @@ -6341,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*/); @@ -6360,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*/); @@ -6379,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*/); @@ -6398,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*/); @@ -6417,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*/); @@ -6436,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*/); @@ -6455,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*/); @@ -6474,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()); @@ -6493,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()); @@ -6512,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()); @@ -6531,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()); @@ -6550,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()); @@ -6569,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()); @@ -6588,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()); @@ -6607,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()); @@ -6626,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()); @@ -6645,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()); @@ -6664,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()); @@ -6683,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()); @@ -6702,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()); @@ -6721,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()); @@ -6740,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()); @@ -6759,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()); @@ -6778,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()); @@ -6798,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; @@ -6808,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); @@ -6866,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*/); @@ -6891,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*/); @@ -6910,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*/); @@ -6929,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*/); @@ -6948,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()); @@ -6967,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()); @@ -6982,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); @@ -7004,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; @@ -7025,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()); @@ -7044,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*/); @@ -7063,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*/); @@ -7082,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*/); @@ -7101,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*/); @@ -7120,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*/); @@ -7139,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*/); @@ -7158,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*/); @@ -7177,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*/); @@ -7196,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()); @@ -7215,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()); @@ -7234,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()); @@ -7253,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()); @@ -7272,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()); @@ -7291,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()); @@ -7311,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; @@ -7321,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); @@ -7354,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()); @@ -7379,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*/); @@ -7398,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*/); @@ -7417,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*/); @@ -7436,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*/); @@ -7455,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*/); @@ -7474,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*/); @@ -7493,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*/); @@ -7512,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*/); @@ -7531,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*/); @@ -7550,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()); @@ -7569,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()); @@ -7588,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()); @@ -7607,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()); @@ -7626,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()); @@ -7645,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()); @@ -7664,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()); @@ -7683,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()); @@ -7702,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()); @@ -7717,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); @@ -7752,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*/); @@ -7773,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); @@ -7790,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*/); @@ -7815,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()); @@ -7834,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); @@ -7852,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*/); @@ -7873,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); @@ -7890,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*/); @@ -7915,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*/); @@ -7934,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*/); @@ -7953,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*/); @@ -7972,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()); @@ -7991,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()); @@ -8010,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()); @@ -8025,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); @@ -8048,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*/); @@ -8073,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*/); @@ -8092,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*/); @@ -8111,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*/); @@ -8130,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*/); @@ -8149,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*/); @@ -8168,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*/); @@ -8187,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*/); @@ -8206,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*/); @@ -8225,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*/); @@ -8244,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*/); @@ -8263,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*/); @@ -8282,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*/); @@ -8301,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*/); @@ -8320,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*/); @@ -8339,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*/); @@ -8358,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*/); @@ -8377,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*/); @@ -8396,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()); @@ -8415,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()); @@ -8434,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()); @@ -8453,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()); @@ -8472,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()); @@ -8491,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()); @@ -8510,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()); @@ -8529,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()); @@ -8548,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()); @@ -8567,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()); @@ -8586,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()); @@ -8605,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()); @@ -8632,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()); @@ -8651,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()); @@ -8670,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()); @@ -8690,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; @@ -8700,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); @@ -8750,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*/); @@ -8775,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*/); @@ -8794,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*/); @@ -8813,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()); @@ -8832,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()); @@ -8851,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); @@ -8872,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*/); @@ -8897,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 = {}; @@ -8918,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); @@ -8936,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*/); @@ -8957,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); @@ -8974,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*/); @@ -8995,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); @@ -9012,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()); @@ -9040,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()); @@ -9062,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()); @@ -9084,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()); @@ -9106,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()); @@ -9128,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()); @@ -9150,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()); @@ -9170,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) { @@ -9198,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; @@ -9218,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()); @@ -9237,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*/); @@ -9256,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*/); @@ -9275,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()); @@ -9294,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()); @@ -9313,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()); @@ -9332,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*/); @@ -9351,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*/); @@ -9370,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*/); @@ -9389,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*/); @@ -9408,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()); @@ -9427,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*/); @@ -9446,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()); @@ -9465,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()); @@ -9484,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*/); @@ -9503,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*/); @@ -9523,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; @@ -9537,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 = {}; @@ -9559,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; @@ -9573,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 = {}; @@ -9594,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()); @@ -9613,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()); @@ -9630,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; @@ -9667,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; @@ -9681,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()); @@ -9701,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; @@ -9715,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()); @@ -9734,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()); @@ -9753,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()); @@ -9773,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; @@ -9788,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; @@ -9798,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); @@ -9853,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 = {}; @@ -9883,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 = {}; @@ -9909,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; @@ -9960,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*/); @@ -9979,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()); @@ -10001,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*/); @@ -10018,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) { @@ -10057,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); @@ -10100,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) { @@ -10118,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()); @@ -10146,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()); @@ -10168,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()); @@ -10190,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()); @@ -10212,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()); @@ -10234,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()); @@ -10256,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()); @@ -10278,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()); @@ -10300,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()); @@ -10322,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()); @@ -10344,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()); @@ -10366,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()); @@ -10385,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*/); @@ -10404,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()); @@ -10423,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*/); @@ -10442,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()); @@ -10461,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*/); @@ -10480,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*/); @@ -10499,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*/); @@ -10518,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()); @@ -10537,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*/); @@ -10556,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*/); @@ -10575,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()); @@ -10594,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()); @@ -10613,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()); @@ -10632,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()); @@ -10651,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*/); @@ -10670,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*/); @@ -10689,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*/); @@ -10708,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*/); @@ -10727,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()); @@ -10746,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()); @@ -10765,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()); @@ -10784,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()); @@ -10803,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()); @@ -10822,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()); @@ -10841,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()); @@ -10860,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()); @@ -10879,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()); @@ -10898,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()); @@ -10917,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()); @@ -10932,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); @@ -10989,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()); @@ -11014,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()); @@ -11033,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()); @@ -11057,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()); @@ -11076,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()); @@ -11095,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*/); @@ -11114,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()); @@ -11135,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()); @@ -11154,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); @@ -11178,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*/); @@ -11203,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*/); @@ -11222,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*/); @@ -11241,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*/); @@ -11260,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*/); @@ -11279,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*/); @@ -11298,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*/); @@ -11317,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*/); @@ -11336,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*/); @@ -11355,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()); @@ -11374,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()); @@ -11394,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; @@ -11404,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); @@ -11432,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*/); @@ -11457,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*/); @@ -11476,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*/); @@ -11495,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*/); @@ -11514,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*/); @@ -11533,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*/); @@ -11552,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*/); @@ -11571,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*/); @@ -11590,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()); @@ -11609,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()); @@ -11628,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()); @@ -11643,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); @@ -11670,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; @@ -11691,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()); @@ -11710,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*/); @@ -11729,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*/); @@ -11748,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*/); @@ -11767,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*/); @@ -11786,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*/); @@ -11805,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*/); @@ -11824,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*/); @@ -11843,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*/); @@ -11862,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()); @@ -11881,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()); @@ -11900,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()); @@ -11919,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()); @@ -11938,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()); @@ -11957,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()); @@ -11977,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; @@ -11987,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); @@ -12020,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()); @@ -12045,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*/); @@ -12064,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*/); @@ -12083,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*/); @@ -12102,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*/); @@ -12121,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*/); @@ -12140,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*/); @@ -12159,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*/); @@ -12178,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*/); @@ -12197,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*/); @@ -12216,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*/); @@ -12235,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*/); @@ -12254,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*/); @@ -12273,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*/); @@ -12288,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); @@ -12318,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*/); @@ -12343,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()); @@ -12368,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); @@ -12386,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*/); @@ -12411,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*/); @@ -12430,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 = {}; @@ -12465,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()); @@ -12480,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); @@ -12500,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) { @@ -12518,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*/); @@ -12543,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*/); @@ -12562,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()); @@ -12581,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()); @@ -12596,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); @@ -12616,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*/); @@ -12641,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*/); @@ -12660,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*/); @@ -12679,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*/); @@ -12698,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*/); @@ -12717,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*/); @@ -12736,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()); @@ -12755,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()); @@ -12774,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()); @@ -12793,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()); @@ -12812,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()); @@ -12831,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()); @@ -12846,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); @@ -12874,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; @@ -12895,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*/); @@ -12914,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*/); @@ -12933,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*/); @@ -12952,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*/); @@ -12971,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 = {}; @@ -12995,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"); @@ -13019,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"); @@ -13049,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; } @@ -13082,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; @@ -13103,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()); @@ -13125,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()); @@ -13147,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 = {}; @@ -13171,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*/); @@ -13190,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*/); @@ -13209,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*/); @@ -13228,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*/); @@ -13247,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*/); @@ -13266,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*/); @@ -13285,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()); @@ -13297,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"); @@ -13306,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()); @@ -13317,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()); @@ -13337,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()); @@ -13357,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; @@ -13371,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*/); @@ -13391,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; @@ -13406,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; @@ -13420,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()); @@ -13439,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()); @@ -13458,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()); @@ -13475,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) { @@ -13503,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; @@ -13523,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()); @@ -13543,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; @@ -13557,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 = {}; @@ -13582,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()); @@ -13601,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()); @@ -13620,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()); @@ -13639,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()); @@ -13656,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; @@ -13692,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 = {}; @@ -13714,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; @@ -13728,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()); @@ -13748,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; @@ -13762,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()); @@ -13781,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()); @@ -13801,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; @@ -13815,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()); @@ -13835,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; @@ -13849,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; } @@ -14036,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()); @@ -14060,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()); @@ -14084,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()); @@ -14100,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()); @@ -14122,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; @@ -14146,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; @@ -14160,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()); @@ -14182,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*/); @@ -14211,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*/); @@ -14230,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()); @@ -14256,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()); @@ -14275,14 +14369,13 @@ 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()); @@ -14294,22 +14387,19 @@ static bool js_spine_SkeletonAnimation_setCompleteListener(se::State& s) // NOLI 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; @@ -14323,14 +14413,13 @@ 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()); @@ -14342,22 +14431,19 @@ static bool js_spine_SkeletonAnimation_setDisposeListener(se::State& s) // NOLIN 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; @@ -14371,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()); @@ -14395,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()); @@ -14414,14 +14500,13 @@ 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()); @@ -14433,22 +14518,19 @@ static bool js_spine_SkeletonAnimation_setEndListener(se::State& s) // NOLINT(re 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; @@ -14462,14 +14544,13 @@ 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()); @@ -14482,22 +14563,19 @@ static bool js_spine_SkeletonAnimation_setEventListener(se::State& s) // NOLINT( 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; @@ -14511,14 +14589,13 @@ 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()); @@ -14530,22 +14607,19 @@ static bool js_spine_SkeletonAnimation_setInterruptListener(se::State& s) // NOL 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; @@ -14559,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()); @@ -14582,14 +14656,13 @@ 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()); @@ -14601,22 +14674,19 @@ static bool js_spine_SkeletonAnimation_setStartListener(se::State& s) // NOLINT( 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; @@ -14630,16 +14700,15 @@ 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()); @@ -14651,22 +14720,19 @@ static bool js_spine_SkeletonAnimation_setTrackCompleteListener(se::State& s) // 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; @@ -14680,16 +14746,15 @@ 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()); @@ -14701,22 +14766,19 @@ static bool js_spine_SkeletonAnimation_setTrackDisposeListener(se::State& s) // 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; @@ -14730,16 +14792,15 @@ 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()); @@ -14751,22 +14812,19 @@ static bool js_spine_SkeletonAnimation_setTrackEndListener(se::State& s) // NOLI 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; @@ -14780,16 +14838,15 @@ 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()); @@ -14802,22 +14859,19 @@ static bool js_spine_SkeletonAnimation_setTrackEventListener(se::State& s) // NO 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; @@ -14831,16 +14885,15 @@ 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()); @@ -14852,22 +14905,19 @@ static bool js_spine_SkeletonAnimation_setTrackInterruptListener(se::State& s) / 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; @@ -14881,16 +14931,15 @@ 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()); @@ -14902,22 +14951,19 @@ static bool js_spine_SkeletonAnimation_setTrackStartListener(se::State& s) // NO 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; @@ -14929,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(); @@ -14947,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 = {}; @@ -14966,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); @@ -14985,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 = {}; @@ -15004,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); @@ -15023,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); @@ -15056,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; } @@ -15112,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"); @@ -15132,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()); @@ -15151,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; @@ -15165,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()); @@ -15187,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()); @@ -15209,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()); @@ -15231,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 = {}; @@ -15255,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*/); @@ -15274,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*/); @@ -15293,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*/); @@ -15312,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*/); @@ -15331,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*/); @@ -15351,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; @@ -15366,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; @@ -15380,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()); @@ -15399,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"); @@ -15420,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()); @@ -15437,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) { @@ -15465,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; @@ -15485,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()); @@ -15505,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; @@ -15519,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 = {}; @@ -15544,14 +15599,13 @@ 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()); @@ -15563,22 +15617,19 @@ static bool js_spine_SkeletonCacheAnimation_setCompleteListener(se::State& s) // 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; @@ -15592,14 +15643,13 @@ 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()); @@ -15611,22 +15661,19 @@ static bool js_spine_SkeletonCacheAnimation_setEndListener(se::State& s) // NOLI 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; @@ -15640,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()); @@ -15657,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; @@ -15694,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; @@ -15708,14 +15761,13 @@ 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()); @@ -15727,22 +15779,19 @@ static bool js_spine_SkeletonCacheAnimation_setStartListener(se::State& s) // NO 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; @@ -15756,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()); @@ -15776,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; @@ -15790,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()); @@ -15810,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; @@ -15824,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()); @@ -15844,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; @@ -15858,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()); @@ -15877,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"); @@ -15890,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; } @@ -15948,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()); @@ -15976,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()); @@ -15993,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*/); @@ -16011,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; @@ -16021,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); @@ -16054,20 +16099,19 @@ 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()); @@ -16079,22 +16123,19 @@ static bool js_spine_SkeletonDataMgr_setDestroyCallback(se::State& s) // NOLINT( 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; @@ -16106,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*/); @@ -16132,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); @@ -16163,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); diff --git a/native/cocos/bindings/auto/jsb_spine_auto.h b/native/cocos/bindings/auto/jsb_spine_auto.h index 8cc805d27f..6a22d5591f 100644 --- a/native/cocos/bindings/auto/jsb_spine_auto.h +++ b/native/cocos/bindings/auto/jsb_spine_auto.h @@ -24,14 +24,14 @@ ****************************************************************************/ #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); @@ -44,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); @@ -92,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); @@ -115,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); @@ -128,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); @@ -141,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); @@ -150,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); @@ -165,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); @@ -233,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); @@ -264,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); @@ -279,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); @@ -288,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); @@ -299,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); @@ -308,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); @@ -323,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); @@ -336,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); @@ -349,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); @@ -363,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); @@ -374,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); @@ -394,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); @@ -415,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); @@ -428,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); @@ -454,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); @@ -477,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); @@ -487,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); @@ -537,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); @@ -551,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); @@ -576,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); @@ -603,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); @@ -612,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); @@ -622,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); @@ -631,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); @@ -646,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); @@ -688,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); @@ -701,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); @@ -711,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); @@ -720,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); @@ -729,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); @@ -776,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); @@ -791,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); @@ -799,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); @@ -848,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); @@ -864,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); @@ -884,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); @@ -903,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); @@ -928,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); @@ -950,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); @@ -960,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); @@ -972,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); @@ -980,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); @@ -992,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); @@ -1012,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); @@ -1029,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); @@ -1075,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); @@ -1112,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); @@ -1154,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); @@ -1166,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); diff --git a/native/cocos/bindings/auto/jsb_video_auto.cpp b/native/cocos/bindings/auto/jsb_video_auto.cpp index f04aaf91af..c4ac38e957 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.cpp +++ b/native/cocos/bindings/auto/jsb_video_auto.cpp @@ -25,34 +25,33 @@ #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()); @@ -60,22 +59,19 @@ static bool js_video_VideoPlayer_addEventListener(se::State& s) // NOLINT(readab 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; @@ -89,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*/); @@ -108,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*/); @@ -127,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*/); @@ -146,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()); @@ -166,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; @@ -181,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; @@ -195,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()); @@ -214,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 = {}; @@ -239,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()); @@ -258,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()); @@ -277,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()); @@ -296,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()); @@ -316,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; @@ -336,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 @@ -350,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; @@ -387,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 1c640690af..464435f341 100644 --- a/native/cocos/bindings/auto/jsb_video_auto.h +++ b/native/cocos/bindings/auto/jsb_video_auto.h @@ -26,13 +26,13 @@ #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 a07ffdcc91..e30b440b89 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.cpp +++ b/native/cocos/bindings/auto/jsb_webview_auto.cpp @@ -25,27 +25,27 @@ #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*/); @@ -62,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*/); @@ -81,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()); @@ -100,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*/); @@ -119,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*/); @@ -138,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*/); @@ -157,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()); @@ -177,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; @@ -192,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; @@ -206,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 = {}; @@ -231,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()); @@ -250,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()); @@ -278,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()); @@ -298,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; @@ -312,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()); @@ -331,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()); @@ -350,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 = {}; @@ -375,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()); @@ -394,14 +394,13 @@ 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()); @@ -414,22 +413,19 @@ static bool js_webview_WebView_setOnDidFailLoading(se::State& s) // NOLINT(reada 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; @@ -443,14 +439,13 @@ 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()); @@ -463,22 +458,19 @@ static bool js_webview_WebView_setOnDidFinishLoading(se::State& s) // NOLINT(rea 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; @@ -492,14 +484,13 @@ 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()); @@ -512,22 +503,19 @@ static bool js_webview_WebView_setOnJSCallback(se::State& s) // NOLINT(readabili 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; @@ -541,14 +529,13 @@ 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()); @@ -561,10 +548,10 @@ static bool js_webview_WebView_setOnShouldStartLoading(se::State& s) // NOLINT(r 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(); } @@ -574,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; @@ -594,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()); @@ -613,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()); @@ -633,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; @@ -645,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(); @@ -661,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 @@ -674,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; @@ -723,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 a19341b01d..94e27d18ab 100644 --- a/native/cocos/bindings/auto/jsb_webview_auto.h +++ b/native/cocos/bindings/auto/jsb_webview_auto.h @@ -26,13 +26,13 @@ #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.h b/native/cocos/bindings/dop/BufferAllocator.h index 2e70c7ccb6..867507672e 100644 --- a/native/cocos/bindings/dop/BufferAllocator.h +++ b/native/cocos/bindings/dop/BufferAllocator.h @@ -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.h b/native/cocos/bindings/dop/BufferPool.h index 7bbd039cc2..18fef82fd3 100644 --- a/native/cocos/bindings/dop/BufferPool.h +++ b/native/cocos/bindings/dop/BufferPool.h @@ -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 3576eecdc8..31068d9e46 100644 --- a/native/cocos/bindings/dop/PoolType.h +++ b/native/cocos/bindings/dop/PoolType.h @@ -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/event/EventDispatcher.h b/native/cocos/bindings/event/EventDispatcher.h index 28e74baa76..9a279167dc 100644 --- a/native/cocos/bindings/event/EventDispatcher.h +++ b/native/cocos/bindings/event/EventDispatcher.h @@ -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.h b/native/cocos/bindings/jswrapper/HandleObject.h index f55148f5c4..cf764897aa 100644 --- a/native/cocos/bindings/jswrapper/HandleObject.h +++ b/native/cocos/bindings/jswrapper/HandleObject.h @@ -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.h b/native/cocos/bindings/jswrapper/MappingUtils.h index 5bc1646289..8ba0eaa078 100644 --- a/native/cocos/bindings/jswrapper/MappingUtils.h +++ b/native/cocos/bindings/jswrapper/MappingUtils.h @@ -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/SeApi.h b/native/cocos/bindings/jswrapper/SeApi.h index 26ffc11f08..f320cc66cc 100644 --- a/native/cocos/bindings/jswrapper/SeApi.h +++ b/native/cocos/bindings/jswrapper/SeApi.h @@ -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.h b/native/cocos/bindings/jswrapper/State.h index 00aae197d7..6227a01725 100644 --- a/native/cocos/bindings/jswrapper/State.h +++ b/native/cocos/bindings/jswrapper/State.h @@ -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 f1a7dfea70..8dc4014f0d 100644 --- a/native/cocos/bindings/jswrapper/Value.cpp +++ b/native/cocos/bindings/jswrapper/Value.cpp @@ -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/chakracore/Base.h b/native/cocos/bindings/jswrapper/chakracore/Base.h index 9181283e63..5a3b50d686 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Base.h +++ b/native/cocos/bindings/jswrapper/chakracore/Base.h @@ -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 69c9f4bd4b..40427e8200 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Class.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Class.cpp @@ -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 b07a3c09b7..979f0ad5fa 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Class.h +++ b/native/cocos/bindings/jswrapper/chakracore/Class.h @@ -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 e01c73f9a1..a433547ddd 100644 --- a/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/chakracore/HelperMacros.h @@ -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 4523ce4459..c70f395259 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Object.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Object.cpp @@ -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 7dce0b9f61..b204ea5657 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Object.h +++ b/native/cocos/bindings/jswrapper/chakracore/Object.h @@ -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 e2339aaa72..5ea1c16ceb 100644 --- a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.cpp @@ -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 405dfc9ad6..9a4fffb702 100644 --- a/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/chakracore/ScriptEngine.h @@ -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 f5bd3e6dad..e66ccb97b5 100644 --- a/native/cocos/bindings/jswrapper/chakracore/SeApi.h +++ b/native/cocos/bindings/jswrapper/chakracore/SeApi.h @@ -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 6d98812916..1fc297a961 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Utils.cpp +++ b/native/cocos/bindings/jswrapper/chakracore/Utils.cpp @@ -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 b2994a8ace..abe0d6c271 100644 --- a/native/cocos/bindings/jswrapper/chakracore/Utils.h +++ b/native/cocos/bindings/jswrapper/chakracore/Utils.h @@ -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/jsc/Base.h b/native/cocos/bindings/jswrapper/jsc/Base.h index 0d29442499..dd3142d638 100644 --- a/native/cocos/bindings/jswrapper/jsc/Base.h +++ b/native/cocos/bindings/jswrapper/jsc/Base.h @@ -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 ac97ef2c23..1c778f2ed2 100644 --- a/native/cocos/bindings/jswrapper/jsc/Class.cpp +++ b/native/cocos/bindings/jswrapper/jsc/Class.cpp @@ -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 7024b268d5..c19bce5e51 100644 --- a/native/cocos/bindings/jswrapper/jsc/Class.h +++ b/native/cocos/bindings/jswrapper/jsc/Class.h @@ -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 d7c9a47fbe..4b94262d85 100644 --- a/native/cocos/bindings/jswrapper/jsc/EJConvert.h +++ b/native/cocos/bindings/jswrapper/jsc/EJConvert.h @@ -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 b2e894e2ae..61b712e799 100644 --- a/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h +++ b/native/cocos/bindings/jswrapper/jsc/EJConvertTypedArray.h @@ -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 91e526463b..4792ba7bc8 100644 --- a/native/cocos/bindings/jswrapper/jsc/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/jsc/HelperMacros.h @@ -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 16b3a79eb2..215362e320 100644 --- a/native/cocos/bindings/jswrapper/jsc/Object.h +++ b/native/cocos/bindings/jswrapper/jsc/Object.h @@ -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/ScriptEngine.h b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h index 9d46d98986..d3c8baa839 100644 --- a/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/jsc/ScriptEngine.h @@ -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/SeApi.h b/native/cocos/bindings/jswrapper/jsc/SeApi.h index 6c8b2c39c5..3d7d769f6d 100644 --- a/native/cocos/bindings/jswrapper/jsc/SeApi.h +++ b/native/cocos/bindings/jswrapper/jsc/SeApi.h @@ -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 cb0a6b28f1..6a17b43a09 100644 --- a/native/cocos/bindings/jswrapper/jsc/Utils.cpp +++ b/native/cocos/bindings/jswrapper/jsc/Utils.cpp @@ -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 f219d76177..aedb000652 100644 --- a/native/cocos/bindings/jswrapper/jsc/Utils.h +++ b/native/cocos/bindings/jswrapper/jsc/Utils.h @@ -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 3af54ac1d9..d75a1b88a3 100644 --- a/native/cocos/bindings/jswrapper/sm/Base.h +++ b/native/cocos/bindings/jswrapper/sm/Base.h @@ -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 863035bb1e..12a8507795 100644 --- a/native/cocos/bindings/jswrapper/sm/Class.cpp +++ b/native/cocos/bindings/jswrapper/sm/Class.cpp @@ -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 8186bca67b..d3466d97c9 100644 --- a/native/cocos/bindings/jswrapper/sm/Class.h +++ b/native/cocos/bindings/jswrapper/sm/Class.h @@ -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 dc2926c891..0e5a746e8e 100644 --- a/native/cocos/bindings/jswrapper/sm/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/sm/HelperMacros.h @@ -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.h b/native/cocos/bindings/jswrapper/sm/Object.h index 7c102d4cbe..a56277d70f 100644 --- a/native/cocos/bindings/jswrapper/sm/Object.h +++ b/native/cocos/bindings/jswrapper/sm/Object.h @@ -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 8bc7200b0a..609d3b1462 100644 --- a/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/sm/ScriptEngine.cpp @@ -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 5233954624..6c73860b09 100644 --- a/native/cocos/bindings/jswrapper/sm/ScriptEngine.h +++ b/native/cocos/bindings/jswrapper/sm/ScriptEngine.h @@ -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 6c8b2c39c5..3d7d769f6d 100644 --- a/native/cocos/bindings/jswrapper/sm/SeApi.h +++ b/native/cocos/bindings/jswrapper/sm/SeApi.h @@ -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 79080dc63f..1d73e6369b 100644 --- a/native/cocos/bindings/jswrapper/sm/Utils.cpp +++ b/native/cocos/bindings/jswrapper/sm/Utils.cpp @@ -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 07d51859dc..627538bb79 100644 --- a/native/cocos/bindings/jswrapper/sm/Utils.h +++ b/native/cocos/bindings/jswrapper/sm/Utils.h @@ -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 34d5234a04..a8567c0083 100644 --- a/native/cocos/bindings/jswrapper/v8/Base.h +++ b/native/cocos/bindings/jswrapper/v8/Base.h @@ -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 adbb83e0dc..55ea98db44 100644 --- a/native/cocos/bindings/jswrapper/v8/Class.cpp +++ b/native/cocos/bindings/jswrapper/v8/Class.cpp @@ -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 1607bf32b6..7eb7de5a23 100644 --- a/native/cocos/bindings/jswrapper/v8/Class.h +++ b/native/cocos/bindings/jswrapper/v8/Class.h @@ -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.h b/native/cocos/bindings/jswrapper/v8/HelperMacros.h index 5bb3efea75..36ebede090 100644 --- a/native/cocos/bindings/jswrapper/v8/HelperMacros.h +++ b/native/cocos/bindings/jswrapper/v8/HelperMacros.h @@ -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 2fda7b18ce..3c8fb7187b 100644 --- a/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp +++ b/native/cocos/bindings/jswrapper/v8/MissingSymbols.cpp @@ -25,16 +25,15 @@ #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 5d8cf5b7e4..a68086020c 100644 --- a/native/cocos/bindings/jswrapper/v8/MissingSymbols.h +++ b/native/cocos/bindings/jswrapper/v8/MissingSymbols.h @@ -23,13 +23,13 @@ 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) @@ -42,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/ObjectWrap.cpp b/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp index 555ab03501..53bbd3ba72 100644 --- a/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp +++ b/native/cocos/bindings/jswrapper/v8/ObjectWrap.cpp @@ -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 558dcf05b9..2c899bb2fd 100644 --- a/native/cocos/bindings/jswrapper/v8/ObjectWrap.h +++ b/native/cocos/bindings/jswrapper/v8/ObjectWrap.h @@ -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 f23179a9d7..2c2349dd23 100644 --- a/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp +++ b/native/cocos/bindings/jswrapper/v8/ScriptEngine.cpp @@ -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/SeApi.h b/native/cocos/bindings/jswrapper/v8/SeApi.h index 06b2c7f1d6..e66ccb97b5 100644 --- a/native/cocos/bindings/jswrapper/v8/SeApi.h +++ b/native/cocos/bindings/jswrapper/v8/SeApi.h @@ -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 11b8681710..55eeb9d234 100644 --- a/native/cocos/bindings/jswrapper/v8/Utils.cpp +++ b/native/cocos/bindings/jswrapper/v8/Utils.cpp @@ -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 338afa64b1..1c5e1c7df1 100644 --- a/native/cocos/bindings/jswrapper/v8/Utils.h +++ b/native/cocos/bindings/jswrapper/v8/Utils.h @@ -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 05249478f7..9f435819a0 100644 --- a/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp +++ b/native/cocos/bindings/manual/JavaScriptJavaBridge.cpp @@ -24,9 +24,9 @@ ****************************************************************************/ #include "cocos/bindings/manual/JavaScriptJavaBridge.h" +#include "cocos/application/ApplicationManager.h" #include "cocos/base/UTF8.h" #include "cocos/bindings/manual/jsb_conversions.h" -#include "cocos/application/ApplicationManager.h" #if CC_PLATFORM == CC_PLATFORM_ANDROID #include @@ -44,7 +44,7 @@ #ifndef ORG_JAVABRIDGE_CLASS_NAME #define ORG_JAVABRIDGE_CLASS_NAME com_cocos_lib_CocosJavascriptJavaBridge #endif -#define JNI_JSJAVABRIDGE(FUNC) JNI_METHOD1(ORG_JAVABRIDGE_CLASS_NAME, FUNC) +#define JNI_JSJAVABRIDGE(FUNC) JNI_METHOD1(ORG_JAVABRIDGE_CLASS_NAME, FUNC) #define JSJ_ERR_OK (0) #define JSJ_ERR_TYPE_NOT_SUPPORT (-1) #define JSJ_ERR_INVALID_SIGNATURES (-2) @@ -81,10 +81,9 @@ public: class CallInfo { public: CallInfo(const char *className, const char *methodName, const char *methodSig) - : _mClassName(className), - _mMethodName(methodName), - _mMethodSig(methodSig) - { + : _mClassName(className), + _mMethodName(methodName), + _mMethodSig(methodSig) { memset(&_mRet, 0, sizeof(_mRet)); _mValid = validateMethodSig() && getMethodInfo(); } @@ -126,7 +125,7 @@ public: } } - JNIEnv *getEnv() const{ + JNIEnv *getEnv() const { return _mEnv; } @@ -173,17 +172,17 @@ public: }; static bool convertReturnValue(ReturnValue retValue, ValueType type, se::Value *ret); - }; -using JsCallback = std::function; -class ScriptNativeBridge{ +using JsCallback = std::function; +class ScriptNativeBridge { public: - void callByNative(const std::string& arg0, const std::string& arg1); - inline void setCallback(const JsCallback& cb){ + void callByNative(const std::string &arg0, const std::string &arg1); + inline void setCallback(const JsCallback &cb) { _callback = cb; } - static ScriptNativeBridge* bridgeCxxInstance; - se::Value jsCb; + static ScriptNativeBridge *bridgeCxxInstance; + se::Value jsCb; + private: JsCallback _callback{nullptr}; // NOLINT(readability-identifier-naming) }; @@ -216,10 +215,12 @@ Java_com_cocos_lib_JsbBridge_nativeSendToScript(JNIEnv *env, jclass clazz, jstri } } // extern "C" -ScriptNativeBridge* ScriptNativeBridge::bridgeCxxInstance{nullptr}; +ScriptNativeBridge *ScriptNativeBridge::bridgeCxxInstance{nullptr}; JavaScriptJavaBridge::CallInfo::~CallInfo() { + _mEnv->DeleteLocalRef(_mClassID); if (_mReturnType == ValueType::STRING && _mRet.stringValue) { + _mEnv->DeleteLocalRef(_mRetjstring); delete _mRet.stringValue; } } @@ -612,8 +613,7 @@ static bool JavaScriptJavaBridge_callStaticMethod(se::State &s) { //NOLINT(reada } SE_BIND_FUNC(JavaScriptJavaBridge_callStaticMethod) - -static bool ScriptNativeBridge_getCallback(se::State &s){ //NOLINT(readability-identifier-naming) +static bool ScriptNativeBridge_getCallback(se::State &s) { //NOLINT(readability-identifier-naming) auto *cobj = static_cast(s.nativeThisObject()); assert(cobj == ScriptNativeBridge::bridgeCxxInstance); s.rval() = cobj->jsCb; @@ -622,31 +622,30 @@ static bool ScriptNativeBridge_getCallback(se::State &s){ //NOLINT(readability-i } SE_BIND_PROP_GET(ScriptNativeBridge_getCallback) -static bool ScriptNativeBridge_setCallback(se::State &s){ //NOLINT(readability-identifier-naming) +static bool ScriptNativeBridge_setCallback(se::State &s) { //NOLINT(readability-identifier-naming) auto *cobj = static_cast(s.nativeThisObject()); assert(cobj == ScriptNativeBridge::bridgeCxxInstance); - const auto &args = s.args(); - se::Value jsFunc = args[0]; - cobj->jsCb = jsFunc; - if(jsFunc.isNullOrUndefined()) - { + const auto &args = s.args(); + se::Value jsFunc = args[0]; + cobj->jsCb = jsFunc; + if (jsFunc.isNullOrUndefined()) { cobj->setCallback(nullptr); - } - else{ + } else { assert(jsFunc.isObject() && jsFunc.toObject()->isFunction()); s.thisObject()->attachObject(jsFunc.toObject()); - cobj->setCallback([jsFunc](const std::string& arg0, const std::string& arg1){ + cobj->setCallback([jsFunc](const std::string &arg0, const std::string &arg1) { se::AutoHandleScope hs; - se::ValueArray args; + se::ValueArray args; args.push_back(se::Value(arg0)); - if(!arg1.empty()) { + if (!arg1.empty()) { args.push_back(se::Value(arg1)); } jsFunc.toObject()->call(args, nullptr); }); } return true; -}SE_BIND_PROP_SET(ScriptNativeBridge_setCallback) +} +SE_BIND_PROP_SET(ScriptNativeBridge_setCallback) static bool ScriptNativeBridge_sendToNative(se::State &s) { //NOLINT(readability-identifier-naming) const auto &args = s.args(); @@ -716,12 +715,10 @@ bool register_script_native_bridge(se::Object *obj) { //NOLINT(readability-ident return true; } void callPlatformStringMethod(const std::string &arg0, const std::string &arg1) { - cc::JniHelper::callStaticVoidMethod( - "com/cocos/lib/JsbBridge", "callByScript", arg0, arg1); + cc::JniHelper::callStaticVoidMethod( + "com/cocos/lib/JsbBridge", "callByScript", arg0, arg1); } -void ScriptNativeBridge::callByNative(const std::string& arg0, const std::string& arg1){ +void ScriptNativeBridge::callByNative(const std::string &arg0, const std::string &arg1) { _callback(arg0, arg1); } - - diff --git a/native/cocos/bindings/manual/JavaScriptJavaBridge.h b/native/cocos/bindings/manual/JavaScriptJavaBridge.h index e13ee61825..78125870d4 100644 --- a/native/cocos/bindings/manual/JavaScriptJavaBridge.h +++ b/native/cocos/bindings/manual/JavaScriptJavaBridge.h @@ -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 0125259999..53ce6c9654 100644 --- a/native/cocos/bindings/manual/JavaScriptObjCBridge.h +++ b/native/cocos/bindings/manual/JavaScriptObjCBridge.h @@ -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/jsb_cocos_manual.cpp b/native/cocos/bindings/manual/jsb_cocos_manual.cpp index fe99fdd27e..9eea983e5a 100644 --- a/native/cocos/bindings/manual/jsb_cocos_manual.cpp +++ b/native/cocos/bindings/manual/jsb_cocos_manual.cpp @@ -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_dragonbones_manual.cpp b/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp index b698d62a87..1c7974a2af 100644 --- a/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp +++ b/native/cocos/bindings/manual/jsb_dragonbones_manual.cpp @@ -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_extension_manual.cpp b/native/cocos/bindings/manual/jsb_extension_manual.cpp index fa372038a6..f19d08f11c 100644 --- a/native/cocos/bindings/manual/jsb_extension_manual.cpp +++ b/native/cocos/bindings/manual/jsb_extension_manual.cpp @@ -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_global.cpp b/native/cocos/bindings/manual/jsb_global.cpp index 001beb985b..b9bfceb1a8 100644 --- a/native/cocos/bindings/manual/jsb_global.cpp +++ b/native/cocos/bindings/manual/jsb_global.cpp @@ -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_network_manual.cpp b/native/cocos/bindings/manual/jsb_network_manual.cpp index cfdb2b7ed2..fac7943d14 100644 --- a/native/cocos/bindings/manual/jsb_network_manual.cpp +++ b/native/cocos/bindings/manual/jsb_network_manual.cpp @@ -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_platform.h b/native/cocos/bindings/manual/jsb_platform.h index 382e50af89..420472c8e3 100644 --- a/native/cocos/bindings/manual/jsb_platform.h +++ b/native/cocos/bindings/manual/jsb_platform.h @@ -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 84c495fc61..c9db5c34e3 100644 --- a/native/cocos/bindings/manual/jsb_platform_android.cpp +++ b/native/cocos/bindings/manual/jsb_platform_android.cpp @@ -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_platfrom_linux.cpp b/native/cocos/bindings/manual/jsb_platfrom_linux.cpp index f5b7da7f10..1ef7164534 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_linux.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_linux.cpp @@ -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 f5b7da7f10..1ef7164534 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_qnx.cpp @@ -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 ffe65abd9f..fe9d3f4dc7 100644 --- a/native/cocos/bindings/manual/jsb_platfrom_win32.cpp +++ b/native/cocos/bindings/manual/jsb_platfrom_win32.cpp @@ -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_ext.cpp b/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp index 005816064c..8420285f5e 100644 --- a/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp +++ b/native/cocos/bindings/manual/jsb_scene_manual_ext.cpp @@ -23,7 +23,6 @@ THE SOFTWARE. ****************************************************************************/ - #include "bindings/auto/jsb_scene_auto.h" #include "jsb_scene_manual.h" #include "scene/Model.h" diff --git a/native/cocos/bindings/manual/jsb_socketio.cpp b/native/cocos/bindings/manual/jsb_socketio.cpp index 28da54042a..6a70423b75 100644 --- a/native/cocos/bindings/manual/jsb_socketio.cpp +++ b/native/cocos/bindings/manual/jsb_socketio.cpp @@ -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_spine_manual.cpp b/native/cocos/bindings/manual/jsb_spine_manual.cpp index 4e7152fa96..b08ef99329 100644 --- a/native/cocos/bindings/manual/jsb_spine_manual.cpp +++ b/native/cocos/bindings/manual/jsb_spine_manual.cpp @@ -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_websocket.cpp b/native/cocos/bindings/manual/jsb_websocket.cpp index 1559410c8a..55bdbe7f18 100644 --- a/native/cocos/bindings/manual/jsb_websocket.cpp +++ b/native/cocos/bindings/manual/jsb_websocket.cpp @@ -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_xmlhttprequest.cpp b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp index 1a5f8aa6a9..58937fd753 100644 --- a/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp +++ b/native/cocos/bindings/manual/jsb_xmlhttprequest.cpp @@ -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/editor-support/IOBuffer.cpp b/native/cocos/editor-support/IOBuffer.cpp index 06de0bbd95..bb21f0a57d 100644 --- a/native/cocos/editor-support/IOBuffer.cpp +++ b/native/cocos/editor-support/IOBuffer.cpp @@ -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 bfe0d3bf78..596218de5e 100644 --- a/native/cocos/editor-support/IOBuffer.h +++ b/native/cocos/editor-support/IOBuffer.h @@ -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 eb9be6d8a0..7df69991cd 100644 --- a/native/cocos/editor-support/IOTypedArray.cpp +++ b/native/cocos/editor-support/IOTypedArray.cpp @@ -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 4699d7c0b4..34deb41e57 100644 --- a/native/cocos/editor-support/IOTypedArray.h +++ b/native/cocos/editor-support/IOTypedArray.h @@ -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.h b/native/cocos/editor-support/MeshBuffer.h index d2d50b2ef0..23dc64832e 100644 --- a/native/cocos/editor-support/MeshBuffer.h +++ b/native/cocos/editor-support/MeshBuffer.h @@ -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 07bbfef910..f609ffa95c 100644 --- a/native/cocos/editor-support/MiddlewareMacro.h +++ b/native/cocos/editor-support/MiddlewareMacro.h @@ -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 574b55d02e..8dd79c683e 100644 --- a/native/cocos/editor-support/MiddlewareManager.cpp +++ b/native/cocos/editor-support/MiddlewareManager.cpp @@ -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 2c8b0eb8ed..94b436f20f 100644 --- a/native/cocos/editor-support/MiddlewareManager.h +++ b/native/cocos/editor-support/MiddlewareManager.h @@ -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.h b/native/cocos/editor-support/SharedBufferManager.h index b2b830b31a..3fff983cd9 100644 --- a/native/cocos/editor-support/SharedBufferManager.h +++ b/native/cocos/editor-support/SharedBufferManager.h @@ -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 baaa912088..ed953054f3 100644 --- a/native/cocos/editor-support/TypedArrayPool.cpp +++ b/native/cocos/editor-support/TypedArrayPool.cpp @@ -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 4ee4065bbf..49aa00d7e3 100644 --- a/native/cocos/editor-support/TypedArrayPool.h +++ b/native/cocos/editor-support/TypedArrayPool.h @@ -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 adbc6b161c..e33be17389 100644 --- a/native/cocos/editor-support/middleware-adapter.cpp +++ b/native/cocos/editor-support/middleware-adapter.cpp @@ -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 de716362e9..5865b6e73f 100644 --- a/native/cocos/editor-support/middleware-adapter.h +++ b/native/cocos/editor-support/middleware-adapter.h @@ -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.h b/native/cocos/engine/BaseEngine.h index 4218c9139e..0aced13e2c 100644 --- a/native/cocos/engine/BaseEngine.h +++ b/native/cocos/engine/BaseEngine.h @@ -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 11eea4ef08..e9cf019a10 100644 --- a/native/cocos/engine/Engine.cpp +++ b/native/cocos/engine/Engine.cpp @@ -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/main/main-linux.cpp b/native/cocos/main/main-linux.cpp index 837108b799..f183ca7baf 100644 --- a/native/cocos/main/main-linux.cpp +++ b/native/cocos/main/main-linux.cpp @@ -25,8 +25,8 @@ #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-qnx.cpp b/native/cocos/main/main-qnx.cpp index 837108b799..f183ca7baf 100644 --- a/native/cocos/main/main-qnx.cpp +++ b/native/cocos/main/main-qnx.cpp @@ -25,8 +25,8 @@ #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/network/Downloader-curl.cpp b/native/cocos/network/Downloader-curl.cpp index 36c5838f63..7701a95b77 100644 --- a/native/cocos/network/Downloader-curl.cpp +++ b/native/cocos/network/Downloader-curl.cpp @@ -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 1bd93491d2..a86d974629 100644 --- a/native/cocos/network/Downloader-curl.h +++ b/native/cocos/network/Downloader-curl.h @@ -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 b70961b23c..7c853111ac 100644 --- a/native/cocos/network/Downloader-java.cpp +++ b/native/cocos/network/Downloader-java.cpp @@ -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.h b/native/cocos/network/Downloader.h index 40d469976c..b7032c29e0 100644 --- a/native/cocos/network/Downloader.h +++ b/native/cocos/network/Downloader.h @@ -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.h b/native/cocos/network/DownloaderImpl.h index a9773550bf..96cf46c36a 100644 --- a/native/cocos/network/DownloaderImpl.h +++ b/native/cocos/network/DownloaderImpl.h @@ -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/HttpClient-java.cpp b/native/cocos/network/HttpClient-java.cpp index 71867ab86a..7aea4c81d8 100644 --- a/native/cocos/network/HttpClient-java.cpp +++ b/native/cocos/network/HttpClient-java.cpp @@ -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 fe9d4b6874..35cd34c829 100644 --- a/native/cocos/network/HttpClient.cpp +++ b/native/cocos/network/HttpClient.cpp @@ -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 0fdc4d25d5..5302bc765b 100644 --- a/native/cocos/network/HttpClient.h +++ b/native/cocos/network/HttpClient.h @@ -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.h b/native/cocos/network/HttpCookie.h index cff7e059a4..fb4a0e6f71 100644 --- a/native/cocos/network/HttpCookie.h +++ b/native/cocos/network/HttpCookie.h @@ -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 05999b0c42..f91eef3f74 100644 --- a/native/cocos/network/HttpRequest.h +++ b/native/cocos/network/HttpRequest.h @@ -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 4ecce0aeab..2dc295a856 100644 --- a/native/cocos/network/HttpResponse.h +++ b/native/cocos/network/HttpResponse.h @@ -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 bde5c9e43e..31426c972a 100644 --- a/native/cocos/network/SocketIO.cpp +++ b/native/cocos/network/SocketIO.cpp @@ -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/WebSocket-libwebsockets.cpp b/native/cocos/network/WebSocket-libwebsockets.cpp index 02231b5165..86a5d2cb63 100644 --- a/native/cocos/network/WebSocket-libwebsockets.cpp +++ b/native/cocos/network/WebSocket-libwebsockets.cpp @@ -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 3f8ebb02d7..b2e96d1574 100644 --- a/native/cocos/network/WebSocket.h +++ b/native/cocos/network/WebSocket.h @@ -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 42478176a4..7ad8660c3a 100644 --- a/native/cocos/network/WebSocketServer.cpp +++ b/native/cocos/network/WebSocketServer.cpp @@ -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/physics/PhysicsSDK.h b/native/cocos/physics/PhysicsSDK.h index c8d2a04719..9b27a61542 100644 --- a/native/cocos/physics/PhysicsSDK.h +++ b/native/cocos/physics/PhysicsSDK.h @@ -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 eca360cd98..0dc6b78efb 100644 --- a/native/cocos/physics/PhysicsSelector.h +++ b/native/cocos/physics/PhysicsSelector.h @@ -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/PhysXEventManager.h b/native/cocos/physics/physx/PhysXEventManager.h index dac1a93098..21282f0aba 100644 --- a/native/cocos/physics/physx/PhysXEventManager.h +++ b/native/cocos/physics/physx/PhysXEventManager.h @@ -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 f77eb261b6..bacb975118 100644 --- a/native/cocos/physics/physx/PhysXFilterShader.cpp +++ b/native/cocos/physics/physx/PhysXFilterShader.cpp @@ -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 64579c635c..ba537b848e 100644 --- a/native/cocos/physics/physx/PhysXFilterShader.h +++ b/native/cocos/physics/physx/PhysXFilterShader.h @@ -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/PhysXRigidBody.h b/native/cocos/physics/physx/PhysXRigidBody.h index e8543f2c79..6b37b85e4c 100644 --- a/native/cocos/physics/physx/PhysXRigidBody.h +++ b/native/cocos/physics/physx/PhysXRigidBody.h @@ -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 d31221f442..6d7e3aa28d 100644 --- a/native/cocos/physics/physx/PhysXSharedBody.cpp +++ b/native/cocos/physics/physx/PhysXSharedBody.cpp @@ -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/PhysXUtils.h b/native/cocos/physics/physx/PhysXUtils.h index 7c68300c5d..115dd8060a 100644 --- a/native/cocos/physics/physx/PhysXUtils.h +++ b/native/cocos/physics/physx/PhysXUtils.h @@ -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 7ed6f5e84e..3523713e51 100644 --- a/native/cocos/physics/physx/PhysXWorld.cpp +++ b/native/cocos/physics/physx/PhysXWorld.cpp @@ -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 fcd579375a..49dda13351 100644 --- a/native/cocos/physics/physx/PhysXWorld.h +++ b/native/cocos/physics/physx/PhysXWorld.h @@ -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 5ddee2c435..2b85e556e5 100644 --- a/native/cocos/physics/physx/joints/PhysXDistance.cpp +++ b/native/cocos/physics/physx/joints/PhysXDistance.cpp @@ -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 180755a92e..75e209b182 100644 --- a/native/cocos/physics/physx/joints/PhysXDistance.h +++ b/native/cocos/physics/physx/joints/PhysXDistance.h @@ -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.h b/native/cocos/physics/physx/joints/PhysXJoint.h index b9f5567151..8e55e8b94a 100644 --- a/native/cocos/physics/physx/joints/PhysXJoint.h +++ b/native/cocos/physics/physx/joints/PhysXJoint.h @@ -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 1e072d620a..952de3f93b 100644 --- a/native/cocos/physics/physx/joints/PhysXRevolute.cpp +++ b/native/cocos/physics/physx/joints/PhysXRevolute.cpp @@ -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 3c6ddf0e9e..c22929b1bb 100644 --- a/native/cocos/physics/physx/joints/PhysXRevolute.h +++ b/native/cocos/physics/physx/joints/PhysXRevolute.h @@ -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 48c6b23921..98a8cea54e 100644 --- a/native/cocos/physics/physx/shapes/PhysXBox.cpp +++ b/native/cocos/physics/physx/shapes/PhysXBox.cpp @@ -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 b897ddb56e..7a817510b5 100644 --- a/native/cocos/physics/physx/shapes/PhysXBox.h +++ b/native/cocos/physics/physx/shapes/PhysXBox.h @@ -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.h b/native/cocos/physics/physx/shapes/PhysXCapsule.h index aaadf2b011..8da114f02e 100644 --- a/native/cocos/physics/physx/shapes/PhysXCapsule.h +++ b/native/cocos/physics/physx/shapes/PhysXCapsule.h @@ -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 cde77efe7b..ddfdd30d70 100644 --- a/native/cocos/physics/physx/shapes/PhysXCone.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCone.cpp @@ -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 c8e44a211a..b86969f082 100644 --- a/native/cocos/physics/physx/shapes/PhysXCone.h +++ b/native/cocos/physics/physx/shapes/PhysXCone.h @@ -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 5db30393c0..5bb8fd492a 100644 --- a/native/cocos/physics/physx/shapes/PhysXCylinder.cpp +++ b/native/cocos/physics/physx/shapes/PhysXCylinder.cpp @@ -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 4ecdfc8338..e045644c41 100644 --- a/native/cocos/physics/physx/shapes/PhysXCylinder.h +++ b/native/cocos/physics/physx/shapes/PhysXCylinder.h @@ -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 1db2511e48..4ff587a34e 100644 --- a/native/cocos/physics/physx/shapes/PhysXPlane.cpp +++ b/native/cocos/physics/physx/shapes/PhysXPlane.cpp @@ -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 9982d769d3..b36ef6f96f 100644 --- a/native/cocos/physics/physx/shapes/PhysXPlane.h +++ b/native/cocos/physics/physx/shapes/PhysXPlane.h @@ -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/PhysXSphere.cpp b/native/cocos/physics/physx/shapes/PhysXSphere.cpp index eba512dbdf..b8ffe59f67 100644 --- a/native/cocos/physics/physx/shapes/PhysXSphere.cpp +++ b/native/cocos/physics/physx/shapes/PhysXSphere.cpp @@ -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 8a49051228..4bedde1ef7 100644 --- a/native/cocos/physics/physx/shapes/PhysXSphere.h +++ b/native/cocos/physics/physx/shapes/PhysXSphere.h @@ -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/PhysXTrimesh.h b/native/cocos/physics/physx/shapes/PhysXTrimesh.h index 08c6f8ae01..3863853523 100644 --- a/native/cocos/physics/physx/shapes/PhysXTrimesh.h +++ b/native/cocos/physics/physx/shapes/PhysXTrimesh.h @@ -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/World.cpp b/native/cocos/physics/sdk/World.cpp index 8d0f34e13b..7b4307ad5c 100644 --- a/native/cocos/physics/sdk/World.cpp +++ b/native/cocos/physics/sdk/World.cpp @@ -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 1dabfed72f..6b56f3ec93 100644 --- a/native/cocos/physics/sdk/World.h +++ b/native/cocos/physics/sdk/World.h @@ -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 7f80794dde..5579418d4c 100644 --- a/native/cocos/physics/spec/IBody.h +++ b/native/cocos/physics/spec/IBody.h @@ -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/ILifecycle.h b/native/cocos/physics/spec/ILifecycle.h index abd7d2ff48..ab26be8d07 100644 --- a/native/cocos/physics/spec/ILifecycle.h +++ b/native/cocos/physics/spec/ILifecycle.h @@ -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/platform/Application.cpp b/native/cocos/platform/Application.cpp index 99cae95f13..b69c0d092d 100644 --- a/native/cocos/platform/Application.cpp +++ b/native/cocos/platform/Application.cpp @@ -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.h b/native/cocos/platform/BasePlatform.h index 71ae880d8d..23773d1f75 100644 --- a/native/cocos/platform/BasePlatform.h +++ b/native/cocos/platform/BasePlatform.h @@ -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/Image.cpp b/native/cocos/platform/Image.cpp index 18f227a465..1075544434 100644 --- a/native/cocos/platform/Image.cpp +++ b/native/cocos/platform/Image.cpp @@ -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/SAXParser.cpp b/native/cocos/platform/SAXParser.cpp index 0afaababa6..cb7dd4ca41 100644 --- a/native/cocos/platform/SAXParser.cpp +++ b/native/cocos/platform/SAXParser.cpp @@ -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 51983a5024..9fa757adb0 100644 --- a/native/cocos/platform/SAXParser.h +++ b/native/cocos/platform/SAXParser.h @@ -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 be8b761a0d..967a143668 100644 --- a/native/cocos/platform/StdC.h +++ b/native/cocos/platform/StdC.h @@ -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/android/AndroidPlatform.cpp b/native/cocos/platform/android/AndroidPlatform.cpp index 174e13eefe..1f3a23084c 100644 --- a/native/cocos/platform/android/AndroidPlatform.cpp +++ b/native/cocos/platform/android/AndroidPlatform.cpp @@ -71,9 +71,6 @@ int32_t AndroidPlatform::loop() { void AndroidPlatform::pollEvent() { _jniNativeGlue->execCommand(); - if (!_jniNativeGlue->isPause()) { - std::this_thread::yield(); - } _jniNativeGlue->flushTasksOnGameThread(); } diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java index dbf29eb63d..4bed76fe11 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosEditBoxActivity.java @@ -434,7 +434,7 @@ public class CocosEditBoxActivity extends Activity { Native functions invoked by UI. **************************************************************************************/ private void onKeyboardInput(String text) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosEditBoxActivity.onKeyboardInputNative(text); @@ -443,7 +443,7 @@ public class CocosEditBoxActivity extends Activity { } private void onKeyboardComplete(String text) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosEditBoxActivity.onKeyboardCompleteNative(text); @@ -452,7 +452,7 @@ public class CocosEditBoxActivity extends Activity { } private void onKeyboardConfirm(String text) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosEditBoxActivity.onKeyboardConfirmNative(text); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java index a2476020bd..dfcfc85abf 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosHelper.java @@ -1,27 +1,27 @@ /**************************************************************************** -Copyright (c) 2010-2012 cocos2d-x.org -Copyright (c) 2013-2016 Chukong Technologies Inc. -Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. + Copyright (c) 2010-2012 cocos2d-x.org + Copyright (c) 2013-2016 Chukong Technologies Inc. + Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. -http://www.cocos2d-x.org + 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: + 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. + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of 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. + 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. ****************************************************************************/ package com.cocos.lib; @@ -58,8 +58,11 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; +import java.util.LinkedList; import java.util.List; import java.util.Locale; +import java.util.Queue; +import java.util.concurrent.locks.ReentrantLock; public class CocosHelper { @@ -77,7 +80,7 @@ public class CocosHelper { private static BatteryReceiver sBatteryReceiver = new BatteryReceiver(); public static final int NETWORK_TYPE_NONE = 0; - public static final int NETWORK_TYPE_LAN = 1; + public static final int NETWORK_TYPE_LAN = 1; public static final int NETWORK_TYPE_WWAN = 2; // The absolute path to the OBB if it exists. @@ -86,8 +89,26 @@ public class CocosHelper { // The OBB file private static ZipResourceFile sOBBFile = null; - private static List sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); + static class LockedTaskQ { + private final Object readMtx = new Object(); + private Queue sTaskQ = new LinkedList<>(); + public synchronized void addTask(Runnable runnable) { + sTaskQ.add(runnable); + } + public void runTasks(){ + Queue tmp; + synchronized (readMtx) { + tmp = sTaskQ; + sTaskQ = new LinkedList<>(); + } + for(Runnable runnable : tmp){ + runnable.run(); + } + } + } + private static LockedTaskQ sTaskQOnGameThread = new LockedTaskQ(); + private static LockedTaskQ sForegroundTaskQOnGameThread = new LockedTaskQ(); /** * Battery receiver to getting battery level. */ @@ -119,17 +140,20 @@ public class CocosHelper { context.unregisterReceiver(sBatteryReceiver); } + //Run on game thread forever, no matter foreground or background public static void runOnGameThread(final Runnable runnable) { - sTaskOnGameThread.add(runnable); + sTaskQOnGameThread.addTask(runnable); } static void flushTasksOnGameThread() { - while(sTaskOnGameThread.size() > 0) { - Runnable r = sTaskOnGameThread.remove(0); - if(r != null) { - r.run(); - } - } + sTaskQOnGameThread.runTasks(); + } + public static void runOnGameThreadAtForeground(final Runnable runnable) { + sForegroundTaskQOnGameThread.addTask(runnable); + } + + static void flushTasksOnGameThreadAtForeground() { + sForegroundTaskQOnGameThread.runTasks(); } public static int getNetworkType() { @@ -159,10 +183,11 @@ public class CocosHelper { // =========================================================== private static boolean sInited = false; + public static void init(final Activity activity) { sActivity = activity; if (!sInited) { - CocosHelper.sVibrateService = (Vibrator)activity.getSystemService(Context.VIBRATOR_SERVICE); + CocosHelper.sVibrateService = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); CocosHelper.initObbFilePath(); CocosHelper.initializeOBBFile(); @@ -170,20 +195,30 @@ public class CocosHelper { } } - public static float getBatteryLevel() { return sBatteryReceiver.sBatteryLevel; } - public static String getObbFilePath() { return CocosHelper.sObbFilePath; } + public static float getBatteryLevel() { + return sBatteryReceiver.sBatteryLevel; + } + + public static String getObbFilePath() { + return CocosHelper.sObbFilePath; + } + public static String getWritablePath() { return sActivity.getFilesDir().getAbsolutePath(); } + public static String getCurrentLanguage() { return Locale.getDefault().getLanguage(); } + public static String getCurrentLanguageCode() { return Locale.getDefault().toString(); } - public static String getDeviceModel(){ + + public static String getDeviceModel() { return Build.MODEL; } + public static String getSystemVersion() { return Build.VERSION.RELEASE; } @@ -193,7 +228,7 @@ public class CocosHelper { if (sVibrateService != null && sVibrateService.hasVibrator()) { if (android.os.Build.VERSION.SDK_INT >= 26) { Class vibrationEffectClass = Class.forName("android.os.VibrationEffect"); - if(vibrationEffectClass != null) { + if (vibrationEffectClass != null) { final int DEFAULT_AMPLITUDE = CocosReflectionHelper.getConstantValue(vibrationEffectClass, "DEFAULT_AMPLITUDE"); //VibrationEffect.createOneShot(long milliseconds, int amplitude) @@ -201,10 +236,10 @@ public class CocosHelper { new Class[]{Long.TYPE, Integer.TYPE}); Class type = method.getReturnType(); - Object effect = method.invoke(vibrationEffectClass, + Object effect = method.invoke(vibrationEffectClass, new Object[]{(long) (duration * 1000), DEFAULT_AMPLITUDE}); //sVibrateService.vibrate(VibrationEffect effect); - CocosReflectionHelper.invokeInstanceMethod(sVibrateService,"vibrate", + CocosReflectionHelper.invokeInstanceMethod(sVibrateService, "vibrate", new Class[]{type}, new Object[]{(effect)}); } } else { @@ -228,11 +263,11 @@ public class CocosHelper { return ret; } - public static void copyTextToClipboard(final String text){ + public static void copyTextToClipboard(final String text) { sActivity.runOnUiThread(new Runnable() { @Override public void run() { - ClipboardManager myClipboard = (ClipboardManager)sActivity.getSystemService(Context.CLIPBOARD_SERVICE); + ClipboardManager myClipboard = (ClipboardManager) sActivity.getSystemService(Context.CLIPBOARD_SERVICE); ClipData myClip = ClipData.newPlainText("text", text); myClipboard.setPrimaryClip(myClip); } @@ -246,8 +281,8 @@ public class CocosHelper { if (descriptor != null) { try { ParcelFileDescriptor parcel = descriptor.getParcelFileDescriptor(); - Method method = parcel.getClass().getMethod("getFd", new Class[] {}); - array[0] = (Integer)method.invoke(parcel); + Method method = parcel.getClass().getMethod("getFd", new Class[]{}); + array[0] = (Integer) method.invoke(parcel); array[1] = descriptor.getStartOffset(); array[2] = descriptor.getLength(); } catch (NoSuchMethodException e) { @@ -313,14 +348,14 @@ public class CocosHelper { do { Object windowInsectObj = GlobalObject.getActivity().getWindow().getDecorView().getRootWindowInsets(); - if(windowInsectObj == null) break; + if (windowInsectObj == null) break; Class windowInsets = WindowInsets.class; try { Method wiGetDisplayCutout = windowInsets.getMethod("getDisplayCutout"); Object cutout = wiGetDisplayCutout.invoke(windowInsectObj); - if(cutout == null) break; + if (cutout == null) break; Class displayCutout = cutout.getClass(); Method dcGetLeft = displayCutout.getMethod("getSafeInsetLeft"); @@ -342,15 +377,15 @@ public class CocosHelper { } catch (InvocationTargetException e) { e.printStackTrace(); } - }while(false); + } while (false); } - return new float[]{0,0,0,0}; + return new float[]{0, 0, 0, 0}; } public static void setKeepScreenOn(boolean keepScreenOn) { - if(keepScreenOn) { + if (keepScreenOn) { sActivity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); - }else { + } else { sActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } } diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java index f183a638e5..834d11792d 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosKeyCodeHandler.java @@ -50,7 +50,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEYCODE_ENTER: case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: case KeyEvent.KEYCODE_DPAD_CENTER: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleKeyDown(keyCode); @@ -73,7 +73,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEYCODE_ENTER: case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE: case KeyEvent.KEYCODE_DPAD_CENTER: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleKeyUp(keyCode); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java index d4d09e4479..43c4b3d9f6 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosOrientationHelper.java @@ -49,7 +49,7 @@ public class CocosOrientationHelper extends OrientationEventListener { int curOrientation = CocosHelper.getDeviceRotation(); if (curOrientation != mCurrentOrientation) { mCurrentOrientation = CocosHelper.getDeviceRotation(); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeOnOrientationChanged(mCurrentOrientation); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java index 88a67dfd12..d808ce745d 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosSurfaceView.java @@ -41,7 +41,7 @@ public class CocosSurfaceView extends SurfaceView { @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeOnSizeChanged(w, h); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java index 4e8953ebd0..499c4d91ba 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosTouchHandler.java @@ -60,7 +60,7 @@ public class CocosTouchHandler { final int idPointerDown = pMotionEvent.getPointerId(indexPointerDown); final float xPointerDown = pMotionEvent.getX(indexPointerDown); final float yPointerDown = pMotionEvent.getY(indexPointerDown); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionDown(idPointerDown, xPointerDown, yPointerDown); @@ -79,7 +79,7 @@ public class CocosTouchHandler { final float xDown = xs[0]; final float yDown = ys[0]; - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionDown(idDown, xDown, yDown); @@ -89,7 +89,7 @@ public class CocosTouchHandler { break; case MotionEvent.ACTION_MOVE: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionMove(ids, xs, ys); @@ -103,7 +103,7 @@ public class CocosTouchHandler { final int idPointerUp = pMotionEvent.getPointerId(indexPointUp); final float xPointerUp = pMotionEvent.getX(indexPointUp); final float yPointerUp = pMotionEvent.getY(indexPointUp); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionUp(idPointerUp, xPointerUp, yPointerUp); @@ -117,7 +117,7 @@ public class CocosTouchHandler { final int idUp = pMotionEvent.getPointerId(0); final float xUp = xs[0]; final float yUp = ys[0]; - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionUp(idUp, xUp, yUp); @@ -127,7 +127,7 @@ public class CocosTouchHandler { break; case MotionEvent.ACTION_CANCEL: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionCancel(ids, xs, ys); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java index e0f7f86486..d1ce6d2433 100644 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosVideoHelper.java @@ -170,7 +170,7 @@ public class CocosVideoHelper { @Override public void onVideoEvent(int tag,int event) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(tag, event); @@ -282,7 +282,7 @@ public class CocosVideoHelper { CocosVideoView videoView = sVideoViews.get(key); if (videoView != null) { videoView.setFullScreenEnabled(false); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(key, KeyEventBack); diff --git a/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java b/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java index 09c713af4a..541e7921e7 100755 --- a/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java +++ b/native/cocos/platform/android/java/src/com/cocos/lib/CocosWebView.java @@ -109,7 +109,7 @@ import java.util.concurrent.CountDownLatch; try { URI uri = URI.create(urlString); if (uri != null && uri.getScheme().equals(mJSScheme)) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosWebViewHelper._onJsCallback(mViewTag, urlString); @@ -141,7 +141,7 @@ import java.util.concurrent.CountDownLatch; public void onPageFinished(WebView view, final String url) { super.onPageFinished(view, url); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosWebViewHelper._didFinishLoading(mViewTag, url); @@ -153,7 +153,7 @@ import java.util.concurrent.CountDownLatch; public void onReceivedError(WebView view, int errorCode, String description, final String failingUrl) { super.onReceivedError(view, errorCode, description, failingUrl); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { CocosWebViewHelper._didFailLoading(mViewTag, failingUrl); diff --git a/native/cocos/platform/android/modules/System.cpp b/native/cocos/platform/android/modules/System.cpp index de32552a78..9032437d8d 100644 --- a/native/cocos/platform/android/modules/System.cpp +++ b/native/cocos/platform/android/modules/System.cpp @@ -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 13ce70c05a..92bf2d622a 100644 --- a/native/cocos/platform/android/modules/System.h +++ b/native/cocos/platform/android/modules/System.h @@ -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 24e9115297..1d61c85529 100644 --- a/native/cocos/platform/apple/FileUtils-apple.h +++ b/native/cocos/platform/apple/FileUtils-apple.h @@ -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/JsbBridgeWrapper.mm b/native/cocos/platform/apple/JsbBridgeWrapper.mm index 5077f1fdbb..14c7a33f21 100644 --- a/native/cocos/platform/apple/JsbBridgeWrapper.mm +++ b/native/cocos/platform/apple/JsbBridgeWrapper.mm @@ -22,11 +22,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ - -#include "JsbBridgeWrapper.h" #include #include #include "JsbBridge.h" +#include "JsbBridgeWrapper.h" @implementation JsbBridgeWrapper { JsbBridge* jb; diff --git a/native/cocos/platform/apple/Reachability.cpp b/native/cocos/platform/apple/Reachability.cpp index d700e96842..92c815ba71 100644 --- a/native/cocos/platform/apple/Reachability.cpp +++ b/native/cocos/platform/apple/Reachability.cpp @@ -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 8d5c3948ac..7dd8fba934 100644 --- a/native/cocos/platform/apple/Reachability.h +++ b/native/cocos/platform/apple/Reachability.h @@ -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 906815c2a8..e28c2ea2e8 100644 --- a/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h +++ b/native/cocos/platform/apple/modules/CanvasRenderingContext2DDelegate.h @@ -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/interfaces/OSInterface.h b/native/cocos/platform/interfaces/OSInterface.h index e40f8ae46d..cf540c0385 100644 --- a/native/cocos/platform/interfaces/OSInterface.h +++ b/native/cocos/platform/interfaces/OSInterface.h @@ -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 e76bbe7727..dbdea90975 100644 --- a/native/cocos/platform/interfaces/OSInterfaceManager.cpp +++ b/native/cocos/platform/interfaces/OSInterfaceManager.cpp @@ -22,4 +22,3 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ - diff --git a/native/cocos/platform/interfaces/modules/Device.h b/native/cocos/platform/interfaces/modules/Device.h index 487459eb34..d4a340df03 100644 --- a/native/cocos/platform/interfaces/modules/Device.h +++ b/native/cocos/platform/interfaces/modules/Device.h @@ -147,4 +147,3 @@ private: /// @} } // namespace cc - diff --git a/native/cocos/platform/interfaces/modules/IAccelerometer.h b/native/cocos/platform/interfaces/modules/IAccelerometer.h index 54a87e8d8d..2017d598f6 100644 --- a/native/cocos/platform/interfaces/modules/IAccelerometer.h +++ b/native/cocos/platform/interfaces/modules/IAccelerometer.h @@ -64,6 +64,7 @@ public: @return accelerometer interface. */ static OSInterface::Ptr createAccelerometerInterface(); + private: }; diff --git a/native/cocos/platform/interfaces/modules/ISystemWindow.h b/native/cocos/platform/interfaces/modules/ISystemWindow.h index 3c0eaf919a..ea4d47a78d 100644 --- a/native/cocos/platform/interfaces/modules/ISystemWindow.h +++ b/native/cocos/platform/interfaces/modules/ISystemWindow.h @@ -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/ios/AppDelegate.h b/native/cocos/platform/ios/AppDelegate.h index f5330f57a6..a0e8846777 100644 --- a/native/cocos/platform/ios/AppDelegate.h +++ b/native/cocos/platform/ios/AppDelegate.h @@ -29,12 +29,10 @@ @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/IOSPlatform.h b/native/cocos/platform/ios/IOSPlatform.h index 4f2990798f..42b5b09fa8 100644 --- a/native/cocos/platform/ios/IOSPlatform.h +++ b/native/cocos/platform/ios/IOSPlatform.h @@ -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/View.h b/native/cocos/platform/ios/View.h index fa9c9c3dc1..a2bb099b42 100644 --- a/native/cocos/platform/ios/View.h +++ b/native/cocos/platform/ios/View.h @@ -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/ViewController.h b/native/cocos/platform/ios/ViewController.h index 3e72a7f56e..5885dc9184 100644 --- a/native/cocos/platform/ios/ViewController.h +++ b/native/cocos/platform/ios/ViewController.h @@ -29,5 +29,4 @@ @interface ViewController : UIViewController - @end diff --git a/native/cocos/platform/ios/service/SDKWrapper.h b/native/cocos/platform/ios/service/SDKWrapper.h index 974b94803f..4e91335c92 100644 --- a/native/cocos/platform/ios/service/SDKWrapper.h +++ b/native/cocos/platform/ios/service/SDKWrapper.h @@ -40,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/JniHelper.h b/native/cocos/platform/java/jni/JniHelper.h index f48b8e89b8..450e491c83 100644 --- a/native/cocos/platform/java/jni/JniHelper.h +++ b/native/cocos/platform/java/jni/JniHelper.h @@ -58,7 +58,6 @@ } \ } while (false) - struct android_app; namespace cc { @@ -284,6 +283,7 @@ public: #ifndef __OHOS__ ccDeleteLocalRef(t.env, t.classID); #endif + ccDeleteLocalRef(t.env, array); deleteLocalRefs(t.env, &localRefs); return &ret[0]; } @@ -314,6 +314,7 @@ public: #ifndef __OHOS__ ccDeleteLocalRef(t.env, t.classID); #endif + ccDeleteLocalRef(t.env, array); deleteLocalRefs(t.env, &localRefs); } else { reportError(className, methodName, signature); diff --git a/native/cocos/platform/java/jni/JniImp.cpp b/native/cocos/platform/java/jni/JniImp.cpp index fcabed5dda..744ebb9bb1 100644 --- a/native/cocos/platform/java/jni/JniImp.cpp +++ b/native/cocos/platform/java/jni/JniImp.cpp @@ -124,6 +124,11 @@ void flushTasksOnGameThreadJNI() { "flushTasksOnGameThread"); } +void flushTasksOnGameThreadAtForegroundJNI() { + cc::JniHelper::callStaticVoidMethod(JCLS_HELPER, + "flushTasksOnGameThreadAtForeground"); +} + void setAccelerometerEnabledJNI(bool isEnabled) { JniHelper::callStaticVoidMethod(JCLS_SENSOR, "setAccelerometerEnabled", isEnabled); } diff --git a/native/cocos/platform/java/jni/JniImp.h b/native/cocos/platform/java/jni/JniImp.h index 83851ffe8f..c9aefb37fa 100644 --- a/native/cocos/platform/java/jni/JniImp.h +++ b/native/cocos/platform/java/jni/JniImp.h @@ -42,6 +42,7 @@ extern float * getSafeAreaEdgeJNI(); extern int getDeviceRotationJNI(); extern float getBatteryLevelJNI(); extern void flushTasksOnGameThreadJNI(); +extern void flushTasksOnGameThreadAtForegroundJNI(); extern void setAccelerometerEnabledJNI(bool isEnabled); extern void setAccelerometerIntervalJNI(float interval); extern float * getDeviceMotionValueJNI(); \ No newline at end of file diff --git a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp index 3e653d23f3..3b7fe6f875 100644 --- a/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp +++ b/native/cocos/platform/java/jni/glue/JniNativeGlue.cpp @@ -104,9 +104,11 @@ bool JniNativeGlue::isRunning() const { } void JniNativeGlue::flushTasksOnGameThread() const { + // Handle java events send by UI thread. Input events are handled here too. + + flushTasksOnGameThreadJNI(); if (_animating) { - // Handle java events send by UI thread. Input events are handled here too. - flushTasksOnGameThreadJNI(); + flushTasksOnGameThreadAtForegroundJNI(); } } @@ -128,6 +130,10 @@ int JniNativeGlue::readCommand(CommandMsg* msg) { return _messagePipe->readCommand(msg, sizeof(CommandMsg)); } +int JniNativeGlue::readCommandWithTimeout(CommandMsg* cmd, int delayMS) { + return _messagePipe->readCommandWithTimeout(cmd, sizeof(CommandMsg), delayMS); +} + void JniNativeGlue::setEventDispatch(IEventDispatch* eventDispatcher) { _eventDispatcher = eventDispatcher; } @@ -168,7 +174,10 @@ void JniNativeGlue::onLowMemory() { void JniNativeGlue::execCommand() { static CommandMsg msg; - if (readCommand(&msg) > 0) { + static bool runInLowRate{false}; + runInLowRate = !_animating || JniCommand::JNI_CMD_PAUSE == _appState; + + if (readCommandWithTimeout(&msg, runInLowRate ? 50 : 0) > 0) { preExecCmd(msg.cmd); engineHandleCmd(msg.cmd); postExecCmd(msg.cmd); diff --git a/native/cocos/platform/java/jni/glue/JniNativeGlue.h b/native/cocos/platform/java/jni/glue/JniNativeGlue.h index 442f28d353..6afabcf6ff 100644 --- a/native/cocos/platform/java/jni/glue/JniNativeGlue.h +++ b/native/cocos/platform/java/jni/glue/JniNativeGlue.h @@ -90,6 +90,7 @@ public: void writeCommandAsync(JniCommand cmd); void writeCommandSync(JniCommand cmd); int readCommand(CommandMsg* msg); + int readCommandWithTimeout(CommandMsg* cmd, int delayMS); void setEventDispatch(IEventDispatch* eventDispatcher); void dispatchEvent(const OSEvent& ev); diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.cpp b/native/cocos/platform/java/jni/glue/MessagePipe.cpp index 1f6ec0e0d6..4124671d66 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.cpp +++ b/native/cocos/platform/java/jni/glue/MessagePipe.cpp @@ -58,6 +58,28 @@ int MessagePipe::readCommand(int8_t& cmd) const { return read(_pipeRead, &cmd, sizeof(cmd)); } +int MessagePipe::readCommandWithTimeout(void* msg, int32_t size, int delayMS) { + if (delayMS > 0) { + static fd_set fdSet; + static timeval timeout; + + timeout = {delayMS / 1000, (delayMS % 1000) * 1000}; + FD_ZERO(&fdSet); + FD_SET(_pipeRead, &fdSet); + + auto ret = select(_pipeRead + 1, &fdSet, nullptr, nullptr, &timeout); + if (ret < 0) { + LOGV("failed to run select(..): %s\n", strerror(errno)); + return ret; + } + + if (ret == 0) { + return 0; + } + } + return readCommand(msg, size); +} + void MessagePipe::writeCommand(void* msg, int32_t size) const { write(_pipeWrite, msg, size); } diff --git a/native/cocos/platform/java/jni/glue/MessagePipe.h b/native/cocos/platform/java/jni/glue/MessagePipe.h index bd6d1594b4..4a88738518 100644 --- a/native/cocos/platform/java/jni/glue/MessagePipe.h +++ b/native/cocos/platform/java/jni/glue/MessagePipe.h @@ -38,6 +38,7 @@ public: int readCommand(int8_t& cmd) const; void writeCommand(void* msg, int32_t size) const; int readCommand(void* msg, int32_t size) const; + int readCommandWithTimeout(void* msg, int32_t size, int delayMS); private: int _pipeRead = 0; diff --git a/native/cocos/platform/java/jni/log.h b/native/cocos/platform/java/jni/log.h index cf0777aee3..59b5ef0f71 100644 --- a/native/cocos/platform/java/jni/log.h +++ b/native/cocos/platform/java/jni/log.h @@ -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/CommonSystem.cpp b/native/cocos/platform/java/modules/CommonSystem.cpp index 79f21b93a5..c0ae3466a8 100644 --- a/native/cocos/platform/java/modules/CommonSystem.cpp +++ b/native/cocos/platform/java/modules/CommonSystem.cpp @@ -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/SystemWindow.cpp b/native/cocos/platform/java/modules/SystemWindow.cpp index fcc22f28dd..aad61b4c7a 100644 --- a/native/cocos/platform/java/modules/SystemWindow.cpp +++ b/native/cocos/platform/java/modules/SystemWindow.cpp @@ -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 a138bdbc95..1c39bca8e3 100644 --- a/native/cocos/platform/java/modules/SystemWindow.h +++ b/native/cocos/platform/java/modules/SystemWindow.h @@ -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/linux/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp index abdb170d2c..35eb1d8aba 100644 --- a/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/linux/modules/CanvasRenderingContext2DDelegate.cpp @@ -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/Screen.cpp b/native/cocos/platform/linux/modules/Screen.cpp index cf307ed6cd..258b0db58c 100644 --- a/native/cocos/platform/linux/modules/Screen.cpp +++ b/native/cocos/platform/linux/modules/Screen.cpp @@ -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/mac/AppDelegate.h b/native/cocos/platform/mac/AppDelegate.h index 811127f278..b2c3c378d6 100644 --- a/native/cocos/platform/mac/AppDelegate.h +++ b/native/cocos/platform/mac/AppDelegate.h @@ -27,6 +27,4 @@ @interface AppDelegate : NSObject - @end - diff --git a/native/cocos/platform/mac/KeyCodeHelper.cpp b/native/cocos/platform/mac/KeyCodeHelper.cpp index 78269b9e04..50ca0726ec 100644 --- a/native/cocos/platform/mac/KeyCodeHelper.cpp +++ b/native/cocos/platform/mac/KeyCodeHelper.cpp @@ -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 03b16fa5a0..1251dea2e1 100644 --- a/native/cocos/platform/mac/KeyCodeHelper.h +++ b/native/cocos/platform/mac/KeyCodeHelper.h @@ -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 f54c60594d..8dc417a8f0 100644 --- a/native/cocos/platform/mac/MacPlatform.h +++ b/native/cocos/platform/mac/MacPlatform.h @@ -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/ViewController.h b/native/cocos/platform/mac/ViewController.h index b2451122b4..f716829646 100644 --- a/native/cocos/platform/mac/ViewController.h +++ b/native/cocos/platform/mac/ViewController.h @@ -23,10 +23,9 @@ THE SOFTWARE. ****************************************************************************/ -#import #import +#import @interface ViewController : NSViewController - (instancetype)initWithSize:(NSRect)rect; @end - diff --git a/native/cocos/platform/mac/modules/SystemWindow.h b/native/cocos/platform/mac/modules/SystemWindow.h index e089f55d32..883237ed9c 100644 --- a/native/cocos/platform/mac/modules/SystemWindow.h +++ b/native/cocos/platform/mac/modules/SystemWindow.h @@ -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/ohos/OhosPlatform.cpp b/native/cocos/platform/ohos/OhosPlatform.cpp index 19f849f792..711f670c54 100644 --- a/native/cocos/platform/ohos/OhosPlatform.cpp +++ b/native/cocos/platform/ohos/OhosPlatform.cpp @@ -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/View.cpp b/native/cocos/platform/ohos/View.cpp index 5be4defc34..67c25f26cb 100644 --- a/native/cocos/platform/ohos/View.cpp +++ b/native/cocos/platform/ohos/View.cpp @@ -52,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 224d047b88..b92bd17809 100644 --- a/native/cocos/platform/ohos/View.h +++ b/native/cocos/platform/ohos/View.h @@ -25,8 +25,8 @@ #pragma once -#include "base/Macros.h" #include +#include "base/Macros.h" namespace cc { diff --git a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp index 5c6e518a72..7a54eb9ca6 100644 --- a/native/cocos/platform/ohos/jni/JniCocosAbility.cpp +++ b/native/cocos/platform/ohos/jni/JniCocosAbility.cpp @@ -42,7 +42,6 @@ #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/JniInteraction.cpp b/native/cocos/platform/ohos/jni/JniInteraction.cpp deleted file mode 100644 index 1b5a578aa1..0000000000 --- a/native/cocos/platform/ohos/jni/JniInteraction.cpp +++ /dev/null @@ -1,237 +0,0 @@ -/**************************************************************************** - 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. -****************************************************************************/ - -#include "platform/ohos/jni/JniInteraction.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "JniCocosActivity.h" -#include "cocos/bindings/event/CustomEventTypes.h" - -#include "cocos/bindings/event/EventDispatcher.h" -#include "platform/android/FileUtils-android.h" -#include "platform/android/jni/JniCocosActivity.h" -#include "platform/java/jni/JniHelper.h" - -namespace cc { -JniInteraction::JniInteraction() = default; - -JniInteraction* JniInteraction::getInstance() { - static JniInteraction cocosInstaction; - return &cocosInstaction; -} - -void JniInteraction::init() { -} - -void JniInteraction::setObbPath(const std::string& path) { - _obbPath = path; -} - -void JniInteraction::setAAssetManager(AAssetManager* assetManager) { - _assetManager = assetManager; -} - -void JniInteraction::setResourceManager(ResourceManager* assetManager) { - _resourceManager = assetManager; -} - -void JniInteraction::setWindow(ANativeWindow* window) { - std::unique_lock lk(_mutex); - if (_pendingWindow) { - writeCommand(APP_CMD_TERM_WINDOW); - } - _pendingWindow = window; - if (window) { - writeCommand(APP_CMD_INIT_WINDOW); - } - while (_window != _pendingWindow) { - _cond.wait(lk); - } -} - -void JniInteraction::preExecCmd(int8_t cmd) { - switch (cmd) { - case APP_CMD_INIT_WINDOW: { - LOGV("APP_CMD_INIT_WINDOW"); - std::unique_lock lk(_mutex); - _window = _pendingWindow; - lk.unlock(); - _cond.notify_all(); - setAnimating(true); - } break; - case APP_CMD_TERM_WINDOW: - LOGV("APP_CMD_TERM_WINDOW"); - setAnimating(false); - _cond.notify_all(); - break; - case APP_CMD_RESUME: - LOGV("APP_CMD_RESUME"); - handlePauseResume(cmd); - break; - case APP_CMD_PAUSE: - LOGV("APP_CMD_PAUSE"); - handlePauseResume(cmd); - break; - default: - break; - } -} - -void JniInteraction::postExecCmd(int8_t cmd) { - switch (cmd) { - case APP_CMD_TERM_WINDOW: { - std::unique_lock lk(_mutex); - _window = nullptr; - lk.unlock(); - _cond.notify_all(); - } break; - default: - break; - } -} - -void JniInteraction::setAppState(int8_t cmd) { - std::unique_lock lk(_mutex); - writeCommand(cmd); - while (_appState != cmd) { - _cond.wait(lk); - } -} - -void JniInteraction::handlePauseResume(int8_t cmd) { - LOGV("appState=%d", cmd); - std::unique_lock lk(_mutex); - _appState = static_cast(cmd); - lk.unlock(); - _cond.notify_all(); -} - -void JniInteraction::flushTasksOnGameThread() const { - if (getAnimating()) { - // Handle java events send by UI thread. Input events are handled here too. - flushTasksOnGameThreadJNI(); - } -} - -void JniInteraction::setRunning(bool isRunning) { - std::unique_lock lk(_mutex); - _running = isRunning; - lk.unlock(); - _cond.notify_all(); - //_systemWindow = _platform->getInterfaces(); -} - -void JniInteraction::waitRunning() { - std::unique_lock lk(_mutex); - while (!_running) { - _cond.wait(lk); - } -} - -bool JniInteraction::isRunning() { - std::unique_lock lk(_mutex); - return _running; -} - -ANativeWindow* JniInteraction::getWindowHandle() { - std::unique_lock lk(_mutex); - return _window; -} - -void JniInteraction::execCommand() { - int8_t cmd = 0; - if (readCommand(cmd) > 0) { - preExecCmd(cmd); - engineHandleCmd(cmd); - postExecCmd(cmd); - } -} - -bool JniInteraction::isPause() const { - if (!getAnimating()) { - return true; - } - if (_appState == APP_CMD_PAUSE) { - return true; - } - return false; -} - -void JniInteraction::engineHandleCmd(int cmd) { - static bool isWindowInitialized = false; - // Handle CMD here if needed. - switch (cmd) { - case APP_CMD_INIT_WINDOW: { - if (!isWindowInitialized) { - isWindowInitialized = true; - return; - } - cc::CustomEvent event; - event.name = EVENT_RECREATE_WINDOW; - event.args->ptrVal = reinterpret_cast(getWindowHandle()); - dispatchEvent(event); - } break; - case APP_CMD_TERM_WINDOW: { - cc::CustomEvent event; - event.name = EVENT_DESTROY_WINDOW; - event.args->ptrVal = reinterpret_cast(getWindowHandle()); - dispatchEvent(event); - } break; - case APP_CMD_RESUME: { - WindowEvent ev; - ev.type = WindowEvent::Type::SHOW; - dispatchEvent(ev); - } break; - case APP_CMD_PAUSE: { - WindowEvent ev; - ev.type = WindowEvent::Type::HIDDEN; - dispatchEvent(ev); - } break; - case APP_CMD_DESTROY: { - LOGV("APP_CMD_DESTROY"); - WindowEvent ev; - ev.type = WindowEvent::Type::CLOSE; - dispatchEvent(ev); - } break; - case APP_CMD_LOW_MEMORY: { - DeviceEvent ev; - ev.type = DeviceEvent::Type::DEVICE_MEMORY; - dispatchEvent(ev); - break; - } - default: - break; - } -} - -} // namespace cc diff --git a/native/cocos/platform/ohos/jni/JniNativeGlue.cpp b/native/cocos/platform/ohos/jni/JniNativeGlue.cpp deleted file mode 100644 index 847de6a23b..0000000000 --- a/native/cocos/platform/ohos/jni/JniNativeGlue.cpp +++ /dev/null @@ -1,224 +0,0 @@ -/**************************************************************************** - 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. -****************************************************************************/ - -#include "platform/android/jni/glue/JniNativeGlue.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "cocos/bindings/event/CustomEventTypes.h" -#include "platform/android/jni/JniCocosActivity.h" - - -#include "cocos/bindings/event/EventDispatcher.h" -#include "platform/android/FileUtils-android.h" -#include "platform/android/jni/JniCocosActivity.h" -#include "platform/java/jni/JniHelper.h" - -namespace cc { -JniInteraction::JniInteraction() = default; - -JniInteraction* JniInteraction::getInstance() { - static JniInteraction cocosInstaction; - return &cocosInstaction; -} - -void JniInteraction::init() { -} - -void JniInteraction::setObbPath(const std::string& path) { - _obbPath = path; -} - -void JniInteraction::setAAssetManager(AAssetManager* assetManager) { - _assetManager = assetManager; -} - -void JniInteraction::setWindow(ANativeWindow* window) { - if (_pendingWindow) { - writeCommandSync(ABILITY_CMD_TERM_WINDOW); - } - _pendingWindow = window; -} - -void JniInteraction::initWithPendingWindow() { - if (_pendingWindow) { - writeCommandSync(ABILITY_CMD_INIT_WINDOW); - } -} - -void JniInteraction::preExecCmd(int8_t cmd) { - switch (cmd) { - case ABILITY_CMD_INIT_WINDOW: { - LOGV("ABILITY_CMD_INIT_WINDOW"); - _window = _pendingWindow; - setAnimating(true); - } break; - case ABILITY_CMD_TERM_WINDOW: - LOGV("ABILITY_CMD_TERM_WINDOW"); - setAnimating(false); - break; - case ABILITY_CMD_RESUME: - LOGV("ABILITY_CMD_RESUME"); - handlePauseResume(cmd); - break; - case ABILITY_CMD_PAUSE: - LOGV("ABILITY_CMD_PAUSE"); - handlePauseResume(cmd); - break; - case ABILITY_CMD_DESTROY: - LOGV("ABILITY_CMD_DESTROY"); - cc::cocosApp.destroyRequested = true; - break; - default: - break; - } -} - -void JniInteraction::postExecCmd(int8_t cmd) { - switch (cmd) { - case ABILITY_CMD_TERM_WINDOW: { - _window = nullptr; - _pendingWindow = nullptr; - } break; - default: - break; - } -} - -void JniInteraction::setAppState(int8_t cmd) { - /* - std::unique_lock lk(_mutex); - writeCommand(cmd); - while (_appState != cmd) { - _cond.wait(lk); - } - */ - writeCommandSync(cmd); -} - -void JniInteraction::handlePauseResume(int8_t cmd) { - LOGV("appState=%d", cmd); - _appState = static_cast(cmd); -} - -void JniInteraction::flushTasksOnGameThread() const { - if (getAnimating()) { - // Handle java events send by UI thread. Input events are handled here too. - flushTasksOnGameThreadJNI(); - } -} - -void JniInteraction::setRunning(bool isRunning) { - _ThreadPromise.set_value(); - _running = isRunning; - //_systemWindow = _platform->getInterfaces(); -} - -void JniInteraction::waitRunning() { - _ThreadPromise.get_future().get(); -} - -bool JniInteraction::isRunning() { - return _running; -} - -ANativeWindow* JniInteraction::getWindowHandle() { - return _window; -} - -void JniInteraction::execCommand() { - CommandMsg msg; - if (readCommand(&msg) > 0) { - preExecCmd(msg.cmd); - engineHandleCmd(msg.cmd); - postExecCmd(msg.cmd); - } -} - -bool JniInteraction::isPause() const { - if (!getAnimating()) { - return true; - } - if (_appState == APP_CMD_PAUSE) { - return true; - } - return false; -} - -void JniInteraction::engineHandleCmd(int cmd) { - static bool isWindowInitialized = false; - // Handle CMD here if needed. - switch (cmd) { - case APP_CMD_INIT_WINDOW: { - if (!isWindowInitialized) { - isWindowInitialized = true; - return; - } - cc::CustomEvent event; - event.name = EVENT_RECREATE_WINDOW; - event.args->ptrVal = reinterpret_cast(getWindowHandle()); - dispatchEvent(event); - } break; - case APP_CMD_TERM_WINDOW: { - cc::CustomEvent event; - event.name = EVENT_DESTROY_WINDOW; - event.args->ptrVal = reinterpret_cast(getWindowHandle()); - dispatchEvent(event); - } break; - case APP_CMD_RESUME: { - WindowEvent ev; - ev.type = WindowEvent::Type::SHOW; - dispatchEvent(ev); - } break; - case APP_CMD_PAUSE: { - WindowEvent ev; - ev.type = WindowEvent::Type::HIDDEN; - dispatchEvent(ev); - } break; - case APP_CMD_DESTROY: { - LOGV("APP_CMD_DESTROY"); - WindowEvent ev; - ev.type = WindowEvent::Type::CLOSE; - dispatchEvent(ev); - } break; - case APP_CMD_LOW_MEMORY: { - DeviceEvent ev; - ev.type = DeviceEvent::Type::DEVICE_MEMORY; - dispatchEvent(ev); - break; - } - default: - break; - } -} - -} // namespace cc diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java index 7f0e48c006..1116d108a4 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosAbilitySlice.java @@ -152,7 +152,7 @@ public class CocosAbilitySlice extends AbilitySlice implements SurfaceOps.Callba mSurfaceProvider.setTouchEventListener(this); mSurfaceProvider.setLayoutRefreshedListener(component -> { // dispatch resize event - CocosHelper.runOnGameThread(()->{ + CocosHelper.runOnGameThreadAtForeground(()->{ onOrientationChangedNative(getDisplayOrientation(), component.getWidth(), component.getHeight()); }); }); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java index 738b05b8ea..c7aa591cdd 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosEditBoxAbility.java @@ -397,19 +397,19 @@ public class CocosEditBoxAbility extends AbilitySlice { Native functions invoked by UI. **************************************************************************************/ private void onKeyboardInput(String text) { - CocosHelper.runOnGameThread(() -> + CocosHelper.runOnGameThreadAtForeground(() -> CocosEditBoxAbility.onKeyboardInputNative(text) ); } private void onKeyboardComplete(String text) { - CocosHelper.runOnGameThread(() -> + CocosHelper.runOnGameThreadAtForeground(() -> CocosEditBoxAbility.onKeyboardCompleteNative(text) ); } private void onKeyboardConfirm(String text) { - CocosHelper.runOnGameThread(() -> + CocosHelper.runOnGameThreadAtForeground(() -> CocosEditBoxAbility.onKeyboardConfirmNative(text) ); } diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java index 4c972f5caf..0d8bfbfab2 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosHelper.java @@ -80,8 +80,26 @@ public class CocosHelper { private static String sObbFilePath = ""; - private static List sTaskOnGameThread = Collections.synchronizedList(new ArrayList<>()); + static class LockedTaskQ { + private final Object readMtx = new Object(); + private Queue sTaskQ = new LinkedList<>(); + public synchronized void addTask(Runnable runnable) { + sTaskQ.add(runnable); + } + public void runTasks(){ + Queue tmp; + synchronized (readMtx) { + tmp = sTaskQ; + sTaskQ = new LinkedList<>(); + } + for(Runnable runnable : tmp){ + runnable.run(); + } + } + } + private static LockedTaskQ sTaskQOnGameThread = new LockedTaskQ(); + private static LockedTaskQ sForegroundTaskQOnGameThread = new LockedTaskQ(); /** * Battery receiver to getting battery level. */ @@ -130,18 +148,20 @@ public class CocosHelper { } } + //Run on game thread forever, no matter foreground or background public static void runOnGameThread(final Runnable runnable) { - sTaskOnGameThread.add(runnable); + sTaskQOnGameThread.addTask(runnable); } - @SuppressWarnings("unused") static void flushTasksOnGameThread() { - while (sTaskOnGameThread.size() > 0) { - Runnable r = sTaskOnGameThread.remove(0); - if (r != null) { - r.run(); - } - } + sTaskQOnGameThread.runTasks(); + } + public static void runOnGameThreadAtForeground(final Runnable runnable) { + sForegroundTaskQOnGameThread.addTask(runnable); + } + @SuppressWarnings("unused") + static void flushTasksOnGameThreadAtForeground() { + sForegroundTaskQOnGameThread.runTasks(); } @SuppressWarnings("unused") diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java index fc5b58687e..26f19e9134 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosKeyCodeHandler.java @@ -51,7 +51,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEY_ENTER: case KeyEvent.KEY_MEDIA_PLAY_PAUSE: case KeyEvent.KEY_DPAD_CENTER: - CocosHelper.runOnGameThread(() -> handleKeyDown(keyCode)); + CocosHelper.runOnGameThreadAtForeground(() -> handleKeyDown(keyCode)); return true; default: return false; @@ -69,7 +69,7 @@ public class CocosKeyCodeHandler { case KeyEvent.KEY_ENTER: case KeyEvent.KEY_MEDIA_PLAY_PAUSE: case KeyEvent.KEY_DPAD_CENTER: - CocosHelper.runOnGameThread(() -> handleKeyDown(keyCode)); + CocosHelper.runOnGameThreadAtForeground(() -> handleKeyDown(keyCode)); return true; default: return false; diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java index a1171a5643..62b14c9028 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosOrientationHelper.java @@ -63,7 +63,7 @@ public class CocosOrientationHelper implements ICategoryOrientationDataCallback final int curOrientation = CocosHelper.getDeviceRotation(); if (curOrientation != mCurrentOrientation) { mCurrentOrientation = curOrientation; - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeOnOrientationChanged(mCurrentOrientation); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java index 1b5323244c..4f99b0904f 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosTouchHandler.java @@ -69,7 +69,7 @@ public class CocosTouchHandler { MmiPoint pos = pMotionEvent.getPointerPosition(indexPointerDown); final float xPointerDown = pos.getX(); final float yPointerDown = pos.getY(); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionDown(idPointerDown, xPointerDown, yPointerDown); @@ -78,7 +78,7 @@ public class CocosTouchHandler { break; case TouchEvent.POINT_MOVE: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionMove(ids, xs, ys); @@ -95,7 +95,7 @@ public class CocosTouchHandler { MmiPoint posUP = pMotionEvent.getPointerPosition(indexPointUp); final float xPointerUp = posUP.getX(); final float yPointerUp = posUP.getY(); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionUp(idPointerUp, xPointerUp, yPointerUp); @@ -105,7 +105,7 @@ public class CocosTouchHandler { break; case TouchEvent.CANCEL: - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { handleActionCancel(ids, xs, ys); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java index a36e726674..2f787d76be 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosVideoHelper.java @@ -171,7 +171,7 @@ public class CocosVideoHelper { @Override public void onVideoEvent(int tag,int event) { - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(tag, event); @@ -294,7 +294,7 @@ public class CocosVideoHelper { CocosVideoView videoView = sVideoViews.get(key); if (videoView != null) { videoView.setFullScreenEnabled(false); - CocosHelper.runOnGameThread(new Runnable() { + CocosHelper.runOnGameThreadAtForeground(new Runnable() { @Override public void run() { nativeExecuteVideoCallback(key, KeyEventBack); diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java index 90dc06e583..d88137adf2 100644 --- a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/CocosWebView.java @@ -78,7 +78,7 @@ public class CocosWebView extends WebView { try { URI uri = new URI(request.getRequestUrl().toString()); if (uri.getScheme().equals(mJSScheme)) { - CocosHelper.runOnGameThread( + CocosHelper.runOnGameThreadAtForeground( () -> CocosWebViewHelper._onJsCallback(mViewTag, urlString) ); return true; @@ -92,7 +92,7 @@ public class CocosWebView extends WebView { ); // run worker on cocos thread - CocosHelper.runOnGameThread(shouldStartLoadingCB); + CocosHelper.runOnGameThreadAtForeground(shouldStartLoadingCB); // wait for result from cocos thread try { @@ -109,7 +109,7 @@ public class CocosWebView extends WebView { public void onPageLoaded(WebView view, final String url) { super.onPageLoaded(view, url); - CocosHelper.runOnGameThread( + CocosHelper.runOnGameThreadAtForeground( () -> CocosWebViewHelper._didFinishLoading(mViewTag, url) ); } @@ -118,7 +118,7 @@ public class CocosWebView extends WebView { public void onError(WebView view, ResourceRequest request, ResourceError error) { super.onError(view, request, error); final String failingUrl = request.getRequestUrl().toString(); - CocosHelper.runOnGameThread( + CocosHelper.runOnGameThreadAtForeground( () -> CocosWebViewHelper._didFailLoading(mViewTag, failingUrl) ); } diff --git a/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/JsbBridgeWrapper.java b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/JsbBridgeWrapper.java new file mode 100644 index 0000000000..6bc71bb92b --- /dev/null +++ b/native/cocos/platform/ohos/libcocos/src/main/java/com/cocos/lib/JsbBridgeWrapper.java @@ -0,0 +1,109 @@ +/**************************************************************************** + Copyright (c) 2018-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. + ****************************************************************************/ +package com.cocos.lib; + +import java.util.ArrayList; +import java.util.HashMap; + +public class JsbBridgeWrapper { + //Interface for listener, should be implemented and dispatched + public interface OnScriptEventListener { + void onScriptEvent(String arg); + } + /** + * Get the instance of JsbBridgetWrapper + */ + public static JsbBridgeWrapper getInstance() { + if (instance == null) { + instance = new JsbBridgeWrapper(); + } + return instance; + } + /** + * Add a listener to specified event, if the event does not exist, the wrapper will create one. Concurrent listener will be ignored + */ + public void addScriptEventListener(String eventName, OnScriptEventListener listener) { + if (eventMap.get(eventName) == null) { + eventMap.put(eventName, new ArrayList()); + } + eventMap.get(eventName).add(listener); + } + /** + * Remove listener for specified event, concurrent event will be deleted. Return false only if the event does not exist + */ + public boolean removeScriptEventListener(String eventName, OnScriptEventListener listener) { + ArrayList arr = eventMap.get(eventName); + if (arr == null) { + return false; + } + arr.remove(listener); + return true; + } + /** + * Remove all listener for event specified. + */ + public void removeAllListenersForEvent(String eventName) { + this.eventMap.remove(eventName); + } + /** + * Remove all event registered. Use it carefully! + */ + public void removeAllListeners() { + this.eventMap.clear(); + } + /** + * Dispatch the event with argument, the event should be registered in javascript, or other script language in future. + */ + public void dispatchEventToScript(String eventName, String arg) { + JsbBridge.sendToScript(eventName, arg); + } + /** + * Dispatch the event which is registered in javascript, or other script language in future. + */ + public void dispatchEventToScript(String eventName) { + JsbBridge.sendToScript(eventName); + } + + private JsbBridgeWrapper() { + JsbBridge.setCallback(new JsbBridge.ICallback() { + @Override + public void onScript(String arg0, String arg1) { + triggerEvents(arg0, arg1); + } + }); + } + + private final HashMap> eventMap = new HashMap<>(); + private static JsbBridgeWrapper instance; + + private void triggerEvents(String eventName, String arg) { + ArrayList arr = eventMap.get(eventName); + if (arr == null) + return; + for (OnScriptEventListener m : arr) { + m.onScriptEvent(arg); + } + } +} diff --git a/native/cocos/platform/ohos/modules/System.cpp b/native/cocos/platform/ohos/modules/System.cpp index 84f29cc4d0..c20f4314f6 100644 --- a/native/cocos/platform/ohos/modules/System.cpp +++ b/native/cocos/platform/ohos/modules/System.cpp @@ -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/qnx/QNXPlatform.cpp b/native/cocos/platform/qnx/QNXPlatform.cpp index 52aa11a0e9..c84306a0e2 100644 --- a/native/cocos/platform/qnx/QNXPlatform.cpp +++ b/native/cocos/platform/qnx/QNXPlatform.cpp @@ -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/modules/CanvasRenderingContext2DDelegate.cpp b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp index 8e179f59d7..430c8e60fe 100644 --- a/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp +++ b/native/cocos/platform/qnx/modules/CanvasRenderingContext2DDelegate.cpp @@ -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/Screen.cpp b/native/cocos/platform/qnx/modules/Screen.cpp index cbf1d6599b..e2dd18b92b 100644 --- a/native/cocos/platform/qnx/modules/Screen.cpp +++ b/native/cocos/platform/qnx/modules/Screen.cpp @@ -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/System.cpp b/native/cocos/platform/qnx/modules/System.cpp index 1c4584177e..ca3ee7fe31 100644 --- a/native/cocos/platform/qnx/modules/System.cpp +++ b/native/cocos/platform/qnx/modules/System.cpp @@ -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 c827a9a3e9..33938ae5c9 100644 --- a/native/cocos/platform/qnx/modules/System.h +++ b/native/cocos/platform/qnx/modules/System.h @@ -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/win32/FileUtils-win32.cpp b/native/cocos/platform/win32/FileUtils-win32.cpp index 05bba4ddf7..815dce78f4 100644 --- a/native/cocos/platform/win32/FileUtils-win32.cpp +++ b/native/cocos/platform/win32/FileUtils-win32.cpp @@ -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 d9a1ba44fe..727731a5bd 100644 --- a/native/cocos/platform/win32/FileUtils-win32.h +++ b/native/cocos/platform/win32/FileUtils-win32.h @@ -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 e76bbe7727..dbdea90975 100644 --- a/native/cocos/platform/win32/SystemGlue.cpp +++ b/native/cocos/platform/win32/SystemGlue.cpp @@ -22,4 +22,3 @@ 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 e76bbe7727..dbdea90975 100644 --- a/native/cocos/platform/win32/SystemGlue.h +++ b/native/cocos/platform/win32/SystemGlue.h @@ -22,4 +22,3 @@ 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 7641f588f9..8b49bf4d44 100644 --- a/native/cocos/platform/win32/Utils-win32.cpp +++ b/native/cocos/platform/win32/Utils-win32.cpp @@ -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 175e890a6b..856d6f9ac7 100644 --- a/native/cocos/platform/win32/Utils-win32.h +++ b/native/cocos/platform/win32/Utils-win32.h @@ -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 0079460fe4..05f091173c 100644 --- a/native/cocos/platform/win32/WindowsPlatform.cpp +++ b/native/cocos/platform/win32/WindowsPlatform.cpp @@ -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 dfd1ce376b..58e831ed42 100644 --- a/native/cocos/platform/win32/WindowsPlatform.h +++ b/native/cocos/platform/win32/WindowsPlatform.h @@ -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 b51b64670b..3afa0e5b14 100644 --- a/native/cocos/platform/win32/compat/stdint.h +++ b/native/cocos/platform/win32/compat/stdint.h @@ -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/Screen.cpp b/native/cocos/platform/win32/modules/Screen.cpp index b862511430..7db05413a0 100644 --- a/native/cocos/platform/win32/modules/Screen.cpp +++ b/native/cocos/platform/win32/modules/Screen.cpp @@ -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/System.cpp b/native/cocos/platform/win32/modules/System.cpp index 184ca7103e..f78fdf8c1a 100644 --- a/native/cocos/platform/win32/modules/System.cpp +++ b/native/cocos/platform/win32/modules/System.cpp @@ -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/SystemWindow.cpp b/native/cocos/platform/win32/modules/SystemWindow.cpp index e2ca544770..12ab37e6ed 100644 --- a/native/cocos/platform/win32/modules/SystemWindow.cpp +++ b/native/cocos/platform/win32/modules/SystemWindow.cpp @@ -35,7 +35,6 @@ #include "sdl2/SDL_main.h" #include "sdl2/SDL_syswm.h" - namespace { } // namespace diff --git a/native/cocos/renderer/frame-graph/DevicePassResourceTable.h b/native/cocos/renderer/frame-graph/DevicePassResourceTable.h index b2184ad6e7..6966c83a4a 100644 --- a/native/cocos/renderer/frame-graph/DevicePassResourceTable.h +++ b/native/cocos/renderer/frame-graph/DevicePassResourceTable.h @@ -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/PassNode.h b/native/cocos/renderer/frame-graph/PassNode.h index fe8208fd54..02a399de05 100644 --- a/native/cocos/renderer/frame-graph/PassNode.h +++ b/native/cocos/renderer/frame-graph/PassNode.h @@ -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/gfx-agent/BufferAgent.cpp b/native/cocos/renderer/gfx-agent/BufferAgent.cpp index 20d644d1e2..ddebf26b81 100644 --- a/native/cocos/renderer/gfx-agent/BufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/BufferAgent.cpp @@ -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/CommandBufferAgent.cpp b/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp index 658f984798..6611237da1 100644 --- a/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp +++ b/native/cocos/renderer/gfx-agent/CommandBufferAgent.cpp @@ -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/DeviceAgent.cpp b/native/cocos/renderer/gfx-agent/DeviceAgent.cpp index 9d2e52c3ab..eb109a7de1 100644 --- a/native/cocos/renderer/gfx-agent/DeviceAgent.cpp +++ b/native/cocos/renderer/gfx-agent/DeviceAgent.cpp @@ -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-base/GFXCommandBuffer.h b/native/cocos/renderer/gfx-base/GFXCommandBuffer.h index 4447510fb7..926d970021 100644 --- a/native/cocos/renderer/gfx-base/GFXCommandBuffer.h +++ b/native/cocos/renderer/gfx-base/GFXCommandBuffer.h @@ -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.h b/native/cocos/renderer/gfx-base/GFXDef.h index b977350eac..e2f87c8aae 100644 --- a/native/cocos/renderer/gfx-base/GFXDef.h +++ b/native/cocos/renderer/gfx-base/GFXDef.h @@ -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/GFXDevice.cpp b/native/cocos/renderer/gfx-base/GFXDevice.cpp index cc872e96bc..4b9b637a8d 100644 --- a/native/cocos/renderer/gfx-base/GFXDevice.cpp +++ b/native/cocos/renderer/gfx-base/GFXDevice.cpp @@ -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/GFXSwapchain.h b/native/cocos/renderer/gfx-base/GFXSwapchain.h index ee947e0250..8c7050f779 100644 --- a/native/cocos/renderer/gfx-base/GFXSwapchain.h +++ b/native/cocos/renderer/gfx-base/GFXSwapchain.h @@ -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 681ba07734..00f724c60c 100644 --- a/native/cocos/renderer/gfx-base/GFXTexture.cpp +++ b/native/cocos/renderer/gfx-base/GFXTexture.cpp @@ -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-gles-common/eglw.cpp b/native/cocos/renderer/gfx-gles-common/eglw.cpp index 7ac2b6ae86..f42f565aea 100644 --- a/native/cocos/renderer/gfx-gles-common/eglw.cpp +++ b/native/cocos/renderer/gfx-gles-common/eglw.cpp @@ -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 7b2defb3df..54e6a3aee6 100644 --- a/native/cocos/renderer/gfx-gles-common/eglw.h +++ b/native/cocos/renderer/gfx-gles-common/eglw.h @@ -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 52a3696747..57daf8841d 100644 --- a/native/cocos/renderer/gfx-gles-common/gles2w.cpp +++ b/native/cocos/renderer/gfx-gles-common/gles2w.cpp @@ -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 d2c8c869a1..3a507245d0 100644 --- a/native/cocos/renderer/gfx-gles-common/gles2w.h +++ b/native/cocos/renderer/gfx-gles-common/gles2w.h @@ -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 52e8816479..c604fc765a 100644 --- a/native/cocos/renderer/gfx-gles-common/gles3w.cpp +++ b/native/cocos/renderer/gfx-gles-common/gles3w.cpp @@ -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 08e1a3c276..00c23d3759 100644 --- a/native/cocos/renderer/gfx-gles-common/gles3w.h +++ b/native/cocos/renderer/gfx-gles-common/gles3w.h @@ -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/GLES2Commands.h b/native/cocos/renderer/gfx-gles2/GLES2Commands.h index 8048abf5bc..3e2e5b6b95 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Commands.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Commands.h @@ -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/GLES2Std.h b/native/cocos/renderer/gfx-gles2/GLES2Std.h index 25c1b0ad40..e913c75271 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Std.h +++ b/native/cocos/renderer/gfx-gles2/GLES2Std.h @@ -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 f5baefa306..0381bce59d 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Swapchain.cpp @@ -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/GLES2Wrangler.cpp b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp index 631a3e851c..dc9919bf48 100644 --- a/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp +++ b/native/cocos/renderer/gfx-gles2/GLES2Wrangler.cpp @@ -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-gles3/GLES3Std.h b/native/cocos/renderer/gfx-gles3/GLES3Std.h index 80f511f601..b675c9791e 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Std.h +++ b/native/cocos/renderer/gfx-gles3/GLES3Std.h @@ -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 335e51ab11..a4ccc81e12 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Swapchain.cpp @@ -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/GLES3Wrangler.cpp b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp index 7bb588b671..aa7b32029d 100644 --- a/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp +++ b/native/cocos/renderer/gfx-gles3/GLES3Wrangler.cpp @@ -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-metal/MTLBuffer.h b/native/cocos/renderer/gfx-metal/MTLBuffer.h index 9fec646d60..92073f4af8 100644 --- a/native/cocos/renderer/gfx-metal/MTLBuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLBuffer.h @@ -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/MTLCommandBuffer.h b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h index d63d39a3a1..fb3cbe2014 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.h @@ -29,6 +29,7 @@ #import #import +#include #include "MTLComputeCommandEncoder.h" #include "MTLGPUObjects.h" #include "MTLRenderCommandEncoder.h" @@ -94,7 +95,7 @@ protected: void bindDescriptorSets(); void updateDepthStencilState(uint32_t subPassIndex, MTLRenderPassDescriptor *descriptor); static bool isRenderingEntireDrawable(const Rect &rect, const CCMTLFramebuffer *renderPass); - + id getMTLCommandBuffer(); vector _GPUDescriptorSets; // NOLINT(bugprone-reserved-identifier) @@ -112,8 +113,10 @@ protected: MTLPrimitiveType _mtlPrimitiveType = MTLPrimitiveType::MTLPrimitiveTypeTriangle; CCMTLGPUCommandBufferObject *_gpuCommandBufferObj = nullptr; - - CCMTLSemaphore* _texCopySemaphore = nullptr; + + CCMTLSemaphore *_texCopySemaphore = nullptr; + + std::bitset _colorAppearedBefore; }; } // namespace gfx diff --git a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm index 8798280152..d8cb314b57 100644 --- a/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm +++ b/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm @@ -126,6 +126,8 @@ void CCMTLCommandBuffer::begin(RenderPass *renderPass, uint subpass, Framebuffer _firstDirtyDescriptorSet = UINT_MAX; _commandBufferBegan = true; _firstRenderPass = true; + + _colorAppearedBefore.reset(); } void CCMTLCommandBuffer::end() { @@ -162,6 +164,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb // if not rendering to full framebuffer(eg. left top area), draw a quad to pretend viewport clear. bool renderingFullFramebuffer = isRenderingEntireDrawable(renderArea, static_cast(fbo)); + bool needPartialClear = false; if (subpasses.empty()) { if (dsTexture) { auto *ccMtlTexture = static_cast(dsTexture); @@ -181,10 +184,16 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb ccMtlRenderPass->setColorAttachment(i, ccMtlTexture, 0); mtlRenderPassDescriptor.colorAttachments[i].clearColor = mu::toMTLClearColor(colors[i]); if(!renderingFullFramebuffer) { - mtlRenderPassDescriptor.colorAttachments[i].loadAction = _firstRenderPass ? MTLLoadActionClear : MTLLoadActionLoad; + if(!_colorAppearedBefore[i]) { + mtlRenderPassDescriptor.colorAttachments[i].loadAction = mu::toMTLLoadAction(colorAttachments[i].loadOp); + } else { + mtlRenderPassDescriptor.colorAttachments[i].loadAction = MTLLoadActionLoad; + needPartialClear = colorAttachments[i].loadOp == LoadOp::CLEAR; + } } else { mtlRenderPassDescriptor.colorAttachments[i].loadAction = mu::toMTLLoadAction(colorAttachments[i].loadOp); } + _colorAppearedBefore.set(i); mtlRenderPassDescriptor.colorAttachments[i].storeAction = mu::isFramebufferFetchSupported() ? mu::toMTLStoreAction(colorAttachments[i].storeOp) : MTLStoreActionStore; } } @@ -211,12 +220,18 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb ccMtlRenderPass->setColorAttachment(color, ccMtlTexture, 0); mtlRenderPassDescriptor.colorAttachments[color].clearColor = mu::toMTLClearColor(colors[color]); if(!renderingFullFramebuffer) { - mtlRenderPassDescriptor.colorAttachments[color].loadAction = _firstRenderPass ? MTLLoadActionClear : MTLLoadActionLoad; + if(!_colorAppearedBefore[color]) { + mtlRenderPassDescriptor.colorAttachments[color].loadAction = mu::toMTLLoadAction(colorAttachments[color].loadOp); + } else { + mtlRenderPassDescriptor.colorAttachments[color].loadAction = MTLLoadActionLoad; + needPartialClear = colorAttachments[color].loadOp == LoadOp::CLEAR; + } } else { mtlRenderPassDescriptor.colorAttachments[color].loadAction = mu::toMTLLoadAction(colorAttachments[color].loadOp); } mtlRenderPassDescriptor.colorAttachments[color].storeAction = mu::isFramebufferFetchSupported() ? mu::toMTLStoreAction(colorAttachments[color].storeOp) : MTLStoreActionStore; visited[color] = true; + _colorAppearedBefore.set(color); if (subpasses[i].resolves.size() > j) { uint32_t resolve = subpasses[i].resolves[j]; auto * resolveTex = static_cast(colorTextures[resolve]); @@ -259,7 +274,7 @@ void CCMTLCommandBuffer::beginRenderPass(RenderPass *renderPass, Framebuffer *fb //[_renderEncoder.getMTLEncoder() memoryBarrierWithScope:MTLBarrierScopeTextures afterStages:MTLRenderStageFragment beforeStages:MTLRenderStageFragment]; } - if (!renderingFullFramebuffer) { + if (!renderingFullFramebuffer && needPartialClear) { //Metal doesn't apply the viewports and scissors to renderpass load-action clearing. mu::clearRenderArea(_mtlDevice, _renderEncoder.getMTLEncoder(), renderPass, renderArea, colors, depth, stencil); } @@ -369,6 +384,22 @@ void CCMTLCommandBuffer::updateDepthStencilState(uint32_t index, MTLRenderPassDe } } + } else if(curRenderPass->getDepthStencilAttachment().format != Format::UNKNOWN) { + if(index == 0) { + descriptor.depthAttachment.loadAction = dsAttachment.depthLoadOp == LoadOp::LOAD ? MTLLoadActionLoad : MTLLoadActionClear; + descriptor.stencilAttachment.loadAction = dsAttachment.stencilLoadOp == LoadOp::LOAD ? MTLLoadActionLoad : MTLLoadActionClear; + } else { + descriptor.depthAttachment.loadAction = MTLLoadActionLoad; + descriptor.stencilAttachment.loadAction = MTLLoadActionLoad; + } + //storeop + if(index == subpasses.size() - 1) { + descriptor.depthAttachment.storeAction = dsAttachment.depthStoreOp == StoreOp::STORE ? MTLStoreActionStore : MTLStoreActionDontCare; + descriptor.stencilAttachment.storeAction = dsAttachment.stencilStoreOp == StoreOp::STORE ? MTLStoreActionStore : MTLStoreActionDontCare; + } else { + descriptor.depthAttachment.storeAction = MTLStoreActionStore; + descriptor.stencilAttachment.storeAction = MTLStoreActionStore; + } } } @@ -475,8 +506,9 @@ void CCMTLCommandBuffer::nextSubpass() { const auto colorAttachmentCount = colorAttachments.size(); const SubpassInfoList &subpasses = curRenderPass->getSubpasses(); for (size_t slot = 0U; slot < colorAttachmentCount; slot++) { - mtlRenderPassDescriptor.colorAttachments[slot].loadAction = MTLLoadActionLoad; // mu::toMTLLoadAction(colorAttachments[slot].loadOp); + mtlRenderPassDescriptor.colorAttachments[slot].loadAction = _colorAppearedBefore[slot] ? MTLLoadActionLoad : mu::toMTLLoadAction(colorAttachments[slot].loadOp); mtlRenderPassDescriptor.colorAttachments[slot].storeAction = curSubpassIndex == subpasses.size() - 1 ? mu::toMTLStoreAction(colorAttachments[slot].storeOp) : MTLStoreActionStore; + _colorAppearedBefore.set(slot); } updateDepthStencilState(curSubpassIndex, mtlRenderPassDescriptor); _renderEncoder.initialize(getMTLCommandBuffer(), ccRenderpass->getMTLRenderPassDescriptor()); diff --git a/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h index 87d10b58e3..86aed63a51 100644 --- a/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLComputeCommandEncoder.h @@ -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 79f66e5cc7..37bde3eb12 100644 --- a/native/cocos/renderer/gfx-metal/MTLConfig.h +++ b/native/cocos/renderer/gfx-metal/MTLConfig.h @@ -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 0d3dd8fd9a..5792d55002 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSet.h @@ -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/MTLDescriptorSetLayout.h b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h index 7b565ccab2..28dbaf7cd4 100644 --- a/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h +++ b/native/cocos/renderer/gfx-metal/MTLDescriptorSetLayout.h @@ -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/MTLFramebuffer.h b/native/cocos/renderer/gfx-metal/MTLFramebuffer.h index 8c699f7a78..dcdc5239e0 100644 --- a/native/cocos/renderer/gfx-metal/MTLFramebuffer.h +++ b/native/cocos/renderer/gfx-metal/MTLFramebuffer.h @@ -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/MTLGPUObjects.h b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h index 7c8d543a9a..1138ba6e75 100644 --- a/native/cocos/renderer/gfx-metal/MTLGPUObjects.h +++ b/native/cocos/renderer/gfx-metal/MTLGPUObjects.h @@ -34,8 +34,8 @@ #import #import "../../base/Utils.h" #import "MTLConfig.h" -#import "MTLUtils.h" #import "MTLDevice.h" +#import "MTLUtils.h" namespace cc { namespace gfx { class CCMTLBuffer; @@ -53,6 +53,8 @@ namespace { constexpr size_t MegaBytesToBytes = 1024 * 1024; } +constexpr size_t MAX_COLORATTACHMENTS = 16u; + class CCMTLGPUDescriptorSetLayout : public Object { public: DescriptorSetLayoutBindingList bindings; @@ -106,8 +108,8 @@ public: NSString *shaderSrc = nil; bool specializeColor = true; - - uint32_t bufferIndex = 0; + + uint32_t bufferIndex = 0; uint32_t samplerIndex = 0; }; diff --git a/native/cocos/renderer/gfx-metal/MTLInputAssembler.h b/native/cocos/renderer/gfx-metal/MTLInputAssembler.h index 8cdf277f50..d2f23a4b18 100644 --- a/native/cocos/renderer/gfx-metal/MTLInputAssembler.h +++ b/native/cocos/renderer/gfx-metal/MTLInputAssembler.h @@ -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/MTLPipelineState.h b/native/cocos/renderer/gfx-metal/MTLPipelineState.h index d4690614fa..8ed3e28226 100644 --- a/native/cocos/renderer/gfx-metal/MTLPipelineState.h +++ b/native/cocos/renderer/gfx-metal/MTLPipelineState.h @@ -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/MTLQueue.h b/native/cocos/renderer/gfx-metal/MTLQueue.h index 21e9812eed..fa279e6ecc 100644 --- a/native/cocos/renderer/gfx-metal/MTLQueue.h +++ b/native/cocos/renderer/gfx-metal/MTLQueue.h @@ -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/MTLRenderCommandEncoder.h b/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h index 42e10dfa3d..49e4a84170 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h +++ b/native/cocos/renderer/gfx-metal/MTLRenderCommandEncoder.h @@ -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 fd4e8e5cf4..24ee83bbcf 100644 --- a/native/cocos/renderer/gfx-metal/MTLRenderPass.h +++ b/native/cocos/renderer/gfx-metal/MTLRenderPass.h @@ -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/MTLSampler.h b/native/cocos/renderer/gfx-metal/MTLSampler.h index 7432e5e0f4..eaaf079386 100644 --- a/native/cocos/renderer/gfx-metal/MTLSampler.h +++ b/native/cocos/renderer/gfx-metal/MTLSampler.h @@ -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/MTLSemaphore.h b/native/cocos/renderer/gfx-metal/MTLSemaphore.h index 5b59da724b..51057a1917 100644 --- a/native/cocos/renderer/gfx-metal/MTLSemaphore.h +++ b/native/cocos/renderer/gfx-metal/MTLSemaphore.h @@ -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 2effd043c6..45d1c2cd02 100644 --- a/native/cocos/renderer/gfx-metal/MTLShader.h +++ b/native/cocos/renderer/gfx-metal/MTLShader.h @@ -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/MTLSwapchain.h b/native/cocos/renderer/gfx-metal/MTLSwapchain.h index 8b424c8dc6..415ce1eb14 100644 --- a/native/cocos/renderer/gfx-metal/MTLSwapchain.h +++ b/native/cocos/renderer/gfx-metal/MTLSwapchain.h @@ -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/MTLTexture.h b/native/cocos/renderer/gfx-metal/MTLTexture.h index 511e3eb6d3..d75c4a90a3 100644 --- a/native/cocos/renderer/gfx-metal/MTLTexture.h +++ b/native/cocos/renderer/gfx-metal/MTLTexture.h @@ -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 1455c6c85e..8a5edbb2fc 100644 --- a/native/cocos/renderer/gfx-metal/MTLTexture.mm +++ b/native/cocos/renderer/gfx-metal/MTLTexture.mm @@ -269,9 +269,14 @@ void CCMTLTexture::doResize(uint width, uint height, uint size) { CC_LOG_ERROR("CCMTLTexture: create MTLTexture failed when try to resize the texture."); return; } - - CCMTLDevice::getInstance()->getMemoryStatus().textureSize += size; - + + // texture is a wrapper of drawable when _swapchain is active, drawable is not a resource alloc by gfx, + // but the system so skip here. + if(!_swapchain) { + CCMTLDevice::getInstance()->getMemoryStatus().textureSize -= oldSize; + CCMTLDevice::getInstance()->getMemoryStatus().textureSize += size; + } + if (oldMTLTexture) { std::function destroyFunc = [=]() { if (oldMTLTexture) { @@ -282,7 +287,6 @@ void CCMTLTexture::doResize(uint width, uint height, uint size) { }; //gpu object only CCMTLGPUGarbageCollectionPool::getInstance()->collect(destroyFunc); - CCMTLDevice::getInstance()->getMemoryStatus().textureSize -= oldSize; } } @@ -310,4 +314,4 @@ void CCMTLTexture::deleteDefaultTexture(){ } // namespace gfx -} // namespace cc +} // namespace cc \ No newline at end of file diff --git a/native/cocos/renderer/gfx-metal/MTLUtils.h b/native/cocos/renderer/gfx-metal/MTLUtils.h index 99512f8c2d..c72c1517f2 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.h +++ b/native/cocos/renderer/gfx-metal/MTLUtils.h @@ -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 98fb2f4b13..a5f98bb963 100644 --- a/native/cocos/renderer/gfx-metal/MTLUtils.mm +++ b/native/cocos/renderer/gfx-metal/MTLUtils.mm @@ -314,24 +314,58 @@ bool isASTCFormat(Format format) { } } -gfx::Shader *createShader(CCMTLDevice *device) { +gfx::Shader *createShader(CCMTLDevice *device, CCMTLRenderPass* renderPass) { String vs = R"( layout(location = 0) in vec2 a_position; void main() { gl_Position = vec4(a_position, 1.0, 1.0); } )"; +// String fs = R"( +// precision mediump float; +// layout(set = 0, binding = 0) uniform Color { +// vec4 u_color; +// }; +// layout(location = 0) out vec4 o_color; +// +// void main() { +// o_color = u_color; +// } +// )"; + String fs = R"( precision mediump float; layout(set = 0, binding = 0) uniform Color { vec4 u_color; }; - layout(location = 0) out vec4 o_color; - - void main() { - o_color = u_color; - } )"; + + //TODO_Zeqiang: gather info in framegraph. + if(renderPass->getSubpasses().empty()) { + for (size_t i = 0; i < renderPass->getColorAttachments().size(); ++i) { + fs += "\n layout(location = " + std::to_string(i) + ") out vec4 o_color" + std::to_string(i) + ";"; + } + + fs += "\nvoid main() {\n o_color0 = u_color;\n"; + + for (size_t i = 1; i < renderPass->getColorAttachments().size(); ++i) { + fs += " o_color" + std::to_string(i) + " = vec4(0.0);\n"; + } + } else { + const auto& subpasses = renderPass->getSubpasses(); + for (size_t i = 0; i < subpasses[renderPass->getCurrentSubpassIndex()].colors.size(); ++i) { + fs += "\n layout(location = " + std::to_string(i) + ") out vec4 o_color" + std::to_string(i) + ";"; + } + + fs += "\nvoid main() {\n o_color0 = u_color;\n"; + + for (size_t i = 1; i < subpasses[renderPass->getCurrentSubpassIndex()].colors.size(); ++i) { + fs += " o_color" + std::to_string(i) + " = vec4(0.0);\n"; + } + } + + fs += "}"; + gfx::ShaderStageList shaderStageList; gfx::ShaderStage vertexShaderStage; vertexShaderStage.stage = gfx::ShaderStageFlagBit::VERTEX; @@ -367,7 +401,7 @@ CCMTLGPUPipelineState *getClearRenderPassPipelineState(CCMTLDevice *device, Rend gfx::Attribute position = {"a_position", gfx::Format::RG32F, false, 0, false}; gfx::PipelineStateInfo pipelineInfo; pipelineInfo.primitive = gfx::PrimitiveMode::TRIANGLE_LIST; - pipelineInfo.shader = createShader(device); + pipelineInfo.shader = createShader(device, static_cast(curPass)); pipelineInfo.inputState = {{position}}; pipelineInfo.renderPass = curPass; @@ -877,7 +911,7 @@ bool mu::isImageBlockSupported() { if(!mu::isFramebufferFetchSupported()) { return false; } -#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) || TARGET_CPU_ARM64 +#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) //|| TARGET_CPU_ARM64 return true; #else return false; @@ -885,7 +919,7 @@ bool mu::isImageBlockSupported() { } bool mu::isFramebufferFetchSupported() { -#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) || TARGET_CPU_ARM64 +#if (CC_PLATFORM == CC_PLATFORM_MAC_IOS) //|| TARGET_CPU_ARM64 return true; #else return false; diff --git a/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp b/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp index 030d7dd463..353f7b32db 100644 --- a/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp +++ b/native/cocos/renderer/gfx-validator/RenderPassValidator.cpp @@ -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/SwapchainValidator.cpp b/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp index 1d83146f9a..a95af5ef24 100644 --- a/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp +++ b/native/cocos/renderer/gfx-validator/SwapchainValidator.cpp @@ -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/TextureValidator.cpp b/native/cocos/renderer/gfx-validator/TextureValidator.cpp index 65c8640d57..531a698ac1 100644 --- a/native/cocos/renderer/gfx-validator/TextureValidator.cpp +++ b/native/cocos/renderer/gfx-validator/TextureValidator.cpp @@ -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/ValidationUtils.h b/native/cocos/renderer/gfx-validator/ValidationUtils.h index 04bd575a58..e7b6392ffa 100644 --- a/native/cocos/renderer/gfx-validator/ValidationUtils.h +++ b/native/cocos/renderer/gfx-validator/ValidationUtils.h @@ -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/VKCommands.cpp b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp index 4b9d5feae1..bfc03c7e5f 100644 --- a/native/cocos/renderer/gfx-vulkan/VKCommands.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKCommands.cpp @@ -608,7 +608,6 @@ void cmdFuncCCVKCreateRenderPass(CCVKDevice *device, CCVKGPURenderPass *gpuRende // first, gather necessary statistics for each attachment auto updateLifeCycle = [](AttachmentStatistics &statistics, uint32_t index, VkImageLayout layout, AttachmentStatistics::SubpassUsage usage) { if (statistics.records.count(index)) { - CC_ASSERT(statistics.records[index].layout == layout); statistics.records[index].usage |= usage; } else { statistics.records[index] = {layout, usage}; diff --git a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp index 8badeefd1d..17f7ecca74 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDevice.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKDevice.cpp @@ -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 f09b5c5adf..72506c2bf6 100644 --- a/native/cocos/renderer/gfx-vulkan/VKDevice.h +++ b/native/cocos/renderer/gfx-vulkan/VKDevice.h @@ -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/VKGPUContext.cpp b/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp index 59c2f53651..0ddc727af2 100644 --- a/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKGPUContext.cpp @@ -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/VKStd.h b/native/cocos/renderer/gfx-vulkan/VKStd.h index b7e0e17975..2fe6e3ea19 100644 --- a/native/cocos/renderer/gfx-vulkan/VKStd.h +++ b/native/cocos/renderer/gfx-vulkan/VKStd.h @@ -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/VKUtils.cpp b/native/cocos/renderer/gfx-vulkan/VKUtils.cpp index 8915fb4300..9e7585b290 100644 --- a/native/cocos/renderer/gfx-vulkan/VKUtils.cpp +++ b/native/cocos/renderer/gfx-vulkan/VKUtils.cpp @@ -586,9 +586,9 @@ bool isExtensionSupported(const char *required, const vector(validLightCount); + if (validLightCount > 0) { + // the count of lights is set to cc_lightDir[0].w + _lightBufferData[3 * 4 + 3] = static_cast(validLightCount); + } } void ClusterLightCulling::initBuildingSatge() { @@ -661,6 +663,7 @@ void ClusterLightCulling::clusterLightCulling(scene::Camera* camera) { if (!_initialized || _pipeline->getPipelineUBO()->getCurrentCameraUBOOffset() != 0) return; _camera = camera; update(); // update ubo and light data + if (_validLights.empty()) return; struct DataClusterBuild { framegraph::BufferHandle clusterBuffer; // cluster build storage buffer diff --git a/native/cocos/renderer/pipeline/Enum.h b/native/cocos/renderer/pipeline/Enum.h index 8470212eaa..cebbb567a9 100644 --- a/native/cocos/renderer/pipeline/Enum.h +++ b/native/cocos/renderer/pipeline/Enum.h @@ -26,7 +26,7 @@ #pragma once enum class CommonInsertPoint { - DIP_BLOOM = 350, + DIP_BLOOM = 350, DIP_POSTPROCESS = 400, }; diff --git a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp index 7e75433b0d..fb3d55cceb 100644 --- a/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp +++ b/native/cocos/renderer/pipeline/GlobalDescriptorSetManager.cpp @@ -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/InstancedBuffer.cpp b/native/cocos/renderer/pipeline/InstancedBuffer.cpp index 1746271090..f4d1ae6ffd 100644 --- a/native/cocos/renderer/pipeline/InstancedBuffer.cpp +++ b/native/cocos/renderer/pipeline/InstancedBuffer.cpp @@ -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/PipelineSceneData.cpp b/native/cocos/renderer/pipeline/PipelineSceneData.cpp index e98bf3c7bb..5f5009acda 100644 --- a/native/cocos/renderer/pipeline/PipelineSceneData.cpp +++ b/native/cocos/renderer/pipeline/PipelineSceneData.cpp @@ -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/PipelineUBO.cpp b/native/cocos/renderer/pipeline/PipelineUBO.cpp index 6514c27c5d..9a20c62251 100644 --- a/native/cocos/renderer/pipeline/PipelineUBO.cpp +++ b/native/cocos/renderer/pipeline/PipelineUBO.cpp @@ -161,10 +161,10 @@ void PipelineUBO::updateCameraUBOView(const RenderPipeline *pipeline, float *out output[UBOCamera::GLOBAL_NEAR_FAR_OFFSET + 0] = static_cast(camera->nearClip); output[UBOCamera::GLOBAL_NEAR_FAR_OFFSET + 1] = static_cast(camera->farClip); - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 0] = camera->viewPort.x; - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 1] = camera->viewPort.y; - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 2] = camera->viewPort.z; - output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 3] = camera->viewPort.w; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 0] = sharedData->shadingScale * camera->window->getWidth() * camera->viewPort.x; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 1] = sharedData->shadingScale * camera->window->getHeight() * camera->viewPort.y; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 2] = sharedData->shadingScale * camera->window->getWidth() * camera->viewPort.z; + output[UBOCamera::GLOBAL_VIEW_PORT_OFFSET + 3] = sharedData->shadingScale * camera->window->getHeight() * camera->viewPort.w; } void PipelineUBO::updateShadowUBOView(const RenderPipeline *pipeline, std::array *bufferView, const scene::Camera *camera) { diff --git a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp index 0d7fec80f0..c4adbb182a 100644 --- a/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp +++ b/native/cocos/renderer/pipeline/PlanarShadowQueue.cpp @@ -34,9 +34,9 @@ #include "gfx-base/GFXCommandBuffer.h" #include "gfx-base/GFXDevice.h" #include "gfx-base/GFXShader.h" +#include "scene/AABB.h" #include "scene/Model.h" #include "scene/RenderScene.h" -#include "scene/AABB.h" namespace cc { namespace pipeline { @@ -109,7 +109,7 @@ void PlanarShadowQueue::recordCommandBuffer(gfx::Device *device, gfx::RenderPass const PipelineSceneData * sceneData = _pipeline->getPipelineSceneData(); const scene::PipelineSharedSceneData *sharedData = sceneData->getSharedData(); const scene::Shadow * shadowInfo = sharedData->shadow; - if (!shadowInfo->enabled || shadowInfo->shadowType != scene::ShadowType::PLANAR) { + if (!shadowInfo->enabled || shadowInfo->shadowType != scene::ShadowType::PLANAR || shadowInfo->normal.length() < 0.000001F) { return; } diff --git a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h index 054db409e7..c28d148ac4 100644 --- a/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h +++ b/native/cocos/renderer/pipeline/RenderAdditiveLightQueue.h @@ -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.h b/native/cocos/renderer/pipeline/RenderBatchedQueue.h index 220be8873f..4d07c2bde9 100644 --- a/native/cocos/renderer/pipeline/RenderBatchedQueue.h +++ b/native/cocos/renderer/pipeline/RenderBatchedQueue.h @@ -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.h b/native/cocos/renderer/pipeline/RenderFlow.h index 8cca303011..614be80b2d 100644 --- a/native/cocos/renderer/pipeline/RenderFlow.h +++ b/native/cocos/renderer/pipeline/RenderFlow.h @@ -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.h b/native/cocos/renderer/pipeline/RenderInstancedQueue.h index 93bc759697..5891a3486a 100644 --- a/native/cocos/renderer/pipeline/RenderInstancedQueue.h +++ b/native/cocos/renderer/pipeline/RenderInstancedQueue.h @@ -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/RenderStage.cpp b/native/cocos/renderer/pipeline/RenderStage.cpp index 933bf82c08..a1c5a25254 100644 --- a/native/cocos/renderer/pipeline/RenderStage.cpp +++ b/native/cocos/renderer/pipeline/RenderStage.cpp @@ -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 ebfaf0e6d8..6df6a19b80 100644 --- a/native/cocos/renderer/pipeline/RenderStage.h +++ b/native/cocos/renderer/pipeline/RenderStage.h @@ -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/deferred/DeferredPipeline.cpp b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.cpp index 13391526af..bbe22ddec7 100644 --- a/native/cocos/renderer/pipeline/deferred/DeferredPipeline.cpp +++ b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.cpp @@ -25,6 +25,7 @@ #include "DeferredPipeline.h" #include "../SceneCulling.h" +#include "../helper/Utils.h" #include "../shadow/ShadowFlow.h" #include "MainFlow.h" #include "gfx-base/GFXBuffer.h" @@ -34,7 +35,6 @@ #include "gfx-base/GFXDevice.h" #include "gfx-base/GFXSwapchain.h" #include "gfx-base/states/GFXTextureBarrier.h" -#include "../helper/Utils.h" namespace cc { namespace pipeline { @@ -50,7 +50,6 @@ namespace pipeline { framegraph::StringHandle DeferredPipeline::fgStrHandleGbufferTexture[GBUFFER_COUNT] = { framegraph::FrameGraph::stringToHandle("gbufferAlbedoTexture"), - framegraph::FrameGraph::stringToHandle("gbufferPositionTexture"), framegraph::FrameGraph::stringToHandle("gbufferNormalTexture"), framegraph::FrameGraph::stringToHandle("gbufferEmissiveTexture")}; diff --git a/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h index d3170936f0..5c7ff5e61f 100644 --- a/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h +++ b/native/cocos/renderer/pipeline/deferred/DeferredPipeline.h @@ -31,8 +31,8 @@ #include "gfx-base/GFXBuffer.h" #include "gfx-base/GFXInputAssembler.h" #include "pipeline/ClusterLightCulling.h" -#include "pipeline/RenderPipeline.h" #include "pipeline/Enum.h" +#include "pipeline/RenderPipeline.h" #include "scene/RenderWindow.h" namespace cc { @@ -69,7 +69,7 @@ private: ClusterLightCulling *_clusterComp{nullptr}; public: - static constexpr uint GBUFFER_COUNT = 4; + static constexpr uint GBUFFER_COUNT = 3; // deferred resource names static framegraph::StringHandle fgStrHandleGbufferTexture[GBUFFER_COUNT]; diff --git a/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp b/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp index b9f0812a6e..0d03528103 100644 --- a/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp +++ b/native/cocos/renderer/pipeline/deferred/GbufferStage.cpp @@ -146,8 +146,8 @@ void GbufferStage::render(scene::Camera *camera) { framegraph::TextureHandle depth; }; - auto *pipeline = static_cast(_pipeline); - float shadingScale{_pipeline->getPipelineSceneData()->getSharedData()->shadingScale}; + auto *pipeline = static_cast(_pipeline); + float shadingScale{_pipeline->getPipelineSceneData()->getSharedData()->shadingScale}; _renderArea = RenderPipeline::getRenderArea(camera); auto gbufferSetup = [&](framegraph::PassNodeBuilder &builder, RenderData &data) { @@ -169,7 +169,7 @@ void GbufferStage::render(scene::Camera *camera) { static_cast(pipeline->getHeight() * shadingScale), }; for (int i = 0; i < DeferredPipeline::GBUFFER_COUNT - 1; ++i) { - if (i != 0) { // positions & normals need more precision + if (i != 0) { // normals need more precision data.gbuffer[i] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[i], gbufferInfoFloat); } else { data.gbuffer[i] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[i], gbufferInfo); @@ -178,10 +178,10 @@ void GbufferStage::render(scene::Camera *camera) { auto subpassEnabled = _device->hasFeature(gfx::Feature::INPUT_ATTACHMENT_BENEFIT); if (subpassEnabled) { - // when subpass enabled, the color result (gles2/gles3) will write to gbuffer[3] and the blit to color texture, so the format should be RGBA16F - data.gbuffer[3] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[3], gbufferInfoFloat); + // when subpass enabled, the color result (gles2/gles3) will write to gbuffer[2] and the blit to color texture, so the format should be RGBA16F + data.gbuffer[2] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[2], gbufferInfoFloat); } else { - data.gbuffer[3] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[3], gbufferInfo); + data.gbuffer[2] = builder.create(DeferredPipeline::fgStrHandleGbufferTexture[2], gbufferInfo); } gfx::Color clearColor{0.0, 0.0, 0.0, 0.0}; diff --git a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp index 7f0ba2a345..74d36de453 100644 --- a/native/cocos/renderer/pipeline/deferred/LightingStage.cpp +++ b/native/cocos/renderer/pipeline/deferred/LightingStage.cpp @@ -320,7 +320,7 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { } struct RenderData { - framegraph::TextureHandle gbuffer[4]; // read from gbuffer stage + framegraph::TextureHandle gbuffer[3]; // read from gbuffer stage framegraph::TextureHandle outputTex; // output texture framegraph::TextureHandle depth; framegraph::BufferHandle lightBuffer; // light storage buffer @@ -338,30 +338,29 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { builder.subpass(true); // read gbuffer - for (int i = 0; i < 4; i++) { + for (int i = 0; i < 3; i++) { data.gbuffer[i] = builder.read(framegraph::TextureHandle(builder.readFromBlackboard(DeferredPipeline::fgStrHandleGbufferTexture[i]))); builder.writeToBlackboard(DeferredPipeline::fgStrHandleGbufferTexture[i], data.gbuffer[i]); } - // read depth, as an attachment - framegraph::RenderTargetAttachment::Descriptor depthAttachmentInfo; - depthAttachmentInfo.usage = framegraph::RenderTargetAttachment::Usage::DEPTH_STENCIL; - depthAttachmentInfo.loadOp = gfx::LoadOp::LOAD; - depthAttachmentInfo.beginAccesses = {gfx::AccessType::DEPTH_STENCIL_ATTACHMENT_WRITE}; - depthAttachmentInfo.endAccesses = {gfx::AccessType::DEPTH_STENCIL_ATTACHMENT_WRITE}; - data.depth = framegraph::TextureHandle(builder.readFromBlackboard(RenderPipeline::fgStrHandleOutDepthTexture)); - data.depth = builder.write(data.depth, depthAttachmentInfo); + data.depth = builder.read(data.depth); builder.writeToBlackboard(RenderPipeline::fgStrHandleOutDepthTexture, data.depth); if (_pipeline->getClusterEnabled()) { // read cluster and light info data.lightBuffer = framegraph::BufferHandle(builder.readFromBlackboard(fgStrHandleClusterLightBuffer)); - builder.read(data.lightBuffer); + if (data.lightBuffer.isValid()) { + builder.read(data.lightBuffer); + } data.lightIndexBuffer = framegraph::BufferHandle(builder.readFromBlackboard(fgStrHandleClusterLightIndexBuffer)); - builder.read(data.lightIndexBuffer); + if (data.lightIndexBuffer.isValid()) { + builder.read(data.lightIndexBuffer); + } data.lightGridBuffer = framegraph::BufferHandle(builder.readFromBlackboard(fgStrHandleClusterLightGridBuffer)); - builder.read(data.lightGridBuffer); + if (data.lightGridBuffer.isValid()) { + builder.read(data.lightGridBuffer); + } } // write to lighting output @@ -407,12 +406,20 @@ void LightingStage::fgLightingPass(scene::Camera *camera) { pass->getDescriptorSet()->bindTexture(i, table.getRead(data.gbuffer[i])); pass->getDescriptorSet()->bindSampler(i, _defaultSampler); } + pass->getDescriptorSet()->bindTexture(3, table.getRead(data.depth)); + pass->getDescriptorSet()->bindSampler(3, _defaultSampler); if (_pipeline->getClusterEnabled()) { // cluster buffer bind - pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_BINDING, table.getRead(data.lightBuffer)); - pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_INDEX_BINDING, table.getRead(data.lightIndexBuffer)); - pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_GRID_BINDING, table.getRead(data.lightGridBuffer)); + if (data.lightBuffer.isValid()) { + pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_BINDING, table.getRead(data.lightBuffer)); + } + if (data.lightIndexBuffer.isValid()) { + pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_INDEX_BINDING, table.getRead(data.lightIndexBuffer)); + } + if (data.lightGridBuffer.isValid()) { + pass->getDescriptorSet()->bindBuffer(CLUSTER_LIGHT_GRID_BINDING, table.getRead(data.lightGridBuffer)); + } } pass->getDescriptorSet()->update(); @@ -492,8 +499,11 @@ void LightingStage::fgTransparent(scene::Camera *camera) { auto *pipeline = static_cast(_pipeline); auto *cmdBuff = pipeline->getCommandBuffers()[0]; - vector dynamicOffsets = {0}; - cmdBuff->bindDescriptorSet(localSet, _descriptorSet, dynamicOffsets); + // no need to bind localSet in cluster + if (!_pipeline->getClusterEnabled()) { + vector dynamicOffsets = {0}; + cmdBuff->bindDescriptorSet(localSet, _descriptorSet, dynamicOffsets); + } const std::array globalOffsets = {pipeline->getPipelineUBO()->getCurrentCameraUBOOffset()}; cmdBuff->bindDescriptorSet(globalSet, pipeline->getDescriptorSet(), utils::toUint(globalOffsets.size()), globalOffsets.data()); @@ -534,8 +544,7 @@ void LightingStage::putTransparentObj2Queue() { // TODO(xwx): need to fallback unlit and gizmo material. if (pass->getPhase() != _phaseID) continue; for (k = 0; k < _renderQueues.size(); k++) { - _isTransparentQueueEmpty = false; - _renderQueues[k]->insertRenderPass(ro, m, p); + if (_renderQueues[k]->insertRenderPass(ro, m, p)) _isTransparentQueueEmpty = false; } p++; } diff --git a/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp b/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp index 9ffc249786..ab121ad486 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp +++ b/native/cocos/renderer/pipeline/forward/ForwardPipeline.cpp @@ -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 1e2cd24890..784514426f 100644 --- a/native/cocos/renderer/pipeline/forward/ForwardPipeline.h +++ b/native/cocos/renderer/pipeline/forward/ForwardPipeline.h @@ -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/helper/Utils.h b/native/cocos/renderer/pipeline/helper/Utils.h index 309d17108e..b62135a608 100644 --- a/native/cocos/renderer/pipeline/helper/Utils.h +++ b/native/cocos/renderer/pipeline/helper/Utils.h @@ -31,9 +31,9 @@ #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" -#include "scene/Camera.h" namespace cc { namespace pipeline { diff --git a/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp b/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp index d3ea3d30ed..ebbbdda940 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp +++ b/native/cocos/renderer/pipeline/shadow/ShadowFlow.cpp @@ -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/ShadowStage.h b/native/cocos/renderer/pipeline/shadow/ShadowStage.h index 9fbf6b9e67..7f80f449e2 100644 --- a/native/cocos/renderer/pipeline/shadow/ShadowStage.h +++ b/native/cocos/renderer/pipeline/shadow/ShadowStage.h @@ -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/BaseNode.h b/native/cocos/scene/BaseNode.h index 777770e56d..f2eb513ca8 100644 --- a/native/cocos/scene/BaseNode.h +++ b/native/cocos/scene/BaseNode.h @@ -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/Define.h b/native/cocos/scene/Define.h index 055434ad3a..de04efc114 100644 --- a/native/cocos/scene/Define.h +++ b/native/cocos/scene/Define.h @@ -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/SubModel.h b/native/cocos/scene/SubModel.h index f643364be0..f67599277c 100644 --- a/native/cocos/scene/SubModel.h +++ b/native/cocos/scene/SubModel.h @@ -32,7 +32,6 @@ #include "renderer/gfx-base/GFXShader.h" #include "scene/Define.h" - namespace cc { namespace scene { diff --git a/native/cocos/ui/edit-box/EditBox-android.cpp b/native/cocos/ui/edit-box/EditBox-android.cpp index 2949d3313b..56c7cfdd9c 100644 --- a/native/cocos/ui/edit-box/EditBox-android.cpp +++ b/native/cocos/ui/edit-box/EditBox-android.cpp @@ -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 11995bfcc5..ca64e7707f 100644 --- a/native/cocos/ui/edit-box/EditBox-ios.mm +++ b/native/cocos/ui/edit-box/EditBox-ios.mm @@ -326,7 +326,15 @@ void removeKeyboardEventLisnters() { } - (void)keyboardWillHide:(NSNotification *)notification { - cc::EditBox::hide(); + NSDictionary *info = [notification userInfo]; + + CGRect beginKeyboardRect = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue]; + CGRect endKeyboardRect = [[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue]; + CGFloat yOffset = endKeyboardRect.origin.y - beginKeyboardRect.origin.y; + + if (yOffset <= 0) { + cc::EditBox::hide(); + } } @end diff --git a/native/cocos/ui/edit-box/EditBox-linux.cpp b/native/cocos/ui/edit-box/EditBox-linux.cpp index 42060fc5a8..4d466c4584 100644 --- a/native/cocos/ui/edit-box/EditBox-linux.cpp +++ b/native/cocos/ui/edit-box/EditBox-linux.cpp @@ -38,4 +38,4 @@ void EditBox::hide() { bool EditBox::complete() { return true; } -} +} // namespace cc diff --git a/native/cocos/ui/edit-box/EditBox-win32.cpp b/native/cocos/ui/edit-box/EditBox-win32.cpp index 1a46575fd7..4874b40629 100644 --- a/native/cocos/ui/edit-box/EditBox-win32.cpp +++ b/native/cocos/ui/edit-box/EditBox-win32.cpp @@ -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 17e10b83c9..cf12b3692b 100644 --- a/native/cocos/ui/edit-box/EditBox.h +++ b/native/cocos/ui/edit-box/EditBox.h @@ -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/webview/WebViewImpl-ios.h b/native/cocos/ui/webview/WebViewImpl-ios.h index 1740d4ae20..9b019ceca5 100644 --- a/native/cocos/ui/webview/WebViewImpl-ios.h +++ b/native/cocos/ui/webview/WebViewImpl-ios.h @@ -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/external/config.json b/native/external/config.json index b8d268b825..bd01c95b95 100644 --- a/native/external/config.json +++ b/native/external/config.json @@ -1,9 +1,9 @@ { - "version": "v3d-gfx-85", + "version": "v3d-gfx-88", "from": { "type": "github", "owner": "cocos-creator", "name": "engine-native-external", - "checkout": "v3d-gfx-85" + "checkout": "v3d-gfx-88" } }