//*****************************************************************************
//*****************************************************************************
//*** WARNING!! This is *auto-generated source code! DO NOT HAND EDIT!
//*****************************************************************************
//*****************************************************************************
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#ifdef _MSC_VER
#pragma warning(disable:4800) // Disabling stupid bool conversion warning
#pragma warning(disable:4996) // Disabling stupid .NET deprecated warnings.
#endif
#include "NXU_schema.h"
#include "NXU_SchemaStream.h"
#include "NXU_customcopy.h"
namespace NXU
{
extern bool gSaveDefaults;
extern bool gSaveCooked;
static bool isSame(const NxMat34 &a,const NxMat34 &b)
{
bool ret = false;
float m1[16];
float m2[16];
a.getColumnMajor44(m1);
b.getColumnMajor44(m2);
if ( memcmp(m1,m2,sizeof(float)*16) == 0 )
ret = true;
return ret;
}
static bool isSame(const NxMat33 &a,const NxMat33 &b)
{
bool ret = false;
float m1[9];
float m2[9];
a.getColumnMajor(m1);
b.getColumnMajor(m2);
if ( memcmp(m1,m2,sizeof(float)*9) == 0 )
ret = true;
return ret;
}
static bool isSame(const NxQuat &a,const NxQuat &b)
{
bool ret = false;
float q1[4];
float q2[4];
a.getXYZW(q1);
b.getXYZW(q2);
if ( q1[0] == q2[0] &&
q1[1] == q2[1] &&
q1[2] == q2[2] &&
q1[3] == q2[3] )
{
ret = true;
}
return ret;
}
static bool isSame(const NxBounds3 &a,const NxBounds3 &b)
{
bool ret = false;
if ( a.min == b.min && a.max == b.max )
ret = true;
return ret;
}
#if NX_USE_FLUID_API
static bool isSame(const NxPlane &a,const NxPlane &b)
{
bool ret = false;
if ( a.normal == b.normal && a.d == b.d )
ret = true;
return ret;
}
#endif
//***********************************************************************************
//***********************************************************************************
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER >=270
#endif
#if NX_SDK_VERSION_NUMBER < 280
#endif
#if NX_SDK_VERSION_NUMBER >=280
#endif
#if NX_SDK_VERSION_NUMBER >= 260
#endif
#if NX_SDK_VERSION_NUMBER >= 260
#endif
#if NX_SDK_VERSION_NUMBER >= 260
#endif
#if NX_SDK_VERSION_NUMBER >= 250
#endif
#if NX_SDK_VERSION_NUMBER >= 250
#endif
#if NX_SDK_VERSION_NUMBER >= 260
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER == 250 || NX_SDK_VERSION_NUMBER == 251
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 270
#endif
#if NX_SDK_VERSION_NUMBER >= 272
#endif
#if NX_SDK_VERSION_NUMBER >= 272
#endif
#if NX_SDK_VERSION_NUMBER >= 272
#endif
#if NX_SDK_VERSION_NUMBER >= 272
#endif
#if NX_SDK_VERSION_NUMBER >= 272
#endif
#if NX_SDK_VERSION_NUMBER >= 272
#endif
#if NX_SDK_VERSION_NUMBER >= 280
#endif
#if NX_SDK_VERSION_NUMBER >= 281
#endif
#if NX_SDK_VERSION_NUMBER >= 281
#endif
#if NX_SDK_VERSION_NUMBER >= 281
#endif
#if NX_SDK_VERSION_NUMBER >= 283
#endif
#if NX_SDK_VERSION_NUMBER >= 283
#endif
const char * EnumToString(NxParameter v)
{
const char *ret = 0;
switch ( v )
{
case NX_PENALTY_FORCE: ret = "NX_PENALTY_FORCE"; break;
case NX_SKIN_WIDTH: ret = "NX_SKIN_WIDTH"; break;
case NX_DEFAULT_SLEEP_LIN_VEL_SQUARED: ret = "NX_DEFAULT_SLEEP_LIN_VEL_SQUARED"; break;
case NX_DEFAULT_SLEEP_ANG_VEL_SQUARED: ret = "NX_DEFAULT_SLEEP_ANG_VEL_SQUARED"; break;
case NX_BOUNCE_THRESHOLD: ret = "NX_BOUNCE_THRESHOLD"; break;
case NX_DYN_FRICT_SCALING: ret = "NX_DYN_FRICT_SCALING"; break;
case NX_STA_FRICT_SCALING: ret = "NX_STA_FRICT_SCALING"; break;
case NX_MAX_ANGULAR_VELOCITY: ret = "NX_MAX_ANGULAR_VELOCITY"; break;
case NX_CONTINUOUS_CD: ret = "NX_CONTINUOUS_CD"; break;
case NX_VISUALIZATION_SCALE: ret = "NX_VISUALIZATION_SCALE"; break;
case NX_VISUALIZE_WORLD_AXES: ret = "NX_VISUALIZE_WORLD_AXES"; break;
case NX_VISUALIZE_BODY_AXES: ret = "NX_VISUALIZE_BODY_AXES"; break;
case NX_VISUALIZE_BODY_MASS_AXES: ret = "NX_VISUALIZE_BODY_MASS_AXES"; break;
case NX_VISUALIZE_BODY_LIN_VELOCITY: ret = "NX_VISUALIZE_BODY_LIN_VELOCITY"; break;
case NX_VISUALIZE_BODY_ANG_VELOCITY: ret = "NX_VISUALIZE_BODY_ANG_VELOCITY"; break;
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
case NX_VISUALIZE_BODY_LIN_MOMENTUM: ret = "NX_VISUALIZE_BODY_LIN_MOMENTUM"; break;
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
case NX_VISUALIZE_BODY_ANG_MOMENTUM: ret = "NX_VISUALIZE_BODY_ANG_MOMENTUM"; break;
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
case NX_VISUALIZE_BODY_LIN_ACCEL: ret = "NX_VISUALIZE_BODY_LIN_ACCEL"; break;
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
case NX_VISUALIZE_BODY_ANG_ACCEL: ret = "NX_VISUALIZE_BODY_ANG_ACCEL"; break;
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
case NX_VISUALIZE_BODY_LIN_FORCE: ret = "NX_VISUALIZE_BODY_LIN_FORCE"; break;
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
case NX_VISUALIZE_BODY_ANG_FORCE: ret = "NX_VISUALIZE_BODY_ANG_FORCE"; break;
#endif
#if NX_SDK_VERSION_NUMBER < 270 && NX_SDK_VERSION_NUMBER != 263
case NX_VISUALIZE_BODY_REDUCED: ret = "NX_VISUALIZE_BODY_REDUCED"; break;
#endif
#if NX_SDK_VERSION_NUMBER >=270
case NX_DUMMY15: ret = "NX_DUMMY15"; break;
#endif
#if NX_SDK_VERSION_NUMBER >=270
case NX_DUMMY16: ret = "NX_DUMMY16"; break;
#endif
#if NX_SDK_VERSION_NUMBER >=270
case NX_DUMMY17: ret = "NX_DUMMY17"; break;
#endif
#if NX_SDK_VERSION_NUMBER >=270
case NX_DUMMY18: ret = "NX_DUMMY18"; break;
#endif
#if NX_SDK_VERSION_NUMBER >=270
case NX_DUMMY19: ret = "NX_DUMMY19"; break;
#endif
#if NX_SDK_VERSION_NUMBER >=270
case NX_DU
- 1
- 2
- 3
前往页