mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 19:34:07 +08:00
161ccf1f8e
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
1469 lines
48 KiB
C++
1469 lines
48 KiB
C++
// clang-format off
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 4.1.0
|
|
*
|
|
* This file is not intended to be easily readable and contains a number of
|
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
* changes to this file unless you know what you are doing--modify the SWIG
|
|
* interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/****************************************************************************
|
|
Copyright (c) 2022 Xiamen Yaji Software Co., Ltd.
|
|
|
|
http://www.cocos.com
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated engine source code (the "Software"), a limited,
|
|
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
|
|
to use Cocos Creator solely to develop games on your target platforms. You shall
|
|
not use Cocos Creator software for developing other software or tools that's
|
|
used for developing games. You are not granted to publish, distribute,
|
|
sublicense, and/or sell copies of Cocos Creator.
|
|
|
|
The software or tools in this License Agreement are licensed, not sold.
|
|
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
THE SOFTWARE.
|
|
****************************************************************************/
|
|
|
|
#if defined(__clang__)
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wunused-variable"
|
|
#elif defined(__GNUC__) || defined(__GNUG__)
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
|
#elif defined(_MSC_VER)
|
|
#pragma warning(push)
|
|
#pragma warning(disable : 4101)
|
|
#endif
|
|
|
|
/* internal SWIG method */
|
|
#ifndef SWIGINTERN
|
|
# define SWIGINTERN static
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
#include "bindings/jswrapper/SeApi.h"
|
|
#include "bindings/manual/jsb_conversions.h"
|
|
#include "bindings/manual/jsb_global.h"
|
|
|
|
|
|
#include "cocos/bindings/manual/jsb_conversions.h"
|
|
#include "cocos/bindings/manual/jsb_global.h"
|
|
#include "xr/Xr.h"
|
|
|
|
|
|
|
|
|
|
se::Class* __jsb_cc_xr_XrEntry_class = nullptr;
|
|
se::Object* __jsb_cc_xr_XrEntry_proto = nullptr;
|
|
SE_DECLARE_FINALIZE_FUNC(js_delete_cc_xr_XrEntry)
|
|
|
|
static bool js_cc_xr_XrEntry_getInstance_static(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *result = 0 ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
result = (cc::xr::XrEntry *)cc::xr::XrEntry::getInstance();
|
|
// %typemap(out) SWIGTYPE*
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getInstance, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getInstance_static)
|
|
|
|
static bool js_cc_xr_XrEntry_destroyInstance_static(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
cc::xr::XrEntry::destroyInstance();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_destroyInstance_static)
|
|
|
|
static bool js_cc_xr_XrEntry_initPlatformData(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
void *arg2 = (void *) NULL ;
|
|
void *arg3 = (void *) NULL ;
|
|
|
|
if(argc != 2) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
ok &= sevalue_to_native(args[0], &arg2);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_initPlatformData,2,SWIGTYPE_p_void");
|
|
ok &= sevalue_to_native(args[1], &arg3);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_initPlatformData,3,SWIGTYPE_p_void");
|
|
(arg1)->initPlatformData(arg2,arg3);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_initPlatformData)
|
|
|
|
static bool js_cc_xr_XrEntry_createXrInstance(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
char *arg2 = (char *) NULL ;
|
|
ccstd::string temp2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
|
|
ok &= sevalue_to_native(args[0], &temp2);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_createXrInstance,2,SWIGTYPE_p_char");
|
|
arg2 = (char *) temp2.c_str();
|
|
(arg1)->createXrInstance((char const *)arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_createXrInstance)
|
|
|
|
static bool js_cc_xr_XrEntry_pauseXrInstance(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
(arg1)->pauseXrInstance();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_pauseXrInstance)
|
|
|
|
static bool js_cc_xr_XrEntry_resumeXrInstance(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
(arg1)->resumeXrInstance();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_resumeXrInstance)
|
|
|
|
static bool js_cc_xr_XrEntry_destroyXrInstance(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
(arg1)->destroyXrInstance();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_destroyXrInstance)
|
|
|
|
static bool js_cc_xr_XrEntry_getXrViewCount(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (int)(arg1)->getXrViewCount();
|
|
|
|
// out 1
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXrViewCount)
|
|
|
|
static bool js_cc_xr_XrEntry_initXrSwapchains(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
(arg1)->initXrSwapchains();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_initXrSwapchains)
|
|
|
|
static bool js_cc_xr_XrEntry_isCreatedXrInstance(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
bool result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (bool)(arg1)->isCreatedXrInstance();
|
|
// out 5
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_isCreatedXrInstance)
|
|
|
|
static bool js_cc_xr_XrEntry_initXrSession(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
cc::xr::PFNGLES3WLOADPROC arg2 = (cc::xr::PFNGLES3WLOADPROC) NULL ;
|
|
void *arg3 = (void *) NULL ;
|
|
void *arg4 = (void *) NULL ;
|
|
void *arg5 = (void *) NULL ;
|
|
|
|
if(argc != 4) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 4);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) SWIGTYPE*
|
|
ok &= sevalue_to_native(args[0], &arg2, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_initXrSession,2,SWIGTYPE_p_f_p_q_const__char__p_void");
|
|
ok &= sevalue_to_native(args[1], &arg3);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_initXrSession,3,SWIGTYPE_p_void");
|
|
ok &= sevalue_to_native(args[2], &arg4);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_initXrSession,4,SWIGTYPE_p_void");
|
|
ok &= sevalue_to_native(args[3], &arg5);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_initXrSession,5,SWIGTYPE_p_void");
|
|
(arg1)->initXrSession(arg2,arg3,arg4,arg5);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_initXrSession)
|
|
|
|
static bool js_cc_xr_XrEntry_setXrFrameBuffer(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
unsigned int arg2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) unsigned int, unsigned short, unsigned long, unsigned char
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXrFrameBuffer,2,SWIGTYPE_unsigned_int");
|
|
|
|
(arg1)->setXrFrameBuffer(arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setXrFrameBuffer)
|
|
|
|
static bool js_cc_xr_XrEntry_getXrFrameBuffer(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
unsigned int result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (unsigned int)(arg1)->getXrFrameBuffer();
|
|
|
|
// out 1
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXrFrameBuffer)
|
|
|
|
static bool js_cc_xr_XrEntry_attachXrFramebufferTexture2D(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
(arg1)->attachXrFramebufferTexture2D();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_attachXrFramebufferTexture2D)
|
|
|
|
static bool js_cc_xr_XrEntry_getCocosXrSwapchains(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
std::vector< cc::xr::XRSwapchain > *result = 0 ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (std::vector< cc::xr::XRSwapchain > *) &(arg1)->getCocosXrSwapchains();
|
|
// %typemap(out) SWIGTYPE&
|
|
ok &= nativevalue_to_se(*result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getCocosXrSwapchains, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(*result, s.thisObject(), s.rval());
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getCocosXrSwapchains)
|
|
|
|
static bool js_cc_xr_XrEntry_getCurrentXrSwapchain(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
cc::xr::XRSwapchain result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (arg1)->getCurrentXrSwapchain();
|
|
// %typemap(out) SWIGTYPE
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getCurrentXrSwapchain, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getCurrentXrSwapchain)
|
|
|
|
static bool js_cc_xr_XrEntry_acquireXrSwapchain(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
uint32_t arg2 ;
|
|
cc::xr::XRSwapchain *result = 0 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
|
|
// %typemap(in) SWIGTYPE value in
|
|
ok &= sevalue_to_native(args[0], &arg2, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_acquireXrSwapchain,2,SWIGTYPE_uint32_t");
|
|
|
|
result = (cc::xr::XRSwapchain *) &(arg1)->acquireXrSwapchain(arg2);
|
|
// %typemap(out) SWIGTYPE&
|
|
ok &= nativevalue_to_se(*result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_acquireXrSwapchain, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(*result, s.thisObject(), s.rval());
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_acquireXrSwapchain)
|
|
|
|
static bool js_cc_xr_XrEntry_isSessionRunning(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
bool result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (bool)(arg1)->isSessionRunning();
|
|
// out 5
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_isSessionRunning)
|
|
|
|
static bool js_cc_xr_XrEntry_frameStart(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
bool result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (bool)(arg1)->frameStart();
|
|
// out 5
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_frameStart)
|
|
|
|
static bool js_cc_xr_XrEntry_renderLoopStart(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_renderLoopStart,2,SWIGTYPE_int");
|
|
(arg1)->renderLoopStart(arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_renderLoopStart)
|
|
|
|
static bool js_cc_xr_XrEntry_renderLoopEnd(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_renderLoopEnd,2,SWIGTYPE_int");
|
|
(arg1)->renderLoopEnd(arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_renderLoopEnd)
|
|
|
|
static bool js_cc_xr_XrEntry_frameEnd(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
(arg1)->frameEnd();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_frameEnd)
|
|
|
|
static bool js_cc_xr_XrEntry_isRenderAllowable(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
bool result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (bool)(arg1)->isRenderAllowable();
|
|
// out 5
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_isRenderAllowable)
|
|
|
|
static bool js_cc_xr_XrEntry_setXRConfigCallback(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
cc::xr::XRConfigChangeCallback *arg2 = 0 ;
|
|
cc::xr::XRConfigChangeCallback temp2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) SWIGTYPE&
|
|
ok &= sevalue_to_native(args[0], &temp2, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRConfigCallback,2,SWIGTYPE_p_std__functionT_void_fcc__xr__XRConfigKey_cc__xr__XRConfigValueF_t");
|
|
arg2 = &temp2;
|
|
|
|
(arg1)->setXRConfigCallback((cc::xr::XRConfigChangeCallback const &)*arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setXRConfigCallback)
|
|
|
|
static bool js_cc_xr_XrEntry_computeViewProjection(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
uint32_t arg2 ;
|
|
float arg3 ;
|
|
float arg4 ;
|
|
float arg5 ;
|
|
std::vector< float > result;
|
|
|
|
if(argc != 4) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 4);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
|
|
// %typemap(in) SWIGTYPE value in
|
|
ok &= sevalue_to_native(args[0], &arg2, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_computeViewProjection,2,SWIGTYPE_uint32_t");
|
|
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[1], &arg3, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_computeViewProjection,3,SWIGTYPE_float");
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[2], &arg4, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_computeViewProjection,4,SWIGTYPE_float");
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[3], &arg5, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_computeViewProjection,5,SWIGTYPE_float");
|
|
result = (arg1)->computeViewProjection(arg2,arg3,arg4,arg5);
|
|
// %typemap(out) SWIGTYPE
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_computeViewProjection, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_computeViewProjection)
|
|
|
|
static bool js_cc_xr_XrEntry_getEyeFov(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
uint32_t arg2 ;
|
|
std::vector< float > result;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
|
|
// %typemap(in) SWIGTYPE value in
|
|
ok &= sevalue_to_native(args[0], &arg2, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getEyeFov,2,SWIGTYPE_uint32_t");
|
|
|
|
result = (arg1)->getEyeFov(arg2);
|
|
// %typemap(out) SWIGTYPE
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getEyeFov, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getEyeFov)
|
|
|
|
static bool js_cc_xr_XrEntry_getSwapchainImageIndex(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
uint32_t result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (arg1)->getSwapchainImageIndex();
|
|
// %typemap(out) SWIGTYPE
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getSwapchainImageIndex, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getSwapchainImageIndex)
|
|
|
|
static bool js_cc_xr_XrEntry_setMultisamplesRTT(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setMultisamplesRTT,2,SWIGTYPE_int");
|
|
(arg1)->setMultisamplesRTT(arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setMultisamplesRTT)
|
|
|
|
static bool js_cc_xr_XrEntry_setRenderingScale(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
float arg2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setRenderingScale,2,SWIGTYPE_float");
|
|
(arg1)->setRenderingScale(arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setRenderingScale)
|
|
|
|
static bool js_cc_xr_XrEntry_setIPDOffset(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
float arg2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setIPDOffset,2,SWIGTYPE_float");
|
|
(arg1)->setIPDOffset(arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setIPDOffset)
|
|
|
|
static bool js_cc_xr_XrEntry_setBaseSpaceType(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setBaseSpaceType,2,SWIGTYPE_int");
|
|
(arg1)->setBaseSpaceType(arg2);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setBaseSpaceType)
|
|
|
|
static bool js_cc_xr_XrEntry_getHMDViewPosition(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
uint32_t arg2 ;
|
|
int arg3 ;
|
|
std::vector< float > result;
|
|
|
|
if(argc != 2) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
|
|
// %typemap(in) SWIGTYPE value in
|
|
ok &= sevalue_to_native(args[0], &arg2, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getHMDViewPosition,2,SWIGTYPE_uint32_t");
|
|
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[1], &arg3, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getHMDViewPosition,3,SWIGTYPE_int");
|
|
result = (arg1)->getHMDViewPosition(arg2,arg3);
|
|
// %typemap(out) SWIGTYPE
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getHMDViewPosition, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getHMDViewPosition)
|
|
|
|
static bool js_cc_xr_XrEntry_platformLoopStart(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
bool result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (bool)(arg1)->platformLoopStart();
|
|
// out 5
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_platformLoopStart)
|
|
|
|
static bool js_cc_xr_XrEntry_platformLoopEnd(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
bool result;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
result = (bool)(arg1)->platformLoopEnd();
|
|
// out 5
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_platformLoopEnd)
|
|
|
|
static bool js_cc_xr_XrEntry_waitFrame(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
|
|
if(argc != 0) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 0);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
(arg1)->waitFrame();
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_waitFrame)
|
|
|
|
static bool js_cc_xr_XrEntry_setXRIntConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
|
|
if(argc != 2) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRIntConfig,2,SWIGTYPE_int");
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[1], &arg3, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRIntConfig,3,SWIGTYPE_int");
|
|
(arg1)->setXRIntConfig(arg2,arg3);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setXRIntConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_setXRBoolConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
bool arg3 ;
|
|
|
|
if(argc != 2) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRBoolConfig,2,SWIGTYPE_int");
|
|
// %typemap(in) bool
|
|
ok &= sevalue_to_native(args[1], &arg3);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRBoolConfig,3,SWIGTYPE_bool");
|
|
(arg1)->setXRBoolConfig(arg2,arg3);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setXRBoolConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_setXRFloatConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
float arg3 ;
|
|
|
|
if(argc != 2) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRFloatConfig,2,SWIGTYPE_int");
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[1], &arg3, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRFloatConfig,3,SWIGTYPE_float");
|
|
(arg1)->setXRFloatConfig(arg2,arg3);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setXRFloatConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_setXRStringConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
std::string arg3 ;
|
|
|
|
if(argc != 2) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRStringConfig,2,SWIGTYPE_int");
|
|
|
|
// %typemap(in) SWIGTYPE value in
|
|
ok &= sevalue_to_native(args[1], &arg3, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRStringConfig,3,SWIGTYPE_std__string");
|
|
|
|
(arg1)->setXRStringConfig(arg2,arg3);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setXRStringConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_setXRPointerConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
void *arg3 = (void *) NULL ;
|
|
|
|
if(argc != 2) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 2);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRPointerConfig,2,SWIGTYPE_int");
|
|
ok &= sevalue_to_native(args[1], &arg3);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_setXRPointerConfig,3,SWIGTYPE_p_void");
|
|
(arg1)->setXRPointerConfig(arg2,arg3);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_setXRPointerConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_getXRIntConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
int result;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXRIntConfig,2,SWIGTYPE_int");
|
|
result = (int)(arg1)->getXRIntConfig(arg2);
|
|
|
|
// out 1
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXRIntConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_getXRBoolConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
bool result;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXRBoolConfig,2,SWIGTYPE_int");
|
|
result = (bool)(arg1)->getXRBoolConfig(arg2);
|
|
// out 5
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXRBoolConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_getXRFloatConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
float result;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXRFloatConfig,2,SWIGTYPE_int");
|
|
result = (float)(arg1)->getXRFloatConfig(arg2);
|
|
|
|
// out 1
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXRFloatConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_getXRStringConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
std::string result;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXRStringConfig,2,SWIGTYPE_int");
|
|
result = (arg1)->getXRStringConfig(arg2);
|
|
// %typemap(out) SWIGTYPE
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXRStringConfig, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXRStringConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_getXRPointerConfig(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
int arg2 ;
|
|
void *result = 0 ;
|
|
|
|
if(argc != 1) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 1);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) int, short, long, signed char, float, double
|
|
ok &= sevalue_to_native(args[0], &arg2, nullptr);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXRPointerConfig,2,SWIGTYPE_int");
|
|
result = (void *)(arg1)->getXRPointerConfig(arg2);
|
|
// %typemap(out) SWIGTYPE*
|
|
ok &= nativevalue_to_se(result, s.rval(), s.thisObject() /*ctx*/);
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXRPointerConfig, Error processing arguments");
|
|
SE_HOLD_RETURN_VALUE(result, s.thisObject(), s.rval());
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXRPointerConfig)
|
|
|
|
static bool js_cc_xr_XrEntry_getXrPose(se::State& s)
|
|
{
|
|
// js_function
|
|
|
|
CC_UNUSED bool ok = true;
|
|
const auto& args = s.args();
|
|
size_t argc = args.size();
|
|
cc::xr::XrEntry *arg1 = (cc::xr::XrEntry *) NULL ;
|
|
cc::xr::XRPose *arg2 = 0 ;
|
|
cc::xr::XRPose *arg3 = 0 ;
|
|
cc::xr::XRPose *arg4 = 0 ;
|
|
cc::xr::XRPose *arg5 = 0 ;
|
|
cc::xr::XRPose temp2 ;
|
|
cc::xr::XRPose temp3 ;
|
|
cc::xr::XRPose temp4 ;
|
|
cc::xr::XRPose temp5 ;
|
|
|
|
if(argc != 4) {
|
|
SE_REPORT_ERROR("wrong number of arguments: %d, was expecting %d", (int)argc, 4);
|
|
return false;
|
|
}
|
|
arg1 = SE_THIS_OBJECT<cc::xr::XrEntry>(s);
|
|
SE_PRECONDITION2(arg1, false, "%s: Invalid Native Object", __FUNCTION__);
|
|
// %typemap(in) SWIGTYPE&
|
|
ok &= sevalue_to_native(args[0], &temp2, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXrPose,2,SWIGTYPE_p_cc__xr__XRPose");
|
|
arg2 = &temp2;
|
|
|
|
// %typemap(in) SWIGTYPE&
|
|
ok &= sevalue_to_native(args[1], &temp3, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXrPose,3,SWIGTYPE_p_cc__xr__XRPose");
|
|
arg3 = &temp3;
|
|
|
|
// %typemap(in) SWIGTYPE&
|
|
ok &= sevalue_to_native(args[2], &temp4, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXrPose,4,SWIGTYPE_p_cc__xr__XRPose");
|
|
arg4 = &temp4;
|
|
|
|
// %typemap(in) SWIGTYPE&
|
|
ok &= sevalue_to_native(args[3], &temp5, s.thisObject());
|
|
SE_PRECONDITION2(ok, false, "XrEntry_getXrPose,5,SWIGTYPE_p_cc__xr__XRPose");
|
|
arg5 = &temp5;
|
|
|
|
(arg1)->getXrPose(*arg2,*arg3,*arg4,*arg5);
|
|
|
|
|
|
return true;
|
|
}
|
|
SE_BIND_FUNC(js_cc_xr_XrEntry_getXrPose)
|
|
|
|
static bool js_delete_cc_xr_XrEntry(se::State& s)
|
|
{
|
|
// js_dtoroverride
|
|
return true;
|
|
}
|
|
SE_BIND_FINALIZE_FUNC(js_delete_cc_xr_XrEntry)
|
|
|
|
bool js_register_cc_xr_XrEntry(se::Object* obj) {
|
|
auto* cls = se::Class::create("XrEntry", obj, nullptr, nullptr);
|
|
|
|
|
|
cls->defineFunction("initPlatformData", _SE(js_cc_xr_XrEntry_initPlatformData));
|
|
cls->defineFunction("createXrInstance", _SE(js_cc_xr_XrEntry_createXrInstance));
|
|
cls->defineFunction("pauseXrInstance", _SE(js_cc_xr_XrEntry_pauseXrInstance));
|
|
cls->defineFunction("resumeXrInstance", _SE(js_cc_xr_XrEntry_resumeXrInstance));
|
|
cls->defineFunction("destroyXrInstance", _SE(js_cc_xr_XrEntry_destroyXrInstance));
|
|
cls->defineFunction("getXrViewCount", _SE(js_cc_xr_XrEntry_getXrViewCount));
|
|
cls->defineFunction("initXrSwapchains", _SE(js_cc_xr_XrEntry_initXrSwapchains));
|
|
cls->defineFunction("isCreatedXrInstance", _SE(js_cc_xr_XrEntry_isCreatedXrInstance));
|
|
cls->defineFunction("initXrSession", _SE(js_cc_xr_XrEntry_initXrSession));
|
|
cls->defineFunction("setXrFrameBuffer", _SE(js_cc_xr_XrEntry_setXrFrameBuffer));
|
|
cls->defineFunction("getXrFrameBuffer", _SE(js_cc_xr_XrEntry_getXrFrameBuffer));
|
|
cls->defineFunction("attachXrFramebufferTexture2D", _SE(js_cc_xr_XrEntry_attachXrFramebufferTexture2D));
|
|
cls->defineFunction("getCocosXrSwapchains", _SE(js_cc_xr_XrEntry_getCocosXrSwapchains));
|
|
cls->defineFunction("getCurrentXrSwapchain", _SE(js_cc_xr_XrEntry_getCurrentXrSwapchain));
|
|
cls->defineFunction("acquireXrSwapchain", _SE(js_cc_xr_XrEntry_acquireXrSwapchain));
|
|
cls->defineFunction("isSessionRunning", _SE(js_cc_xr_XrEntry_isSessionRunning));
|
|
cls->defineFunction("frameStart", _SE(js_cc_xr_XrEntry_frameStart));
|
|
cls->defineFunction("renderLoopStart", _SE(js_cc_xr_XrEntry_renderLoopStart));
|
|
cls->defineFunction("renderLoopEnd", _SE(js_cc_xr_XrEntry_renderLoopEnd));
|
|
cls->defineFunction("frameEnd", _SE(js_cc_xr_XrEntry_frameEnd));
|
|
cls->defineFunction("isRenderAllowable", _SE(js_cc_xr_XrEntry_isRenderAllowable));
|
|
cls->defineFunction("setXRConfigCallback", _SE(js_cc_xr_XrEntry_setXRConfigCallback));
|
|
cls->defineFunction("computeViewProjection", _SE(js_cc_xr_XrEntry_computeViewProjection));
|
|
cls->defineFunction("getEyeFov", _SE(js_cc_xr_XrEntry_getEyeFov));
|
|
cls->defineFunction("getSwapchainImageIndex", _SE(js_cc_xr_XrEntry_getSwapchainImageIndex));
|
|
cls->defineFunction("setMultisamplesRTT", _SE(js_cc_xr_XrEntry_setMultisamplesRTT));
|
|
cls->defineFunction("setRenderingScale", _SE(js_cc_xr_XrEntry_setRenderingScale));
|
|
cls->defineFunction("setIPDOffset", _SE(js_cc_xr_XrEntry_setIPDOffset));
|
|
cls->defineFunction("setBaseSpaceType", _SE(js_cc_xr_XrEntry_setBaseSpaceType));
|
|
cls->defineFunction("getHMDViewPosition", _SE(js_cc_xr_XrEntry_getHMDViewPosition));
|
|
cls->defineFunction("platformLoopStart", _SE(js_cc_xr_XrEntry_platformLoopStart));
|
|
cls->defineFunction("platformLoopEnd", _SE(js_cc_xr_XrEntry_platformLoopEnd));
|
|
cls->defineFunction("waitFrame", _SE(js_cc_xr_XrEntry_waitFrame));
|
|
cls->defineFunction("setXRIntConfig", _SE(js_cc_xr_XrEntry_setXRIntConfig));
|
|
cls->defineFunction("setXRBoolConfig", _SE(js_cc_xr_XrEntry_setXRBoolConfig));
|
|
cls->defineFunction("setXRFloatConfig", _SE(js_cc_xr_XrEntry_setXRFloatConfig));
|
|
cls->defineFunction("setXRStringConfig", _SE(js_cc_xr_XrEntry_setXRStringConfig));
|
|
cls->defineFunction("setXRPointerConfig", _SE(js_cc_xr_XrEntry_setXRPointerConfig));
|
|
cls->defineFunction("getXRIntConfig", _SE(js_cc_xr_XrEntry_getXRIntConfig));
|
|
cls->defineFunction("getXRBoolConfig", _SE(js_cc_xr_XrEntry_getXRBoolConfig));
|
|
cls->defineFunction("getXRFloatConfig", _SE(js_cc_xr_XrEntry_getXRFloatConfig));
|
|
cls->defineFunction("getXRStringConfig", _SE(js_cc_xr_XrEntry_getXRStringConfig));
|
|
cls->defineFunction("getXRPointerConfig", _SE(js_cc_xr_XrEntry_getXRPointerConfig));
|
|
cls->defineFunction("getXrPose", _SE(js_cc_xr_XrEntry_getXrPose));
|
|
|
|
|
|
cls->defineStaticFunction("getInstance", _SE(js_cc_xr_XrEntry_getInstance_static));
|
|
cls->defineStaticFunction("destroyInstance", _SE(js_cc_xr_XrEntry_destroyInstance_static));
|
|
|
|
|
|
cls->defineFinalizeFunction(_SE(js_delete_cc_xr_XrEntry));
|
|
|
|
|
|
cls->install();
|
|
JSBClassType::registerClass<cc::xr::XrEntry>(cls);
|
|
|
|
__jsb_cc_xr_XrEntry_proto = cls->getProto();
|
|
__jsb_cc_xr_XrEntry_class = cls;
|
|
se::ScriptEngine::getInstance()->clearException();
|
|
return true;
|
|
}
|
|
|
|
|
|
|
|
|
|
bool register_all_xr(se::Object* obj) {
|
|
// Get the ns
|
|
se::Value nsVal;
|
|
if (!obj->getProperty("jsb", &nsVal, true))
|
|
{
|
|
se::HandleObject jsobj(se::Object::createPlainObject());
|
|
nsVal.setObject(jsobj);
|
|
obj->setProperty("jsb", nsVal);
|
|
}
|
|
se::Object* ns = nsVal.toObject();
|
|
/* Register classes */
|
|
js_register_cc_xr_XrEntry(ns);
|
|
|
|
/* Register global variables & global functions */
|
|
|
|
|
|
|
|
return true;
|
|
}
|
|
|
|
|
|
#if defined(__clang__)
|
|
#pragma clang diagnostic pop
|
|
#elif defined(__GNUC__) || defined(__GNUG__)
|
|
#pragma GCC diagnostic pop
|
|
#elif defined(_MSC_VER)
|
|
#pragma warning(pop)
|
|
#endif
|
|
// clang-format on
|