diff --git a/rcbasic_build/rc_builtin.h b/rcbasic_build/rc_builtin.h index bf18845..7efdffc 100755 --- a/rcbasic_build/rc_builtin.h +++ b/rcbasic_build/rc_builtin.h @@ -493,7 +493,7 @@ void init_embedded_functions() add_embedded_arg("a", ID_TYPE_NUM); embed_function("GetCanvasAlpha", ID_TYPE_FN_NUM); add_embedded_arg("c_num", ID_TYPE_NUM); - embed_function("SetCanvasColorMod", ID_TYPE_FN_NUM); + embed_function("SetCanvasColorMod", ID_TYPE_SUB); add_embedded_arg("c_num", ID_TYPE_NUM); add_embedded_arg("c", ID_TYPE_NUM); embed_function("GetCanvasColorMod", ID_TYPE_FN_NUM); @@ -610,11 +610,10 @@ void init_embedded_functions() embed_function("SetBlendMode", ID_TYPE_SUB); add_embedded_arg("blend_mode", ID_TYPE_NUM); embed_function("GetBlendMode", ID_TYPE_FN_NUM); - add_embedded_arg("blend_mode", ID_TYPE_NUM); - embed_function("SetImageColorMod", ID_TYPE_FN_NUM); + embed_function("SetImageColorMod", ID_TYPE_SUB); add_embedded_arg("slot", ID_TYPE_NUM); add_embedded_arg("c", ID_TYPE_NUM); - embed_function("ImageColorMod", ID_TYPE_FN_NUM); + embed_function("GetImageColorMod", ID_TYPE_FN_NUM); add_embedded_arg("slot", ID_TYPE_NUM); embed_function("DrawImage", ID_TYPE_SUB); add_embedded_arg("slot", ID_TYPE_NUM); @@ -744,7 +743,7 @@ void init_embedded_functions() add_embedded_arg("w", ID_TYPE_NUM); add_embedded_arg("h", ID_TYPE_NUM); embed_function("ClearMouseZone", ID_TYPE_SUB); - embed_function("SoundFromBuffer", ID_TYPE_FN_NUM); + embed_function("CreateSound", ID_TYPE_FN_NUM); add_embedded_arg("buffer", ID_TYPE_BYREF_NUM); add_embedded_arg("buffer_size", ID_TYPE_NUM); add_embedded_arg("vol", ID_TYPE_NUM); @@ -872,9 +871,6 @@ void init_embedded_functions() add_embedded_arg("txt$", ID_TYPE_STR); add_embedded_arg("x", ID_TYPE_NUM); add_embedded_arg("y", ID_TYPE_NUM); - embed_function("RenderText", ID_TYPE_SUB); - add_embedded_arg("slot", ID_TYPE_NUM); - add_embedded_arg("txt$", ID_TYPE_STR); embed_function("GetTextSize", ID_TYPE_SUB); add_embedded_arg("txt$", ID_TYPE_STR); add_embedded_arg("w", ID_TYPE_BYREF_NUM); @@ -936,8 +932,8 @@ void init_embedded_functions() add_embedded_arg("socket", ID_TYPE_NUM); embed_function("TCP_GetData", ID_TYPE_FN_NUM); add_embedded_arg("socket", ID_TYPE_NUM); - add_embedded_arg("sData$", ID_TYPE_BYREF_STR); add_embedded_arg("numBytes", ID_TYPE_NUM); + add_embedded_arg("sData$", ID_TYPE_BYREF_STR); embed_function("TCP_SendData", ID_TYPE_SUB); add_embedded_arg("socket", ID_TYPE_NUM); add_embedded_arg("sData$", ID_TYPE_STR); @@ -950,9 +946,9 @@ void init_embedded_functions() add_embedded_arg("socket", ID_TYPE_NUM); embed_function("UDP_GetData", ID_TYPE_FN_NUM); add_embedded_arg("socket", ID_TYPE_NUM); - add_embedded_arg("sData$", ID_TYPE_BYREF_STR); add_embedded_arg("host$", ID_TYPE_BYREF_STR); add_embedded_arg("port", ID_TYPE_BYREF_NUM); + add_embedded_arg("sData$", ID_TYPE_BYREF_STR); embed_function("UDP_Length", ID_TYPE_FN_NUM); embed_function("UDP_MaxLength", ID_TYPE_FN_NUM); embed_function("UDP_RemoteHost$", ID_TYPE_FN_STR); @@ -961,9 +957,9 @@ void init_embedded_functions() add_embedded_arg("socket", ID_TYPE_NUM); embed_function("UDP_SendData", ID_TYPE_SUB); add_embedded_arg("socket", ID_TYPE_NUM); - add_embedded_arg("sData$", ID_TYPE_STR); add_embedded_arg("host$", ID_TYPE_STR); add_embedded_arg("port", ID_TYPE_NUM); + add_embedded_arg("sData$", ID_TYPE_STR); embed_function("LoadVideo", ID_TYPE_SUB); add_embedded_arg("vid$", ID_TYPE_STR); embed_function("PlayVideo", ID_TYPE_SUB); @@ -997,12 +993,9 @@ void init_embedded_functions() add_embedded_arg("w", ID_TYPE_BYREF_NUM); add_embedded_arg("h", ID_TYPE_BYREF_NUM); embed_function("VideoExists", ID_TYPE_FN_NUM); - embed_function("SetVideoAlpha", ID_TYPE_SUB); - add_embedded_arg("a", ID_TYPE_NUM); embed_function("SetVideoVolume", ID_TYPE_SUB); add_embedded_arg("vol", ID_TYPE_NUM); embed_function("GetVideoVolume", ID_TYPE_FN_NUM); - add_embedded_arg("vol", ID_TYPE_NUM); embed_function("System", ID_TYPE_FN_NUM); add_embedded_arg("cmd$", ID_TYPE_STR); embed_function("OS$", ID_TYPE_FN_STR); @@ -1044,6 +1037,7 @@ void init_embedded_functions() add_embedded_arg("msg$", ID_TYPE_STR); embed_function("Runtime$", ID_TYPE_FN_STR); embed_function("NumCPUs", ID_TYPE_FN_NUM); + embed_function("SystemRam", ID_TYPE_FN_NUM); embed_function("DimMatrix", ID_TYPE_FN_NUM); add_embedded_arg("m_rows", ID_TYPE_NUM); add_embedded_arg("m_cols", ID_TYPE_NUM); @@ -1116,7 +1110,7 @@ void init_embedded_functions() add_embedded_arg("mB", ID_TYPE_NUM); add_embedded_arg("r", ID_TYPE_NUM); add_embedded_arg("num_rows", ID_TYPE_NUM); - embed_function("IdentityMatrix", ID_TYPE_SUB); + embed_function("SetIdentityMatrix", ID_TYPE_SUB); add_embedded_arg("mA", ID_TYPE_NUM); add_embedded_arg("n", ID_TYPE_NUM); embed_function("SolveMatrix", ID_TYPE_FN_NUM); @@ -1140,7 +1134,7 @@ void init_embedded_functions() add_embedded_arg("r", ID_TYPE_NUM); add_embedded_arg("c", ID_TYPE_NUM); add_embedded_arg("buffer", ID_TYPE_BYREF_NUM); - embed_function("GetMatrix", ID_TYPE_SUB); + embed_function("BufferFromMatrix", ID_TYPE_SUB); add_embedded_arg("buffer", ID_TYPE_BYREF_NUM); add_embedded_arg("mA", ID_TYPE_NUM); embed_function("RandomizeMatrix", ID_TYPE_SUB); @@ -1264,7 +1258,7 @@ void init_embedded_functions() add_embedded_arg("x", ID_TYPE_BYREF_NUM); add_embedded_arg("y", ID_TYPE_BYREF_NUM); add_embedded_arg("z", ID_TYPE_BYREF_NUM); - embed_function("ClipboardText$", ID_TYPE_FN_STR); + embed_function("GetClipboardText$", ID_TYPE_FN_STR); embed_function("SetClipboardText", ID_TYPE_SUB); add_embedded_arg("txt$", ID_TYPE_STR); embed_function("HasClipboardText", ID_TYPE_FN_NUM); @@ -1450,6 +1444,7 @@ void init_embedded_functions() add_embedded_arg("actor", ID_TYPE_NUM); embed_function("integrateActorVelocities", ID_TYPE_SUB); add_embedded_arg("actor", ID_TYPE_NUM); + add_embedded_arg("v_step", ID_TYPE_NUM); embed_function("applyActorCentralForceLocal", ID_TYPE_SUB); add_embedded_arg("actor", ID_TYPE_NUM); add_embedded_arg("x", ID_TYPE_NUM); @@ -2077,6 +2072,7 @@ void init_embedded_functions() add_embedded_arg("actor", ID_TYPE_NUM); embed_function("setParticleNormalDirectionMod", ID_TYPE_SUB); add_embedded_arg("actor", ID_TYPE_NUM); + add_embedded_arg("nd_mod", ID_TYPE_NUM); embed_function("getParticleNormalDirectionMod", ID_TYPE_FN_NUM); add_embedded_arg("actor", ID_TYPE_NUM); embed_function("useParticleNormalDirection", ID_TYPE_SUB); @@ -2329,10 +2325,10 @@ void init_embedded_functions() embed_function("SetActorFrame", ID_TYPE_SUB); add_embedded_arg("actor", ID_TYPE_NUM); add_embedded_arg("frame", ID_TYPE_NUM); - embed_function("SetActorMD2Animation", ID_TYPE_FN_NUM); + embed_function("SetActorMD2Animation", ID_TYPE_SUB); add_embedded_arg("actor", ID_TYPE_NUM); add_embedded_arg("anim", ID_TYPE_NUM); - embed_function("SetActorMD2AnimationByName", ID_TYPE_FN_NUM); + embed_function("SetActorMD2AnimationByName", ID_TYPE_SUB); add_embedded_arg("actor", ID_TYPE_NUM); add_embedded_arg("anim_name$", ID_TYPE_STR); embed_function("GetActorAnimationSpeed", ID_TYPE_FN_NUM); @@ -2435,7 +2431,7 @@ void init_embedded_functions() embed_function("setMaterialGouraudShading", ID_TYPE_SUB); add_embedded_arg("material_id", ID_TYPE_NUM); add_embedded_arg("flag", ID_TYPE_NUM); - embed_function("materialGouraudShading", ID_TYPE_FN_NUM); + embed_function("materialIsGouraudShaded", ID_TYPE_FN_NUM); add_embedded_arg("material_id", ID_TYPE_NUM); embed_function("materialIsAplhaBlend", ID_TYPE_FN_NUM); add_embedded_arg("material_id", ID_TYPE_NUM); diff --git a/rcbasic_build/rcbasic4_changes.ods b/rcbasic_build/rcbasic4_changes.ods index 5fbd459..74b78f2 100644 Binary files a/rcbasic_build/rcbasic4_changes.ods and b/rcbasic_build/rcbasic4_changes.ods differ diff --git a/rcbasic_runtime/RealisticWater.cpp b/rcbasic_runtime/RealisticWater.cpp new file mode 100755 index 0000000..1b9fa31 --- /dev/null +++ b/rcbasic_runtime/RealisticWater.cpp @@ -0,0 +1,308 @@ +/* + * Copyright (c) 2013, elvman + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY elvman ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include "RealisticWater.h" + +RealisticWaterSceneNode::RealisticWaterSceneNode(scene::ISceneManager* sceneManager, f32 width, f32 height, + const irr::core::stringc& resourcePath, core::dimension2du renderTargetSize, + scene::ISceneNode* parent, s32 id): + scene::ISceneNode(parent, sceneManager, id), _time(0), + _size(width, height), _sceneManager(sceneManager), _refractionMap(NULL), _reflectionMap(NULL), + _windForce(20.0f),_windDirection(0, 1),_waveHeight(0.3f), _waterColor(0.1f, 0.1f, 0.6f, 1.0f), _colorBlendFactor(0.2f), _camera(NULL) +{ + _videoDriver = sceneManager->getVideoDriver(); + + //create new camera + _camera = sceneManager->addCameraSceneNode(0, core::vector3df(0, 0, 0), core::vector3df(0, 0, 0), -1, false); + + _waterMesh = sceneManager->addHillPlaneMesh("RealisticWater", _size, core::dimension2d(1, 1)); + + _waterSceneNode = sceneManager->addMeshSceneNode(_waterMesh->getMesh(0), this); + + video::IGPUProgrammingServices* GPUProgrammingServices = _videoDriver->getGPUProgrammingServices(); + + core::stringc waterPixelShader; + core::stringc waterVertexShader; + + if (_videoDriver->getDriverType() == video::EDT_DIRECT3D9) + { + waterPixelShader = resourcePath + "/shaders/Water_ps.hlsl"; + waterVertexShader = resourcePath + "/shaders/Water_vs.hlsl"; + } + else if (_videoDriver->getDriverType() == video::EDT_OPENGL) + { + waterPixelShader = resourcePath + "/shaders/Water_ps.glsl"; + waterVertexShader = resourcePath + "/shaders/Water_vs.glsl"; + } + + _shaderMaterial = GPUProgrammingServices->addHighLevelShaderMaterialFromFiles( + waterVertexShader.c_str(), "main", video::EVST_VS_1_1, + waterPixelShader.c_str(), "main", video::EPST_PS_1_1, + this); + + _waterSceneNode->setMaterialType((video::E_MATERIAL_TYPE)_shaderMaterial); + + irr::video::ITexture* bumpTexture = _videoDriver->getTexture(resourcePath + "/data/waterbump.png"); + _waterSceneNode->setMaterialTexture(0, bumpTexture); + + _refractionMap = _videoDriver->addRenderTargetTexture(renderTargetSize); + _reflectionMap = _videoDriver->addRenderTargetTexture(renderTargetSize); + + _waterSceneNode->setMaterialTexture(1, _refractionMap); + _waterSceneNode->setMaterialTexture(2, _reflectionMap); +} + +RealisticWaterSceneNode::~RealisticWaterSceneNode() +{ + if (_camera) + { + _camera->drop(); + _camera = NULL; + } + + if (_refractionMap) + { + _refractionMap->drop(); + _refractionMap = NULL; + } + + if (_reflectionMap) + { + _reflectionMap->drop(); + _reflectionMap = NULL; + } + + if (_waterSceneNode) + { + _waterSceneNode->drop(); + _waterSceneNode = NULL; + } + + if (_waterMesh) + { + _waterMesh->drop(); + _waterMesh = NULL; + } +} + +// frame +void RealisticWaterSceneNode::OnRegisterSceneNode() +{ + ISceneNode::OnRegisterSceneNode(); + + if (IsVisible) + { + _sceneManager->registerNodeForRendering(this); + } +} + +void RealisticWaterSceneNode::OnAnimate(u32 timeMs) +{ + ISceneNode::OnAnimate(timeMs); + + _time = timeMs; + + //fixes glitches with incomplete refraction + const f32 CLIP_PLANE_OFFSET_Y = 5.0f; + + if (IsVisible) + { + setVisible(false); //hide the water + + //refraction + _videoDriver->setRenderTarget(_refractionMap, true, true); //render to refraction + + //refraction clipping plane + core::plane3d refractionClipPlane(0, RelativeTranslation.Y + CLIP_PLANE_OFFSET_Y, 0, 0, -1, 0); //refraction clip plane + _videoDriver->setClipPlane(0, refractionClipPlane, true); + + _sceneManager->drawAll(); //draw the scene + + //reflection + _videoDriver->setRenderTarget(_reflectionMap, true, true); //render to reflection + + //get current camera + scene::ICameraSceneNode* currentCamera = _sceneManager->getActiveCamera(); + + //set FOV anf far value from current camera + _camera->setFarValue(currentCamera->getFarValue()); + _camera->setFOV(currentCamera->getFOV()); + + core::vector3df position = currentCamera->getAbsolutePosition(); + position.Y = -position.Y + 2 * RelativeTranslation.Y; //position of the water + _camera->setPosition(position); + + core::vector3df target = currentCamera->getTarget(); + + //invert Y position of current camera + target.Y = -target.Y + 2 * RelativeTranslation.Y; + _camera->setTarget(target); + + //set the reflection camera + _sceneManager->setActiveCamera(_camera); + + //reflection clipping plane + core::plane3d reflectionClipPlane(0, RelativeTranslation.Y - CLIP_PLANE_OFFSET_Y, 0, 0, 1, 0); + _videoDriver->setClipPlane(0, reflectionClipPlane, true); + + _sceneManager->drawAll(); //draw the scene + + //disable clip plane + _videoDriver->enableClipPlane(0, false); + + //set back old render target + _videoDriver->setRenderTarget(0); + + //set back the active camera + _sceneManager->setActiveCamera(currentCamera); + + setVisible(true); //show it again + } +} + +void RealisticWaterSceneNode::render() +{ + /*core::array renderTargets; + //renderTargets.push_back(); + renderTargets.push_back(_refractionMap); + + _videoDriver->setRenderTarget(renderTargets, true, true);*/ + //_videoDriver->draw2DImage(_reflectionMap,core::position2d(0,0)); +} + +// returns the axis aligned bounding box of terrain +const core::aabbox3d& RealisticWaterSceneNode::getBoundingBox() const +{ + return _waterSceneNode->getBoundingBox(); +} + +void RealisticWaterSceneNode::OnSetConstants(video::IMaterialRendererServices* services, s32 userData) +{ + video::IVideoDriver* driver = services->getVideoDriver(); + + core::matrix4 projection = driver->getTransform(video::ETS_PROJECTION); + core::matrix4 view = driver->getTransform(video::ETS_VIEW); + core::matrix4 world = driver->getTransform(video::ETS_WORLD); + + core::matrix4 cameraView = _camera->getViewMatrix(); + + //vertex shader constants + //services->setVertexShaderConstant("View", view.pointer(), 16); + + core::matrix4 worldViewProj = projection; + worldViewProj *= view; + worldViewProj *= world; + + core::matrix4 worldReflectionViewProj = projection; + worldReflectionViewProj *= cameraView; + worldReflectionViewProj *= world; + + f32 waveLength = 0.1f; + f32 time = _time / 100000.0f; + core::vector3df cameraPosition = _sceneManager->getActiveCamera()->getPosition(); + + bool fogEnabled = getMaterial(0).getFlag(video::EMF_FOG_ENABLE); + irr::video::SColor color; + irr::video::E_FOG_TYPE fogType; + f32 start; + f32 end; + f32 density; + bool pixelFog; + bool rangeFog; + driver->getFog(color, fogType, start, end, density, pixelFog, rangeFog); + +#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR == 9) + services->setVertexShaderConstant(services->getVertexShaderConstantID("WorldViewProj"), worldViewProj.pointer(), 16); + services->setVertexShaderConstant(services->getVertexShaderConstantID("WorldReflectionViewProj"), worldReflectionViewProj.pointer(), 16); + services->setVertexShaderConstant(services->getVertexShaderConstantID("WaveLength"), &waveLength, 1); + services->setVertexShaderConstant(services->getVertexShaderConstantID("Time"), &time, 1); + services->setVertexShaderConstant(services->getVertexShaderConstantID("WindForce"), &_windForce, 1); + services->setVertexShaderConstant(services->getVertexShaderConstantID("WindDirection"), &_windDirection.X, 2); + services->setPixelShaderConstant(services->getVertexShaderConstantID("CameraPosition"), &cameraPosition.X, 3); + services->setPixelShaderConstant(services->getVertexShaderConstantID("WaveHeight"), &_waveHeight, 1); + services->setPixelShaderConstant(services->getVertexShaderConstantID("WaterColor"), &_waterColor.r, 4); + services->setPixelShaderConstant(services->getVertexShaderConstantID("ColorBlendFactor"), &_colorBlendFactor, 1); +#else + services->setVertexShaderConstant("WorldViewProj", worldViewProj.pointer(), 16); + services->setVertexShaderConstant("WorldReflectionViewProj", worldReflectionViewProj.pointer(), 16); + services->setVertexShaderConstant("WaveLength", &waveLength, 1); + services->setVertexShaderConstant("Time", &time, 1); + services->setVertexShaderConstant("WindForce", &_windForce, 1); + services->setVertexShaderConstant("WindDirection", &_windDirection.X, 2); + services->setPixelShaderConstant("CameraPosition", &cameraPosition.X, 3); + services->setPixelShaderConstant("WaveHeight", &_waveHeight, 1); + services->setPixelShaderConstant("WaterColor", &_waterColor.r, 4); + services->setPixelShaderConstant("ColorBlendFactor", &_colorBlendFactor, 1); +#endif + + //texture constants for GLSL + if (driver->getDriverType() == video::EDT_OPENGL) + { + int var0 = 0; + int var1 = 1; + int var2 = 2; + +#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR == 9) + services->setPixelShaderConstant(services->getVertexShaderConstantID("WaterBump"), &var0, 1); + services->setPixelShaderConstant(services->getVertexShaderConstantID("RefractionMap"), &var1, 1); + services->setPixelShaderConstant(services->getVertexShaderConstantID("ReflectionMap"), &var2, 1); + + services->setPixelShaderConstant(services->getVertexShaderConstantID("FogEnabled"), (int*)&fogEnabled, 1); + services->setPixelShaderConstant(services->getVertexShaderConstantID("FogMode"), (int*)&fogType, 1); +#else + services->setPixelShaderConstant("WaterBump", &var0, 1); + services->setPixelShaderConstant("RefractionMap", &var1, 1); + services->setPixelShaderConstant("ReflectionMap", &var2, 1); + + services->setPixelShaderConstant("FogEnabled", (int*)&fogEnabled, 1); + services->setPixelShaderConstant("FogMode", (int*)&fogType, 1); +#endif + } +} + +void RealisticWaterSceneNode::setWindForce(const f32 windForce) +{ + _windForce = windForce; +} + +void RealisticWaterSceneNode::setWindDirection(const core::vector2df& windDirection) +{ + _windDirection = windDirection; + _windDirection.normalize(); +} + +void RealisticWaterSceneNode::setWaveHeight(const f32 waveHeight) +{ + _waveHeight = waveHeight; +} + +void RealisticWaterSceneNode::setWaterColor(const video::SColorf& waterColor) +{ + _waterColor = waterColor; +} + +void RealisticWaterSceneNode::setColorBlendFactor(const f32 colorBlendFactor) +{ + _colorBlendFactor = colorBlendFactor; +} diff --git a/rcbasic_runtime/RealisticWater.h b/rcbasic_runtime/RealisticWater.h new file mode 100755 index 0000000..0faea9e --- /dev/null +++ b/rcbasic_runtime/RealisticWater.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2013, elvman + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY elvman ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef _REALISTIC_WATER_SCENE_NODE_H +#define _REALISTIC_WATER_SCENE_NODE_H + +#include + +using namespace irr; + +class RealisticWaterSceneNode: public scene::ISceneNode, video::IShaderConstantSetCallBack +{ +public: + RealisticWaterSceneNode(scene::ISceneManager* sceneManager, f32 width, f32 height, + const irr::core::stringc& resourcePath = irr::core::stringc(), + core::dimension2du renderTargetSize=core::dimension2du(512,512),scene::ISceneNode* parent = NULL, s32 id = -1); + virtual ~RealisticWaterSceneNode(); + + // frame + virtual void OnRegisterSceneNode(); + + virtual void OnAnimate(u32 timeMs); + + // renders terrain + virtual void render(); + + // returns the axis aligned bounding box of terrain + virtual const core::aabbox3d& getBoundingBox() const; + + virtual void OnSetConstants(video::IMaterialRendererServices* services, s32 userData); + + void setWindForce(f32 windForce); + void setWindDirection(const core::vector2df& windDirection); + void setWaveHeight(f32 waveHeight); + + void setWaterColor(const video::SColorf& waterColor); + void setColorBlendFactor(f32 colorBlendFactor); + + f32 getWindForce() { return _windForce; }; + core::vector2df getWindDirection() { return _windDirection; }; + f32 getWaveHeight() { return _waveHeight; }; + video::SColorf getWaterColor() { return _waterColor; }; + f32 getColorBlendFactor() { return _colorBlendFactor; }; + +private: + + scene::ICameraSceneNode* _camera; + scene::ISceneNode* _waterSceneNode; + + video::IVideoDriver* _videoDriver; + scene::ISceneManager* _sceneManager; + + core::dimension2d _size; + + s32 _shaderMaterial; + + scene::IAnimatedMesh* _waterMesh; + + video::ITexture* _refractionMap; + video::ITexture* _reflectionMap; + + f32 _windForce; + core::vector2df _windDirection; + f32 _waveHeight; + + video::SColorf _waterColor; + f32 _colorBlendFactor; + + u32 _time; +}; + +#endif diff --git a/rcbasic_runtime/main.cpp b/rcbasic_runtime/main.cpp index 0b0372c..cde02a8 100755 --- a/rcbasic_runtime/main.cpp +++ b/rcbasic_runtime/main.cpp @@ -48,9 +48,13 @@ #include #include "rc_defines.h" #include "rc_stdlib.h" -#include "rc_gfx.h" +#include "rc_gfx.h" +#include "rc_gfx3D.h" #include "rc_matrix.h" #include "rc_geometry.h" +#include "rc_audio.h" +#include "rc_net.h" +#include "rc_video.h" #include @@ -4310,16 +4314,18 @@ bool rcbasic_run() } void rcbasic_init() -{ - for(int i = 0; i < RC_MAX_FILES; i++) - rc_fstream[i] = NULL; - rc_media_init(); +{ + rc_audio_init(); + rc_gfx_init(); + rc_net_init(); arr_ref_id.clear(); } void rcbasic_clean() { - rc_media_quit(); + rc_audio_quit(); + rc_net_quit(); + rc_gfx_quit(); byref_addr_table.empty(); loop_stack.empty(); n_stack.empty(); @@ -4411,7 +4417,7 @@ int main(int argc, char * argv[]) } rcbasic_init(); - rc_initSubprocessSystem(); + //rc_initSubprocessSystem(); if(rc_filename.length()>=4) { @@ -4465,7 +4471,7 @@ int main(int argc, char * argv[]) else cout << "++Could not load rcbasic program" << endl; - rc_cleanSubprocessSystem(); + //rc_cleanSubprocessSystem(); rcbasic_clean(); exit(rcbasic_exit_code); diff --git a/rcbasic_runtime/rc_audio.h b/rcbasic_runtime/rc_audio.h new file mode 100644 index 0000000..cf69afd --- /dev/null +++ b/rcbasic_runtime/rc_audio.h @@ -0,0 +1,393 @@ +#ifndef RC_AUDIO_H_INCLUDED +#define RC_AUDIO_H_INCLUDED + +#include +#include "rc_os_defines.h" + +#ifdef RC_ANDROID +#define RC_MOBILE +#endif + +#ifdef RC_IOS +#define RC_MOBILE +#endif + + +#ifdef RC_ANDROID + +#include +//Using SDL and standard IO +#include +#include +#include +#include "SDL.h" +#include "SDL_mixer.h" + +#else + +#ifdef RC_IOS + +//Using SDL and standard IO +#include +#include +#include +#include "SDL2/SDL.h" +#include "SDL2/SDL_mixer.h" + +#else +//Using SDL and standard IO +#include +#include +#include +#include +#include +#include + +#endif //RC_IOS + +#endif // RC_ANDROID + +using namespace std; + +#ifdef RC_MOBILE +//Screen dimension constants +const int MAX_SOUNDS = 1024; +const int MAX_MUSIC = 1; +#else +//Screen dimension constants +const int MAX_SOUNDS = 1024; +const int MAX_MUSIC = 1; +#endif // RC_MOBILE + +struct rc_sound_obj +{ + Mix_Chunk * sound; + bool active = false; +}; + +std::vector rc_sound; + +Mix_Music * rc_music; + + +bool rc_audio_init() +{ + if(Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 2048) < 0) + { + cout << "OpenAudio Error: " << Mix_GetError() << endl; + return false; + } + return true; +} + +bool rc_audio_quit() +{ + for(int i = 0; i < rc_sound.size(); i++) + { + if(rc_sound[i].sound != NULL) + Mix_FreeChunk(rc_sound[i].sound); + rc_sound[i].sound = NULL; + } + if(rc_music != NULL) + Mix_FreeMusic(rc_music); + rc_music = NULL; + Mix_Quit(); + + return true; +} + +int rc_queryAudioSpec(double * freq, double * format, double * channels) +{ + //need to do something here + int qa_freq = 0; + Uint16 qa_format = 0; + int qa_channels = 0; + int result = Mix_QuerySpec(&qa_freq, &qa_format, &qa_channels); + *freq = (double)qa_freq; + *format = (double)qa_format; + *channels = (double)qa_channels; + return result; +} + +int rc_loadSound(std::string fname) +{ + int id = -1; + for(int i = 0; i < rc_sound.size(); i++) + { + if(!rc_sound[i].active) + { + id = i; + break; + } + } + + if(id < 0) + { + rc_sound_obj obj; + id = rc_sound.size(); + rc_sound.push_back(obj); + } + + + rc_sound[id].sound = Mix_LoadWAV(fname.c_str()); + if(rc_sound[id].sound == NULL) + { + std::cout << "Could not load sound: " << Mix_GetError() << std::endl; + return -1; + } + + rc_sound[id].active = true; + + return id; +} + +int rc_createSound(double * abuf, Uint32 alen, Uint8 volume) +{ + int id = -1; + for(int i = 0; i < rc_sound.size(); i++) + { + if(!rc_sound[i].active) + { + id = i; + break; + } + } + + if(id < 0) + { + rc_sound_obj obj; + id = rc_sound.size(); + rc_sound.push_back(obj); + } + rc_sound[id].sound = (Mix_Chunk*)SDL_malloc(sizeof(Mix_Chunk)); + rc_sound[id].sound->allocated = 1; + rc_sound[id].sound->abuf = (Uint8*)SDL_malloc(sizeof(Uint8)*alen); + + for(int i = 0; i < alen; i++) + rc_sound[id].sound->abuf[i] = (Uint8)abuf[i]; + + rc_sound[id].sound->alen = alen; + rc_sound[id].sound->volume = volume; + + rc_sound[id].active = true; + return id; +} + +void rc_loadMusic(std::string fname) +{ + if(rc_music != NULL) + { + Mix_FreeMusic(rc_music); + } + rc_music = Mix_LoadMUS(fname.c_str()); + if(rc_music == NULL) + { + std::cout << "Could not load music: " << Mix_GetError() << std::endl; + return; + } +} + +void rc_deleteMusic() +{ + if(rc_music) + { + Mix_FreeMusic(rc_music); + rc_music = NULL; + } +} + +void rc_playSound(int slot, int channel, int loops) +{ + if(rc_sound[slot].sound != NULL) + { + Mix_PlayChannel(channel, rc_sound[slot].sound, loops); + } +} + +void rc_playSoundTimed(int slot, int channel, int loops, int ms) +{ + if(rc_sound[slot].sound != NULL) + { + Mix_PlayChannelTimed(channel, rc_sound[slot].sound, loops, ms); + } +} + +void rc_playMusic(int loops) +{ + if(rc_music != NULL) + { + Mix_PlayMusic(rc_music, loops); + } +} + +int rc_musicIsPlaying() +{ + if(rc_music != NULL) + { + return Mix_PlayingMusic(); + } + return 0; +} + +void rc_pauseSound(int channel) +{ + if(Mix_Playing(channel)) + { + Mix_Pause(channel); + } +} + +void rc_resumeSound(int channel) +{ + if(!Mix_Playing(channel)) + { + Mix_Resume(channel); + } +} + +void rc_pauseMusic() +{ + if(Mix_PlayingMusic()) + { + Mix_PauseMusic(); + } +} + +void rc_resumeMusic() +{ + if(!Mix_PlayingMusic()) + { + Mix_ResumeMusic(); + } +} + +void rc_deleteSound(int slot) +{ + if(rc_sound[slot].sound != NULL) + { + Mix_FreeChunk(rc_sound[slot].sound); + rc_sound[slot].sound = NULL; + } + rc_sound[slot].active = false; +} + +void rc_fadeMusicIn(int time, int loops) +{ + Mix_FadeInMusic(rc_music, loops, time); +} + +void rc_fadeMusicOut(int time) +{ + Mix_FadeOutMusic(time); +} + +bool rc_musicExists() +{ + if(rc_music != NULL) + return true; + return false; +} + +void rc_setMusicVolume(int volume) +{ + Mix_VolumeMusic(volume); +} + +int rc_getMusicVolume() +{ + return Mix_VolumeMusic(-1); +} + +void rc_setMusicPosition(double position) +{ + Mix_SetMusicPosition(position); +} + +double rc_getMusicPosition() +{ + return Mix_SetMusicPosition(-1); +} + +void rc_rewindMusic() +{ + Mix_RewindMusic(); +} + +void rc_setSoundChannels(int max_channels) +{ + Mix_AllocateChannels(max_channels); +} + +int rc_getSoundChannels() +{ + return Mix_AllocateChannels(-1); +} + +bool rc_soundIsEnabled() +{ + return (bool) Mix_Init(0); +} + +bool rc_soundExists(int slot) +{ + return rc_sound[slot].active; +} + +void rc_setChannelVolume(int channel, int volume) +{ + Mix_Volume(channel, volume); +} + +int rc_getChannelVolume(int channel) +{ + return Mix_Volume(channel, -1); +} + +void rc_setSoundVolume(int slot, int volume) +{ + Mix_VolumeChunk(rc_sound[slot].sound, volume); +} + +int rc_getSoundVolume(int slot) +{ + return Mix_VolumeChunk(rc_sound[slot].sound, -1); +} + +void rc_stopMusic() +{ + Mix_HaltMusic(); +} + +void rc_stopSound(int channel) +{ + Mix_HaltChannel(channel); +} + +int rc_channelIsPlaying(int channel) +{ + return Mix_Playing(channel); +} + +int rc_channelIsPaused(int channel) +{ + return Mix_Paused(channel); +} + +int rc_setChannelDistance(int channel, Uint8 dist) +{ + return Mix_SetDistance(channel, dist); +} + +int rc_setChannelPanning(int channel, Uint8 l, Uint8 r) +{ + return Mix_SetPanning(channel, l, r); +} + + +int rc_setChannelSpacePosition(int channel, double angle, double distance) +{ + return Mix_SetPosition(channel, (Sint16)angle, (Uint8) distance); +} + + +#endif // RC_AUDIO_H_INCLUDED diff --git a/rcbasic_runtime/rc_defines.h b/rcbasic_runtime/rc_defines.h index 2762303..82fbf34 100755 --- a/rcbasic_runtime/rc_defines.h +++ b/rcbasic_runtime/rc_defines.h @@ -607,12 +607,11 @@ #define FN_SetBlendMode 223 #define SETBLENDMODE_BLEND_MODE num_var[0].nid_value.value[ num_var[0].byref_offset ] #define FN_GetBlendMode 224 -#define GETBLENDMODE_BLEND_MODE num_var[0].nid_value.value[ num_var[0].byref_offset ] #define FN_SetImageColorMod 225 #define SETIMAGECOLORMOD_SLOT num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETIMAGECOLORMOD_C num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_ImageColorMod 226 -#define IMAGECOLORMOD_SLOT num_var[0].nid_value.value[ num_var[0].byref_offset ] +#define FN_GetImageColorMod 226 +#define GETIMAGECOLORMOD_SLOT num_var[0].nid_value.value[ num_var[0].byref_offset ] #define FN_DrawImage 227 #define DRAWIMAGE_SLOT num_var[0].nid_value.value[ num_var[0].byref_offset ] #define DRAWIMAGE_X num_var[1].nid_value.value[ num_var[1].byref_offset ] @@ -741,10 +740,10 @@ #define SETMOUSEZONE_W num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETMOUSEZONE_H num_var[3].nid_value.value[ num_var[3].byref_offset ] #define FN_ClearMouseZone 257 -#define FN_SoundFromBuffer 258 -#define SOUNDFROMBUFFER_BUFFER num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define SOUNDFROMBUFFER_BUFFER_SIZE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define SOUNDFROMBUFFER_VOL num_var[2].nid_value.value[ num_var[2].byref_offset ] +#define FN_CreateSound 258 +#define CREATESOUND_BUFFER num_var[0].nid_value.value[ num_var[0].byref_offset ] +#define CREATESOUND_BUFFER_SIZE num_var[1].nid_value.value[ num_var[1].byref_offset ] +#define CREATESOUND_VOL num_var[2].nid_value.value[ num_var[2].byref_offset ] #define FN_LoadSound 259 #define LOADSOUND_SND_FILE$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define FN_LoadMusic 260 @@ -869,423 +868,418 @@ #define DRAWTEXT_TXT$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define DRAWTEXT_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define DRAWTEXT_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_RenderText 314 -#define RENDERTEXT_SLOT num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define RENDERTEXT_TXT$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_GetTextSize 315 +#define FN_GetTextSize 314 #define GETTEXTSIZE_TXT$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define GETTEXTSIZE_W num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETTEXTSIZE_H num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetTextWidth 316 +#define FN_GetTextWidth 315 #define GETTEXTWIDTH_TXT$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_GetTextHeight 317 +#define FN_GetTextHeight 316 #define GETTEXTHEIGHT_TXT$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_TouchPressure 318 -#define FN_GetTouch 319 +#define FN_TouchPressure 317 +#define FN_GetTouch 318 #define GETTOUCH_STATUS num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETTOUCH_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETTOUCH_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETTOUCH_DX num_var[3].nid_value.value[ num_var[3].byref_offset ] #define GETTOUCH_DY num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_GetMultiTouch 320 +#define FN_GetMultiTouch 319 #define GETMULTITOUCH_STATUS num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETMULTITOUCH_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETMULTITOUCH_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETMULTITOUCH_FINGERS num_var[3].nid_value.value[ num_var[3].byref_offset ] #define GETMULTITOUCH_DIST num_var[4].nid_value.value[ num_var[4].byref_offset ] #define GETMULTITOUCH_THETA num_var[5].nid_value.value[ num_var[5].byref_offset ] -#define FN_GetTouchFinger 321 +#define FN_GetTouchFinger 320 #define GETTOUCHFINGER_FINGER num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETTOUCHFINGER_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETTOUCHFINGER_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETTOUCHFINGER_PRESSURE num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_NumFingers 322 -#define FN_GetAccel 323 +#define FN_NumFingers 321 +#define FN_GetAccel 322 #define GETACCEL_ACCEL_NUM num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACCEL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACCEL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACCEL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_AccelName$ 324 +#define FN_AccelName$ 323 #define ACCELNAME$_ACCEL_NUM num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_NumAccels 325 -#define FN_GetGyro 326 +#define FN_NumAccels 324 +#define FN_GetGyro 325 #define GETGYRO_GYRO_NUM num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETGYRO_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETGYRO_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETGYRO_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GyroName$ 327 +#define FN_GyroName$ 326 #define GYRONAME$_GYRO_NUM num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_NumGyros 328 -#define FN_CheckSockets 329 +#define FN_NumGyros 327 +#define FN_CheckSockets 328 #define CHECKSOCKETS_TIMEOUT_MS num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_TCP_SocketReady 330 +#define FN_TCP_SocketReady 329 #define TCP_SOCKETREADY_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_UDP_SocketReady 331 +#define FN_UDP_SocketReady 330 #define UDP_SOCKETREADY_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_TCP_OpenSocket 332 +#define FN_TCP_OpenSocket 331 #define TCP_OPENSOCKET_HOST$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define TCP_OPENSOCKET_PORT num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_TCP_CloseSocket 333 +#define FN_TCP_CloseSocket 332 #define TCP_CLOSESOCKET_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_TCP_RemoteHost 334 +#define FN_TCP_RemoteHost 333 #define TCP_REMOTEHOST_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_TCP_RemotePort 335 +#define FN_TCP_RemotePort 334 #define TCP_REMOTEPORT_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_TCP_GetData 336 +#define FN_TCP_GetData 335 #define TCP_GETDATA_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define TCP_GETDATA_SDATA$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define TCP_GETDATA_NUMBYTES num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_TCP_SendData 337 +#define TCP_GETDATA_SDATA$ str_var[0].sid_value.value[ str_var[0].byref_offset ] +#define FN_TCP_SendData 336 #define TCP_SENDDATA_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] #define TCP_SENDDATA_SDATA$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_TCP_AcceptSocket 338 +#define FN_TCP_AcceptSocket 337 #define TCP_ACCEPTSOCKET_SERVER num_var[0].nid_value.value[ num_var[0].byref_offset ] #define TCP_ACCEPTSOCKET_CLIENT num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_UDP_OpenSocket 339 +#define FN_UDP_OpenSocket 338 #define UDP_OPENSOCKET_PORT num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_UDP_CloseSocket 340 +#define FN_UDP_CloseSocket 339 #define UDP_CLOSESOCKET_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_UDP_GetData 341 +#define FN_UDP_GetData 340 #define UDP_GETDATA_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define UDP_GETDATA_SDATA$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define UDP_GETDATA_HOST$ str_var[1].sid_value.value[ str_var[1].byref_offset ] +#define UDP_GETDATA_HOST$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define UDP_GETDATA_PORT num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_UDP_Length 342 -#define FN_UDP_MaxLength 343 -#define FN_UDP_RemoteHost$ 344 +#define UDP_GETDATA_SDATA$ str_var[1].sid_value.value[ str_var[1].byref_offset ] +#define FN_UDP_Length 341 +#define FN_UDP_MaxLength 342 +#define FN_UDP_RemoteHost$ 343 #define UDP_REMOTEHOST$_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_UDP_RemotePort 345 +#define FN_UDP_RemotePort 344 #define UDP_REMOTEPORT_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_UDP_SendData 346 +#define FN_UDP_SendData 345 #define UDP_SENDDATA_SOCKET num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define UDP_SENDDATA_SDATA$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define UDP_SENDDATA_HOST$ str_var[1].sid_value.value[ str_var[1].byref_offset ] +#define UDP_SENDDATA_HOST$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define UDP_SENDDATA_PORT num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_LoadVideo 347 +#define UDP_SENDDATA_SDATA$ str_var[1].sid_value.value[ str_var[1].byref_offset ] +#define FN_LoadVideo 346 #define LOADVIDEO_VID$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_PlayVideo 348 +#define FN_PlayVideo 347 #define PLAYVIDEO_VLOOPS num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_PauseVideo 349 -#define FN_StopVideo 350 -#define FN_SetVideoPosition 351 +#define FN_PauseVideo 348 +#define FN_StopVideo 349 +#define FN_SetVideoPosition 350 #define SETVIDEOPOSITION_POS num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_ResumeVideo 352 -#define FN_GetVideoPosition 353 -#define FN_DeleteVideo 354 -#define FN_VideoIsPlaying 355 -#define FN_VideoEnd 356 -#define FN_GetVideoStats 357 +#define FN_ResumeVideo 351 +#define FN_GetVideoPosition 352 +#define FN_DeleteVideo 353 +#define FN_VideoIsPlaying 354 +#define FN_VideoEnd 355 +#define FN_GetVideoStats 356 #define GETVIDEOSTATS_VFILE$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define GETVIDEOSTATS_VLEN num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETVIDEOSTATS_VFPS num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETVIDEOSTATS_FRAME_W num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETVIDEOSTATS_FRAME_H num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetVideoDrawRect 358 +#define FN_SetVideoDrawRect 357 #define SETVIDEODRAWRECT_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETVIDEODRAWRECT_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETVIDEODRAWRECT_W num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETVIDEODRAWRECT_H num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetVideoDrawRect 359 +#define FN_GetVideoDrawRect 358 #define GETVIDEODRAWRECT_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETVIDEODRAWRECT_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETVIDEODRAWRECT_W num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETVIDEODRAWRECT_H num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetVideoSize 360 +#define FN_GetVideoSize 359 #define GETVIDEOSIZE_W num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETVIDEOSIZE_H num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_VideoExists 361 -#define FN_SetVideoAlpha 362 -#define SETVIDEOALPHA_A num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetVideoVolume 363 +#define FN_VideoExists 360 +#define FN_SetVideoVolume 361 #define SETVIDEOVOLUME_VOL num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetVideoVolume 364 -#define GETVIDEOVOLUME_VOL num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_System 365 +#define FN_GetVideoVolume 362 +#define FN_System 363 #define SYSTEM_CMD$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_OS$ 366 -#define FN_Command$ 367 +#define FN_OS$ 364 +#define FN_Command$ 365 #define COMMAND$_ARG num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_NumCommands 368 -#define FN_Env$ 369 +#define FN_NumCommands 366 +#define FN_Env$ 367 #define ENV$_V$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_SetEnv 370 +#define FN_SetEnv 368 #define SETENV_VAR$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define SETENV_VALUE$ str_var[1].sid_value.value[ str_var[1].byref_offset ] -#define FN_PrefPath$ 371 +#define FN_PrefPath$ 369 #define PREFPATH$_ORG_NAME$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define PREFPATH$_APP_NAME$ str_var[1].sid_value.value[ str_var[1].byref_offset ] -#define FN_Android_GetExternalStoragePath$ 372 -#define FN_Android_GetExternalStorageState 373 -#define FN_Android_GetInternalStoragePath$ 374 -#define FN_Android_JNI_Message$ 375 +#define FN_Android_GetExternalStoragePath$ 370 +#define FN_Android_GetExternalStorageState 371 +#define FN_Android_GetInternalStoragePath$ 372 +#define FN_Android_JNI_Message$ 373 #define ANDROID_JNI_MESSAGE$_ARG$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_Runtime_Utility_Message$ 376 +#define FN_Runtime_Utility_Message$ 374 #define RUNTIME_UTILITY_MESSAGE$_ARG$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_GetDesktopDisplayMode 377 +#define FN_GetDesktopDisplayMode 375 #define GETDESKTOPDISPLAYMODE_INDEX num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETDESKTOPDISPLAYMODE_W num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETDESKTOPDISPLAYMODE_H num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETDESKTOPDISPLAYMODE_FREQ num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetPowerInfo 378 +#define FN_GetPowerInfo 376 #define GETPOWERINFO_STATUS num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETPOWERINFO_SECS num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETPOWERINFO_PCT num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_EvalJS$ 379 +#define FN_EvalJS$ 377 #define EVALJS$_JS_CODE$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_SystemReturnStdOut$ 380 +#define FN_SystemReturnStdOut$ 378 #define SYSTEMRETURNSTDOUT$_CMD$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_OpenURL 381 +#define FN_OpenURL 379 #define OPENURL_URL$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_MessageBox 382 +#define FN_MessageBox 380 #define MESSAGEBOX_TITLE$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define MESSAGEBOX_MSG$ str_var[1].sid_value.value[ str_var[1].byref_offset ] -#define FN_Runtime$ 383 -#define FN_NumCPUs 384 -#define FN_DimMatrix 385 +#define FN_Runtime$ 381 +#define FN_NumCPUs 382 +#define FN_SystemRam 383 +#define FN_DimMatrix 384 #define DIMMATRIX_M_ROWS num_var[0].nid_value.value[ num_var[0].byref_offset ] #define DIMMATRIX_M_COLS num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_DeleteMatrix 386 +#define FN_DeleteMatrix 385 #define DELETEMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_AddMatrix 387 +#define FN_AddMatrix 386 #define ADDMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ADDMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define ADDMATRIX_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_AugmentMatrix 388 +#define FN_AugmentMatrix 387 #define AUGMENTMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define AUGMENTMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define AUGMENTMATRIX_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_CopyMatrix 389 +#define FN_CopyMatrix 388 #define COPYMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COPYMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_InsertMatrixColumns 390 +#define FN_InsertMatrixColumns 389 #define INSERTMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define INSERTMATRIXCOLUMNS_C num_var[1].nid_value.value[ num_var[1].byref_offset ] #define INSERTMATRIXCOLUMNS_NUM_COLS num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_InsertMatrixRows 391 +#define FN_InsertMatrixRows 390 #define INSERTMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define INSERTMATRIXROWS_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define INSERTMATRIXROWS_NUM_ROWS num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_MultiplyMatrix 392 +#define FN_MultiplyMatrix 391 #define MULTIPLYMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define MULTIPLYMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define MULTIPLYMATRIX_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_CubeMatrix 393 +#define FN_CubeMatrix 392 #define CUBEMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CUBEMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_DeleteMatrixColumns 394 +#define FN_DeleteMatrixColumns 393 #define DELETEMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define DELETEMATRIXCOLUMNS_C num_var[1].nid_value.value[ num_var[1].byref_offset ] #define DELETEMATRIXCOLUMNS_NUM_COLS num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_DeleteMatrixRows 395 +#define FN_DeleteMatrixRows 394 #define DELETEMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define DELETEMATRIXROWS_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define DELETEMATRIXROWS_NUM_ROWS num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_ClearMatrix 396 +#define FN_ClearMatrix 395 #define CLEARMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_ClearMatrixColumns 397 +#define FN_ClearMatrixColumns 396 #define CLEARMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CLEARMATRIXCOLUMNS_C num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CLEARMATRIXCOLUMNS_NUM_COLS num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_ClearMatrixRows 398 +#define FN_ClearMatrixRows 397 #define CLEARMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CLEARMATRIXROWS_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CLEARMATRIXROWS_NUM_ROWS num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_FillMatrix 399 +#define FN_FillMatrix 398 #define FILLMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define FILLMATRIX_V num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_FillMatrixColumns 400 +#define FN_FillMatrixColumns 399 #define FILLMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define FILLMATRIXCOLUMNS_C num_var[1].nid_value.value[ num_var[1].byref_offset ] #define FILLMATRIXCOLUMNS_NUM_COLS num_var[2].nid_value.value[ num_var[2].byref_offset ] #define FILLMATRIXCOLUMNS_V num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_FillMatrixRows 401 +#define FN_FillMatrixRows 400 #define FILLMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define FILLMATRIXROWS_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define FILLMATRIXROWS_NUM_ROWS num_var[2].nid_value.value[ num_var[2].byref_offset ] #define FILLMATRIXROWS_V num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_CopyMatrixColumns 402 +#define FN_CopyMatrixColumns 401 #define COPYMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COPYMATRIXCOLUMNS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define COPYMATRIXCOLUMNS_C num_var[2].nid_value.value[ num_var[2].byref_offset ] #define COPYMATRIXCOLUMNS_NUM_COLS num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_CopyMatrixRows 403 +#define FN_CopyMatrixRows 402 #define COPYMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COPYMATRIXROWS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define COPYMATRIXROWS_R num_var[2].nid_value.value[ num_var[2].byref_offset ] #define COPYMATRIXROWS_NUM_ROWS num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_IdentityMatrix 404 -#define IDENTITYMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define IDENTITYMATRIX_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SolveMatrix 405 +#define FN_SetIdentityMatrix 403 +#define SETIDENTITYMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] +#define SETIDENTITYMATRIX_N num_var[1].nid_value.value[ num_var[1].byref_offset ] +#define FN_SolveMatrix 404 #define SOLVEMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SOLVEMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SOLVEMATRIX_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_IsEqualMatrix 406 +#define FN_IsEqualMatrix 405 #define ISEQUALMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ISEQUALMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define ISEQUALMATRIX_TOLERANCE num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_Determinant 407 +#define FN_Determinant 406 #define DETERMINANT_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_AdjointMatrix 408 +#define FN_AdjointMatrix 407 #define ADJOINTMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ADJOINTMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_InvertMatrix 409 +#define FN_InvertMatrix 408 #define INVERTMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define INVERTMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_MatrixFromBuffer 410 +#define FN_MatrixFromBuffer 409 #define MATRIXFROMBUFFER_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define MATRIXFROMBUFFER_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define MATRIXFROMBUFFER_C num_var[2].nid_value.value[ num_var[2].byref_offset ] #define MATRIXFROMBUFFER_BUFFER num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetMatrix 411 -#define GETMATRIX_BUFFER num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define GETMATRIX_MA num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_RandomizeMatrix 412 +#define FN_BufferFromMatrix 410 +#define BUFFERFROMMATRIX_BUFFER num_var[0].nid_value.value[ num_var[0].byref_offset ] +#define BUFFERFROMMATRIX_MA num_var[1].nid_value.value[ num_var[1].byref_offset ] +#define FN_RandomizeMatrix 411 #define RANDOMIZEMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define RANDOMIZEMATRIX_VMIN num_var[1].nid_value.value[ num_var[1].byref_offset ] #define RANDOMIZEMATRIX_VMAX num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_MatrixValue 413 +#define FN_MatrixValue 412 #define MATRIXVALUE_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define MATRIXVALUE_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define MATRIXVALUE_C num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SetMatrixValue 414 +#define FN_SetMatrixValue 413 #define SETMATRIXVALUE_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATRIXVALUE_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETMATRIXVALUE_C num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETMATRIXVALUE_V num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_ScalarMatrix 415 +#define FN_ScalarMatrix 414 #define SCALARMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SCALARMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SCALARMATRIX_S_VALUE num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_ScalarMatrixColumns 416 +#define FN_ScalarMatrixColumns 415 #define SCALARMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SCALARMATRIXCOLUMNS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SCALARMATRIXCOLUMNS_C num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SCALARMATRIXCOLUMNS_NUM_COLS num_var[3].nid_value.value[ num_var[3].byref_offset ] #define SCALARMATRIXCOLUMNS_S_VALUE num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_ScalarMatrixRows 417 +#define FN_ScalarMatrixRows 416 #define SCALARMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SCALARMATRIXROWS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SCALARMATRIXROWS_R num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SCALARMATRIXROWS_NUM_ROWS num_var[3].nid_value.value[ num_var[3].byref_offset ] #define SCALARMATRIXROWS_S_VALUE num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_SquareMatrix 418 +#define FN_SquareMatrix 417 #define SQUAREMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SQUAREMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_CofactorMatrix 419 +#define FN_CofactorMatrix 418 #define COFACTORMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COFACTORMATRIX_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define COFACTORMATRIX_C num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SubtractMatrix 420 +#define FN_SubtractMatrix 419 #define SUBTRACTMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SUBTRACTMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SUBTRACTMATRIX_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SwapMatrix 421 +#define FN_SwapMatrix 420 #define SWAPMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SWAPMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SwapMatrixColumn 422 +#define FN_SwapMatrixColumn 421 #define SWAPMATRIXCOLUMN_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SWAPMATRIXCOLUMN_C1 num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SWAPMATRIXCOLUMN_C2 num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SwapMatrixRow 423 +#define FN_SwapMatrixRow 422 #define SWAPMATRIXROW_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SWAPMATRIXROW_R1 num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SWAPMATRIXROW_R2 num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_TransposeMatrix 424 +#define FN_TransposeMatrix 423 #define TRANSPOSEMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define TRANSPOSEMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_UnAugmentMatrix 425 +#define FN_UnAugmentMatrix 424 #define UNAUGMENTMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define UNAUGMENTMATRIX_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define UNAUGMENTMATRIX_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_ZeroMatrix 426 +#define FN_ZeroMatrix 425 #define ZEROMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetMatrixSize 427 +#define FN_GetMatrixSize 426 #define GETMATRIXSIZE_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETMATRIXSIZE_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETMATRIXSIZE_C num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_IncrementMatrixRows 428 +#define FN_IncrementMatrixRows 427 #define INCREMENTMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define INCREMENTMATRIXROWS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define INCREMENTMATRIXROWS_R num_var[2].nid_value.value[ num_var[2].byref_offset ] #define INCREMENTMATRIXROWS_NUM_ROWS num_var[3].nid_value.value[ num_var[3].byref_offset ] #define INCREMENTMATRIXROWS_VALUE num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_IncrementMatrixColumns 429 +#define FN_IncrementMatrixColumns 428 #define INCREMENTMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define INCREMENTMATRIXCOLUMNS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define INCREMENTMATRIXCOLUMNS_C num_var[2].nid_value.value[ num_var[2].byref_offset ] #define INCREMENTMATRIXCOLUMNS_NUM_COLS num_var[3].nid_value.value[ num_var[3].byref_offset ] #define INCREMENTMATRIXCOLUMNS_VALUE num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_JoinMatrixRows 430 +#define FN_JoinMatrixRows 429 #define JOINMATRIXROWS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define JOINMATRIXROWS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define JOINMATRIXROWS_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_JoinMatrixColumns 431 +#define FN_JoinMatrixColumns 430 #define JOINMATRIXCOLUMNS_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define JOINMATRIXCOLUMNS_MB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define JOINMATRIXCOLUMNS_MC num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_ClipMatrix 432 +#define FN_ClipMatrix 431 #define CLIPMATRIX_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CLIPMATRIX_R num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CLIPMATRIX_C num_var[2].nid_value.value[ num_var[2].byref_offset ] #define CLIPMATRIX_NUM_ROWS num_var[3].nid_value.value[ num_var[3].byref_offset ] #define CLIPMATRIX_NUM_COLS num_var[4].nid_value.value[ num_var[4].byref_offset ] #define CLIPMATRIX_MB num_var[5].nid_value.value[ num_var[5].byref_offset ] -#define FN_SetMatrixTranslation 433 +#define FN_SetMatrixTranslation 432 #define SETMATRIXTRANSLATION_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATRIXTRANSLATION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETMATRIXTRANSLATION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETMATRIXTRANSLATION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetMatrixRotation 434 +#define FN_SetMatrixRotation 433 #define SETMATRIXROTATION_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATRIXROTATION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETMATRIXROTATION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETMATRIXROTATION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetMatrixScale 435 +#define FN_SetMatrixScale 434 #define SETMATRIXSCALE_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATRIXSCALE_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETMATRIXSCALE_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETMATRIXSCALE_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetMatrixTranslation 436 +#define FN_GetMatrixTranslation 435 #define GETMATRIXTRANSLATION_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETMATRIXTRANSLATION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETMATRIXTRANSLATION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETMATRIXTRANSLATION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetMatrixRotation 437 +#define FN_GetMatrixRotation 436 #define GETMATRIXROTATION_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETMATRIXROTATION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETMATRIXROTATION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETMATRIXROTATION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetMatrixScale 438 +#define FN_GetMatrixScale 437 #define GETMATRIXSCALE_MA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETMATRIXSCALE_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETMATRIXSCALE_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETMATRIXSCALE_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_ClipboardText$ 439 -#define FN_SetClipboardText 440 +#define FN_GetClipboardText$ 438 +#define FN_SetClipboardText 439 #define SETCLIPBOARDTEXT_TXT$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_HasClipboardText 441 -#define FN_ReadInput_Start 442 -#define FN_ReadInput_Stop 443 -#define FN_ReadInput_Text$ 444 -#define FN_ReadInput_SetText 445 +#define FN_HasClipboardText 440 +#define FN_ReadInput_Start 441 +#define FN_ReadInput_Stop 442 +#define FN_ReadInput_Text$ 443 +#define FN_ReadInput_SetText 444 #define READINPUT_SETTEXT_TXT$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_ReadInput_ToggleBackspace 446 +#define FN_ReadInput_ToggleBackspace 445 #define READINPUT_TOGGLEBACKSPACE_FLAG num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_CreateSprite 447 +#define FN_CreateSprite 446 #define CREATESPRITE_IMG num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_DeleteSprite 448 +#define FN_DeleteSprite 447 #define DELETESPRITE_SPRITE num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetSpritePosition 449 +#define FN_SetSpritePosition 448 #define SETSPRITEPOSITION_SPRITE num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETSPRITEPOSITION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETSPRITEPOSITION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_LoadMesh 450 +#define FN_LoadMesh 449 #define LOADMESH_MESH_FILE$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_DeleteMesh 451 +#define FN_DeleteMesh 450 #define DELETEMESH_MESH num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_CreateMesh 452 -#define FN_AddMeshBuffer 453 +#define FN_CreateMesh 451 +#define FN_AddMeshBuffer 452 #define ADDMESHBUFFER_MESH num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ADDMESHBUFFER_VERTEX_COUNT num_var[1].nid_value.value[ num_var[1].byref_offset ] #define ADDMESHBUFFER_VERTEX_DATA num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1293,205 +1287,206 @@ #define ADDMESHBUFFER_UV_DATA num_var[4].nid_value.value[ num_var[4].byref_offset ] #define ADDMESHBUFFER_INDEX_COUNT num_var[5].nid_value.value[ num_var[5].byref_offset ] #define ADDMESHBUFFER_INDEX_DATA num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_LoadMeshFromArchive 454 +#define FN_LoadMeshFromArchive 453 #define LOADMESHFROMARCHIVE_ARCHIVE$ str_var[0].sid_value.value[ str_var[0].byref_offset ] #define LOADMESHFROMARCHIVE_MESH_FILE$ str_var[1].sid_value.value[ str_var[1].byref_offset ] -#define FN_CreateMeshActor 455 +#define FN_CreateMeshActor 454 #define CREATEMESHACTOR_MESH num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_CreateMeshOctreeActor 456 +#define FN_CreateMeshOctreeActor 455 #define CREATEMESHOCTREEACTOR_MESH num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_CreateCubeActor 457 +#define FN_CreateCubeActor 456 #define CREATECUBEACTOR_CUBE_SIZE num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_CreateSphereActor 458 +#define FN_CreateSphereActor 457 #define CREATESPHEREACTOR_RADIUS num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_CreateWaterPlaneActor 459 +#define FN_CreateWaterPlaneActor 458 #define CREATEWATERPLANEACTOR_W num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATEWATERPLANEACTOR_H num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_CreateLightActor 460 -#define FN_CreateBillboardActor 461 -#define FN_CreateTerrainActor 462 +#define FN_CreateLightActor 459 +#define FN_CreateBillboardActor 460 +#define FN_CreateTerrainActor 461 #define CREATETERRAINACTOR_HMAP_FILE$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_DeleteActor 463 +#define FN_DeleteActor 462 #define DELETEACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetActorTransform 464 +#define FN_GetActorTransform 463 #define GETACTORTRANSFORM_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORTRANSFORM_MATRIX num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetActorPosition 465 +#define FN_SetActorPosition 464 #define SETACTORPOSITION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORPOSITION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORPOSITION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORPOSITION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_TranslateActor 466 +#define FN_TranslateActor 465 #define TRANSLATEACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define TRANSLATEACTOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define TRANSLATEACTOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define TRANSLATEACTOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_TranslateActorWorld 467 +#define FN_TranslateActorWorld 466 #define TRANSLATEACTORWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define TRANSLATEACTORWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define TRANSLATEACTORWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define TRANSLATEACTORWORLD_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetActorPosition 468 +#define FN_GetActorPosition 467 #define GETACTORPOSITION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORPOSITION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORPOSITION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORPOSITION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetActorScale 469 +#define FN_SetActorScale 468 #define SETACTORSCALE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORSCALE_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORSCALE_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORSCALE_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_ScaleActor 470 +#define FN_ScaleActor 469 #define SCALEACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SCALEACTOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SCALEACTOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SCALEACTOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetActorScale 471 +#define FN_GetActorScale 470 #define GETACTORSCALE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORSCALE_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORSCALE_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORSCALE_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetActorRotation 472 +#define FN_SetActorRotation 471 #define SETACTORROTATION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORROTATION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORROTATION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORROTATION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_RotateActor 473 +#define FN_RotateActor 472 #define ROTATEACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ROTATEACTOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define ROTATEACTOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define ROTATEACTOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetActorRotation 474 +#define FN_GetActorRotation 473 #define GETACTORROTATION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORROTATION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORROTATION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORROTATION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetActorVisible 475 +#define FN_SetActorVisible 474 #define SETACTORVISIBLE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORVISIBLE_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_ActorIsVisible 476 +#define FN_ActorIsVisible 475 #define ACTORISVISIBLE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetActorAutoCulling 477 +#define FN_SetActorAutoCulling 476 #define SETACTORAUTOCULLING_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORAUTOCULLING_CULL_TYPE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetActorAutoCulling 478 +#define FN_GetActorAutoCulling 477 #define GETACTORAUTOCULLING_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_AddActorShadow 479 +#define FN_AddActorShadow 478 #define ADDACTORSHADOW_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_RemoveActorShadow 480 +#define FN_RemoveActorShadow 479 #define REMOVEACTORSHADOW_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetGravity3D 481 +#define FN_SetGravity3D 480 #define SETGRAVITY3D_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETGRAVITY3D_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETGRAVITY3D_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_GetGravity3D 482 +#define FN_GetGravity3D 481 #define GETGRAVITY3D_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETGRAVITY3D_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETGRAVITY3D_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SetActorCollisionShape 483 +#define FN_SetActorCollisionShape 482 #define SETACTORCOLLISIONSHAPE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORCOLLISIONSHAPE_SHAPE_TYPE num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORCOLLISIONSHAPE_MASS num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_GetActorCollisionShape 484 +#define FN_GetActorCollisionShape 483 #define GETACTORCOLLISIONSHAPE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetActorSolid 485 +#define FN_SetActorSolid 484 #define SETACTORSOLID_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORSOLID_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_ActorIsSolid 486 +#define FN_ActorIsSolid 485 #define ACTORISSOLID_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetActorCollision 487 +#define FN_GetActorCollision 486 #define GETACTORCOLLISION_ACTOR1 num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORCOLLISION_ACTOR2 num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetActorGravity 488 +#define FN_SetActorGravity 487 #define SETACTORGRAVITY_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORGRAVITY_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORGRAVITY_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORGRAVITY_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetActorGravity 489 +#define FN_GetActorGravity 488 #define GETACTORGRAVITY_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORGRAVITY_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORGRAVITY_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORGRAVITY_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorDamping 490 +#define FN_setActorDamping 489 #define SETACTORDAMPING_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORDAMPING_LIN_DAMPING num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORDAMPING_ANG_DAMPING num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getActorLinearDamping 491 +#define FN_getActorLinearDamping 490 #define GETACTORLINEARDAMPING_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getActorAngularDamping 492 +#define FN_getActorAngularDamping 491 #define GETACTORANGULARDAMPING_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getActorLinearSleepThreshold 493 +#define FN_getActorLinearSleepThreshold 492 #define GETACTORLINEARSLEEPTHRESHOLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getActorAngularSleepThreshold 494 +#define FN_getActorAngularSleepThreshold 493 #define GETACTORANGULARSLEEPTHRESHOLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_applyActorDamping 495 +#define FN_applyActorDamping 494 #define APPLYACTORDAMPING_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORDAMPING_TIMESTEP num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setActorMassProperties 496 +#define FN_setActorMassProperties 495 #define SETACTORMASSPROPERTIES_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORMASSPROPERTIES_MASS num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORMASSPROPERTIES_INERTIA_X num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORMASSPROPERTIES_INERTIA_Y num_var[3].nid_value.value[ num_var[3].byref_offset ] #define SETACTORMASSPROPERTIES_INERTIA_Z num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_getActorLinearFactor 497 +#define FN_getActorLinearFactor 496 #define GETACTORLINEARFACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORLINEARFACTOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORLINEARFACTOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORLINEARFACTOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorLinearFactor 498 +#define FN_setActorLinearFactor 497 #define SETACTORLINEARFACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORLINEARFACTOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORLINEARFACTOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORLINEARFACTOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorInverseMass 499 +#define FN_getActorInverseMass 498 #define GETACTORINVERSEMASS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_integrateActorVelocities 500 +#define FN_integrateActorVelocities 499 #define INTEGRATEACTORVELOCITIES_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_applyActorCentralForceLocal 501 +#define INTEGRATEACTORVELOCITIES_V_STEP num_var[1].nid_value.value[ num_var[1].byref_offset ] +#define FN_applyActorCentralForceLocal 500 #define APPLYACTORCENTRALFORCELOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORCENTRALFORCELOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORCENTRALFORCELOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORCENTRALFORCELOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_applyActorCentralForceWorld 502 +#define FN_applyActorCentralForceWorld 501 #define APPLYACTORCENTRALFORCEWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORCENTRALFORCEWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORCENTRALFORCEWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORCENTRALFORCEWORLD_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorTotalForce 503 +#define FN_getActorTotalForce 502 #define GETACTORTOTALFORCE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORTOTALFORCE_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORTOTALFORCE_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORTOTALFORCE_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorTotalTorque 504 +#define FN_getActorTotalTorque 503 #define GETACTORTOTALTORQUE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORTOTALTORQUE_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORTOTALTORQUE_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORTOTALTORQUE_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorInverseInertiaDiagLocal 505 +#define FN_getActorInverseInertiaDiagLocal 504 #define GETACTORINVERSEINERTIADIAGLOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORINVERSEINERTIADIAGLOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORINVERSEINERTIADIAGLOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORINVERSEINERTIADIAGLOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorInverseInertiaDiagLocal 506 +#define FN_setActorInverseInertiaDiagLocal 505 #define SETACTORINVERSEINERTIADIAGLOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORINVERSEINERTIADIAGLOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORINVERSEINERTIADIAGLOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORINVERSEINERTIADIAGLOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorSleepThresholds 507 +#define FN_setActorSleepThresholds 506 #define SETACTORSLEEPTHRESHOLDS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORSLEEPTHRESHOLDS_LINEAR num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORSLEEPTHRESHOLDS_ANGULAR num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_applyActorTorqueLocal 508 +#define FN_applyActorTorqueLocal 507 #define APPLYACTORTORQUELOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORTORQUELOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORTORQUELOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORTORQUELOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_applyActorTorqueWorld 509 +#define FN_applyActorTorqueWorld 508 #define APPLYACTORTORQUEWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORTORQUEWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORTORQUEWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORTORQUEWORLD_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_applyActorForceLocal 510 +#define FN_applyActorForceLocal 509 #define APPLYACTORFORCELOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORFORCELOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORFORCELOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1499,7 +1494,7 @@ #define APPLYACTORFORCELOCAL_REL_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define APPLYACTORFORCELOCAL_REL_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define APPLYACTORFORCELOCAL_REL_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_applyActorForceWorld 511 +#define FN_applyActorForceWorld 510 #define APPLYACTORFORCEWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORFORCEWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORFORCEWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1507,27 +1502,27 @@ #define APPLYACTORFORCEWORLD_REL_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define APPLYACTORFORCEWORLD_REL_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define APPLYACTORFORCEWORLD_REL_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_applyActorCentralImpulseLocal 512 +#define FN_applyActorCentralImpulseLocal 511 #define APPLYACTORCENTRALIMPULSELOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORCENTRALIMPULSELOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORCENTRALIMPULSELOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORCENTRALIMPULSELOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_applyActorCentralImpulseWorld 513 +#define FN_applyActorCentralImpulseWorld 512 #define APPLYACTORCENTRALIMPULSEWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORCENTRALIMPULSEWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORCENTRALIMPULSEWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORCENTRALIMPULSEWORLD_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_applyActorTorqueImpulseLocal 514 +#define FN_applyActorTorqueImpulseLocal 513 #define APPLYACTORTORQUEIMPULSELOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORTORQUEIMPULSELOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORTORQUEIMPULSELOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORTORQUEIMPULSELOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_applyActorTorqueImpulseWorld 515 +#define FN_applyActorTorqueImpulseWorld 514 #define APPLYACTORTORQUEIMPULSEWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORTORQUEIMPULSEWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORTORQUEIMPULSEWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define APPLYACTORTORQUEIMPULSEWORLD_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_applyActorImpulseLocal 516 +#define FN_applyActorImpulseLocal 515 #define APPLYACTORIMPULSELOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORIMPULSELOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORIMPULSELOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1535,7 +1530,7 @@ #define APPLYACTORIMPULSELOCAL_REL_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define APPLYACTORIMPULSELOCAL_REL_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define APPLYACTORIMPULSELOCAL_REL_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_applyActorImpulseWorld 517 +#define FN_applyActorImpulseWorld 516 #define APPLYACTORIMPULSEWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define APPLYACTORIMPULSEWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define APPLYACTORIMPULSEWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1543,52 +1538,52 @@ #define APPLYACTORIMPULSEWORLD_REL_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define APPLYACTORIMPULSEWORLD_REL_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define APPLYACTORIMPULSEWORLD_REL_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_clearActorForces 518 +#define FN_clearActorForces 517 #define CLEARACTORFORCES_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_updateActorInertiaTensor 519 +#define FN_updateActorInertiaTensor 518 #define UPDATEACTORINERTIATENSOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getActorCOMPosition 520 +#define FN_getActorCOMPosition 519 #define GETACTORCOMPOSITION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORCOMPOSITION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORCOMPOSITION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORCOMPOSITION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorRotationQ 521 +#define FN_getActorRotationQ 520 #define GETACTORROTATIONQ_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORROTATIONQ_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORROTATIONQ_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORROTATIONQ_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] #define GETACTORROTATIONQ_W num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_getActorLinearVelocity 522 +#define FN_getActorLinearVelocity 521 #define GETACTORLINEARVELOCITY_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORLINEARVELOCITY_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORLINEARVELOCITY_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORLINEARVELOCITY_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorAngularVelocity 523 +#define FN_getActorAngularVelocity 522 #define GETACTORANGULARVELOCITY_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORANGULARVELOCITY_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORANGULARVELOCITY_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORANGULARVELOCITY_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorLinearVelocityLocal 524 +#define FN_setActorLinearVelocityLocal 523 #define SETACTORLINEARVELOCITYLOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORLINEARVELOCITYLOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORLINEARVELOCITYLOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORLINEARVELOCITYLOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorLinearVelocityWorld 525 +#define FN_setActorLinearVelocityWorld 524 #define SETACTORLINEARVELOCITYWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORLINEARVELOCITYWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORLINEARVELOCITYWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORLINEARVELOCITYWORLD_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorAngularVelocityLocal 526 +#define FN_setActorAngularVelocityLocal 525 #define SETACTORANGULARVELOCITYLOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORANGULARVELOCITYLOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORANGULARVELOCITYLOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORANGULARVELOCITYLOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorAngularVelocityWorld 527 +#define FN_setActorAngularVelocityWorld 526 #define SETACTORANGULARVELOCITYWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORANGULARVELOCITYWORLD_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORANGULARVELOCITYWORLD_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORANGULARVELOCITYWORLD_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorLocalPointVelocity 528 +#define FN_getActorLocalPointVelocity 527 #define GETACTORLOCALPOINTVELOCITY_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORLOCALPOINTVELOCITY_REL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORLOCALPOINTVELOCITY_REL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1596,17 +1591,17 @@ #define GETACTORLOCALPOINTVELOCITY_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define GETACTORLOCALPOINTVELOCITY_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define GETACTORLOCALPOINTVELOCITY_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_getActorLinearVelocityLocal 529 +#define FN_getActorLinearVelocityLocal 528 #define GETACTORLINEARVELOCITYLOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORLINEARVELOCITYLOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORLINEARVELOCITYLOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORLINEARVELOCITYLOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorAngularVelocityLocal 530 +#define FN_getActorAngularVelocityLocal 529 #define GETACTORANGULARVELOCITYLOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORANGULARVELOCITYLOCAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORANGULARVELOCITYLOCAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORANGULARVELOCITYLOCAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorAABB 531 +#define FN_getActorAABB 530 #define GETACTORAABB_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORAABB_MIN_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORAABB_MIN_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1614,7 +1609,7 @@ #define GETACTORAABB_MAX_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define GETACTORAABB_MAX_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define GETACTORAABB_MAX_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_computeActorImpulseDenominator 532 +#define FN_computeActorImpulseDenominator 531 #define COMPUTEACTORIMPULSEDENOMINATOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COMPUTEACTORIMPULSEDENOMINATOR_POS_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define COMPUTEACTORIMPULSEDENOMINATOR_POS_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1622,44 +1617,44 @@ #define COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_computeActorAngularImpulseDenominator 533 +#define FN_computeActorAngularImpulseDenominator 532 #define COMPUTEACTORANGULARIMPULSEDENOMINATOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COMPUTEACTORANGULARIMPULSEDENOMINATOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define COMPUTEACTORANGULARIMPULSEDENOMINATOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define COMPUTEACTORANGULARIMPULSEDENOMINATOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setActorAngularFactor 534 +#define FN_setActorAngularFactor 533 #define SETACTORANGULARFACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORANGULARFACTOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORANGULARFACTOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETACTORANGULARFACTOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getActorAngularFactor 535 +#define FN_getActorAngularFactor 534 #define GETACTORANGULARFACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORANGULARFACTOR_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORANGULARFACTOR_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORANGULARFACTOR_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_computeActorGyroImpulseLocal 536 +#define FN_computeActorGyroImpulseLocal 535 #define COMPUTEACTORGYROIMPULSELOCAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COMPUTEACTORGYROIMPULSELOCAL_DT num_var[1].nid_value.value[ num_var[1].byref_offset ] #define COMPUTEACTORGYROIMPULSELOCAL_X num_var[2].nid_value.value[ num_var[2].byref_offset ] #define COMPUTEACTORGYROIMPULSELOCAL_Y num_var[3].nid_value.value[ num_var[3].byref_offset ] #define COMPUTEACTORGYROIMPULSELOCAL_Z num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_computeActorGyroImpulseWorld 537 +#define FN_computeActorGyroImpulseWorld 536 #define COMPUTEACTORGYROIMPULSEWORLD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COMPUTEACTORGYROIMPULSEWORLD_DT num_var[1].nid_value.value[ num_var[1].byref_offset ] #define COMPUTEACTORGYROIMPULSEWORLD_X num_var[2].nid_value.value[ num_var[2].byref_offset ] #define COMPUTEACTORGYROIMPULSEWORLD_Y num_var[3].nid_value.value[ num_var[3].byref_offset ] #define COMPUTEACTORGYROIMPULSEWORLD_Z num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_getActorLocalInertia 538 +#define FN_getActorLocalInertia 537 #define GETACTORLOCALINERTIA_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORLOCALINERTIA_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORLOCALINERTIA_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETACTORLOCALINERTIA_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_createPointConstraint 539 +#define FN_createPointConstraint 538 #define CREATEPOINTCONSTRAINT_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATEPOINTCONSTRAINT_PXA num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CREATEPOINTCONSTRAINT_PYA num_var[2].nid_value.value[ num_var[2].byref_offset ] #define CREATEPOINTCONSTRAINT_PZA num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_createPointConstraintEx 540 +#define FN_createPointConstraintEx 539 #define CREATEPOINTCONSTRAINTEX_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATEPOINTCONSTRAINTEX_ACTORB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CREATEPOINTCONSTRAINTEX_PXA num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1668,17 +1663,17 @@ #define CREATEPOINTCONSTRAINTEX_PXB num_var[5].nid_value.value[ num_var[5].byref_offset ] #define CREATEPOINTCONSTRAINTEX_PYB num_var[6].nid_value.value[ num_var[6].byref_offset ] #define CREATEPOINTCONSTRAINTEX_PZB num_var[7].nid_value.value[ num_var[7].byref_offset ] -#define FN_setConstraintPivotA 541 +#define FN_setConstraintPivotA 540 #define SETCONSTRAINTPIVOTA_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTPIVOTA_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETCONSTRAINTPIVOTA_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETCONSTRAINTPIVOTA_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setConstraintPivotB 542 +#define FN_setConstraintPivotB 541 #define SETCONSTRAINTPIVOTB_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTPIVOTB_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETCONSTRAINTPIVOTB_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETCONSTRAINTPIVOTB_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_createHingeConstraint 543 +#define FN_createHingeConstraint 542 #define CREATEHINGECONSTRAINT_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATEHINGECONSTRAINT_PXA num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CREATEHINGECONSTRAINT_PYA num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1686,7 +1681,7 @@ #define CREATEHINGECONSTRAINT_AXA num_var[4].nid_value.value[ num_var[4].byref_offset ] #define CREATEHINGECONSTRAINT_AYA num_var[5].nid_value.value[ num_var[5].byref_offset ] #define CREATEHINGECONSTRAINT_AZA num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_createHingeConstraintEx 544 +#define FN_createHingeConstraintEx 543 #define CREATEHINGECONSTRAINTEX_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATEHINGECONSTRAINTEX_ACTORB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CREATEHINGECONSTRAINTEX_PXA num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1701,27 +1696,27 @@ #define CREATEHINGECONSTRAINTEX_AXB num_var[11].nid_value.value[ num_var[11].byref_offset ] #define CREATEHINGECONSTRAINTEX_AYB num_var[12].nid_value.value[ num_var[12].byref_offset ] #define CREATEHINGECONSTRAINTEX_AZB num_var[13].nid_value.value[ num_var[13].byref_offset ] -#define FN_createSlideConstraint 545 +#define FN_createSlideConstraint 544 #define CREATESLIDECONSTRAINT_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATESLIDECONSTRAINT_FRAMEINB_MATRIX num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CREATESLIDECONSTRAINT_USELINEARREFERENCEFRAMEA num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_createSlideConstraintEx 546 +#define FN_createSlideConstraintEx 545 #define CREATESLIDECONSTRAINTEX_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATESLIDECONSTRAINTEX_ACTORB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CREATESLIDECONSTRAINTEX_FRAMEINA_MATRIX num_var[2].nid_value.value[ num_var[2].byref_offset ] #define CREATESLIDECONSTRAINTEX_FRAMEINB_MATRIX num_var[3].nid_value.value[ num_var[3].byref_offset ] #define CREATESLIDECONSTRAINTEX_USELINEARREFERENCEFRAMEA num_var[4].nid_value.value[ num_var[4].byref_offset ] -#define FN_createConeConstraint 547 +#define FN_createConeConstraint 546 #define CREATECONECONSTRAINT_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATECONECONSTRAINT_RBAFRAME_MATRIX num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_createConeConstraintEx 548 +#define FN_createConeConstraintEx 547 #define CREATECONECONSTRAINTEX_ACTORA num_var[0].nid_value.value[ num_var[0].byref_offset ] #define CREATECONECONSTRAINTEX_ACTORB num_var[1].nid_value.value[ num_var[1].byref_offset ] #define CREATECONECONSTRAINTEX_RBAFRAME_MATRIX num_var[2].nid_value.value[ num_var[2].byref_offset ] #define CREATECONECONSTRAINTEX_RBBFRAME_MATRIX num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_deleteConstraint 549 +#define FN_deleteConstraint 548 #define DELETECONSTRAINT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintFrameOffsetA 550 +#define FN_getConstraintFrameOffsetA 549 #define GETCONSTRAINTFRAMEOFFSETA_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETA_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETA_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1729,7 +1724,7 @@ #define GETCONSTRAINTFRAMEOFFSETA_RX num_var[4].nid_value.value[ num_var[4].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETA_RY num_var[5].nid_value.value[ num_var[5].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETA_RZ num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_getConstraintFrameOffsetB 551 +#define FN_getConstraintFrameOffsetB 550 #define GETCONSTRAINTFRAMEOFFSETB_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETB_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETB_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1737,43 +1732,43 @@ #define GETCONSTRAINTFRAMEOFFSETB_RX num_var[4].nid_value.value[ num_var[4].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETB_RY num_var[5].nid_value.value[ num_var[5].byref_offset ] #define GETCONSTRAINTFRAMEOFFSETB_RZ num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_useConstraintFrameOffset 552 +#define FN_useConstraintFrameOffset 551 #define USECONSTRAINTFRAMEOFFSET_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define USECONSTRAINTFRAMEOFFSET_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getHingeAngle 553 +#define FN_getHingeAngle 552 #define GETHINGEANGLE_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getHingeAngleEx 554 +#define FN_getHingeAngleEx 553 #define GETHINGEANGLEEX_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETHINGEANGLEEX_T_MATRIXA num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETHINGEANGLEEX_T_MATRIXB num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getConstraintBreakingImpulseThreshold 555 +#define FN_getConstraintBreakingImpulseThreshold 554 #define GETCONSTRAINTBREAKINGIMPULSETHRESHOLD_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintAFrame 556 +#define FN_getConstraintAFrame 555 #define GETCONSTRAINTAFRAME_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTAFRAME_MA num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getConstraintBFrame 557 +#define FN_getConstraintBFrame 556 #define GETCONSTRAINTBFRAME_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTBFRAME_MA num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintAxis 558 +#define FN_setConstraintAxis 557 #define SETCONSTRAINTAXIS_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTAXIS_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETCONSTRAINTAXIS_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETCONSTRAINTAXIS_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setConstraintBreakingImpulseThreshold 559 +#define FN_setConstraintBreakingImpulseThreshold 558 #define SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_THRESHOLD num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintFrames 560 +#define FN_setConstraintFrames 559 #define SETCONSTRAINTFRAMES_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTFRAMES_FRAMEA_MATRIX num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETCONSTRAINTFRAMES_FRAMEB_MATRIX num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_setHingeLimit 561 +#define FN_setHingeLimit 560 #define SETHINGELIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETHINGELIMIT_LOW num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETHINGELIMIT_HIGH num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETHINGELIMIT_SOFTNESS num_var[3].nid_value.value[ num_var[3].byref_offset ] #define SETHINGELIMIT_BIAS_FACTOR num_var[4].nid_value.value[ num_var[4].byref_offset ] #define SETHINGELIMIT_RELAXATION_FACTOR num_var[5].nid_value.value[ num_var[5].byref_offset ] -#define FN_setConeLimit 562 +#define FN_setConeLimit 561 #define SETCONELIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONELIMIT_SWINGSPAN1 num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETCONELIMIT_SWINGSPAN2 num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -1781,381 +1776,382 @@ #define SETCONELIMIT_SOFTNESS num_var[4].nid_value.value[ num_var[4].byref_offset ] #define SETCONELIMIT_BIAS_FACTOR num_var[5].nid_value.value[ num_var[5].byref_offset ] #define SETCONELIMIT_RELAXATION_FACTOR num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_getConstraintLimitBiasFactor 563 +#define FN_getConstraintLimitBiasFactor 562 #define GETCONSTRAINTLIMITBIASFACTOR_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getLimitRelaxationFactor 564 +#define FN_getLimitRelaxationFactor 563 #define GETLIMITRELAXATIONFACTOR_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintLimitSign 565 +#define FN_getConstraintLimitSign 564 #define GETCONSTRAINTLIMITSIGN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getHingeSolveLimit 566 +#define FN_getHingeSolveLimit 565 #define GETHINGESOLVELIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_useHingeReferenceFrameA 567 +#define FN_useHingeReferenceFrameA 566 #define USEHINGEREFERENCEFRAMEA_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define USEHINGEREFERENCEFRAMEA_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getConstraintAppliedImpulse 568 +#define FN_getConstraintAppliedImpulse 567 #define GETCONSTRAINTAPPLIEDIMPULSE_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintFixedActor 569 +#define FN_getConstraintFixedActor 568 #define GETCONSTRAINTFIXEDACTOR_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintPivotA 570 +#define FN_getConstraintPivotA 569 #define GETCONSTRAINTPIVOTA_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTPIVOTA_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCONSTRAINTPIVOTA_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETCONSTRAINTPIVOTA_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getConstraintPivotB 571 +#define FN_getConstraintPivotB 570 #define GETCONSTRAINTPIVOTB_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTPIVOTB_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCONSTRAINTPIVOTB_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETCONSTRAINTPIVOTB_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getConstraintActorA 572 +#define FN_getConstraintActorA 571 #define GETCONSTRAINTACTORA_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintActorB 573 +#define FN_getConstraintActorB 572 #define GETCONSTRAINTACTORB_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setConstraintSolverIterations 574 +#define FN_setConstraintSolverIterations 573 #define SETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTSOLVERITERATIONS_NUM num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getConstraintBiasFactor 575 +#define FN_getConstraintBiasFactor 574 #define GETCONSTRAINTBIASFACTOR_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintDamping 576 +#define FN_getConstraintDamping 575 #define GETCONSTRAINTDAMPING_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintFixThresh 577 +#define FN_getConstraintFixThresh 576 #define GETCONSTRAINTFIXTHRESH_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintLimit 578 +#define FN_getConstraintLimit 577 #define GETCONSTRAINTLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTLIMIT_LIMIT_INDEX num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getConstraintLimitSoftness 579 +#define FN_getConstraintLimitSoftness 578 #define GETCONSTRAINTLIMITSOFTNESS_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSolverIterations 580 +#define FN_getConstraintSolverIterations 579 #define GETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintAnglePoint 581 +#define FN_getConstraintAnglePoint 580 #define GETCONSTRAINTANGLEPOINT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTANGLEPOINT_ANGLE num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCONSTRAINTANGLEPOINT_C_LEN num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETCONSTRAINTANGLEPOINT_X num_var[3].nid_value.value[ num_var[3].byref_offset ] #define GETCONSTRAINTANGLEPOINT_Y num_var[4].nid_value.value[ num_var[4].byref_offset ] #define GETCONSTRAINTANGLEPOINT_Z num_var[5].nid_value.value[ num_var[5].byref_offset ] -#define FN_getConstraintAngularOnly 582 +#define FN_getConstraintAngularOnly 581 #define GETCONSTRAINTANGULARONLY_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSolveSwingLimit 583 +#define FN_getConstraintSolveSwingLimit 582 #define GETCONSTRAINTSOLVESWINGLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSolveTwistLimit 584 +#define FN_getConstraintSolveTwistLimit 583 #define GETCONSTRAINTSOLVETWISTLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSolveLimit 585 +#define FN_getConstraintSolveLimit 584 #define GETCONSTRAINTSOLVELIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSwingSpan1 586 +#define FN_getConstraintSwingSpan1 585 #define GETCONSTRAINTSWINGSPAN1_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSwingSpan2 587 +#define FN_getConstraintSwingSpan2 586 #define GETCONSTRAINTSWINGSPAN2_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintTwistAngle 588 +#define FN_getConstraintTwistAngle 587 #define GETCONSTRAINTTWISTANGLE_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintTwistLimitSign 589 +#define FN_getConstraintTwistLimitSign 588 #define GETCONSTRAINTTWISTLIMITSIGN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintTwistSpan 590 +#define FN_getConstraintTwistSpan 589 #define GETCONSTRAINTTWISTSPAN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setConstraintAngularOnly 591 +#define FN_setConstraintAngularOnly 590 #define SETCONSTRAINTANGULARONLY_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTANGULARONLY_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintDamping 592 +#define FN_setConstraintDamping 591 #define SETCONSTRAINTDAMPING_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTDAMPING_DAMPING num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintFixThresh 593 +#define FN_setConstraintFixThresh 592 #define SETCONSTRAINTFIXTHRESH_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTFIXTHRESH_FIXTHRESH num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getConstraintAnchorA 594 +#define FN_getConstraintAnchorA 593 #define GETCONSTRAINTANCHORA_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTANCHORA_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCONSTRAINTANCHORA_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETCONSTRAINTANCHORA_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getConstraintAnchorB 595 +#define FN_getConstraintAnchorB 594 #define GETCONSTRAINTANCHORB_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCONSTRAINTANCHORB_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCONSTRAINTANCHORB_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETCONSTRAINTANCHORB_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getConstraintAngDepth 596 +#define FN_getConstraintAngDepth 595 #define GETCONSTRAINTANGDEPTH_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintAngularPos 597 +#define FN_getConstraintAngularPos 596 #define GETCONSTRAINTANGULARPOS_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintDampingDirAng 598 +#define FN_getConstraintDampingDirAng 597 #define GETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintDampingDirLin 599 +#define FN_getConstraintDampingDirLin 598 #define GETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintDampingLimAng 600 +#define FN_getConstraintDampingLimAng 599 #define GETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintDampingLimLin 601 +#define FN_getConstraintDampingLimLin 600 #define GETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintDampingOrthoAng 602 +#define FN_getConstraintDampingOrthoAng 601 #define GETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintDampingOrthoLin 603 +#define FN_getConstraintDampingOrthoLin 602 #define GETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintLinearPos 604 +#define FN_getConstraintLinearPos 603 #define GETCONSTRAINTLINEARPOS_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintLinDepth 605 +#define FN_getConstraintLinDepth 604 #define GETCONSTRAINTLINDEPTH_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintLowerAngLimit 606 +#define FN_getConstraintLowerAngLimit 605 #define GETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintLowerLinLimit 607 +#define FN_getConstraintLowerLinLimit 606 #define GETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintRestitutionDirAng 608 +#define FN_getConstraintRestitutionDirAng 607 #define GETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintRestitutionDirLin 609 +#define FN_getConstraintRestitutionDirLin 608 #define GETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintRestitutionLimAng 610 +#define FN_getConstraintRestitutionLimAng 609 #define GETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintRestitutionLimLin 611 +#define FN_getConstraintRestitutionLimLin 610 #define GETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintRestitutionOrthoAng 612 +#define FN_getConstraintRestitutionOrthoAng 611 #define GETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintRestitutionOrthoLin 613 +#define FN_getConstraintRestitutionOrthoLin 612 #define GETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSoftnessDirAng 614 +#define FN_getConstraintSoftnessDirAng 613 #define GETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSoftnessDirLin 615 +#define FN_getConstraintSoftnessDirLin 614 #define GETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSoftnessLimAng 616 +#define FN_getConstraintSoftnessLimAng 615 #define GETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSoftnessLimLin 617 +#define FN_getConstraintSoftnessLimLin 616 #define GETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSoftnessOrthoAng 618 +#define FN_getConstraintSoftnessOrthoAng 617 #define GETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSoftnessOrthoLin 619 +#define FN_getConstraintSoftnessOrthoLin 618 #define GETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSolveAngLimit 620 +#define FN_getConstraintSolveAngLimit 619 #define GETCONSTRAINTSOLVEANGLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintSolveLinLimit 621 +#define FN_getConstraintSolveLinLimit 620 #define GETCONSTRAINTSOLVELINLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintUpperAngLimit 622 +#define FN_getConstraintUpperAngLimit 621 #define GETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintUpperLinLimit 623 +#define FN_getConstraintUpperLinLimit 622 #define GETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getConstraintUseFrameOffset 624 +#define FN_getConstraintUseFrameOffset 623 #define GETCONSTRAINTUSEFRAMEOFFSET_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setConstraintDampingDirAng 625 +#define FN_setConstraintDampingDirAng 624 #define SETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTDAMPINGDIRANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintDampingDirLin 626 +#define FN_setConstraintDampingDirLin 625 #define SETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTDAMPINGDIRLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintDampingLimAng 627 +#define FN_setConstraintDampingLimAng 626 #define SETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTDAMPINGLIMANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintDampingLimLin 628 +#define FN_setConstraintDampingLimLin 627 #define SETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTDAMPINGLIMLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintDampingOrthoAng 629 +#define FN_setConstraintDampingOrthoAng 628 #define SETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTDAMPINGORTHOANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintDampingOrthoLin 630 +#define FN_setConstraintDampingOrthoLin 629 #define SETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTDAMPINGORTHOLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintLowerAngLimit 631 +#define FN_setConstraintLowerAngLimit 630 #define SETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTLOWERANGLIMIT_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintLowerLinLimit 632 +#define FN_setConstraintLowerLinLimit 631 #define SETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTLOWERLINLIMIT_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintRestitutionDirAng 633 +#define FN_setConstraintRestitutionDirAng 632 #define SETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTRESTITUTIONDIRANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintRestitutionDirLin 634 +#define FN_setConstraintRestitutionDirLin 633 #define SETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTRESTITUTIONDIRLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintRestitutionLimAng 635 +#define FN_setConstraintRestitutionLimAng 634 #define SETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTRESTITUTIONLIMANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintRestitutionLimLin 636 +#define FN_setConstraintRestitutionLimLin 635 #define SETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTRESTITUTIONLIMLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintRestitutionOrthoAng 637 +#define FN_setConstraintRestitutionOrthoAng 636 #define SETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTRESTITUTIONORTHOANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintRestitutionOrthoLin 638 +#define FN_setConstraintRestitutionOrthoLin 637 #define SETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTRESTITUTIONORTHOLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintSoftnessDirAng 639 +#define FN_setConstraintSoftnessDirAng 638 #define SETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTSOFTNESSDIRANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintSoftnessDirLin 640 +#define FN_setConstraintSoftnessDirLin 639 #define SETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTSOFTNESSDIRLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintSoftnessLimAng 641 +#define FN_setConstraintSoftnessLimAng 640 #define SETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTSOFTNESSLIMANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintSoftnessLimLin 642 +#define FN_setConstraintSoftnessLimLin 641 #define SETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTSOFTNESSLIMLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintSoftnessOrthoAng 643 +#define FN_setConstraintSoftnessOrthoAng 642 #define SETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTSOFTNESSORTHOANG_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintSoftnessOrthoLin 644 +#define FN_setConstraintSoftnessOrthoLin 643 #define SETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTSOFTNESSORTHOLIN_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintUpperAngLimit 645 +#define FN_setConstraintUpperAngLimit 644 #define SETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTUPPERANGLIMIT_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setConstraintUpperLinLimit 646 +#define FN_setConstraintUpperLinLimit 645 #define SETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCONSTRAINTUPPERLINLIMIT_N num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetCameraPosition 647 +#define FN_SetCameraPosition 646 #define SETCAMERAPOSITION_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCAMERAPOSITION_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETCAMERAPOSITION_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_GetCameraPosition 648 +#define FN_GetCameraPosition 647 #define GETCAMERAPOSITION_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCAMERAPOSITION_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCAMERAPOSITION_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_TranslateCamera 649 +#define FN_TranslateCamera 648 #define TRANSLATECAMERA_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define TRANSLATECAMERA_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define TRANSLATECAMERA_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SetCameraRotation 650 +#define FN_SetCameraRotation 649 #define SETCAMERAROTATION_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETCAMERAROTATION_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETCAMERAROTATION_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_GetCameraRotation 651 +#define FN_GetCameraRotation 650 #define GETCAMERAROTATION_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETCAMERAROTATION_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETCAMERAROTATION_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_RotateCamera 652 +#define FN_RotateCamera 651 #define ROTATECAMERA_X num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ROTATECAMERA_Y num_var[1].nid_value.value[ num_var[1].byref_offset ] #define ROTATECAMERA_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SetCameraFOV 653 +#define FN_SetCameraFOV 652 #define SETCAMERAFOV_FOV num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetCameraFOV 654 -#define FN_SetCameraAspectRatio 655 +#define FN_GetCameraFOV 653 +#define FN_SetCameraAspectRatio 654 #define SETCAMERAASPECTRATIO_ASPECT num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetCameraAspectRatio 656 -#define FN_SetCameraFarValue 657 +#define FN_GetCameraAspectRatio 655 +#define FN_SetCameraFarValue 656 #define SETCAMERAFARVALUE_ZF num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetCameraFarValue 658 -#define FN_SetCameraNearValue 659 +#define FN_GetCameraFarValue 657 +#define FN_SetCameraNearValue 658 #define SETCAMERANEARVALUE_ZN num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetCameraNearValue 660 -#define FN_AddSceneSkyBox 661 +#define FN_GetCameraNearValue 659 +#define FN_AddSceneSkyBox 660 #define ADDSCENESKYBOX_IMG_TOP num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ADDSCENESKYBOX_IMG_BOTTOM num_var[1].nid_value.value[ num_var[1].byref_offset ] #define ADDSCENESKYBOX_IMG_LEFT num_var[2].nid_value.value[ num_var[2].byref_offset ] #define ADDSCENESKYBOX_IMG_RIGHT num_var[3].nid_value.value[ num_var[3].byref_offset ] #define ADDSCENESKYBOX_IMG_FRONT num_var[4].nid_value.value[ num_var[4].byref_offset ] #define ADDSCENESKYBOX_IMG_BACK num_var[5].nid_value.value[ num_var[5].byref_offset ] -#define FN_AddSceneSkyDome 662 +#define FN_AddSceneSkyDome 661 #define ADDSCENESKYDOME_IMG num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_AddSceneSkyDomeEx 663 +#define FN_AddSceneSkyDomeEx 662 #define ADDSCENESKYDOMEEX_IMG num_var[0].nid_value.value[ num_var[0].byref_offset ] #define ADDSCENESKYDOMEEX_HORIRES num_var[1].nid_value.value[ num_var[1].byref_offset ] #define ADDSCENESKYDOMEEX_VERTRES num_var[2].nid_value.value[ num_var[2].byref_offset ] #define ADDSCENESKYDOMEEX_TXPERCENTAGE num_var[3].nid_value.value[ num_var[3].byref_offset ] #define ADDSCENESKYDOMEEX_SPHEREPERCENTAGE num_var[4].nid_value.value[ num_var[4].byref_offset ] #define ADDSCENESKYDOMEEX_RADIUS num_var[5].nid_value.value[ num_var[5].byref_offset ] -#define FN_RemoveSceneSky 664 -#define FN_SetWorld3DDeltaTime 665 +#define FN_RemoveSceneSky 663 +#define FN_SetWorld3DDeltaTime 664 #define SETWORLD3DDELTATIME_DT num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetWorld3DMaxSubSteps 666 +#define FN_SetWorld3DMaxSubSteps 665 #define SETWORLD3DMAXSUBSTEPS_STEPS num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetWorld3DTimeStep 667 +#define FN_SetWorld3DTimeStep 666 #define SETWORLD3DTIMESTEP_TS num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_startParticleEmitter 668 +#define FN_startParticleEmitter 667 #define STARTPARTICLEEMITTER_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_stopParticleEmitter 669 +#define FN_stopParticleEmitter 668 #define STOPPARTICLEEMITTER_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleDirection 670 +#define FN_setParticleDirection 669 #define SETPARTICLEDIRECTION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEDIRECTION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETPARTICLEDIRECTION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETPARTICLEDIRECTION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getParticleDirection 671 +#define FN_getParticleDirection 670 #define GETPARTICLEDIRECTION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETPARTICLEDIRECTION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETPARTICLEDIRECTION_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETPARTICLEDIRECTION_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_useParticleEveryMeshVertex 672 +#define FN_useParticleEveryMeshVertex 671 #define USEPARTICLEEVERYMESHVERTEX_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define USEPARTICLEEVERYMESHVERTEX_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_particleIsUsingEveryMeshVertex 673 +#define FN_particleIsUsingEveryMeshVertex 672 #define PARTICLEISUSINGEVERYMESHVERTEX_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleNormalDirectionMod 674 +#define FN_setParticleNormalDirectionMod 673 #define SETPARTICLENORMALDIRECTIONMOD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getParticleNormalDirectionMod 675 +#define SETPARTICLENORMALDIRECTIONMOD_ND_MOD num_var[1].nid_value.value[ num_var[1].byref_offset ] +#define FN_getParticleNormalDirectionMod 674 #define GETPARTICLENORMALDIRECTIONMOD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_useParticleNormalDirection 676 +#define FN_useParticleNormalDirection 675 #define USEPARTICLENORMALDIRECTION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define USEPARTICLENORMALDIRECTION_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_particleIsUsingNormalDirection 677 +#define FN_particleIsUsingNormalDirection 676 #define PARTICLEISUSINGNORMALDIRECTION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMesh 678 +#define FN_setParticleMesh 677 #define SETPARTICLEMESH_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMESH_MESH num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setParticleMinParticlesPerSecond 679 +#define FN_setParticleMinParticlesPerSecond 678 #define SETPARTICLEMINPARTICLESPERSECOND_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMINPARTICLESPERSECOND_MINPARTICLESPERSECOND num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleMinParticlesPerSecond 680 +#define FN_getParticleMinParticlesPerSecond 679 #define GETPARTICLEMINPARTICLESPERSECOND_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMaxParticlesPerSecond 681 +#define FN_setParticleMaxParticlesPerSecond 680 #define SETPARTICLEMAXPARTICLESPERSECOND_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMAXPARTICLESPERSECOND_MAXPARTICLESPERSECOND num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleMaxParticlesPerSecond 682 +#define FN_getParticleMaxParticlesPerSecond 681 #define GETPARTICLEMAXPARTICLESPERSECOND_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMinStartColor 683 +#define FN_setParticleMinStartColor 682 #define SETPARTICLEMINSTARTCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMINSTARTCOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleMinStartColor 684 +#define FN_getParticleMinStartColor 683 #define GETPARTICLEMINSTARTCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMaxStartColor 685 +#define FN_setParticleMaxStartColor 684 #define SETPARTICLEMAXSTARTCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMAXSTARTCOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleMaxStartColor 686 +#define FN_getParticleMaxStartColor 685 #define GETPARTICLEMAXSTARTCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMinLife 687 +#define FN_setParticleMinLife 686 #define SETPARTICLEMINLIFE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMINLIFE_MINLIFE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleMinLife 688 +#define FN_getParticleMinLife 687 #define GETPARTICLEMINLIFE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMaxLife 689 +#define FN_setParticleMaxLife 688 #define SETPARTICLEMAXLIFE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMAXLIFE_MAXLIFE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleMaxLife 690 +#define FN_getParticleMaxLife 689 #define GETPARTICLEMAXLIFE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMaxAngle 691 +#define FN_setParticleMaxAngle 690 #define SETPARTICLEMAXANGLE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMAXANGLE_MAXANGLE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleMaxAngle 692 +#define FN_getParticleMaxAngle 691 #define GETPARTICLEMAXANGLE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleMinStartSize 693 +#define FN_setParticleMinStartSize 692 #define SETPARTICLEMINSTARTSIZE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMINSTARTSIZE_W num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETPARTICLEMINSTARTSIZE_H num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getParticleMinStartSize 694 +#define FN_getParticleMinStartSize 693 #define GETPARTICLEMINSTARTSIZE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETPARTICLEMINSTARTSIZE_W num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETPARTICLEMINSTARTSIZE_H num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_setParticleMaxStartSize 695 +#define FN_setParticleMaxStartSize 694 #define SETPARTICLEMAXSTARTSIZE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEMAXSTARTSIZE_W num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETPARTICLEMAXSTARTSIZE_H num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getParticleMaxStartSize 696 +#define FN_getParticleMaxStartSize 695 #define GETPARTICLEMAXSTARTSIZE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETPARTICLEMAXSTARTSIZE_W num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETPARTICLEMAXSTARTSIZE_H num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_setParticleCenter 697 +#define FN_setParticleCenter 696 #define SETPARTICLECENTER_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLECENTER_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETPARTICLECENTER_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETPARTICLECENTER_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getParticleCenter 698 +#define FN_getParticleCenter 697 #define GETPARTICLECENTER_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETPARTICLECENTER_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETPARTICLECENTER_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETPARTICLECENTER_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setParticleRadius 699 +#define FN_setParticleRadius 698 #define SETPARTICLERADIUS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLERADIUS_RADIUS num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleRadius 700 +#define FN_getParticleRadius 699 #define GETPARTICLERADIUS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleRingThickness 701 +#define FN_setParticleRingThickness 700 #define SETPARTICLERINGTHICKNESS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLERINGTHICKNESS_RINGTHICKNESS num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleRingThickness 702 +#define FN_getParticleRingThickness 701 #define GETPARTICLERINGTHICKNESS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setParticleBox 703 +#define FN_setParticleBox 702 #define SETPARTICLEBOX_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLEBOX_MIN_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETPARTICLEBOX_MIN_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -2163,7 +2159,7 @@ #define SETPARTICLEBOX_MAX_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define SETPARTICLEBOX_MAX_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define SETPARTICLEBOX_MAX_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_getParticleBox 704 +#define FN_getParticleBox 703 #define GETPARTICLEBOX_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETPARTICLEBOX_MIN_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETPARTICLEBOX_MIN_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -2171,82 +2167,82 @@ #define GETPARTICLEBOX_MAX_X num_var[4].nid_value.value[ num_var[4].byref_offset ] #define GETPARTICLEBOX_MAX_Y num_var[5].nid_value.value[ num_var[5].byref_offset ] #define GETPARTICLEBOX_MAX_Z num_var[6].nid_value.value[ num_var[6].byref_offset ] -#define FN_setParticleNormal 705 +#define FN_setParticleNormal 704 #define SETPARTICLENORMAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLENORMAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETPARTICLENORMAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETPARTICLENORMAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_getParticleNormal 706 +#define FN_getParticleNormal 705 #define GETPARTICLENORMAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETPARTICLENORMAL_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETPARTICLENORMAL_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETPARTICLENORMAL_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setParticleLength 707 +#define FN_setParticleLength 706 #define SETPARTICLELENGTH_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETPARTICLELENGTH_P_LEN num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getParticleLength 708 +#define FN_getParticleLength 707 #define GETPARTICLELENGTH_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_useParticleOutlineOnly 709 +#define FN_useParticleOutlineOnly 708 #define USEPARTICLEOUTLINEONLY_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define USEPARTICLEOUTLINEONLY_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_particleIsUsingOutlineOnly 710 +#define FN_particleIsUsingOutlineOnly 709 #define PARTICLEISUSINGOUTLINEONLY_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_lightIsCastingShadow 711 +#define FN_lightIsCastingShadow 710 #define LIGHTISCASTINGSHADOW_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getLightType 712 +#define FN_getLightType 711 #define GETLIGHTTYPE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_getLightRadius 713 +#define FN_getLightRadius 712 #define GETLIGHTRADIUS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setLightType 714 +#define FN_setLightType 713 #define SETLIGHTTYPE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTTYPE_LIGHT_TYPE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setLightRadius 715 +#define FN_setLightRadius 714 #define SETLIGHTRADIUS_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTRADIUS_RADIUS num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setLightShadowCast 716 +#define FN_setLightShadowCast 715 #define SETLIGHTSHADOWCAST_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTSHADOWCAST_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetLightAmbientColor 717 +#define FN_SetLightAmbientColor 716 #define SETLIGHTAMBIENTCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTAMBIENTCOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetLightAmbientColor 718 +#define FN_GetLightAmbientColor 717 #define GETLIGHTAMBIENTCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetLightAttenuation 719 +#define FN_SetLightAttenuation 718 #define SETLIGHTATTENUATION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTATTENUATION_L_CONSTANT num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETLIGHTATTENUATION_L_LINEAR num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETLIGHTATTENUATION_L_QUADRATIC num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_GetLightAttenuation 720 +#define FN_GetLightAttenuation 719 #define GETLIGHTATTENUATION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETLIGHTATTENUATION_CONSTANT num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETLIGHTATTENUATION_LINEAR num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETLIGHTATTENUATION_QUADRATIC num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetLightDiffuseColor 721 +#define FN_SetLightDiffuseColor 720 #define SETLIGHTDIFFUSECOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTDIFFUSECOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetLightDiffuseColor 722 +#define FN_GetLightDiffuseColor 721 #define GETLIGHTDIFFUSECOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetLightFalloff 723 +#define FN_SetLightFalloff 722 #define SETLIGHTFALLOFF_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTFALLOFF_FALLOFF num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetLightFalloff 724 +#define FN_GetLightFalloff 723 #define GETLIGHTFALLOFF_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetLightInnerCone 725 +#define FN_SetLightInnerCone 724 #define SETLIGHTINNERCONE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTINNERCONE_ANGLE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetLightInnerCone 726 +#define FN_GetLightInnerCone 725 #define GETLIGHTINNERCONE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetLightOuterCone 727 +#define FN_SetLightOuterCone 726 #define SETLIGHTOUTERCONE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTOUTERCONE_ANGLE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetLightOuterCone 728 +#define FN_GetLightOuterCone 727 #define GETLIGHTOUTERCONE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetLightSpecularColor 729 +#define FN_SetLightSpecularColor 728 #define SETLIGHTSPECULARCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETLIGHTSPECULARCOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_GetLightSpecularColor 730 +#define FN_GetLightSpecularColor 729 #define GETLIGHTSPECULARCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetTerrainPatchAABB 731 +#define FN_GetTerrainPatchAABB 730 #define GETTERRAINPATCHAABB_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETTERRAINPATCHAABB_PATCHX num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETTERRAINPATCHAABB_PATCHZ num_var[2].nid_value.value[ num_var[2].byref_offset ] @@ -2256,257 +2252,257 @@ #define GETTERRAINPATCHAABB_MAXX num_var[6].nid_value.value[ num_var[6].byref_offset ] #define GETTERRAINPATCHAABB_MAXY num_var[7].nid_value.value[ num_var[7].byref_offset ] #define GETTERRAINPATCHAABB_MAXZ num_var[8].nid_value.value[ num_var[8].byref_offset ] -#define FN_GetTerrainPatchLOD 732 +#define FN_GetTerrainPatchLOD 731 #define GETTERRAINPATCHLOD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETTERRAINPATCHLOD_PATCHX num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETTERRAINPATCHLOD_PATCHZ num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_GetTerrainHeight 733 +#define FN_GetTerrainHeight 732 #define GETTERRAINHEIGHT_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETTERRAINHEIGHT_PATCHX num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETTERRAINHEIGHT_PATCHZ num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_GetTerrainCenter 734 +#define FN_GetTerrainCenter 733 #define GETTERRAINCENTER_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETTERRAINCENTER_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETTERRAINCENTER_Y num_var[2].nid_value.value[ num_var[2].byref_offset ] #define GETTERRAINCENTER_Z num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_SetTerrainLODDistance 735 +#define FN_SetTerrainLODDistance 734 #define SETTERRAINLODDISTANCE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETTERRAINLODDISTANCE_LOD num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETTERRAINLODDISTANCE_DISTANCE num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_ScaleTerrainTexture 736 +#define FN_ScaleTerrainTexture 735 #define SCALETERRAINTEXTURE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SCALETERRAINTEXTURE_SCALE num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SCALETERRAINTEXTURE_SCALE2 num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SetTerrainCameraMovementDelta 737 +#define FN_SetTerrainCameraMovementDelta 736 #define SETTERRAINCAMERAMOVEMENTDELTA_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETTERRAINCAMERAMOVEMENTDELTA_DELTA num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetTerrainCameraRotationDelta 738 +#define FN_SetTerrainCameraRotationDelta 737 #define SETTERRAINCAMERAROTATIONDELTA_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETTERRAINCAMERAROTATIONDELTA_DELTA num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetTerrainPatchLOD 739 +#define FN_SetTerrainPatchLOD 738 #define SETTERRAINPATCHLOD_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETTERRAINPATCHLOD_PATCHX num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETTERRAINPATCHLOD_PATCHZ num_var[2].nid_value.value[ num_var[2].byref_offset ] #define SETTERRAINPATCHLOD_LOD num_var[3].nid_value.value[ num_var[3].byref_offset ] -#define FN_setWaterWindForce 740 +#define FN_setWaterWindForce 739 #define SETWATERWINDFORCE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETWATERWINDFORCE_F num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getWaterWindForce 741 +#define FN_getWaterWindForce 740 #define GETWATERWINDFORCE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setWaterWaveHeight 742 +#define FN_setWaterWaveHeight 741 #define SETWATERWAVEHEIGHT_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETWATERWAVEHEIGHT_H num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getWaterWaveHeight 743 +#define FN_getWaterWaveHeight 742 #define GETWATERWAVEHEIGHT_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setWaterWindDirection 744 +#define FN_setWaterWindDirection 743 #define SETWATERWINDDIRECTION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETWATERWINDDIRECTION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETWATERWINDDIRECTION_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getWaterWindDirection 745 +#define FN_getWaterWindDirection 744 #define GETWATERWINDDIRECTION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETWATERWINDDIRECTION_X num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETWATERWINDDIRECTION_Z num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_setWaterColor 746 +#define FN_setWaterColor 745 #define SETWATERCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETWATERCOLOR_C num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getWaterColor 747 +#define FN_getWaterColor 746 #define GETWATERCOLOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setWaterColorBlendFactor 748 +#define FN_setWaterColorBlendFactor 747 #define SETWATERCOLORBLENDFACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETWATERCOLORBLENDFACTOR_CBFACTOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getWaterColorBlendFactor 749 +#define FN_getWaterColorBlendFactor 748 #define GETWATERCOLORBLENDFACTOR_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_SetActorAnimation 750 +#define FN_SetActorAnimation 749 #define SETACTORANIMATION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORANIMATION_START_FRAME num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORANIMATION_END_FRAME num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_SetActorAnimationSpeed 751 +#define FN_SetActorAnimationSpeed 750 #define SETACTORANIMATIONSPEED_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORANIMATIONSPEED_SPEED num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetActorFrame 752 +#define FN_SetActorFrame 751 #define SETACTORFRAME_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORFRAME_FRAME num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetActorMD2Animation 753 +#define FN_SetActorMD2Animation 752 #define SETACTORMD2ANIMATION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORMD2ANIMATION_ANIM num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_SetActorMD2AnimationByName 754 +#define FN_SetActorMD2AnimationByName 753 #define SETACTORMD2ANIMATIONBYNAME_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORMD2ANIMATIONBYNAME_ANIM_NAME$ str_var[0].sid_value.value[ str_var[0].byref_offset ] -#define FN_GetActorAnimationSpeed 755 +#define FN_GetActorAnimationSpeed 754 #define GETACTORANIMATIONSPEED_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetActorEndFrame 756 +#define FN_GetActorEndFrame 755 #define GETACTORENDFRAME_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetActorCurrentFrame 757 +#define FN_GetActorCurrentFrame 756 #define GETACTORCURRENTFRAME_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetActorStartFrame 758 +#define FN_GetActorStartFrame 757 #define GETACTORSTARTFRAME_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_StartActorTransition 759 +#define FN_StartActorTransition 758 #define STARTACTORTRANSITION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define STARTACTORTRANSITION_FRAME num_var[1].nid_value.value[ num_var[1].byref_offset ] #define STARTACTORTRANSITION_TRANSITION_TIME num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_StopActorTransition 760 +#define FN_StopActorTransition 759 #define STOPACTORTRANSITION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_ActorIsInTransition 761 +#define FN_ActorIsInTransition 760 #define ACTORISINTRANSITION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_GetActorTransitionTime 762 +#define FN_GetActorTransitionTime 761 #define GETACTORTRANSITIONTIME_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_actorAnimationIsLooped 763 +#define FN_actorAnimationIsLooped 762 #define ACTORANIMATIONISLOOPED_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_loopActorAnimation 764 +#define FN_loopActorAnimation 763 #define LOOPACTORANIMATION_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define LOOPACTORANIMATION_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_createMaterial 765 -#define FN_deleteMaterial 766 +#define FN_createMaterial 764 +#define FN_deleteMaterial 765 #define DELETEMATERIAL_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setActorMaterial 767 +#define FN_setActorMaterial 766 #define SETACTORMATERIAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORMATERIAL_MATERIAL_NUM num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORMATERIAL_MATERIAL_ID num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getActorMaterial 768 +#define FN_getActorMaterial 767 #define GETACTORMATERIAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORMATERIAL_MATERIAL_NUM num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_copyActorMaterial 769 +#define FN_copyActorMaterial 768 #define COPYACTORMATERIAL_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define COPYACTORMATERIAL_MATERIAL_NUM num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_copyMaterial 770 +#define FN_copyMaterial 769 #define COPYMATERIAL_SMATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialTextureCanvas 771 +#define FN_setMaterialTextureCanvas 770 #define SETMATERIALTEXTURECANVAS_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALTEXTURECANVAS_LEVEL num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETMATERIALTEXTURECANVAS_CANVAS_ID num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_setMaterialAmbientColor 772 +#define FN_setMaterialAmbientColor 771 #define SETMATERIALAMBIENTCOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALAMBIENTCOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialAmbientColor 773 +#define FN_getMaterialAmbientColor 772 #define GETMATERIALAMBIENTCOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialAntiAliasing 774 +#define FN_setMaterialAntiAliasing 773 #define SETMATERIALANTIALIASING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALANTIALIASING_AA num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialAntiAliasing 775 +#define FN_getMaterialAntiAliasing 774 #define GETMATERIALANTIALIASING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialBackfaceCulling 776 +#define FN_setMaterialBackfaceCulling 775 #define SETMATERIALBACKFACECULLING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALBACKFACECULLING_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialBackfaceCulling 777 +#define FN_getMaterialBackfaceCulling 776 #define GETMATERIALBACKFACECULLING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialBlendFactor 778 +#define FN_setMaterialBlendFactor 777 #define SETMATERIALBLENDFACTOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALBLENDFACTOR_BF num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialBlendFactor 779 +#define FN_getMaterialBlendFactor 778 #define GETMATERIALBLENDFACTOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialBlendMode 780 +#define FN_setMaterialBlendMode 779 #define SETMATERIALBLENDMODE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALBLENDMODE_BLEND_MODE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialBlendMode 781 +#define FN_getMaterialBlendMode 780 #define GETMATERIALBLENDMODE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialColorMask 782 +#define FN_setMaterialColorMask 781 #define SETMATERIALCOLORMASK_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALCOLORMASK_COLOR_MASK num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialColorMask 783 +#define FN_getMaterialColorMask 782 #define GETMATERIALCOLORMASK_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialColorMode 784 +#define FN_setMaterialColorMode 783 #define SETMATERIALCOLORMODE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALCOLORMODE_COLOR_MODE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialColorMode 785 +#define FN_getMaterialColorMode 784 #define GETMATERIALCOLORMODE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialDiffuseColor 786 +#define FN_setMaterialDiffuseColor 785 #define SETMATERIALDIFFUSECOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALDIFFUSECOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialDiffuseColor 787 +#define FN_getMaterialDiffuseColor 786 #define GETMATERIALDIFFUSECOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialEmissiveColor 788 +#define FN_setMaterialEmissiveColor 787 #define SETMATERIALEMISSIVECOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALEMISSIVECOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialEmissiveColor 789 +#define FN_getMaterialEmissiveColor 788 #define GETMATERIALEMISSIVECOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialFog 790 +#define FN_setMaterialFog 789 #define SETMATERIALFOG_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALFOG_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialFog 791 +#define FN_getMaterialFog 790 #define GETMATERIALFOG_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialFrontfaceCulling 792 +#define FN_setMaterialFrontfaceCulling 791 #define SETMATERIALFRONTFACECULLING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALFRONTFACECULLING_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialFrontfaceCulling 793 +#define FN_getMaterialFrontfaceCulling 792 #define GETMATERIALFRONTFACECULLING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialGouraudShading 794 +#define FN_setMaterialGouraudShading 793 #define SETMATERIALGOURAUDSHADING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALGOURAUDSHADING_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_materialGouraudShading 795 -#define MATERIALGOURAUDSHADING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_materialIsAplhaBlend 796 +#define FN_materialIsGouraudShaded 794 +#define MATERIALISGOURAUDSHADED_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] +#define FN_materialIsAplhaBlend 795 #define MATERIALISAPLHABLEND_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_materialIsTransparent 797 +#define FN_materialIsTransparent 796 #define MATERIALISTRANSPARENT_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialLighting 798 +#define FN_setMaterialLighting 797 #define SETMATERIALLIGHTING_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALLIGHTING_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_materialIsLit 799 +#define FN_materialIsLit 798 #define MATERIALISLIT_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialType 800 +#define FN_setMaterialType 799 #define SETMATERIALTYPE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALTYPE_MAT_TYPE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialType 801 +#define FN_getMaterialType 800 #define GETMATERIALTYPE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialNormalize 802 +#define FN_setMaterialNormalize 801 #define SETMATERIALNORMALIZE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALNORMALIZE_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_materialIsNormalized 803 +#define FN_materialIsNormalized 802 #define MATERIALISNORMALIZED_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialPointCloud 804 +#define FN_setMaterialPointCloud 803 #define SETMATERIALPOINTCLOUD_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALPOINTCLOUD_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_materialIsPointCloud 805 +#define FN_materialIsPointCloud 804 #define MATERIALISPOINTCLOUD_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialFlag 806 +#define FN_setMaterialFlag 805 #define SETMATERIALFLAG_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALFLAG_MATERIAL_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETMATERIALFLAG_F_VALUE num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getMaterialFlag 807 +#define FN_getMaterialFlag 806 #define GETMATERIALFLAG_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETMATERIALFLAG_MATERIAL_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_setMaterialTexture 808 +#define FN_setMaterialTexture 807 #define SETMATERIALTEXTURE_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALTEXTURE_LEVEL num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETMATERIALTEXTURE_IMG_ID num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_setMaterialShininess 809 +#define FN_setMaterialShininess 808 #define SETMATERIALSHININESS_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALSHININESS_SHININESS num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialShininess 810 +#define FN_getMaterialShininess 809 #define GETMATERIALSHININESS_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialSpecularColor 811 +#define FN_setMaterialSpecularColor 810 #define SETMATERIALSPECULARCOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALSPECULARCOLOR_COLOR num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialSpecularColor 812 +#define FN_getMaterialSpecularColor 811 #define GETMATERIALSPECULARCOLOR_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialThickness 813 +#define FN_setMaterialThickness 812 #define SETMATERIALTHICKNESS_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALTHICKNESS_THICKNESS num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getMaterialThickness 814 +#define FN_getMaterialThickness 813 #define GETMATERIALTHICKNESS_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setMaterialWireframe 815 +#define FN_setMaterialWireframe 814 #define SETMATERIALWIREFRAME_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETMATERIALWIREFRAME_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_materialIsWireframe 816 +#define FN_materialIsWireframe 815 #define MATERIALISWIREFRAME_MATERIAL_ID num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setActorTexture 817 +#define FN_setActorTexture 816 #define SETACTORTEXTURE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORTEXTURE_LAYER num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORTEXTURE_IMAGE_ID num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getActorMaterialCount 818 +#define FN_getActorMaterialCount 817 #define GETACTORMATERIALCOUNT_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] -#define FN_setActorMaterialFlag 819 +#define FN_setActorMaterialFlag 818 #define SETACTORMATERIALFLAG_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORMATERIALFLAG_FLAG num_var[1].nid_value.value[ num_var[1].byref_offset ] #define SETACTORMATERIALFLAG_FLAG_VALUE num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_getActorMaterialFlag 820 +#define FN_getActorMaterialFlag 819 #define GETACTORMATERIALFLAG_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORMATERIALFLAG_MATERIAL num_var[1].nid_value.value[ num_var[1].byref_offset ] #define GETACTORMATERIALFLAG_FLAG num_var[2].nid_value.value[ num_var[2].byref_offset ] -#define FN_setActorMaterialType 821 +#define FN_setActorMaterialType 820 #define SETACTORMATERIALTYPE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define SETACTORMATERIALTYPE_MATERIAL_TYPE num_var[1].nid_value.value[ num_var[1].byref_offset ] -#define FN_getActorMaterialType 822 +#define FN_getActorMaterialType 821 #define GETACTORMATERIALTYPE_ACTOR num_var[0].nid_value.value[ num_var[0].byref_offset ] #define GETACTORMATERIALTYPE_MATERIAL num_var[1].nid_value.value[ num_var[1].byref_offset ] diff --git a/rcbasic_runtime/rc_func130_cases.h b/rcbasic_runtime/rc_func130_cases.h index caba457..2358f15 100644 --- a/rcbasic_runtime/rc_func130_cases.h +++ b/rcbasic_runtime/rc_func130_cases.h @@ -587,10 +587,10 @@ case FN_SetCanvasAlpha: //Sub Procedure rc_setCanvasAlpha( SETCANVASALPHA_C_NUM, SETCANVASALPHA_A ); break; case FN_GetCanvasAlpha: //Number Function - rc_push_num(rc_getCanvasAlpha( GETCANVASALPHA_C_NUM )); + rc_push_num(rc_canvasAlpha( GETCANVASALPHA_C_NUM )); break; -case FN_SetCanvasColorMod: //Number Function - rc_push_num(rc_setCanvasColorMod( SETCANVASCOLORMOD_C_NUM, SETCANVASCOLORMOD_C )); +case FN_SetCanvasColorMod: //Sub Procedure + rc_setCanvasColorMod( SETCANVASCOLORMOD_C_NUM, SETCANVASCOLORMOD_C ); break; case FN_GetCanvasColorMod: //Number Function rc_push_num(rc_getCanvasColorMod( GETCANVASCOLORMOD_C_NUM )); @@ -671,7 +671,7 @@ case FN_ImageExists: //Number Function rc_push_num(rc_imageExists( IMAGEEXISTS_SLOT )); break; case FN_ColorKey: //Sub Procedure - rc_colorKey( COLORKEY_SLOT, COLORKEY_C ); + rc_setColorKey( COLORKEY_SLOT, COLORKEY_C ); break; case FN_setBilinearFilter: //Sub Procedure rc_setBilinearFilter( SETBILINEARFILTER_FLAG ); @@ -698,13 +698,13 @@ case FN_SetBlendMode: //Sub Procedure rc_setBlendMode( SETBLENDMODE_BLEND_MODE ); break; case FN_GetBlendMode: //Number Function - rc_push_num(rc_getBlendMode( GETBLENDMODE_BLEND_MODE )); + rc_push_num(rc_getBlendMode( )); break; -case FN_SetImageColorMod: //Number Function - rc_push_num(rc_setImageColorMod( SETIMAGECOLORMOD_SLOT, SETIMAGECOLORMOD_C )); +case FN_SetImageColorMod: //Sub Procedure + rc_setImageColorMod( SETIMAGECOLORMOD_SLOT, SETIMAGECOLORMOD_C ); break; -case FN_ImageColorMod: //Number Function - rc_push_num(rc_imageColorMod( IMAGECOLORMOD_SLOT )); +case FN_GetImageColorMod: //Number Function + rc_push_num(rc_getImageColorMod( GETIMAGECOLORMOD_SLOT )); break; case FN_DrawImage: //Sub Procedure rc_drawImage( DRAWIMAGE_SLOT, DRAWIMAGE_X, DRAWIMAGE_Y ); @@ -799,8 +799,8 @@ case FN_SetMouseZone: //Sub Procedure case FN_ClearMouseZone: //Sub Procedure rc_clearMouseZone( ); break; -case FN_SoundFromBuffer: //Number Function - rc_push_num(rc_soundFromBuffer( &SOUNDFROMBUFFER_BUFFER, SOUNDFROMBUFFER_BUFFER_SIZE, SOUNDFROMBUFFER_VOL )); +case FN_CreateSound: //Number Function + rc_push_num(rc_createSound( &CREATESOUND_BUFFER, CREATESOUND_BUFFER_SIZE, CREATESOUND_VOL )); break; case FN_LoadSound: //Number Function rc_push_num(rc_loadSound( LOADSOUND_SND_FILE$ )); @@ -863,7 +863,7 @@ case FN_SetSoundChannels: //Sub Procedure rc_setSoundChannels( SETSOUNDCHANNELS_MAX_CHANNELS ); break; case FN_NumSoundChannels: //Number Function - rc_push_num(rc_numSoundChannels( )); + rc_push_num(rc_getSoundChannels( )); break; case FN_SoundIsEnabled: //Number Function rc_push_num(rc_soundIsEnabled( )); @@ -967,9 +967,6 @@ case FN_SetFont: //Sub Procedure case FN_DrawText: //Sub Procedure rc_drawText( DRAWTEXT_TXT$, DRAWTEXT_X, DRAWTEXT_Y ); break; -case FN_RenderText: //Sub Procedure - rc_renderText( RENDERTEXT_SLOT, RENDERTEXT_TXT$ ); - break; case FN_GetTextSize: //Sub Procedure rc_getTextSize( GETTEXTSIZE_TXT$, &GETTEXTSIZE_W, &GETTEXTSIZE_H ); break; @@ -1013,58 +1010,58 @@ case FN_NumGyros: //Number Function rc_push_num(rc_numGyros( )); break; case FN_CheckSockets: //Number Function - rc_push_num(rc_checkSockets( CHECKSOCKETS_TIMEOUT_MS )); + rc_push_num(rc_net_checkSockets( CHECKSOCKETS_TIMEOUT_MS )); break; case FN_TCP_SocketReady: //Number Function - rc_push_num(rc_tCP_SocketReady( TCP_SOCKETREADY_SOCKET )); + rc_push_num(rc_net_tcp_socketReady( TCP_SOCKETREADY_SOCKET )); break; case FN_UDP_SocketReady: //Number Function - rc_push_num(rc_uDP_SocketReady( UDP_SOCKETREADY_SOCKET )); + rc_push_num(rc_net_udp_socketReady( UDP_SOCKETREADY_SOCKET )); break; case FN_TCP_OpenSocket: //Number Function - rc_push_num(rc_tCP_OpenSocket( TCP_OPENSOCKET_HOST$, TCP_OPENSOCKET_PORT )); + rc_push_num(rc_net_tcp_openSocket( TCP_OPENSOCKET_HOST$, TCP_OPENSOCKET_PORT )); break; case FN_TCP_CloseSocket: //Sub Procedure - rc_tCP_CloseSocket( TCP_CLOSESOCKET_SOCKET ); + rc_net_tcp_closeSocket( TCP_CLOSESOCKET_SOCKET ); break; case FN_TCP_RemoteHost: //Number Function - rc_push_num(rc_tCP_RemoteHost( TCP_REMOTEHOST_SOCKET )); + rc_push_num(rc_net_tcp_remoteHost( TCP_REMOTEHOST_SOCKET )); break; case FN_TCP_RemotePort: //Number Function - rc_push_num(rc_tCP_RemotePort( TCP_REMOTEPORT_SOCKET )); + rc_push_num(rc_net_tcp_remotePort( TCP_REMOTEPORT_SOCKET )); break; case FN_TCP_GetData: //Number Function - rc_push_num(rc_tCP_GetData( TCP_GETDATA_SOCKET, &TCP_GETDATA_SDATA$, TCP_GETDATA_NUMBYTES )); + rc_push_num(rc_net_tcp_getData_str( TCP_GETDATA_SOCKET, TCP_GETDATA_NUMBYTES, &TCP_GETDATA_SDATA$ )); break; case FN_TCP_SendData: //Sub Procedure - rc_tCP_SendData( TCP_SENDDATA_SOCKET, TCP_SENDDATA_SDATA$ ); + rc_net_tcp_sendData( TCP_SENDDATA_SOCKET, TCP_SENDDATA_SDATA$ ); break; case FN_TCP_AcceptSocket: //Number Function - rc_push_num(rc_tCP_AcceptSocket( TCP_ACCEPTSOCKET_SERVER, TCP_ACCEPTSOCKET_CLIENT )); + rc_push_num(rc_net_tcp_acceptSocket( TCP_ACCEPTSOCKET_SERVER, TCP_ACCEPTSOCKET_CLIENT )); break; case FN_UDP_OpenSocket: //Number Function - rc_push_num(rc_uDP_OpenSocket( UDP_OPENSOCKET_PORT )); + rc_push_num(rc_net_udp_openSocket( UDP_OPENSOCKET_PORT )); break; case FN_UDP_CloseSocket: //Sub Procedure - rc_uDP_CloseSocket( UDP_CLOSESOCKET_SOCKET ); + rc_net_udp_closeSocket( UDP_CLOSESOCKET_SOCKET ); break; case FN_UDP_GetData: //Number Function - rc_push_num(rc_uDP_GetData( UDP_GETDATA_SOCKET, &UDP_GETDATA_SDATA$, &UDP_GETDATA_HOST$, &UDP_GETDATA_PORT )); + rc_push_num(rc_net_udp_readStream( UDP_GETDATA_SOCKET, &UDP_GETDATA_HOST$, &UDP_GETDATA_PORT, &UDP_GETDATA_SDATA$ )); break; case FN_UDP_Length: //Number Function - rc_push_num(rc_uDP_Length( )); + rc_push_num(rc_net_udp_len( )); break; case FN_UDP_MaxLength: //Number Function - rc_push_num(rc_uDP_MaxLength( )); + rc_push_num(rc_net_udp_maxlen( )); break; case FN_UDP_RemoteHost$: //String Function - rc_push_str(rc_uDP_RemoteHost( UDP_REMOTEHOST$_SOCKET )); + rc_push_str(rc_net_udp_getRemoteHost( UDP_REMOTEHOST$_SOCKET )); break; case FN_UDP_RemotePort: //Number Function - rc_push_num(rc_uDP_RemotePort( UDP_REMOTEPORT_SOCKET )); + rc_push_num(rc_net_udp_getRemotePort( UDP_REMOTEPORT_SOCKET )); break; case FN_UDP_SendData: //Sub Procedure - rc_uDP_SendData( UDP_SENDDATA_SOCKET, UDP_SENDDATA_SDATA$, UDP_SENDDATA_HOST$, UDP_SENDDATA_PORT ); + rc_net_udp_sendData( UDP_SENDDATA_SOCKET, UDP_SENDDATA_HOST$, UDP_SENDDATA_PORT, UDP_SENDDATA_SDATA$ ); break; case FN_LoadVideo: //Sub Procedure rc_loadVideo( LOADVIDEO_VID$ ); @@ -1111,62 +1108,59 @@ case FN_GetVideoSize: //Sub Procedure case FN_VideoExists: //Number Function rc_push_num(rc_videoExists( )); break; -case FN_SetVideoAlpha: //Sub Procedure - rc_setVideoAlpha( SETVIDEOALPHA_A ); - break; case FN_SetVideoVolume: //Sub Procedure rc_setVideoVolume( SETVIDEOVOLUME_VOL ); break; case FN_GetVideoVolume: //Number Function - rc_push_num(rc_getVideoVolume( GETVIDEOVOLUME_VOL )); + rc_push_num(rc_getVideoVolume( )); break; case FN_System: //Number Function - rc_push_num(rc_system( SYSTEM_CMD$ )); + rc_push_num(rc_intern_system( SYSTEM_CMD$ )); break; case FN_OS$: //String Function - rc_push_str(rc_oS( )); + rc_push_str(rc_intern_OS( )); break; case FN_Command$: //String Function - rc_push_str(rc_command( COMMAND$_ARG )); + rc_push_str(rc_intern_command( COMMAND$_ARG )); break; case FN_NumCommands: //Number Function - rc_push_num(rc_numCommands( )); + rc_push_num(rc_intern_numCommands( )); break; case FN_Env$: //String Function - rc_push_str(rc_env( ENV$_V$ )); + rc_push_str(rc_intern_env( ENV$_V$ )); break; case FN_SetEnv: //Sub Procedure - rc_setEnv( SETENV_VAR$, SETENV_VALUE$ ); + rc_intern_setEnv( SETENV_VAR$, SETENV_VALUE$ ); break; case FN_PrefPath$: //String Function - rc_push_str(rc_prefPath( PREFPATH$_ORG_NAME$, PREFPATH$_APP_NAME$ )); + rc_push_str(rc_intern_prefPath( PREFPATH$_ORG_NAME$, PREFPATH$_APP_NAME$ )); break; case FN_Android_GetExternalStoragePath$: //String Function - rc_push_str(rc_android_GetExternalStoragePath( )); + rc_push_str(rc_intern_android_getExternalStoragePath( )); break; case FN_Android_GetExternalStorageState: //Number Function - rc_push_num(rc_android_GetExternalStorageState( )); + rc_push_num(rc_intern_android_getExternalStorageState( )); break; case FN_Android_GetInternalStoragePath$: //String Function - rc_push_str(rc_android_GetInternalStoragePath( )); + rc_push_str(rc_intern_android_getInternalStoragePath( )); break; case FN_Android_JNI_Message$: //String Function - rc_push_str(rc_android_JNI_Message( ANDROID_JNI_MESSAGE$_ARG$ )); + rc_push_str(rc_intern_android_jni_message( ANDROID_JNI_MESSAGE$_ARG$ )); break; case FN_Runtime_Utility_Message$: //String Function - rc_push_str(rc_runtime_Utility_Message( RUNTIME_UTILITY_MESSAGE$_ARG$ )); + rc_push_str(rc_intern_runtime_utility( RUNTIME_UTILITY_MESSAGE$_ARG$ )); break; case FN_GetDesktopDisplayMode: //Sub Procedure rc_getDesktopDisplayMode( GETDESKTOPDISPLAYMODE_INDEX, &GETDESKTOPDISPLAYMODE_W, &GETDESKTOPDISPLAYMODE_H, &GETDESKTOPDISPLAYMODE_FREQ ); break; case FN_GetPowerInfo: //Sub Procedure - rc_getPowerInfo( &GETPOWERINFO_STATUS, &GETPOWERINFO_SECS, &GETPOWERINFO_PCT ); + rc_intern_getPowerInfo( &GETPOWERINFO_STATUS, &GETPOWERINFO_SECS, &GETPOWERINFO_PCT ); break; case FN_EvalJS$: //String Function - rc_push_str(rc_evalJS( EVALJS$_JS_CODE$ )); + rc_push_str(rc_intern_evalJS( EVALJS$_JS_CODE$ )); break; case FN_SystemReturnStdOut$: //String Function - rc_push_str(rc_systemReturnStdOut( SYSTEMRETURNSTDOUT$_CMD$ )); + rc_push_str(rc_intern_sysReturnOutput( SYSTEMRETURNSTDOUT$_CMD$ )); break; case FN_OpenURL: //Number Function rc_push_num(rc_openURL( OPENURL_URL$ )); @@ -1181,6 +1175,9 @@ case FN_Runtime$: //String Function case FN_NumCPUs: //Number Function rc_push_num(rc_numCPUs( )); break; +case FN_SystemRam: //Number Function + rc_push_num(rc_intern_systemRam( )); + break; case FN_DimMatrix: //Number Function rc_push_num(rc_dimMatrix( DIMMATRIX_M_ROWS, DIMMATRIX_M_COLS )); break; @@ -1191,7 +1188,7 @@ case FN_AddMatrix: //Number Function rc_push_num(rc_addMatrix( ADDMATRIX_MA, ADDMATRIX_MB, ADDMATRIX_MC )); break; case FN_AugmentMatrix: //Number Function - rc_push_num(rc_augmentMatrix ( AUGMENTMATRIX _MA, AUGMENTMATRIX _MB, AUGMENTMATRIX _MC )); + rc_push_num(rc_augmentMatrix( AUGMENTMATRIX_MA, AUGMENTMATRIX_MB, AUGMENTMATRIX_MC )); break; case FN_CopyMatrix: //Sub Procedure rc_copyMatrix( COPYMATRIX_MA, COPYMATRIX_MB ); @@ -1203,7 +1200,7 @@ case FN_InsertMatrixRows: //Number Function rc_push_num(rc_insertMatrixRows( INSERTMATRIXROWS_MA, INSERTMATRIXROWS_R, INSERTMATRIXROWS_NUM_ROWS )); break; case FN_MultiplyMatrix: //Number Function - rc_push_num(rc_multiplyMatrix ( MULTIPLYMATRIX _MA, MULTIPLYMATRIX _MB, MULTIPLYMATRIX _MC )); + rc_push_num(rc_multiplyMatrix( MULTIPLYMATRIX_MA, MULTIPLYMATRIX_MB, MULTIPLYMATRIX_MC )); break; case FN_CubeMatrix: //Number Function rc_push_num(rc_cubeMatrix( CUBEMATRIX_MA, CUBEMATRIX_MB )); @@ -1218,7 +1215,7 @@ case FN_ClearMatrix: //Sub Procedure rc_clearMatrix( CLEARMATRIX_MA ); break; case FN_ClearMatrixColumns: //Number Function - rc_push_num(rc_clearMatrixColumns ( CLEARMATRIXCOLUMNS _MA, CLEARMATRIXCOLUMNS _C, CLEARMATRIXCOLUMNS _NUM_COLS )); + rc_push_num(rc_clearMatrixColumns( CLEARMATRIXCOLUMNS_MA, CLEARMATRIXCOLUMNS_C, CLEARMATRIXCOLUMNS_NUM_COLS )); break; case FN_ClearMatrixRows: //Number Function rc_push_num(rc_clearMatrixRows( CLEARMATRIXROWS_MA, CLEARMATRIXROWS_R, CLEARMATRIXROWS_NUM_ROWS )); @@ -1236,10 +1233,10 @@ case FN_CopyMatrixColumns: //Number Function rc_push_num(rc_copyMatrixColumns( COPYMATRIXCOLUMNS_MA, COPYMATRIXCOLUMNS_MB, COPYMATRIXCOLUMNS_C, COPYMATRIXCOLUMNS_NUM_COLS )); break; case FN_CopyMatrixRows: //Number Function - rc_push_num(rc_copyMatrixRows ( COPYMATRIXROWS _MA, COPYMATRIXROWS _MB, COPYMATRIXROWS _R, COPYMATRIXROWS _NUM_ROWS )); + rc_push_num(rc_copyMatrixRows( COPYMATRIXROWS_MA, COPYMATRIXROWS_MB, COPYMATRIXROWS_R, COPYMATRIXROWS_NUM_ROWS )); break; -case FN_IdentityMatrix: //Sub Procedure - rc_identityMatrix( IDENTITYMATRIX_MA, IDENTITYMATRIX_N ); +case FN_SetIdentityMatrix: //Sub Procedure + rc_setIdentityMatrix( SETIDENTITYMATRIX_MA, SETIDENTITYMATRIX_N ); break; case FN_SolveMatrix: //Number Function rc_push_num(rc_solveMatrix( SOLVEMATRIX_MA, SOLVEMATRIX_MB, SOLVEMATRIX_MC )); @@ -1259,8 +1256,8 @@ case FN_InvertMatrix: //Number Function case FN_MatrixFromBuffer: //Sub Procedure rc_matrixFromBuffer( MATRIXFROMBUFFER_MA, MATRIXFROMBUFFER_R, MATRIXFROMBUFFER_C, &MATRIXFROMBUFFER_BUFFER ); break; -case FN_GetMatrix: //Sub Procedure - rc_getMatrix( &GETMATRIX_BUFFER, GETMATRIX_MA ); +case FN_BufferFromMatrix: //Sub Procedure + rc_bufferFromMatrix( &BUFFERFROMMATRIX_BUFFER, BUFFERFROMMATRIX_MA ); break; case FN_RandomizeMatrix: //Sub Procedure rc_randomizeMatrix( RANDOMIZEMATRIX_MA, RANDOMIZEMATRIX_VMIN, RANDOMIZEMATRIX_VMAX ); @@ -1272,7 +1269,7 @@ case FN_SetMatrixValue: //Sub Procedure rc_setMatrixValue( SETMATRIXVALUE_MA, SETMATRIXVALUE_R, SETMATRIXVALUE_C, SETMATRIXVALUE_V ); break; case FN_ScalarMatrix: //Sub Procedure - rc_scalarMatrix ( SCALARMATRIX _MA, SCALARMATRIX _MB, SCALARMATRIX _S_VALUE ); + rc_scalarMatrix( SCALARMATRIX_MA, SCALARMATRIX_MB, SCALARMATRIX_S_VALUE ); break; case FN_ScalarMatrixColumns: //Number Function rc_push_num(rc_scalarMatrixColumns( SCALARMATRIXCOLUMNS_MA, SCALARMATRIXCOLUMNS_MB, SCALARMATRIXCOLUMNS_C, SCALARMATRIXCOLUMNS_NUM_COLS, SCALARMATRIXCOLUMNS_S_VALUE )); @@ -1284,10 +1281,10 @@ case FN_SquareMatrix: //Number Function rc_push_num(rc_squareMatrix( SQUAREMATRIX_MA, SQUAREMATRIX_MB )); break; case FN_CofactorMatrix: //Sub Procedure - rc_cofactorMatrix( COFACTORMATRIX_MA, COFACTORMATRIX_R, COFACTORMATRIX_C ); + rc_subMatrix( COFACTORMATRIX_MA, COFACTORMATRIX_R, COFACTORMATRIX_C ); break; case FN_SubtractMatrix: //Number Function - rc_push_num(rc_subtractMatrix ( SUBTRACTMATRIX _MA, SUBTRACTMATRIX _MB, SUBTRACTMATRIX _MC )); + rc_push_num(rc_subtractMatrix( SUBTRACTMATRIX_MA, SUBTRACTMATRIX_MB, SUBTRACTMATRIX_MC )); break; case FN_SwapMatrix: //Sub Procedure rc_swapMatrix( SWAPMATRIX_MA, SWAPMATRIX_MB ); @@ -1343,8 +1340,8 @@ case FN_GetMatrixRotation: //Sub Procedure case FN_GetMatrixScale: //Sub Procedure rc_getMatrixScale( GETMATRIXSCALE_MA, &GETMATRIXSCALE_X, &GETMATRIXSCALE_Y, &GETMATRIXSCALE_Z ); break; -case FN_ClipboardText$: //String Function - rc_push_str(rc_clipboardText( )); +case FN_GetClipboardText$: //String Function + rc_push_str(rc_getClipboardText( )); break; case FN_SetClipboardText: //Sub Procedure rc_setClipboardText( SETCLIPBOARDTEXT_TXT$ ); @@ -1500,16 +1497,16 @@ case FN_setActorDamping: //Sub Procedure rc_setActorDamping( SETACTORDAMPING_ACTOR, SETACTORDAMPING_LIN_DAMPING, SETACTORDAMPING_ANG_DAMPING ); break; case FN_getActorLinearDamping: //Number Function - rc_push_num(rc_ getActorLinearDamping( GETACTORLINEARDAMPING_ACTOR )); + rc_push_num(rc_getActorLinearDamping( GETACTORLINEARDAMPING_ACTOR )); break; case FN_getActorAngularDamping: //Number Function - rc_push_num(rc_ getActorAngularDamping( GETACTORANGULARDAMPING_ACTOR )); + rc_push_num(rc_getActorAngularDamping( GETACTORANGULARDAMPING_ACTOR )); break; case FN_getActorLinearSleepThreshold: //Number Function - rc_push_num(rc_ getActorLinearSleepThreshold( GETACTORLINEARSLEEPTHRESHOLD_ACTOR )); + rc_push_num(rc_getActorLinearSleepThreshold( GETACTORLINEARSLEEPTHRESHOLD_ACTOR )); break; case FN_getActorAngularSleepThreshold: //Number Function - rc_push_num(rc_ getActorAngularSleepThreshold( GETACTORANGULARSLEEPTHRESHOLD_ACTOR )); + rc_push_num(rc_getActorAngularSleepThreshold( GETACTORANGULARSLEEPTHRESHOLD_ACTOR )); break; case FN_applyActorDamping: //Sub Procedure rc_applyActorDamping( APPLYACTORDAMPING_ACTOR, APPLYACTORDAMPING_TIMESTEP ); @@ -1524,10 +1521,10 @@ case FN_setActorLinearFactor: //Sub Procedure rc_setActorLinearFactor( SETACTORLINEARFACTOR_ACTOR, SETACTORLINEARFACTOR_X, SETACTORLINEARFACTOR_Y, SETACTORLINEARFACTOR_Z ); break; case FN_getActorInverseMass: //Number Function - rc_push_num(rc_ getActorInverseMass( GETACTORINVERSEMASS_ACTOR )); + rc_push_num(rc_getActorInverseMass( GETACTORINVERSEMASS_ACTOR )); break; case FN_integrateActorVelocities: //Sub Procedure - rc_integrateActorVelocities( INTEGRATEACTORVELOCITIES_ACTOR, INTEGRATEACTORVELOCITIES_STEP ); + rc_integrateActorVelocities( INTEGRATEACTORVELOCITIES_ACTOR, INTEGRATEACTORVELOCITIES_V_STEP ); break; case FN_applyActorCentralForceLocal: //Sub Procedure rc_applyActorCentralForceLocal( APPLYACTORCENTRALFORCELOCAL_ACTOR, APPLYACTORCENTRALFORCELOCAL_X, APPLYACTORCENTRALFORCELOCAL_Y, APPLYACTORCENTRALFORCELOCAL_Z ); @@ -1623,10 +1620,10 @@ case FN_getActorAABB: //Sub Procedure rc_getActorAABB( GETACTORAABB_ACTOR, &GETACTORAABB_MIN_X, &GETACTORAABB_MIN_Y, &GETACTORAABB_MIN_Z, &GETACTORAABB_MAX_X, &GETACTORAABB_MAX_Y, &GETACTORAABB_MAX_Z ); break; case FN_computeActorImpulseDenominator: //Number Function - rc_push_num(rc_ computeActorImpulseDenominator( COMPUTEACTORIMPULSEDENOMINATOR_ACTOR, COMPUTEACTORIMPULSEDENOMINATOR_POS_X, COMPUTEACTORIMPULSEDENOMINATOR_POS_Y, COMPUTEACTORIMPULSEDENOMINATOR_POS_Z, COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_X, COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_Y, COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_Z )); + rc_push_num(rc_computeActorImpulseDenominator( COMPUTEACTORIMPULSEDENOMINATOR_ACTOR, COMPUTEACTORIMPULSEDENOMINATOR_POS_X, COMPUTEACTORIMPULSEDENOMINATOR_POS_Y, COMPUTEACTORIMPULSEDENOMINATOR_POS_Z, COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_X, COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_Y, COMPUTEACTORIMPULSEDENOMINATOR_NORMAL_Z )); break; case FN_computeActorAngularImpulseDenominator: //Number Function - rc_push_num(rc_ computeActorAngularImpulseDenominator( COMPUTEACTORANGULARIMPULSEDENOMINATOR_ACTOR, COMPUTEACTORANGULARIMPULSEDENOMINATOR_X, COMPUTEACTORANGULARIMPULSEDENOMINATOR_Y, COMPUTEACTORANGULARIMPULSEDENOMINATOR_Z )); + rc_push_num(rc_computeActorAngularImpulseDenominator( COMPUTEACTORANGULARIMPULSEDENOMINATOR_ACTOR, COMPUTEACTORANGULARIMPULSEDENOMINATOR_X, COMPUTEACTORANGULARIMPULSEDENOMINATOR_Y, COMPUTEACTORANGULARIMPULSEDENOMINATOR_Z )); break; case FN_setActorAngularFactor: //Sub Procedure rc_setActorAngularFactor( SETACTORANGULARFACTOR_ACTOR, SETACTORANGULARFACTOR_X, SETACTORANGULARFACTOR_Y, SETACTORANGULARFACTOR_Z ); @@ -1644,328 +1641,328 @@ case FN_getActorLocalInertia: //Sub Procedure rc_getActorLocalInertia( GETACTORLOCALINERTIA_ACTOR, &GETACTORLOCALINERTIA_X, &GETACTORLOCALINERTIA_Y, &GETACTORLOCALINERTIA_Z ); break; case FN_createPointConstraint: //Number Function - rc_push_num(rc_ createPointConstraint( CREATEPOINTCONSTRAINT_ACTORA, CREATEPOINTCONSTRAINT_PXA, CREATEPOINTCONSTRAINT_PYA, CREATEPOINTCONSTRAINT_PZA )); + rc_push_num(rc_createPointConstraint( CREATEPOINTCONSTRAINT_ACTORA, CREATEPOINTCONSTRAINT_PXA, CREATEPOINTCONSTRAINT_PYA, CREATEPOINTCONSTRAINT_PZA )); break; case FN_createPointConstraintEx: //Number Function - rc_push_num(rc_ createPointConstraintEx( CREATEPOINTCONSTRAINTEX_ACTORA, CREATEPOINTCONSTRAINTEX_ACTORB, CREATEPOINTCONSTRAINTEX_PXA, CREATEPOINTCONSTRAINTEX_PYA, CREATEPOINTCONSTRAINTEX_PZA, CREATEPOINTCONSTRAINTEX_PXB, CREATEPOINTCONSTRAINTEX_PYB, CREATEPOINTCONSTRAINTEX_PZB )); + rc_push_num(rc_createPointConstraintEx( CREATEPOINTCONSTRAINTEX_ACTORA, CREATEPOINTCONSTRAINTEX_ACTORB, CREATEPOINTCONSTRAINTEX_PXA, CREATEPOINTCONSTRAINTEX_PYA, CREATEPOINTCONSTRAINTEX_PZA, CREATEPOINTCONSTRAINTEX_PXB, CREATEPOINTCONSTRAINTEX_PYB, CREATEPOINTCONSTRAINTEX_PZB )); break; case FN_setConstraintPivotA: //Sub Procedure - rc_ setConstraintPivotA( SETCONSTRAINTPIVOTA_CONSTRAINT_ID, SETCONSTRAINTPIVOTA_X, SETCONSTRAINTPIVOTA_Y, SETCONSTRAINTPIVOTA_Z ); + rc_setConstraintPivotA( SETCONSTRAINTPIVOTA_CONSTRAINT_ID, SETCONSTRAINTPIVOTA_X, SETCONSTRAINTPIVOTA_Y, SETCONSTRAINTPIVOTA_Z ); break; case FN_setConstraintPivotB: //Sub Procedure - rc_ setConstraintPivotB( SETCONSTRAINTPIVOTB_CONSTRAINT_ID, SETCONSTRAINTPIVOTB_X, SETCONSTRAINTPIVOTB_Y, SETCONSTRAINTPIVOTB_Z ); + rc_setConstraintPivotB( SETCONSTRAINTPIVOTB_CONSTRAINT_ID, SETCONSTRAINTPIVOTB_X, SETCONSTRAINTPIVOTB_Y, SETCONSTRAINTPIVOTB_Z ); break; case FN_createHingeConstraint: //Number Function - rc_push_num(rc_ createHingeConstraint( CREATEHINGECONSTRAINT_ACTORA, CREATEHINGECONSTRAINT_PXA, CREATEHINGECONSTRAINT_PYA, CREATEHINGECONSTRAINT_PZA, CREATEHINGECONSTRAINT_AXA, CREATEHINGECONSTRAINT_AYA, CREATEHINGECONSTRAINT_AZA )); + rc_push_num(rc_createHingeConstraint( CREATEHINGECONSTRAINT_ACTORA, CREATEHINGECONSTRAINT_PXA, CREATEHINGECONSTRAINT_PYA, CREATEHINGECONSTRAINT_PZA, CREATEHINGECONSTRAINT_AXA, CREATEHINGECONSTRAINT_AYA, CREATEHINGECONSTRAINT_AZA )); break; case FN_createHingeConstraintEx: //Number Function - rc_push_num(rc_ createHingeConstraintEx( CREATEHINGECONSTRAINTEX_ACTORA, CREATEHINGECONSTRAINTEX_ACTORB, CREATEHINGECONSTRAINTEX_PXA, CREATEHINGECONSTRAINTEX_PYA, CREATEHINGECONSTRAINTEX_PZA, CREATEHINGECONSTRAINTEX_PXB, CREATEHINGECONSTRAINTEX_PYB, CREATEHINGECONSTRAINTEX_PZB, CREATEHINGECONSTRAINTEX_AXA, CREATEHINGECONSTRAINTEX_AYA, CREATEHINGECONSTRAINTEX_AZA, CREATEHINGECONSTRAINTEX_AXB, CREATEHINGECONSTRAINTEX_AYB, CREATEHINGECONSTRAINTEX_AZB )); + rc_push_num(rc_createHingeConstraintEx( CREATEHINGECONSTRAINTEX_ACTORA, CREATEHINGECONSTRAINTEX_ACTORB, CREATEHINGECONSTRAINTEX_PXA, CREATEHINGECONSTRAINTEX_PYA, CREATEHINGECONSTRAINTEX_PZA, CREATEHINGECONSTRAINTEX_PXB, CREATEHINGECONSTRAINTEX_PYB, CREATEHINGECONSTRAINTEX_PZB, CREATEHINGECONSTRAINTEX_AXA, CREATEHINGECONSTRAINTEX_AYA, CREATEHINGECONSTRAINTEX_AZA, CREATEHINGECONSTRAINTEX_AXB, CREATEHINGECONSTRAINTEX_AYB, CREATEHINGECONSTRAINTEX_AZB )); break; case FN_createSlideConstraint: //Number Function - rc_push_num(rc_ createSlideConstraint( CREATESLIDECONSTRAINT_ACTORA, CREATESLIDECONSTRAINT_FRAMEINB_MATRIX, CREATESLIDECONSTRAINT_USELINEARREFERENCEFRAMEA )); + rc_push_num(rc_createSlideConstraint( CREATESLIDECONSTRAINT_ACTORA, CREATESLIDECONSTRAINT_FRAMEINB_MATRIX, CREATESLIDECONSTRAINT_USELINEARREFERENCEFRAMEA )); break; case FN_createSlideConstraintEx: //Number Function - rc_push_num(rc_ createSlideConstraintEx( CREATESLIDECONSTRAINTEX_ACTORA, CREATESLIDECONSTRAINTEX_ACTORB, CREATESLIDECONSTRAINTEX_FRAMEINA_MATRIX, CREATESLIDECONSTRAINTEX_FRAMEINB_MATRIX, CREATESLIDECONSTRAINTEX_USELINEARREFERENCEFRAMEA )); + rc_push_num(rc_createSlideConstraintEx( CREATESLIDECONSTRAINTEX_ACTORA, CREATESLIDECONSTRAINTEX_ACTORB, CREATESLIDECONSTRAINTEX_FRAMEINA_MATRIX, CREATESLIDECONSTRAINTEX_FRAMEINB_MATRIX, CREATESLIDECONSTRAINTEX_USELINEARREFERENCEFRAMEA )); break; case FN_createConeConstraint: //Number Function - rc_push_num(rc_ createConeConstraint( CREATECONECONSTRAINT_ACTORA, CREATECONECONSTRAINT_RBAFRAME_MATRIX )); + rc_push_num(rc_createConeConstraint( CREATECONECONSTRAINT_ACTORA, CREATECONECONSTRAINT_RBAFRAME_MATRIX )); break; case FN_createConeConstraintEx: //Number Function - rc_push_num(rc_ createConeConstraintEx( CREATECONECONSTRAINTEX_ACTORA, CREATECONECONSTRAINTEX_ACTORB, CREATECONECONSTRAINTEX_RBAFRAME_MATRIX, CREATECONECONSTRAINTEX_RBBFRAME_MATRIX )); + rc_push_num(rc_createConeConstraintEx( CREATECONECONSTRAINTEX_ACTORA, CREATECONECONSTRAINTEX_ACTORB, CREATECONECONSTRAINTEX_RBAFRAME_MATRIX, CREATECONECONSTRAINTEX_RBBFRAME_MATRIX )); break; case FN_deleteConstraint: //Sub Procedure - rc_ deleteConstraint( DELETECONSTRAINT_CONSTRAINT_ID ); + rc_deleteConstraint( DELETECONSTRAINT_CONSTRAINT_ID ); break; case FN_getConstraintFrameOffsetA: //Sub Procedure - rc_ getConstraintFrameOffsetA( GETCONSTRAINTFRAMEOFFSETA_CONSTRAINT_ID, & GETCONSTRAINTFRAMEOFFSETA_X, & GETCONSTRAINTFRAMEOFFSETA_Y, & GETCONSTRAINTFRAMEOFFSETA_Z, & GETCONSTRAINTFRAMEOFFSETA_RX, & GETCONSTRAINTFRAMEOFFSETA_RY, & GETCONSTRAINTFRAMEOFFSETA_RZ ); + rc_getConstraintFrameOffsetA( GETCONSTRAINTFRAMEOFFSETA_CONSTRAINT_ID, & GETCONSTRAINTFRAMEOFFSETA_X, & GETCONSTRAINTFRAMEOFFSETA_Y, & GETCONSTRAINTFRAMEOFFSETA_Z, & GETCONSTRAINTFRAMEOFFSETA_RX, & GETCONSTRAINTFRAMEOFFSETA_RY, & GETCONSTRAINTFRAMEOFFSETA_RZ ); break; case FN_getConstraintFrameOffsetB: //Sub Procedure - rc_ getConstraintFrameOffsetB( GETCONSTRAINTFRAMEOFFSETB_CONSTRAINT_ID, & GETCONSTRAINTFRAMEOFFSETB_X, & GETCONSTRAINTFRAMEOFFSETB_Y, & GETCONSTRAINTFRAMEOFFSETB_Z, & GETCONSTRAINTFRAMEOFFSETB_RX, & GETCONSTRAINTFRAMEOFFSETB_RY, & GETCONSTRAINTFRAMEOFFSETB_RZ ); + rc_getConstraintFrameOffsetB( GETCONSTRAINTFRAMEOFFSETB_CONSTRAINT_ID, & GETCONSTRAINTFRAMEOFFSETB_X, & GETCONSTRAINTFRAMEOFFSETB_Y, & GETCONSTRAINTFRAMEOFFSETB_Z, & GETCONSTRAINTFRAMEOFFSETB_RX, & GETCONSTRAINTFRAMEOFFSETB_RY, & GETCONSTRAINTFRAMEOFFSETB_RZ ); break; case FN_useConstraintFrameOffset: //Sub Procedure - rc_ useConstraintFrameOffset( USECONSTRAINTFRAMEOFFSET_CONSTRAINT_ID, USECONSTRAINTFRAMEOFFSET_FLAG ); + rc_useConstraintFrameOffset( USECONSTRAINTFRAMEOFFSET_CONSTRAINT_ID, USECONSTRAINTFRAMEOFFSET_FLAG ); break; case FN_getHingeAngle: //Number Function - rc_push_num(rc_ getHingeAngle( GETHINGEANGLE_CONSTRAINT_ID )); + rc_push_num(rc_getHingeAngle( GETHINGEANGLE_CONSTRAINT_ID )); break; case FN_getHingeAngleEx: //Number Function - rc_push_num(rc_ getHingeAngleEx( GETHINGEANGLEEX_CONSTRAINT_ID, GETHINGEANGLEEX_T_MATRIXA, GETHINGEANGLEEX_T_MATRIXB )); + rc_push_num(rc_getHingeAngleEx( GETHINGEANGLEEX_CONSTRAINT_ID, GETHINGEANGLEEX_T_MATRIXA, GETHINGEANGLEEX_T_MATRIXB )); break; case FN_getConstraintBreakingImpulseThreshold: //Number Function - rc_push_num(rc_ getConstraintBreakingImpulseThreshold( GETCONSTRAINTBREAKINGIMPULSETHRESHOLD_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintBreakingImpulseThreshold( GETCONSTRAINTBREAKINGIMPULSETHRESHOLD_CONSTRAINT_ID )); break; case FN_getConstraintAFrame: //Number Function - rc_push_num(rc_ getConstraintAFrame( GETCONSTRAINTAFRAME_CONSTRAINT_ID, GETCONSTRAINTAFRAME_MA )); + rc_push_num(rc_getConstraintAFrame( GETCONSTRAINTAFRAME_CONSTRAINT_ID, GETCONSTRAINTAFRAME_MA )); break; case FN_getConstraintBFrame: //Number Function - rc_push_num(rc_ getConstraintBFrame( GETCONSTRAINTBFRAME_CONSTRAINT_ID, GETCONSTRAINTBFRAME_MA )); + rc_push_num(rc_getConstraintBFrame( GETCONSTRAINTBFRAME_CONSTRAINT_ID, GETCONSTRAINTBFRAME_MA )); break; case FN_setConstraintAxis: //Sub Procedure - rc_ setConstraintAxis( SETCONSTRAINTAXIS_CONSTRAINT_ID, SETCONSTRAINTAXIS_X, SETCONSTRAINTAXIS_Y, SETCONSTRAINTAXIS_Z ); + rc_setConstraintAxis( SETCONSTRAINTAXIS_CONSTRAINT_ID, SETCONSTRAINTAXIS_X, SETCONSTRAINTAXIS_Y, SETCONSTRAINTAXIS_Z ); break; case FN_setConstraintBreakingImpulseThreshold: //Sub Procedure - rc_ setConstraintBreakingImpulseThreshold( SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_CONSTRAINT_ID, SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_THRESHOLD ); + rc_setConstraintBreakingImpulseThreshold( SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_CONSTRAINT_ID, SETCONSTRAINTBREAKINGIMPULSETHRESHOLD_THRESHOLD ); break; case FN_setConstraintFrames: //Sub Procedure - rc_ setConstraintFrames( SETCONSTRAINTFRAMES_CONSTRAINT_ID, SETCONSTRAINTFRAMES_FRAMEA_MATRIX, SETCONSTRAINTFRAMES_FRAMEB_MATRIX ); + rc_setConstraintFrames( SETCONSTRAINTFRAMES_CONSTRAINT_ID, SETCONSTRAINTFRAMES_FRAMEA_MATRIX, SETCONSTRAINTFRAMES_FRAMEB_MATRIX ); break; case FN_setHingeLimit: //Sub Procedure - rc_ setHingeLimit( SETHINGELIMIT_CONSTRAINT_ID, SETHINGELIMIT_LOW, SETHINGELIMIT_HIGH, SETHINGELIMIT_SOFTNESS, SETHINGELIMIT_BIAS_FACTOR, SETHINGELIMIT_RELAXATION_FACTOR ); + rc_setHingeLimit( SETHINGELIMIT_CONSTRAINT_ID, SETHINGELIMIT_LOW, SETHINGELIMIT_HIGH, SETHINGELIMIT_SOFTNESS, SETHINGELIMIT_BIAS_FACTOR, SETHINGELIMIT_RELAXATION_FACTOR ); break; case FN_setConeLimit: //Sub Procedure - rc_ setConeLimit( SETCONELIMIT_CONSTRAINT_ID, SETCONELIMIT_SWINGSPAN1, SETCONELIMIT_SWINGSPAN2, SETCONELIMIT_TWISTSPAN, SETCONELIMIT_SOFTNESS, SETCONELIMIT_BIAS_FACTOR, SETCONELIMIT_RELAXATION_FACTOR ); + rc_setConeLimit( SETCONELIMIT_CONSTRAINT_ID, SETCONELIMIT_SWINGSPAN1, SETCONELIMIT_SWINGSPAN2, SETCONELIMIT_TWISTSPAN, SETCONELIMIT_SOFTNESS, SETCONELIMIT_BIAS_FACTOR, SETCONELIMIT_RELAXATION_FACTOR ); break; case FN_getConstraintLimitBiasFactor: //Number Function - rc_push_num(rc_ getConstraintLimitBiasFactor( GETCONSTRAINTLIMITBIASFACTOR_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintLimitBiasFactor( GETCONSTRAINTLIMITBIASFACTOR_CONSTRAINT_ID )); break; case FN_getLimitRelaxationFactor: //Number Function - rc_push_num(rc_ getLimitRelaxationFactor( GETLIMITRELAXATIONFACTOR_CONSTRAINT_ID )); + rc_push_num(rc_getLimitRelaxationFactor( GETLIMITRELAXATIONFACTOR_CONSTRAINT_ID )); break; case FN_getConstraintLimitSign: //Number Function - rc_push_num(rc_ getConstraintLimitSign( GETCONSTRAINTLIMITSIGN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintLimitSign( GETCONSTRAINTLIMITSIGN_CONSTRAINT_ID )); break; case FN_getHingeSolveLimit: //Number Function - rc_push_num(rc_ getHingeSolveLimit( GETHINGESOLVELIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getHingeSolveLimit( GETHINGESOLVELIMIT_CONSTRAINT_ID )); break; case FN_useHingeReferenceFrameA: //Sub Procedure - rc_ useHingeReferenceFrameA( USEHINGEREFERENCEFRAMEA_CONSTRAINT_ID, USEHINGEREFERENCEFRAMEA_FLAG ); + rc_useHingeReferenceFrameA( USEHINGEREFERENCEFRAMEA_CONSTRAINT_ID, USEHINGEREFERENCEFRAMEA_FLAG ); break; case FN_getConstraintAppliedImpulse: //Number Function - rc_push_num(rc_ getConstraintAppliedImpulse( GETCONSTRAINTAPPLIEDIMPULSE_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintAppliedImpulse( GETCONSTRAINTAPPLIEDIMPULSE_CONSTRAINT_ID )); break; case FN_getConstraintFixedActor: //Number Function - rc_push_num(rc_ getConstraintFixedActor( GETCONSTRAINTFIXEDACTOR_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintFixedActor( GETCONSTRAINTFIXEDACTOR_CONSTRAINT_ID )); break; case FN_getConstraintPivotA: //Sub Procedure - rc_ getConstraintPivotA( GETCONSTRAINTPIVOTA_CONSTRAINT_ID, & GETCONSTRAINTPIVOTA_X, & GETCONSTRAINTPIVOTA_Y, & GETCONSTRAINTPIVOTA_Z ); + rc_getConstraintPivotA( GETCONSTRAINTPIVOTA_CONSTRAINT_ID, & GETCONSTRAINTPIVOTA_X, & GETCONSTRAINTPIVOTA_Y, & GETCONSTRAINTPIVOTA_Z ); break; case FN_getConstraintPivotB: //Sub Procedure - rc_ getConstraintPivotB( GETCONSTRAINTPIVOTB_CONSTRAINT_ID, & GETCONSTRAINTPIVOTB_X, & GETCONSTRAINTPIVOTB_Y, & GETCONSTRAINTPIVOTB_Z ); + rc_getConstraintPivotB( GETCONSTRAINTPIVOTB_CONSTRAINT_ID, & GETCONSTRAINTPIVOTB_X, & GETCONSTRAINTPIVOTB_Y, & GETCONSTRAINTPIVOTB_Z ); break; case FN_getConstraintActorA: //Number Function - rc_push_num(rc_ getConstraintActorA( GETCONSTRAINTACTORA_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintActorA( GETCONSTRAINTACTORA_CONSTRAINT_ID )); break; case FN_getConstraintActorB: //Number Function - rc_push_num(rc_ getConstraintActorB( GETCONSTRAINTACTORB_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintActorB( GETCONSTRAINTACTORB_CONSTRAINT_ID )); break; case FN_setConstraintSolverIterations: //Sub Procedure - rc_ setConstraintSolverIterations( SETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID, SETCONSTRAINTSOLVERITERATIONS_NUM ); + rc_setConstraintSolverIterations( SETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID, SETCONSTRAINTSOLVERITERATIONS_NUM ); break; case FN_getConstraintBiasFactor: //Number Function - rc_push_num(rc_ getConstraintBiasFactor( GETCONSTRAINTBIASFACTOR_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintBiasFactor( GETCONSTRAINTBIASFACTOR_CONSTRAINT_ID )); break; case FN_getConstraintDamping: //Number Function - rc_push_num(rc_ getConstraintDamping( GETCONSTRAINTDAMPING_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintDamping( GETCONSTRAINTDAMPING_CONSTRAINT_ID )); break; case FN_getConstraintFixThresh: //Number Function - rc_push_num(rc_ getConstraintFixThresh( GETCONSTRAINTFIXTHRESH_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintFixThresh( GETCONSTRAINTFIXTHRESH_CONSTRAINT_ID )); break; case FN_getConstraintLimit: //Number Function - rc_push_num(rc_ getConstraintLimit( GETCONSTRAINTLIMIT_CONSTRAINT_ID, GETCONSTRAINTLIMIT_LIMIT_INDEX )); + rc_push_num(rc_getConstraintLimit( GETCONSTRAINTLIMIT_CONSTRAINT_ID, GETCONSTRAINTLIMIT_LIMIT_INDEX )); break; case FN_getConstraintLimitSoftness: //Number Function - rc_push_num(rc_ getConstraintLimitSoftness( GETCONSTRAINTLIMITSOFTNESS_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintLimitSoftness( GETCONSTRAINTLIMITSOFTNESS_CONSTRAINT_ID )); break; case FN_getConstraintSolverIterations: //Number Function - rc_push_num(rc_ getConstraintSolverIterations( GETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSolverIterations( GETCONSTRAINTSOLVERITERATIONS_CONSTRAINT_ID )); break; case FN_getConstraintAnglePoint: //Sub Procedure - rc_ getConstraintAnglePoint( GETCONSTRAINTANGLEPOINT_CONSTRAINT_ID, GETCONSTRAINTANGLEPOINT_ANGLE, GETCONSTRAINTANGLEPOINT_C_LEN, & GETCONSTRAINTANGLEPOINT_X, & GETCONSTRAINTANGLEPOINT_Y, & GETCONSTRAINTANGLEPOINT_Z ); + rc_getConstraintAnglePoint( GETCONSTRAINTANGLEPOINT_CONSTRAINT_ID, GETCONSTRAINTANGLEPOINT_ANGLE, GETCONSTRAINTANGLEPOINT_C_LEN, & GETCONSTRAINTANGLEPOINT_X, & GETCONSTRAINTANGLEPOINT_Y, & GETCONSTRAINTANGLEPOINT_Z ); break; case FN_getConstraintAngularOnly: //Number Function - rc_push_num(rc_ getConstraintAngularOnly( GETCONSTRAINTANGULARONLY_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintAngularOnly( GETCONSTRAINTANGULARONLY_CONSTRAINT_ID )); break; case FN_getConstraintSolveSwingLimit: //Number Function - rc_push_num(rc_ getConstraintSolveSwingLimit( GETCONSTRAINTSOLVESWINGLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSolveSwingLimit( GETCONSTRAINTSOLVESWINGLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintSolveTwistLimit: //Number Function - rc_push_num(rc_ getConstraintSolveTwistLimit( GETCONSTRAINTSOLVETWISTLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSolveTwistLimit( GETCONSTRAINTSOLVETWISTLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintSolveLimit: //Number Function - rc_push_num(rc_ getConstraintSolveLimit( GETCONSTRAINTSOLVELIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSolveLimit( GETCONSTRAINTSOLVELIMIT_CONSTRAINT_ID )); break; case FN_getConstraintSwingSpan1: //Number Function - rc_push_num(rc_ getConstraintSwingSpan1( GETCONSTRAINTSWINGSPAN1_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSwingSpan1( GETCONSTRAINTSWINGSPAN1_CONSTRAINT_ID )); break; case FN_getConstraintSwingSpan2: //Number Function - rc_push_num(rc_ getConstraintSwingSpan2( GETCONSTRAINTSWINGSPAN2_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSwingSpan2( GETCONSTRAINTSWINGSPAN2_CONSTRAINT_ID )); break; case FN_getConstraintTwistAngle: //Number Function - rc_push_num(rc_ getConstraintTwistAngle( GETCONSTRAINTTWISTANGLE_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintTwistAngle( GETCONSTRAINTTWISTANGLE_CONSTRAINT_ID )); break; case FN_getConstraintTwistLimitSign: //Number Function - rc_push_num(rc_ getConstraintTwistLimitSign( GETCONSTRAINTTWISTLIMITSIGN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintTwistLimitSign( GETCONSTRAINTTWISTLIMITSIGN_CONSTRAINT_ID )); break; case FN_getConstraintTwistSpan: //Number Function - rc_push_num(rc_ getConstraintTwistSpan( GETCONSTRAINTTWISTSPAN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintTwistSpan( GETCONSTRAINTTWISTSPAN_CONSTRAINT_ID )); break; case FN_setConstraintAngularOnly: //Sub Procedure - rc_ setConstraintAngularOnly( SETCONSTRAINTANGULARONLY_CONSTRAINT_ID, SETCONSTRAINTANGULARONLY_FLAG ); + rc_setConstraintAngularOnly( SETCONSTRAINTANGULARONLY_CONSTRAINT_ID, SETCONSTRAINTANGULARONLY_FLAG ); break; case FN_setConstraintDamping: //Sub Procedure - rc_ setConstraintDamping( SETCONSTRAINTDAMPING_CONSTRAINT_ID, SETCONSTRAINTDAMPING_DAMPING ); + rc_setConstraintDamping( SETCONSTRAINTDAMPING_CONSTRAINT_ID, SETCONSTRAINTDAMPING_DAMPING ); break; case FN_setConstraintFixThresh: //Sub Procedure - rc_ setConstraintFixThresh( SETCONSTRAINTFIXTHRESH_CONSTRAINT_ID, SETCONSTRAINTFIXTHRESH_FIXTHRESH ); + rc_setConstraintFixThresh( SETCONSTRAINTFIXTHRESH_CONSTRAINT_ID, SETCONSTRAINTFIXTHRESH_FIXTHRESH ); break; case FN_getConstraintAnchorA: //Sub Procedure - rc_ getConstraintAnchorA( GETCONSTRAINTANCHORA_CONSTRAINT_ID, & GETCONSTRAINTANCHORA_X, & GETCONSTRAINTANCHORA_Y, & GETCONSTRAINTANCHORA_Z ); + rc_getConstraintAnchorA( GETCONSTRAINTANCHORA_CONSTRAINT_ID, & GETCONSTRAINTANCHORA_X, & GETCONSTRAINTANCHORA_Y, & GETCONSTRAINTANCHORA_Z ); break; case FN_getConstraintAnchorB: //Sub Procedure - rc_ getConstraintAnchorB( GETCONSTRAINTANCHORB_CONSTRAINT_ID, & GETCONSTRAINTANCHORB_X, & GETCONSTRAINTANCHORB_Y, & GETCONSTRAINTANCHORB_Z ); + rc_getConstraintAnchorB( GETCONSTRAINTANCHORB_CONSTRAINT_ID, & GETCONSTRAINTANCHORB_X, & GETCONSTRAINTANCHORB_Y, & GETCONSTRAINTANCHORB_Z ); break; case FN_getConstraintAngDepth: //Number Function - rc_push_num(rc_ getConstraintAngDepth( GETCONSTRAINTANGDEPTH_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintAngDepth( GETCONSTRAINTANGDEPTH_CONSTRAINT_ID )); break; case FN_getConstraintAngularPos: //Number Function - rc_push_num(rc_ getConstraintAngularPos( GETCONSTRAINTANGULARPOS_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintAngularPos( GETCONSTRAINTANGULARPOS_CONSTRAINT_ID )); break; case FN_getConstraintDampingDirAng: //Number Function - rc_push_num(rc_ getConstraintDampingDirAng( GETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintDampingDirAng( GETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID )); break; case FN_getConstraintDampingDirLin: //Number Function - rc_push_num(rc_ getConstraintDampingDirLin( GETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintDampingDirLin( GETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID )); break; case FN_getConstraintDampingLimAng: //Number Function - rc_push_num(rc_ getConstraintDampingLimAng( GETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintDampingLimAng( GETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID )); break; case FN_getConstraintDampingLimLin: //Number Function - rc_push_num(rc_ getConstraintDampingLimLin( GETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintDampingLimLin( GETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID )); break; case FN_getConstraintDampingOrthoAng: //Number Function - rc_push_num(rc_ getConstraintDampingOrthoAng( GETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintDampingOrthoAng( GETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID )); break; case FN_getConstraintDampingOrthoLin: //Number Function - rc_push_num(rc_ getConstraintDampingOrthoLin( GETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintDampingOrthoLin( GETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID )); break; case FN_getConstraintLinearPos: //Number Function - rc_push_num(rc_ getConstraintLinearPos( GETCONSTRAINTLINEARPOS_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintLinearPos( GETCONSTRAINTLINEARPOS_CONSTRAINT_ID )); break; case FN_getConstraintLinDepth: //Number Function - rc_push_num(rc_ getConstraintLinDepth( GETCONSTRAINTLINDEPTH_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintLinDepth( GETCONSTRAINTLINDEPTH_CONSTRAINT_ID )); break; case FN_getConstraintLowerAngLimit: //Number Function - rc_push_num(rc_ getConstraintLowerAngLimit( GETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintLowerAngLimit( GETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintLowerLinLimit: //Number Function - rc_push_num(rc_ getConstraintLowerLinLimit( GETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintLowerLinLimit( GETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintRestitutionDirAng: //Number Function - rc_push_num(rc_ getConstraintRestitutionDirAng( GETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintRestitutionDirAng( GETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID )); break; case FN_getConstraintRestitutionDirLin: //Number Function - rc_push_num(rc_ getConstraintRestitutionDirLin( GETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintRestitutionDirLin( GETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID )); break; case FN_getConstraintRestitutionLimAng: //Number Function - rc_push_num(rc_ getConstraintRestitutionLimAng( GETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintRestitutionLimAng( GETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID )); break; case FN_getConstraintRestitutionLimLin: //Number Function - rc_push_num(rc_ getConstraintRestitutionLimLin( GETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintRestitutionLimLin( GETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID )); break; case FN_getConstraintRestitutionOrthoAng: //Number Function - rc_push_num(rc_ getConstraintRestitutionOrthoAng( GETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintRestitutionOrthoAng( GETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID )); break; case FN_getConstraintRestitutionOrthoLin: //Number Function - rc_push_num(rc_ getConstraintRestitutionOrthoLin( GETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintRestitutionOrthoLin( GETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID )); break; case FN_getConstraintSoftnessDirAng: //Number Function - rc_push_num(rc_ getConstraintSoftnessDirAng( GETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSoftnessDirAng( GETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID )); break; case FN_getConstraintSoftnessDirLin: //Number Function - rc_push_num(rc_ getConstraintSoftnessDirLin( GETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSoftnessDirLin( GETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID )); break; case FN_getConstraintSoftnessLimAng: //Number Function - rc_push_num(rc_ getConstraintSoftnessLimAng( GETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSoftnessLimAng( GETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID )); break; case FN_getConstraintSoftnessLimLin: //Number Function - rc_push_num(rc_ getConstraintSoftnessLimLin( GETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSoftnessLimLin( GETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID )); break; case FN_getConstraintSoftnessOrthoAng: //Number Function - rc_push_num(rc_ getConstraintSoftnessOrthoAng( GETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSoftnessOrthoAng( GETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID )); break; case FN_getConstraintSoftnessOrthoLin: //Number Function - rc_push_num(rc_ getConstraintSoftnessOrthoLin( GETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSoftnessOrthoLin( GETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID )); break; case FN_getConstraintSolveAngLimit: //Number Function - rc_push_num(rc_ getConstraintSolveAngLimit( GETCONSTRAINTSOLVEANGLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSolveAngLimit( GETCONSTRAINTSOLVEANGLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintSolveLinLimit: //Number Function - rc_push_num(rc_ getConstraintSolveLinLimit( GETCONSTRAINTSOLVELINLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintSolveLinLimit( GETCONSTRAINTSOLVELINLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintUpperAngLimit: //Number Function - rc_push_num(rc_ getConstraintUpperAngLimit( GETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintUpperAngLimit( GETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintUpperLinLimit: //Number Function - rc_push_num(rc_ getConstraintUpperLinLimit( GETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintUpperLinLimit( GETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID )); break; case FN_getConstraintUseFrameOffset: //Number Function - rc_push_num(rc_ getConstraintUseFrameOffset( GETCONSTRAINTUSEFRAMEOFFSET_CONSTRAINT_ID )); + rc_push_num(rc_getConstraintUseFrameOffset( GETCONSTRAINTUSEFRAMEOFFSET_CONSTRAINT_ID )); break; case FN_setConstraintDampingDirAng: //Sub Procedure - rc_ setConstraintDampingDirAng( SETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGDIRANG_N ); + rc_setConstraintDampingDirAng( SETCONSTRAINTDAMPINGDIRANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGDIRANG_N ); break; case FN_setConstraintDampingDirLin: //Sub Procedure - rc_ setConstraintDampingDirLin( SETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGDIRLIN_N ); + rc_setConstraintDampingDirLin( SETCONSTRAINTDAMPINGDIRLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGDIRLIN_N ); break; case FN_setConstraintDampingLimAng: //Sub Procedure - rc_ setConstraintDampingLimAng( SETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGLIMANG_N ); + rc_setConstraintDampingLimAng( SETCONSTRAINTDAMPINGLIMANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGLIMANG_N ); break; case FN_setConstraintDampingLimLin: //Sub Procedure - rc_ setConstraintDampingLimLin( SETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGLIMLIN_N ); + rc_setConstraintDampingLimLin( SETCONSTRAINTDAMPINGLIMLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGLIMLIN_N ); break; case FN_setConstraintDampingOrthoAng: //Sub Procedure - rc_ setConstraintDampingOrthoAng( SETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGORTHOANG_N ); + rc_setConstraintDampingOrthoAng( SETCONSTRAINTDAMPINGORTHOANG_CONSTRAINT_ID, SETCONSTRAINTDAMPINGORTHOANG_N ); break; case FN_setConstraintDampingOrthoLin: //Sub Procedure - rc_ setConstraintDampingOrthoLin( SETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGORTHOLIN_N ); + rc_setConstraintDampingOrthoLin( SETCONSTRAINTDAMPINGORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTDAMPINGORTHOLIN_N ); break; case FN_setConstraintLowerAngLimit: //Sub Procedure - rc_ setConstraintLowerAngLimit( SETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID, SETCONSTRAINTLOWERANGLIMIT_N ); + rc_setConstraintLowerAngLimit( SETCONSTRAINTLOWERANGLIMIT_CONSTRAINT_ID, SETCONSTRAINTLOWERANGLIMIT_N ); break; case FN_setConstraintLowerLinLimit: //Sub Procedure - rc_ setConstraintLowerLinLimit( SETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID, SETCONSTRAINTLOWERLINLIMIT_N ); + rc_setConstraintLowerLinLimit( SETCONSTRAINTLOWERLINLIMIT_CONSTRAINT_ID, SETCONSTRAINTLOWERLINLIMIT_N ); break; case FN_setConstraintRestitutionDirAng: //Sub Procedure - rc_ setConstraintRestitutionDirAng( SETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONDIRANG_N ); + rc_setConstraintRestitutionDirAng( SETCONSTRAINTRESTITUTIONDIRANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONDIRANG_N ); break; case FN_setConstraintRestitutionDirLin: //Sub Procedure - rc_ setConstraintRestitutionDirLin( SETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONDIRLIN_N ); + rc_setConstraintRestitutionDirLin( SETCONSTRAINTRESTITUTIONDIRLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONDIRLIN_N ); break; case FN_setConstraintRestitutionLimAng: //Sub Procedure - rc_ setConstraintRestitutionLimAng( SETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONLIMANG_N ); + rc_setConstraintRestitutionLimAng( SETCONSTRAINTRESTITUTIONLIMANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONLIMANG_N ); break; case FN_setConstraintRestitutionLimLin: //Sub Procedure - rc_ setConstraintRestitutionLimLin( SETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONLIMLIN_N ); + rc_setConstraintRestitutionLimLin( SETCONSTRAINTRESTITUTIONLIMLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONLIMLIN_N ); break; case FN_setConstraintRestitutionOrthoAng: //Sub Procedure - rc_ setConstraintRestitutionOrthoAng( SETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONORTHOANG_N ); + rc_setConstraintRestitutionOrthoAng( SETCONSTRAINTRESTITUTIONORTHOANG_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONORTHOANG_N ); break; case FN_setConstraintRestitutionOrthoLin: //Sub Procedure - rc_ setConstraintRestitutionOrthoLin( SETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONORTHOLIN_N ); + rc_setConstraintRestitutionOrthoLin( SETCONSTRAINTRESTITUTIONORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTRESTITUTIONORTHOLIN_N ); break; case FN_setConstraintSoftnessDirAng: //Sub Procedure - rc_ setConstraintSoftnessDirAng( SETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSDIRANG_N ); + rc_setConstraintSoftnessDirAng( SETCONSTRAINTSOFTNESSDIRANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSDIRANG_N ); break; case FN_setConstraintSoftnessDirLin: //Sub Procedure - rc_ setConstraintSoftnessDirLin( SETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSDIRLIN_N ); + rc_setConstraintSoftnessDirLin( SETCONSTRAINTSOFTNESSDIRLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSDIRLIN_N ); break; case FN_setConstraintSoftnessLimAng: //Sub Procedure - rc_ setConstraintSoftnessLimAng( SETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSLIMANG_N ); + rc_setConstraintSoftnessLimAng( SETCONSTRAINTSOFTNESSLIMANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSLIMANG_N ); break; case FN_setConstraintSoftnessLimLin: //Sub Procedure - rc_ setConstraintSoftnessLimLin( SETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSLIMLIN_N ); + rc_setConstraintSoftnessLimLin( SETCONSTRAINTSOFTNESSLIMLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSLIMLIN_N ); break; case FN_setConstraintSoftnessOrthoAng: //Sub Procedure - rc_ setConstraintSoftnessOrthoAng( SETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSORTHOANG_N ); + rc_setConstraintSoftnessOrthoAng( SETCONSTRAINTSOFTNESSORTHOANG_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSORTHOANG_N ); break; case FN_setConstraintSoftnessOrthoLin: //Sub Procedure - rc_ setConstraintSoftnessOrthoLin( SETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSORTHOLIN_N ); + rc_setConstraintSoftnessOrthoLin( SETCONSTRAINTSOFTNESSORTHOLIN_CONSTRAINT_ID, SETCONSTRAINTSOFTNESSORTHOLIN_N ); break; case FN_setConstraintUpperAngLimit: //Sub Procedure - rc_ setConstraintUpperAngLimit( SETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID, SETCONSTRAINTUPPERANGLIMIT_N ); + rc_setConstraintUpperAngLimit( SETCONSTRAINTUPPERANGLIMIT_CONSTRAINT_ID, SETCONSTRAINTUPPERANGLIMIT_N ); break; case FN_setConstraintUpperLinLimit: //Sub Procedure - rc_ setConstraintUpperLinLimit( SETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID, SETCONSTRAINTUPPERLINLIMIT_N ); + rc_setConstraintUpperLinLimit( SETCONSTRAINTUPPERLINLIMIT_CONSTRAINT_ID, SETCONSTRAINTUPPERLINLIMIT_N ); break; case FN_SetCameraPosition: //Sub Procedure rc_setCameraPosition( SETCAMERAPOSITION_X, SETCAMERAPOSITION_Y, SETCAMERAPOSITION_Z ); @@ -2031,133 +2028,133 @@ case FN_SetWorld3DTimeStep: //Sub Procedure rc_setWorld3DTimeStep( SETWORLD3DTIMESTEP_TS ); break; case FN_startParticleEmitter: //Sub Procedure - rc_ startParticleEmitter( STARTPARTICLEEMITTER_ACTOR ); + rc_startParticleEmitter( STARTPARTICLEEMITTER_ACTOR ); break; case FN_stopParticleEmitter: //Sub Procedure - rc_ stopParticleEmitter( STOPPARTICLEEMITTER_ACTOR ); + rc_stopParticleEmitter( STOPPARTICLEEMITTER_ACTOR ); break; case FN_setParticleDirection: //Sub Procedure - rc_ setParticleDirection( SETPARTICLEDIRECTION_ACTOR, SETPARTICLEDIRECTION_X, SETPARTICLEDIRECTION_Y, SETPARTICLEDIRECTION_Z ); + rc_setParticleDirection( SETPARTICLEDIRECTION_ACTOR, SETPARTICLEDIRECTION_X, SETPARTICLEDIRECTION_Y, SETPARTICLEDIRECTION_Z ); break; case FN_getParticleDirection: //Sub Procedure - rc_ getParticleDirection( GETPARTICLEDIRECTION_ACTOR, & GETPARTICLEDIRECTION_X, & GETPARTICLEDIRECTION_Y, & GETPARTICLEDIRECTION_Z ); + rc_getParticleDirection( GETPARTICLEDIRECTION_ACTOR, & GETPARTICLEDIRECTION_X, & GETPARTICLEDIRECTION_Y, & GETPARTICLEDIRECTION_Z ); break; case FN_useParticleEveryMeshVertex: //Sub Procedure - rc_ useParticleEveryMeshVertex( USEPARTICLEEVERYMESHVERTEX_ACTOR, USEPARTICLEEVERYMESHVERTEX_FLAG ); + rc_useParticleEveryMeshVertex( USEPARTICLEEVERYMESHVERTEX_ACTOR, USEPARTICLEEVERYMESHVERTEX_FLAG ); break; case FN_particleIsUsingEveryMeshVertex: //Number Function - rc_push_num(rc_ particleIsUsingEveryMeshVertex( PARTICLEISUSINGEVERYMESHVERTEX_ACTOR )); + rc_push_num(rc_particleIsUsingEveryMeshVertex( PARTICLEISUSINGEVERYMESHVERTEX_ACTOR )); break; case FN_setParticleNormalDirectionMod: //Sub Procedure - rc_ setParticleNormalDirectionMod( SETPARTICLENORMALDIRECTIONMOD_ACTOR, SETPARTICLENORMALDIRECTIONMOD_MOD ); + rc_setParticleNormalDirectionMod( SETPARTICLENORMALDIRECTIONMOD_ACTOR, SETPARTICLENORMALDIRECTIONMOD_ND_MOD ); break; case FN_getParticleNormalDirectionMod: //Number Function - rc_push_num(rc_ getParticleNormalDirectionMod( GETPARTICLENORMALDIRECTIONMOD_ACTOR )); + rc_push_num(rc_getParticleNormalDirectionMod( GETPARTICLENORMALDIRECTIONMOD_ACTOR )); break; case FN_useParticleNormalDirection: //Sub Procedure - rc_ useParticleNormalDirection( USEPARTICLENORMALDIRECTION_ACTOR, USEPARTICLENORMALDIRECTION_FLAG ); + rc_useParticleNormalDirection( USEPARTICLENORMALDIRECTION_ACTOR, USEPARTICLENORMALDIRECTION_FLAG ); break; case FN_particleIsUsingNormalDirection: //Number Function - rc_push_num(rc_ particleIsUsingNormalDirection( PARTICLEISUSINGNORMALDIRECTION_ACTOR )); + rc_push_num(rc_particleIsUsingNormalDirection( PARTICLEISUSINGNORMALDIRECTION_ACTOR )); break; case FN_setParticleMesh: //Sub Procedure - rc_ setParticleMesh( SETPARTICLEMESH_ACTOR, SETPARTICLEMESH_MESH ); + rc_setParticleMesh( SETPARTICLEMESH_ACTOR, SETPARTICLEMESH_MESH ); break; case FN_setParticleMinParticlesPerSecond: //Sub Procedure - rc_ setParticleMinParticlesPerSecond( SETPARTICLEMINPARTICLESPERSECOND_ACTOR, SETPARTICLEMINPARTICLESPERSECOND_MINPARTICLESPERSECOND ); + rc_setParticleMinParticlesPerSecond( SETPARTICLEMINPARTICLESPERSECOND_ACTOR, SETPARTICLEMINPARTICLESPERSECOND_MINPARTICLESPERSECOND ); break; case FN_getParticleMinParticlesPerSecond: //Number Function - rc_push_num(rc_ getParticleMinParticlesPerSecond( GETPARTICLEMINPARTICLESPERSECOND_ACTOR )); + rc_push_num(rc_getParticleMinParticlesPerSecond( GETPARTICLEMINPARTICLESPERSECOND_ACTOR )); break; case FN_setParticleMaxParticlesPerSecond: //Sub Procedure - rc_ setParticleMaxParticlesPerSecond( SETPARTICLEMAXPARTICLESPERSECOND_ACTOR, SETPARTICLEMAXPARTICLESPERSECOND_MAXPARTICLESPERSECOND ); + rc_setParticleMaxParticlesPerSecond( SETPARTICLEMAXPARTICLESPERSECOND_ACTOR, SETPARTICLEMAXPARTICLESPERSECOND_MAXPARTICLESPERSECOND ); break; case FN_getParticleMaxParticlesPerSecond: //Number Function - rc_push_num(rc_ getParticleMaxParticlesPerSecond( GETPARTICLEMAXPARTICLESPERSECOND_ACTOR )); + rc_push_num(rc_getParticleMaxParticlesPerSecond( GETPARTICLEMAXPARTICLESPERSECOND_ACTOR )); break; case FN_setParticleMinStartColor: //Sub Procedure - rc_ setParticleMinStartColor( SETPARTICLEMINSTARTCOLOR_ACTOR, SETPARTICLEMINSTARTCOLOR_COLOR ); + rc_setParticleMinStartColor( SETPARTICLEMINSTARTCOLOR_ACTOR, SETPARTICLEMINSTARTCOLOR_COLOR ); break; case FN_getParticleMinStartColor: //Number Function - rc_push_num(rc_ getParticleMinStartColor( GETPARTICLEMINSTARTCOLOR_ACTOR )); + rc_push_num(rc_getParticleMinStartColor( GETPARTICLEMINSTARTCOLOR_ACTOR )); break; case FN_setParticleMaxStartColor: //Sub Procedure - rc_ setParticleMaxStartColor( SETPARTICLEMAXSTARTCOLOR_ACTOR, SETPARTICLEMAXSTARTCOLOR_COLOR ); + rc_setParticleMaxStartColor( SETPARTICLEMAXSTARTCOLOR_ACTOR, SETPARTICLEMAXSTARTCOLOR_COLOR ); break; case FN_getParticleMaxStartColor: //Number Function - rc_push_num(rc_ getParticleMaxStartColor( GETPARTICLEMAXSTARTCOLOR_ACTOR )); + rc_push_num(rc_getParticleMaxStartColor( GETPARTICLEMAXSTARTCOLOR_ACTOR )); break; case FN_setParticleMinLife: //Sub Procedure - rc_ setParticleMinLife( SETPARTICLEMINLIFE_ACTOR, SETPARTICLEMINLIFE_MINLIFE ); + rc_setParticleMinLife( SETPARTICLEMINLIFE_ACTOR, SETPARTICLEMINLIFE_MINLIFE ); break; case FN_getParticleMinLife: //Number Function - rc_push_num(rc_ getParticleMinLife( GETPARTICLEMINLIFE_ACTOR )); + rc_push_num(rc_getParticleMinLife( GETPARTICLEMINLIFE_ACTOR )); break; case FN_setParticleMaxLife: //Sub Procedure - rc_ setParticleMaxLife( SETPARTICLEMAXLIFE_ACTOR, SETPARTICLEMAXLIFE_MAXLIFE ); + rc_setParticleMaxLife( SETPARTICLEMAXLIFE_ACTOR, SETPARTICLEMAXLIFE_MAXLIFE ); break; case FN_getParticleMaxLife: //Number Function - rc_push_num(rc_ getParticleMaxLife( GETPARTICLEMAXLIFE_ACTOR )); + rc_push_num(rc_getParticleMaxLife( GETPARTICLEMAXLIFE_ACTOR )); break; case FN_setParticleMaxAngle: //Sub Procedure - rc_ setParticleMaxAngle( SETPARTICLEMAXANGLE_ACTOR, SETPARTICLEMAXANGLE_MAXANGLE ); + rc_setParticleMaxAngle( SETPARTICLEMAXANGLE_ACTOR, SETPARTICLEMAXANGLE_MAXANGLE ); break; case FN_getParticleMaxAngle: //Number Function - rc_push_num(rc_ getParticleMaxAngle( GETPARTICLEMAXANGLE_ACTOR )); + rc_push_num(rc_getParticleMaxAngle( GETPARTICLEMAXANGLE_ACTOR )); break; case FN_setParticleMinStartSize: //Sub Procedure - rc_ setParticleMinStartSize( SETPARTICLEMINSTARTSIZE_ACTOR, SETPARTICLEMINSTARTSIZE_W, SETPARTICLEMINSTARTSIZE_H ); + rc_setParticleMinStartSize( SETPARTICLEMINSTARTSIZE_ACTOR, SETPARTICLEMINSTARTSIZE_W, SETPARTICLEMINSTARTSIZE_H ); break; case FN_getParticleMinStartSize: //Sub Procedure - rc_ getParticleMinStartSize( GETPARTICLEMINSTARTSIZE_ACTOR, & GETPARTICLEMINSTARTSIZE_W, & GETPARTICLEMINSTARTSIZE_H ); + rc_getParticleMinStartSize( GETPARTICLEMINSTARTSIZE_ACTOR, & GETPARTICLEMINSTARTSIZE_W, & GETPARTICLEMINSTARTSIZE_H ); break; case FN_setParticleMaxStartSize: //Sub Procedure - rc_ setParticleMaxStartSize( SETPARTICLEMAXSTARTSIZE_ACTOR, SETPARTICLEMAXSTARTSIZE_W, SETPARTICLEMAXSTARTSIZE_H ); + rc_setParticleMaxStartSize( SETPARTICLEMAXSTARTSIZE_ACTOR, SETPARTICLEMAXSTARTSIZE_W, SETPARTICLEMAXSTARTSIZE_H ); break; case FN_getParticleMaxStartSize: //Sub Procedure - rc_ getParticleMaxStartSize( GETPARTICLEMAXSTARTSIZE_ACTOR, & GETPARTICLEMAXSTARTSIZE_W, & GETPARTICLEMAXSTARTSIZE_H ); + rc_getParticleMaxStartSize( GETPARTICLEMAXSTARTSIZE_ACTOR, & GETPARTICLEMAXSTARTSIZE_W, & GETPARTICLEMAXSTARTSIZE_H ); break; case FN_setParticleCenter: //Sub Procedure - rc_ setParticleCenter( SETPARTICLECENTER_ACTOR, SETPARTICLECENTER_X, SETPARTICLECENTER_Y, SETPARTICLECENTER_Z ); + rc_setParticleCenter( SETPARTICLECENTER_ACTOR, SETPARTICLECENTER_X, SETPARTICLECENTER_Y, SETPARTICLECENTER_Z ); break; case FN_getParticleCenter: //Sub Procedure - rc_ getParticleCenter( GETPARTICLECENTER_ACTOR, & GETPARTICLECENTER_X, & GETPARTICLECENTER_Y, & GETPARTICLECENTER_Z ); + rc_getParticleCenter( GETPARTICLECENTER_ACTOR, & GETPARTICLECENTER_X, & GETPARTICLECENTER_Y, & GETPARTICLECENTER_Z ); break; case FN_setParticleRadius: //Sub Procedure - rc_ setParticleRadius( SETPARTICLERADIUS_ACTOR, SETPARTICLERADIUS_RADIUS ); + rc_setParticleRadius( SETPARTICLERADIUS_ACTOR, SETPARTICLERADIUS_RADIUS ); break; case FN_getParticleRadius: //Number Function - rc_push_num(rc_ getParticleRadius( GETPARTICLERADIUS_ACTOR )); + rc_push_num(rc_getParticleRadius( GETPARTICLERADIUS_ACTOR )); break; case FN_setParticleRingThickness: //Sub Procedure - rc_ setParticleRingThickness( SETPARTICLERINGTHICKNESS_ACTOR, SETPARTICLERINGTHICKNESS_RINGTHICKNESS ); + rc_setParticleRingThickness( SETPARTICLERINGTHICKNESS_ACTOR, SETPARTICLERINGTHICKNESS_RINGTHICKNESS ); break; case FN_getParticleRingThickness: //Number Function - rc_push_num(rc_ getParticleRingThickness( GETPARTICLERINGTHICKNESS_ACTOR )); + rc_push_num(rc_getParticleRingThickness( GETPARTICLERINGTHICKNESS_ACTOR )); break; case FN_setParticleBox: //Sub Procedure - rc_ setParticleBox( SETPARTICLEBOX_ACTOR, SETPARTICLEBOX_MIN_X, SETPARTICLEBOX_MIN_Y, SETPARTICLEBOX_MIN_Z, SETPARTICLEBOX_MAX_X, SETPARTICLEBOX_MAX_Y, SETPARTICLEBOX_MAX_Z ); + rc_setParticleBox( SETPARTICLEBOX_ACTOR, SETPARTICLEBOX_MIN_X, SETPARTICLEBOX_MIN_Y, SETPARTICLEBOX_MIN_Z, SETPARTICLEBOX_MAX_X, SETPARTICLEBOX_MAX_Y, SETPARTICLEBOX_MAX_Z ); break; case FN_getParticleBox: //Sub Procedure - rc_ getParticleBox( GETPARTICLEBOX_ACTOR, & GETPARTICLEBOX_MIN_X, & GETPARTICLEBOX_MIN_Y, & GETPARTICLEBOX_MIN_Z, & GETPARTICLEBOX_MAX_X, & GETPARTICLEBOX_MAX_Y, & GETPARTICLEBOX_MAX_Z ); + rc_getParticleBox( GETPARTICLEBOX_ACTOR, & GETPARTICLEBOX_MIN_X, & GETPARTICLEBOX_MIN_Y, & GETPARTICLEBOX_MIN_Z, & GETPARTICLEBOX_MAX_X, & GETPARTICLEBOX_MAX_Y, & GETPARTICLEBOX_MAX_Z ); break; case FN_setParticleNormal: //Sub Procedure - rc_ setParticleNormal( SETPARTICLENORMAL_ACTOR, SETPARTICLENORMAL_X, SETPARTICLENORMAL_Y, SETPARTICLENORMAL_Z ); + rc_setParticleNormal( SETPARTICLENORMAL_ACTOR, SETPARTICLENORMAL_X, SETPARTICLENORMAL_Y, SETPARTICLENORMAL_Z ); break; case FN_getParticleNormal: //Sub Procedure - rc_ getParticleNormal( GETPARTICLENORMAL_ACTOR, & GETPARTICLENORMAL_X, & GETPARTICLENORMAL_Y, & GETPARTICLENORMAL_Z ); + rc_getParticleNormal( GETPARTICLENORMAL_ACTOR, & GETPARTICLENORMAL_X, & GETPARTICLENORMAL_Y, & GETPARTICLENORMAL_Z ); break; case FN_setParticleLength: //Sub Procedure - rc_ setParticleLength( SETPARTICLELENGTH_ACTOR, SETPARTICLELENGTH_P_LEN ); + rc_setParticleLength( SETPARTICLELENGTH_ACTOR, SETPARTICLELENGTH_P_LEN ); break; case FN_getParticleLength: //Number Function - rc_push_num(rc_ getParticleLength( GETPARTICLELENGTH_ACTOR )); + rc_push_num(rc_getParticleLength( GETPARTICLELENGTH_ACTOR )); break; case FN_useParticleOutlineOnly: //Sub Procedure - rc_ useParticleOutlineOnly( USEPARTICLEOUTLINEONLY_ACTOR, USEPARTICLEOUTLINEONLY_FLAG ); + rc_useParticleOutlineOnly( USEPARTICLEOUTLINEONLY_ACTOR, USEPARTICLEOUTLINEONLY_FLAG ); break; case FN_particleIsUsingOutlineOnly: //Number Function - rc_push_num(rc_ particleIsUsingOutlineOnly( PARTICLEISUSINGOUTLINEONLY_ACTOR )); + rc_push_num(rc_particleIsUsingOutlineOnly( PARTICLEISUSINGOUTLINEONLY_ACTOR )); break; case FN_lightIsCastingShadow: //Number Function rc_push_num(rc_lightIsCastingShadow( LIGHTISCASTINGSHADOW_ACTOR )); @@ -2250,13 +2247,13 @@ case FN_setWaterWindForce: //Sub Procedure rc_setWaterWindForce( SETWATERWINDFORCE_ACTOR, SETWATERWINDFORCE_F ); break; case FN_getWaterWindForce: //Number Function - rc_push_num(rc_ getWaterWindForce( GETWATERWINDFORCE_ACTOR )); + rc_push_num(rc_getWaterWindForce( GETWATERWINDFORCE_ACTOR )); break; case FN_setWaterWaveHeight: //Sub Procedure rc_setWaterWaveHeight( SETWATERWAVEHEIGHT_ACTOR, SETWATERWAVEHEIGHT_H ); break; case FN_getWaterWaveHeight: //Number Function - rc_push_num(rc_ getWaterWaveHeight( GETWATERWAVEHEIGHT_ACTOR )); + rc_push_num(rc_getWaterWaveHeight( GETWATERWAVEHEIGHT_ACTOR )); break; case FN_setWaterWindDirection: //Sub Procedure rc_setWaterWindDirection( SETWATERWINDDIRECTION_ACTOR, SETWATERWINDDIRECTION_X, SETWATERWINDDIRECTION_Z ); @@ -2274,7 +2271,7 @@ case FN_setWaterColorBlendFactor: //Sub Procedure rc_setWaterColorBlendFactor( SETWATERCOLORBLENDFACTOR_ACTOR, SETWATERCOLORBLENDFACTOR_CBFACTOR ); break; case FN_getWaterColorBlendFactor: //Number Function - rc_push_num(rc_ getWaterColorBlendFactor( GETWATERCOLORBLENDFACTOR_ACTOR )); + rc_push_num(rc_getWaterColorBlendFactor( GETWATERCOLORBLENDFACTOR_ACTOR )); break; case FN_SetActorAnimation: //Sub Procedure rc_setActorAnimation( SETACTORANIMATION_ACTOR, SETACTORANIMATION_START_FRAME, SETACTORANIMATION_END_FRAME ); @@ -2285,11 +2282,11 @@ case FN_SetActorAnimationSpeed: //Sub Procedure case FN_SetActorFrame: //Sub Procedure rc_setActorFrame( SETACTORFRAME_ACTOR, SETACTORFRAME_FRAME ); break; -case FN_SetActorMD2Animation: //Number Function - rc_push_num(rc_setActorMD2Animation( SETACTORMD2ANIMATION_ACTOR, SETACTORMD2ANIMATION_ANIM )); +case FN_SetActorMD2Animation: //Sub Procedure + rc_setActorMD2Animation( SETACTORMD2ANIMATION_ACTOR, SETACTORMD2ANIMATION_ANIM ); break; -case FN_SetActorMD2AnimationByName: //Number Function - rc_push_num(rc_setActorMD2AnimationByName( SETACTORMD2ANIMATIONBYNAME_ACTOR, SETACTORMD2ANIMATIONBYNAME_ANIM_NAME$ )); +case FN_SetActorMD2AnimationByName: //Sub Procedure + rc_setActorMD2AnimationByName( SETACTORMD2ANIMATIONBYNAME_ACTOR, SETACTORMD2ANIMATIONBYNAME_ANIM_NAME$ ); break; case FN_GetActorAnimationSpeed: //Number Function rc_push_num(rc_getActorAnimationSpeed( GETACTORANIMATIONSPEED_ACTOR )); @@ -2322,177 +2319,177 @@ case FN_loopActorAnimation: //Sub Procedure rc_loopActorAnimation( LOOPACTORANIMATION_ACTOR, LOOPACTORANIMATION_FLAG ); break; case FN_createMaterial: //Number Function - rc_push_num(rc_ createMaterial( )); + rc_push_num(rc_createMaterial( )); break; case FN_deleteMaterial: //Sub Procedure - rc_ deleteMaterial( DELETEMATERIAL_MATERIAL_ID ); + rc_deleteMaterial( DELETEMATERIAL_MATERIAL_ID ); break; case FN_setActorMaterial: //Sub Procedure - rc_ setActorMaterial( SETACTORMATERIAL_ACTOR, SETACTORMATERIAL_MATERIAL_NUM, SETACTORMATERIAL_MATERIAL_ID ); + rc_setActorMaterial( SETACTORMATERIAL_ACTOR, SETACTORMATERIAL_MATERIAL_NUM, SETACTORMATERIAL_MATERIAL_ID ); break; case FN_getActorMaterial: //Number Function - rc_push_num(rc_ getActorMaterial( GETACTORMATERIAL_ACTOR, GETACTORMATERIAL_MATERIAL_NUM )); + rc_push_num(rc_getActorMaterial( GETACTORMATERIAL_ACTOR, GETACTORMATERIAL_MATERIAL_NUM )); break; case FN_copyActorMaterial: //Number Function - rc_push_num(rc_ copyActorMaterial( COPYACTORMATERIAL_ACTOR, COPYACTORMATERIAL_MATERIAL_NUM )); + rc_push_num(rc_copyActorMaterial( COPYACTORMATERIAL_ACTOR, COPYACTORMATERIAL_MATERIAL_NUM )); break; case FN_copyMaterial: //Number Function - rc_push_num(rc_ copyMaterial( COPYMATERIAL_SMATERIAL_ID )); + rc_push_num(rc_copyMaterial( COPYMATERIAL_SMATERIAL_ID )); break; case FN_setMaterialTextureCanvas: //Sub Procedure - rc_ setMaterialTextureCanvas( SETMATERIALTEXTURECANVAS_MATERIAL_ID, SETMATERIALTEXTURECANVAS_LEVEL, SETMATERIALTEXTURECANVAS_CANVAS_ID ); + rc_setMaterialTextureCanvas( SETMATERIALTEXTURECANVAS_MATERIAL_ID, SETMATERIALTEXTURECANVAS_LEVEL, SETMATERIALTEXTURECANVAS_CANVAS_ID ); break; case FN_setMaterialAmbientColor: //Sub Procedure - rc_ setMaterialAmbientColor( SETMATERIALAMBIENTCOLOR_MATERIAL_ID, SETMATERIALAMBIENTCOLOR_COLOR ); + rc_setMaterialAmbientColor( SETMATERIALAMBIENTCOLOR_MATERIAL_ID, SETMATERIALAMBIENTCOLOR_COLOR ); break; case FN_getMaterialAmbientColor: //Number Function - rc_push_num(rc_ getMaterialAmbientColor( GETMATERIALAMBIENTCOLOR_MATERIAL_ID )); + rc_push_num(rc_getMaterialAmbientColor( GETMATERIALAMBIENTCOLOR_MATERIAL_ID )); break; case FN_setMaterialAntiAliasing: //Sub Procedure - rc_ setMaterialAntiAliasing( SETMATERIALANTIALIASING_MATERIAL_ID, SETMATERIALANTIALIASING_AA ); + rc_setMaterialAntiAliasing( SETMATERIALANTIALIASING_MATERIAL_ID, SETMATERIALANTIALIASING_AA ); break; case FN_getMaterialAntiAliasing: //Number Function - rc_push_num(rc_ getMaterialAntiAliasing( GETMATERIALANTIALIASING_MATERIAL_ID )); + rc_push_num(rc_getMaterialAntiAliasing( GETMATERIALANTIALIASING_MATERIAL_ID )); break; case FN_setMaterialBackfaceCulling: //Sub Procedure - rc_ setMaterialBackfaceCulling( SETMATERIALBACKFACECULLING_MATERIAL_ID, SETMATERIALBACKFACECULLING_FLAG ); + rc_setMaterialBackfaceCulling( SETMATERIALBACKFACECULLING_MATERIAL_ID, SETMATERIALBACKFACECULLING_FLAG ); break; case FN_getMaterialBackfaceCulling: //Number Function - rc_push_num(rc_ getMaterialBackfaceCulling( GETMATERIALBACKFACECULLING_MATERIAL_ID )); + rc_push_num(rc_getMaterialBackfaceCulling( GETMATERIALBACKFACECULLING_MATERIAL_ID )); break; case FN_setMaterialBlendFactor: //Sub Procedure - rc_ setMaterialBlendFactor( SETMATERIALBLENDFACTOR_MATERIAL_ID, SETMATERIALBLENDFACTOR_BF ); + rc_setMaterialBlendFactor( SETMATERIALBLENDFACTOR_MATERIAL_ID, SETMATERIALBLENDFACTOR_BF ); break; case FN_getMaterialBlendFactor: //Number Function - rc_push_num(rc_ getMaterialBlendFactor( GETMATERIALBLENDFACTOR_MATERIAL_ID )); + rc_push_num(rc_getMaterialBlendFactor( GETMATERIALBLENDFACTOR_MATERIAL_ID )); break; case FN_setMaterialBlendMode: //Sub Procedure - rc_ setMaterialBlendMode( SETMATERIALBLENDMODE_MATERIAL_ID, SETMATERIALBLENDMODE_BLEND_MODE ); + rc_setMaterialBlendMode( SETMATERIALBLENDMODE_MATERIAL_ID, SETMATERIALBLENDMODE_BLEND_MODE ); break; case FN_getMaterialBlendMode: //Number Function - rc_push_num(rc_ getMaterialBlendMode( GETMATERIALBLENDMODE_MATERIAL_ID )); + rc_push_num(rc_getMaterialBlendMode( GETMATERIALBLENDMODE_MATERIAL_ID )); break; case FN_setMaterialColorMask: //Sub Procedure - rc_ setMaterialColorMask( SETMATERIALCOLORMASK_MATERIAL_ID, SETMATERIALCOLORMASK_COLOR_MASK ); + rc_setMaterialColorMask( SETMATERIALCOLORMASK_MATERIAL_ID, SETMATERIALCOLORMASK_COLOR_MASK ); break; case FN_getMaterialColorMask: //Number Function - rc_push_num(rc_ getMaterialColorMask( GETMATERIALCOLORMASK_MATERIAL_ID )); + rc_push_num(rc_getMaterialColorMask( GETMATERIALCOLORMASK_MATERIAL_ID )); break; case FN_setMaterialColorMode: //Sub Procedure - rc_ setMaterialColorMode( SETMATERIALCOLORMODE_MATERIAL_ID, SETMATERIALCOLORMODE_COLOR_MODE ); + rc_setMaterialColorMode( SETMATERIALCOLORMODE_MATERIAL_ID, SETMATERIALCOLORMODE_COLOR_MODE ); break; case FN_getMaterialColorMode: //Number Function - rc_push_num(rc_ getMaterialColorMode( GETMATERIALCOLORMODE_MATERIAL_ID )); + rc_push_num(rc_getMaterialColorMode( GETMATERIALCOLORMODE_MATERIAL_ID )); break; case FN_setMaterialDiffuseColor: //Sub Procedure - rc_ setMaterialDiffuseColor( SETMATERIALDIFFUSECOLOR_MATERIAL_ID, SETMATERIALDIFFUSECOLOR_COLOR ); + rc_setMaterialDiffuseColor( SETMATERIALDIFFUSECOLOR_MATERIAL_ID, SETMATERIALDIFFUSECOLOR_COLOR ); break; case FN_getMaterialDiffuseColor: //Number Function - rc_push_num(rc_ getMaterialDiffuseColor( GETMATERIALDIFFUSECOLOR_MATERIAL_ID )); + rc_push_num(rc_getMaterialDiffuseColor( GETMATERIALDIFFUSECOLOR_MATERIAL_ID )); break; case FN_setMaterialEmissiveColor: //Sub Procedure - rc_ setMaterialEmissiveColor( SETMATERIALEMISSIVECOLOR_MATERIAL_ID, SETMATERIALEMISSIVECOLOR_COLOR ); + rc_setMaterialEmissiveColor( SETMATERIALEMISSIVECOLOR_MATERIAL_ID, SETMATERIALEMISSIVECOLOR_COLOR ); break; case FN_getMaterialEmissiveColor: //Number Function - rc_push_num(rc_ getMaterialEmissiveColor( GETMATERIALEMISSIVECOLOR_MATERIAL_ID )); + rc_push_num(rc_getMaterialEmissiveColor( GETMATERIALEMISSIVECOLOR_MATERIAL_ID )); break; case FN_setMaterialFog: //Sub Procedure - rc_ setMaterialFog( SETMATERIALFOG_MATERIAL_ID, SETMATERIALFOG_FLAG ); + rc_setMaterialFog( SETMATERIALFOG_MATERIAL_ID, SETMATERIALFOG_FLAG ); break; case FN_getMaterialFog: //Number Function - rc_push_num(rc_ getMaterialFog( GETMATERIALFOG_MATERIAL_ID )); + rc_push_num(rc_getMaterialFog( GETMATERIALFOG_MATERIAL_ID )); break; case FN_setMaterialFrontfaceCulling: //Sub Procedure - rc_ setMaterialFrontfaceCulling( SETMATERIALFRONTFACECULLING_MATERIAL_ID, SETMATERIALFRONTFACECULLING_FLAG ); + rc_setMaterialFrontfaceCulling( SETMATERIALFRONTFACECULLING_MATERIAL_ID, SETMATERIALFRONTFACECULLING_FLAG ); break; case FN_getMaterialFrontfaceCulling: //Number Function - rc_push_num(rc_ getMaterialFrontfaceCulling( GETMATERIALFRONTFACECULLING_MATERIAL_ID )); + rc_push_num(rc_getMaterialFrontfaceCulling( GETMATERIALFRONTFACECULLING_MATERIAL_ID )); break; case FN_setMaterialGouraudShading: //Sub Procedure - rc_ setMaterialGouraudShading( SETMATERIALGOURAUDSHADING_MATERIAL_ID, SETMATERIALGOURAUDSHADING_FLAG ); + rc_setMaterialGouraudShading( SETMATERIALGOURAUDSHADING_MATERIAL_ID, SETMATERIALGOURAUDSHADING_FLAG ); break; -case FN_materialGouraudShading: //Number Function - rc_push_num(rc_ materialGouraudShading( MATERIALGOURAUDSHADING_MATERIAL_ID )); +case FN_materialIsGouraudShaded: //Number Function + rc_push_num(rc_materialIsGouraudShaded( MATERIALISGOURAUDSHADED_MATERIAL_ID )); break; case FN_materialIsAplhaBlend: //Number Function - rc_push_num(rc_ materialIsAplhaBlend( MATERIALISAPLHABLEND_MATERIAL_ID )); + rc_push_num(rc_materialIsAplhaBlend( MATERIALISAPLHABLEND_MATERIAL_ID )); break; case FN_materialIsTransparent: //Number Function - rc_push_num(rc_ materialIsTransparent( MATERIALISTRANSPARENT_MATERIAL_ID )); + rc_push_num(rc_materialIsTransparent( MATERIALISTRANSPARENT_MATERIAL_ID )); break; case FN_setMaterialLighting: //Sub Procedure - rc_ setMaterialLighting( SETMATERIALLIGHTING_MATERIAL_ID, SETMATERIALLIGHTING_FLAG ); + rc_setMaterialLighting( SETMATERIALLIGHTING_MATERIAL_ID, SETMATERIALLIGHTING_FLAG ); break; case FN_materialIsLit: //Number Function - rc_push_num(rc_ materialIsLit( MATERIALISLIT_MATERIAL_ID )); + rc_push_num(rc_materialIsLit( MATERIALISLIT_MATERIAL_ID )); break; case FN_setMaterialType: //Sub Procedure - rc_ setMaterialType( SETMATERIALTYPE_MATERIAL_ID, SETMATERIALTYPE_MAT_TYPE ); + rc_setMaterialType( SETMATERIALTYPE_MATERIAL_ID, SETMATERIALTYPE_MAT_TYPE ); break; case FN_getMaterialType: //Number Function - rc_push_num(rc_ getMaterialType( GETMATERIALTYPE_MATERIAL_ID )); + rc_push_num(rc_getMaterialType( GETMATERIALTYPE_MATERIAL_ID )); break; case FN_setMaterialNormalize: //Sub Procedure - rc_ setMaterialNormalize( SETMATERIALNORMALIZE_MATERIAL_ID, SETMATERIALNORMALIZE_FLAG ); + rc_setMaterialNormalize( SETMATERIALNORMALIZE_MATERIAL_ID, SETMATERIALNORMALIZE_FLAG ); break; case FN_materialIsNormalized: //Number Function - rc_push_num(rc_ materialIsNormalized( MATERIALISNORMALIZED_MATERIAL_ID )); + rc_push_num(rc_materialIsNormalized( MATERIALISNORMALIZED_MATERIAL_ID )); break; case FN_setMaterialPointCloud: //Sub Procedure - rc_ setMaterialPointCloud( SETMATERIALPOINTCLOUD_MATERIAL_ID, SETMATERIALPOINTCLOUD_FLAG ); + rc_setMaterialPointCloud( SETMATERIALPOINTCLOUD_MATERIAL_ID, SETMATERIALPOINTCLOUD_FLAG ); break; case FN_materialIsPointCloud: //Number Function - rc_push_num(rc_ materialIsPointCloud( MATERIALISPOINTCLOUD_MATERIAL_ID )); + rc_push_num(rc_materialIsPointCloud( MATERIALISPOINTCLOUD_MATERIAL_ID )); break; case FN_setMaterialFlag: //Sub Procedure - rc_ setMaterialFlag( SETMATERIALFLAG_MATERIAL_ID, SETMATERIALFLAG_MATERIAL_FLAG, SETMATERIALFLAG_F_VALUE ); + rc_setMaterialFlag( SETMATERIALFLAG_MATERIAL_ID, SETMATERIALFLAG_MATERIAL_FLAG, SETMATERIALFLAG_F_VALUE ); break; case FN_getMaterialFlag: //Number Function - rc_push_num(rc_ getMaterialFlag( GETMATERIALFLAG_MATERIAL_ID, GETMATERIALFLAG_MATERIAL_FLAG )); + rc_push_num(rc_getMaterialFlag( GETMATERIALFLAG_MATERIAL_ID, GETMATERIALFLAG_MATERIAL_FLAG )); break; case FN_setMaterialTexture: //Sub Procedure - rc_ setMaterialTexture( SETMATERIALTEXTURE_MATERIAL_ID, SETMATERIALTEXTURE_LEVEL, SETMATERIALTEXTURE_IMG_ID ); + rc_setMaterialTexture( SETMATERIALTEXTURE_MATERIAL_ID, SETMATERIALTEXTURE_LEVEL, SETMATERIALTEXTURE_IMG_ID ); break; case FN_setMaterialShininess: //Sub Procedure - rc_ setMaterialShininess( SETMATERIALSHININESS_MATERIAL_ID, SETMATERIALSHININESS_SHININESS ); + rc_setMaterialShininess( SETMATERIALSHININESS_MATERIAL_ID, SETMATERIALSHININESS_SHININESS ); break; case FN_getMaterialShininess: //Number Function - rc_push_num(rc_ getMaterialShininess( GETMATERIALSHININESS_MATERIAL_ID )); + rc_push_num(rc_getMaterialShininess( GETMATERIALSHININESS_MATERIAL_ID )); break; case FN_setMaterialSpecularColor: //Sub Procedure - rc_ setMaterialSpecularColor( SETMATERIALSPECULARCOLOR_MATERIAL_ID, SETMATERIALSPECULARCOLOR_COLOR ); + rc_setMaterialSpecularColor( SETMATERIALSPECULARCOLOR_MATERIAL_ID, SETMATERIALSPECULARCOLOR_COLOR ); break; case FN_getMaterialSpecularColor: //Number Function - rc_push_num(rc_ getMaterialSpecularColor( GETMATERIALSPECULARCOLOR_MATERIAL_ID )); + rc_push_num(rc_getMaterialSpecularColor( GETMATERIALSPECULARCOLOR_MATERIAL_ID )); break; case FN_setMaterialThickness: //Sub Procedure - rc_ setMaterialThickness( SETMATERIALTHICKNESS_MATERIAL_ID, SETMATERIALTHICKNESS_THICKNESS ); + rc_setMaterialThickness( SETMATERIALTHICKNESS_MATERIAL_ID, SETMATERIALTHICKNESS_THICKNESS ); break; case FN_getMaterialThickness: //Number Function - rc_push_num(rc_ getMaterialThickness( GETMATERIALTHICKNESS_MATERIAL_ID )); + rc_push_num(rc_getMaterialThickness( GETMATERIALTHICKNESS_MATERIAL_ID )); break; case FN_setMaterialWireframe: //Sub Procedure - rc_ setMaterialWireframe( SETMATERIALWIREFRAME_MATERIAL_ID, SETMATERIALWIREFRAME_FLAG ); + rc_setMaterialWireframe( SETMATERIALWIREFRAME_MATERIAL_ID, SETMATERIALWIREFRAME_FLAG ); break; case FN_materialIsWireframe: //Number Function - rc_push_num(rc_ materialIsWireframe( MATERIALISWIREFRAME_MATERIAL_ID )); + rc_push_num(rc_materialIsWireframe( MATERIALISWIREFRAME_MATERIAL_ID )); break; case FN_setActorTexture: //Sub Procedure - rc_ setActorTexture( SETACTORTEXTURE_ACTOR, SETACTORTEXTURE_LAYER, SETACTORTEXTURE_IMAGE_ID ); + rc_setActorTexture( SETACTORTEXTURE_ACTOR, SETACTORTEXTURE_LAYER, SETACTORTEXTURE_IMAGE_ID ); break; case FN_getActorMaterialCount: //Number Function - rc_push_num(rc_ getActorMaterialCount( GETACTORMATERIALCOUNT_ACTOR )); + rc_push_num(rc_getActorMaterialCount( GETACTORMATERIALCOUNT_ACTOR )); break; case FN_setActorMaterialFlag: //Sub Procedure - rc_ setActorMaterialFlag( SETACTORMATERIALFLAG_ACTOR, SETACTORMATERIALFLAG_FLAG, SETACTORMATERIALFLAG_FLAG_VALUE ); + rc_setActorMaterialFlag( SETACTORMATERIALFLAG_ACTOR, SETACTORMATERIALFLAG_FLAG, SETACTORMATERIALFLAG_FLAG_VALUE ); break; case FN_getActorMaterialFlag: //Number Function - rc_push_num(rc_ getActorMaterialFlag( GETACTORMATERIALFLAG_ACTOR, GETACTORMATERIALFLAG_MATERIAL, GETACTORMATERIALFLAG_FLAG )); + rc_push_num(rc_getActorMaterialFlag( GETACTORMATERIALFLAG_ACTOR, GETACTORMATERIALFLAG_MATERIAL, GETACTORMATERIALFLAG_FLAG )); break; case FN_setActorMaterialType: //Sub Procedure - rc_ setActorMaterialType( SETACTORMATERIALTYPE_ACTOR, SETACTORMATERIALTYPE_MATERIAL_TYPE ); + rc_setActorMaterialType( SETACTORMATERIALTYPE_ACTOR, SETACTORMATERIALTYPE_MATERIAL_TYPE ); break; case FN_getActorMaterialType: //Number Function - rc_push_num(rc_ getActorMaterialType( GETACTORMATERIALTYPE_ACTOR, GETACTORMATERIALTYPE_MATERIAL )); + rc_push_num(rc_getActorMaterialType( GETACTORMATERIALTYPE_ACTOR, GETACTORMATERIALTYPE_MATERIAL )); break; diff --git a/rcbasic_runtime/rc_geometry.h b/rcbasic_runtime/rc_geometry.h index b9fa015..5b69410 100755 --- a/rcbasic_runtime/rc_geometry.h +++ b/rcbasic_runtime/rc_geometry.h @@ -8,127 +8,6 @@ // ------------------ 3D Transform Routines -------------------------------- -double CalculateFaceZ(double cam_dist, double graph_offset_x, double graph_offset_y, double view_w, double view_h, double view_depth, uint32_t mA, int f_vertex_count, double* columns, double* face_min_z, double* face_max_z, double* z_avg) -{ - bool dbg = false; - - if(f_vertex_count > 4) - return -1; - - - double vx, vy, vz[4]; - - int oi_count = 0; - - - double n_face_min_z = MatrixValue(mA, 2, (uint32_t)columns[0]); - double n_face_max_z = n_face_min_z; - - - bool in_zx_range = false; - bool in_zy_range = false; - - double face_min_x = 0; - double face_max_x = 0; - - double face_min_y = 0; - double face_max_y = 0; - - bool zx_min_bound = false; - bool zx_max_bound = false; - - bool zy_min_bound = false; - bool zy_max_bound = false; - - double distance = 0; - - double z_dist = 0; //C3D_CAMERA_LENS - z - double off_x = graph_offset_x; - double off_y = graph_offset_y; - - double min_x = (0 - off_x) / cam_dist; - double min_y = (view_h - off_y) / cam_dist * -1; - - double max_x = (view_w - off_x) / cam_dist; - double max_y = (0 - off_y) / cam_dist * -1; - - double zx_min, zx_max, zy_min, zy_max; - - for(int i = 0; i < f_vertex_count; i++) - { - vz[i] = MatrixValue(mA, 2, (uint32_t)columns[i]); - vx = MatrixValue(mA, 0, (uint32_t)columns[i]); - vy = MatrixValue(mA, 1, (uint32_t)columns[i]); - - - distance = -1*vz[i]; - - if(distance >= 0 && distance < view_depth) - { - double d = cam_dist - (distance*-1); - zx_min = min_x * d; - zx_max = max_x * d; - zy_min = min_y * d; - zy_max = max_y * d; - - in_zx_range = in_zx_range || (vx >= zx_min && vx < zx_max); - in_zy_range = in_zy_range || (vy >= zy_min && vy < zy_max); - - zx_min_bound = zx_min_bound || (vx < zx_min); - zx_max_bound = zx_max_bound || (vx >= zx_max); - - zy_min_bound = zy_min_bound || (vy < zy_min); - zy_max_bound = zy_max_bound || (vy >= zy_max); - } - else if(vz[i] >= 0 && vz[i] < view_depth) - { - double d = cam_dist - (vz[i]*-1); - zx_min = min_x * d; - zx_max = max_x * d; - zy_min = min_y * d; - zy_max = max_y * d; - - in_zx_range = in_zx_range || (vx >= zx_min && vx < zx_max); - in_zy_range = in_zy_range || (vy >= zy_min && vy < zy_max); - - zx_min_bound = zx_min_bound || (vx < zx_min); - zx_max_bound = zx_max_bound || (vx >= zx_max); - - zy_min_bound = zy_min_bound || (vy < zy_min); - zy_max_bound = zy_max_bound || (vy >= zy_max); - } - - n_face_min_z = min(n_face_min_z, vz[i]); - n_face_max_z = max(n_face_max_z, vz[i]); - - } - - in_zx_range = in_zx_range || (zx_min_bound && zx_max_bound); - in_zy_range = in_zy_range || (zy_min_bound && zy_max_bound); - - if( (!in_zx_range) || (!in_zy_range) ) - return -1; - - //'if key(k_i) and actor = 1 then : print "face = ";face_num : end if - - z_avg[0] = (n_face_min_z+n_face_max_z) / 2; //'This is some bullshit math to order the faces with out checking if they are obscured - - face_min_z[0] = n_face_min_z; - face_max_z[0] = n_face_max_z; - - //C3D_Actor_Face_ZOrder[actor, face_num] = face_min_z - - - if(face_min_z[0] >= cam_dist) - return -1; - else - return (cam_dist - face_min_z[0]); - - -} - - - int GetLinePlaneIntersection(double* line_point, double* line_direction, double* plane_point_1, double* plane_point_2, double* plane_point_3, double* intersection) { //' """ @@ -796,26 +675,6 @@ void projectionGeometry(int cam_dist, int f_vertex_count, double* vertex3D, doub } - -void rc_GetProjectionGeometry(int cam_dist, uint32_t mA, int f_vertex_count, double* columns, double* uv, double graph_offset_x, double graph_offset_y, uint32_t color, - double* vertex_count, double* vertex2D, double* ind_count, double* index, double* clip_dist, double* min_x, double* min_y, double* max_x, double* max_y) -{ - double vertex3D[18]; // number of vertices * 3 -> ie. (x,y,z) for each vertex - - int v_index = 0; - for(int i = 0; i < f_vertex_count; i++) - { - vertex3D[v_index] = MatrixValue(mA, 0, columns[i]); - vertex3D[v_index+1] = MatrixValue(mA, 1, columns[i]); - vertex3D[v_index+2] = MatrixValue(mA, 2, columns[i]); - v_index += 3; - } - - projectionGeometry(cam_dist, f_vertex_count, &vertex3D[0], uv, graph_offset_x, graph_offset_y, color, - vertex_count, vertex2D, ind_count, index, clip_dist, min_x, min_y, max_x, max_y); -} - - // -------------------------------------------------------------------------- diff --git a/rcbasic_runtime/rc_gfx.h b/rcbasic_runtime/rc_gfx.h index c0c4df2..0445cc4 100644 --- a/rcbasic_runtime/rc_gfx.h +++ b/rcbasic_runtime/rc_gfx.h @@ -119,7 +119,7 @@ int mobile_event_filter(void* userdata, SDL_Event* evt) } -bool rcbasic_init() +bool rc_gfx_init() { if(SDL_Init(SDL_INIT_EVENTS | SDL_INIT_TIMER | SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC | SDL_INIT_SENSOR | SDL_INIT_NOPARACHUTE) < 0) //Audio causes init to fail on Fedora40 so I am leaving it out for now { @@ -210,6 +210,20 @@ bool rcbasic_init() } +bool rc_gfx_quit() +{ + irrtheora::stopVideo(); + irrtheora::deleteVideo(); + + if(device) + device->drop(); + + SDL_Quit(); + + return true; + +} + bool rc_windowOpenEx(std::string title, int x, int y, int w, int h, uint32_t window_flags, irr::u8 AntiAlias, bool stencil_buffer, bool vsync) { if(rc_window) @@ -304,6 +318,9 @@ bool rc_windowOpen(std::string title, int w, int h, bool fullscreen, bool vsync) void rc_closeWindow_hw() { + irrtheora::stopVideo(); + irrtheora::deleteVideo(); + if(rc_window!=NULL) SDL_DestroyWindow(rc_window); rc_window = NULL; @@ -969,7 +986,7 @@ void rc_setActiveCanvas(int canvas_id) } } -int rc_getActiveCanvas() +int rc_activeCanvas() { return rc_active_canvas; } @@ -1075,7 +1092,7 @@ void rc_setCanvasColorMod(int canvas_id, Uint32 color_mod) } } -Uint32 rc_canvasColorMod(int canvas_id) +Uint32 rc_getCanvasColorMod(int canvas_id) { if(canvas_id <= 0 || canvas_id >= rc_canvas.size()) //canvas 0 is being excluded because its the back buffer return 0; @@ -1124,7 +1141,7 @@ void rc_setCanvasZ(int canvas_id, int z) sortCanvasZ(); } -int rc_canvasZ(int canvas_id) +int rc_getCanvasZ(int canvas_id) { if(canvas_id <= 0 || canvas_id >= rc_canvas.size()) //canvas 0 is being excluded because its the back buffer return 0; @@ -1711,7 +1728,7 @@ bool rc_mouseIsVisible() } -int rc_inkey() +int rc_inKey() { return rc_inkey_val; } @@ -1856,7 +1873,7 @@ int rc_joyButton(int joy_num, int jbutton) return 0; } -std::string rc_joystickName(int joy_num) +std::string rc_joyName(int joy_num) { if(joy_num >= 0 && joy_num < MAX_JOYSTICKS) return (std::string)SDL_JoystickName(rc_joystick[joy_num]); @@ -3302,6 +3319,8 @@ bool rc_update() SDL_Event SDL_event; bool Close = false; + rc_inkey_val = 0; + while ( !Close && SDL_PollEvent( &SDL_event ) ) { // os::Printer::log("event: ", core::stringc((int)SDL_event.type).c_str(), ELL_INFORMATION); // just for debugging diff --git a/rcbasic_runtime/rc_matrix.h b/rcbasic_runtime/rc_matrix.h index 0994f07..675c93d 100755 --- a/rcbasic_runtime/rc_matrix.h +++ b/rcbasic_runtime/rc_matrix.h @@ -33,10 +33,6 @@ struct rc_matrix_type std::vector rc_matrix(64); -#define RC_TMP_MATRIX 1024 -#define RC_TMP_MATRIX_2 1025 - -#define RC_PROCESS_TMP_MATRIX_OFFSET 1026 #define NEW_MATRIX -1 @@ -90,8 +86,15 @@ int DimMatrix(int m, uint32_t m_rows, uint32_t m_cols, bool preserve_flag=false) return m; } -void DeleteMatrix(int mA) +int rc_dimMatrix(uint32_t m_rows, uint32_t m_cols) { + return DimMatrix(NEW_MATRIX, m_rows, m_cols, false); +} + +void rc_deleteMatrix(int mA) +{ + if(mA < 0 || mA >= rc_matrix.size()) + return; rc_matrix[mA].data.clear(); rc_matrix[mA].c = 0; rc_matrix[mA].r = 0; @@ -99,7 +102,7 @@ void DeleteMatrix(int mA) } //Adds Matrix A() to Matrix B(), answer is Matrix C() -bool AddMatrix(int mA, int mB, int mC) +bool rc_addMatrix(int mA, int mB, int mC) { if( (rc_matrix[mA].r != rc_matrix[mB].r) || (rc_matrix[mA].c != rc_matrix[mB].c) ) { @@ -123,7 +126,7 @@ bool AddMatrix(int mA, int mB, int mC) } //Concatenates matrix A() and B(), output is matrix C() -bool AugmentMatrix (int mA, int mB, int mC) +bool rc_augmentMatrix (int mA, int mB, int mC) { if(rc_matrix[mA].r != rc_matrix[mB].r) { @@ -159,7 +162,7 @@ bool AugmentMatrix (int mA, int mB, int mC) } //Copies contents of matrix A() to B() -void CopyMatrix(int mA, int mB) +void rc_copyMatrix(int mA, int mB) { DimMatrix(mB, rc_matrix[mA].r, rc_matrix[mA].c); @@ -175,7 +178,7 @@ void CopyMatrix(int mA, int mB) } //Inserts specified number of columns in matrix A before c and shifts values to the right -bool InsertMatrixColumn(int mA, uint32_t c, uint32_t num_cols) +bool rc_insertMatrixColumns(int mA, uint32_t c, uint32_t num_cols) { if(c >= rc_matrix[mA].c) { @@ -214,7 +217,7 @@ bool InsertMatrixColumn(int mA, uint32_t c, uint32_t num_cols) } //Creates new zero row M% in matrix A(), moves values down -bool InsertMatrixRow (int mA, uint32_t r, uint32_t num_rows) +bool rc_insertMatrixRows(int mA, uint32_t r, uint32_t num_rows) { if(r >= rc_matrix[mA].r) { @@ -249,7 +252,7 @@ bool InsertMatrixRow (int mA, uint32_t r, uint32_t num_rows) } //Multiplies Matrix A() with Matrix B(), answer is Matrix C() -bool MultiplyMatrix (int mA, int mB, int mC) +bool rc_multiplyMatrix (int mA, int mB, int mC) { if( rc_matrix[mA].c != rc_matrix[mB].r ) { @@ -283,7 +286,7 @@ bool MultiplyMatrix (int mA, int mB, int mC) } //Multiplies matrix A() * A() * A(), returns matrix B() -bool CubeMatrix(int mA, int mB, int process_num) +bool rc_cubeMatrix(int mA, int mB) { if(rc_matrix[mA].r != rc_matrix[mA].c) { @@ -291,19 +294,16 @@ bool CubeMatrix(int mA, int mB, int process_num) return false; } - int tmp_mat1 = process_num < 0 ? RC_TMP_MATRIX : (process_num*2) + RC_PROCESS_TMP_MATRIX_OFFSET; - //int tmp_mat2 = process_num < 0 ? RC_TMP_MATRIX : (process_num*2) + RC_PROCESS_TMP_MATRIX_OFFSET + 1; + int tmp_mat1 = DimMatrix(NEW_MATRIX, rc_matrix[mA].r, rc_matrix[mA].c); + rc_multiplyMatrix(mA, mA, tmp_mat1); + rc_multiplyMatrix(tmp_mat1, mA, mB); - DimMatrix(tmp_mat1, rc_matrix[mA].r, rc_matrix[mA].c); - MultiplyMatrix(mA, mA, tmp_mat1); - MultiplyMatrix(tmp_mat1, mA, mB); - - DimMatrix(tmp_mat1, 1, 1); + rc_deleteMatrix(tmp_mat1); return true; } // Deletes column N% from matrix -bool DeleteMatrixColumns(int mA, uint32_t c, uint32_t num_cols, int process_num) +bool rc_deleteMatrixColumns(int mA, uint32_t c, uint32_t num_cols) { if(c >= rc_matrix[mA].c) { @@ -314,10 +314,7 @@ bool DeleteMatrixColumns(int mA, uint32_t c, uint32_t num_cols, int process_num) if((c + num_cols) > rc_matrix[mA].c) num_cols = rc_matrix[mA].c - c; - int tmp_mat1 = process_num < 0 ? RC_TMP_MATRIX : (process_num*2) + RC_PROCESS_TMP_MATRIX_OFFSET; - //int tmp_mat2 = process_num < 0 ? RC_TMP_MATRIX : (process_num*2) + RC_PROCESS_TMP_MATRIX_OFFSET + 1; - - DimMatrix( tmp_mat1, rc_matrix[mA].r, rc_matrix[mA].c - num_cols); + int tmp_mat1 = DimMatrix( NEW_MATRIX, rc_matrix[mA].r, rc_matrix[mA].c - num_cols); uint32_t old_offset = 0; uint32_t row_offset = 0; @@ -335,13 +332,13 @@ bool DeleteMatrixColumns(int mA, uint32_t c, uint32_t num_cols, int process_num) rc_matrix[tmp_mat1].data[row_offset + col] = rc_matrix[mA].data[old_offset + col]; } } - CopyMatrix(tmp_mat1, mA); - DimMatrix(tmp_mat1, 1, 1); + rc_copyMatrix(tmp_mat1, mA); + rc_deleteMatrix(tmp_mat1); return true; } //Deletes row M% from matrix -bool DeleteMatrixRows(int mA, uint32_t r, uint32_t num_rows) +bool rc_deleteMatrixRows(int mA, uint32_t r, uint32_t num_rows) { if(r >= rc_matrix[mA].r) { @@ -373,14 +370,14 @@ bool DeleteMatrixRows(int mA, uint32_t r, uint32_t num_rows) } //Clears contents of matrix A() -void ClearMatrix(int mA) +void rc_clearMatrix(int mA) { for(int i = 0; i < rc_matrix[mA].data.size(); i++) rc_matrix[mA].data[i] = 0; } //Fills column J% of matrix A() with zeros -bool ClearMatrixColumns (int mA, uint32_t c, uint32_t num_cols) +bool rc_clearMatrixColumns (int mA, uint32_t c, uint32_t num_cols) { if(c >= rc_matrix[mA].c) { @@ -403,7 +400,7 @@ bool ClearMatrixColumns (int mA, uint32_t c, uint32_t num_cols) } // Fills row I% of matrix A() with zeros -bool ClearMatrixRows(int mA, uint32_t r, uint32_t num_rows) +bool rc_clearMatrixRows(int mA, uint32_t r, uint32_t num_rows) { if(r >= rc_matrix[mA].r) { @@ -429,14 +426,14 @@ bool ClearMatrixRows(int mA, uint32_t r, uint32_t num_rows) } // Fills matrix A() with value V -void FillMatrix(int mA, double v) +void rc_fillMatrix(int mA, double v) { for(uint32_t i = 0; i < rc_matrix[mA].data.size(); i++) rc_matrix[mA].data[i] = v; } // Fills matrix A() column J% with value V -bool FillMatrixColumns(int mA, uint32_t c, uint32_t num_cols, double v) +bool rc_fillMatrixColumns(int mA, uint32_t c, uint32_t num_cols, double v) { if(c >= rc_matrix[mA].c) { @@ -459,7 +456,7 @@ bool FillMatrixColumns(int mA, uint32_t c, uint32_t num_cols, double v) } // Fills matrix A() row I% with value V -bool FillMatrixRows(int mA, uint32_t r, uint32_t num_rows, double v) +bool rc_fillMatrixRows(int mA, uint32_t r, uint32_t num_rows, double v) { if(r >= rc_matrix[mA].r) { @@ -485,7 +482,7 @@ bool FillMatrixRows(int mA, uint32_t r, uint32_t num_rows, double v) } // Copies A() column J% to column matrix B() -bool GetMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols) +bool rc_copyMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols) { if(c >= rc_matrix[mA].c) { @@ -512,7 +509,7 @@ bool GetMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols) } // Copies A() row I% to row matrix B() -bool GetMatrixRows (uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows) +bool rc_copyMatrixRows (uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows) { if(r > rc_matrix[mA].r) @@ -542,7 +539,7 @@ bool GetMatrixRows (uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows) } // Creates Identity Matrix A() of order N% -void setIdentityMatrix(uint32_t mA, uint32_t n) +void rc_setIdentityMatrix(uint32_t mA, uint32_t n) { DimMatrix(mA, n, n); for(int i = 0; i < n; i++) @@ -576,7 +573,7 @@ bool GaussianElimination(vector< vector > &A, vector &b, uint32_ vector x(n); DimMatrix(mC, n, 1); - ClearMatrix(mC); + rc_clearMatrix(mC); for (int i = n - 1; i >= 0; i--) { double sum = 0.0; @@ -593,7 +590,7 @@ bool GaussianElimination(vector< vector > &A, vector &b, uint32_ // Solve the system that has A as coefficient matrix and B is the right hand side of the equation // Solution will be stored in C -bool SolveMatrix(uint32_t mA, uint32_t mB, uint32_t mC) +bool rc_solveMatrix(uint32_t mA, uint32_t mB, uint32_t mC) { if(rc_matrix[mA].r != rc_matrix[mA].c || rc_matrix[mA].r != rc_matrix[mB].r || rc_matrix[mB].c != 1) return false; @@ -623,7 +620,7 @@ double d_abs(double n) } //Determines if matrix A() is equal (within Tol constant) to matrix B() -bool IsEqualMatrix(uint32_t mA, uint32_t mB, double tolerance) +bool rc_isEqualMatrix(uint32_t mA, uint32_t mB, double tolerance) { if( (rc_matrix[mA].r != rc_matrix[mB].r) || (rc_matrix[mA].c != rc_matrix[mB].c) ) return false; @@ -669,7 +666,7 @@ void getCofactor(uint32_t A_dim, double* A, double* temp, int p, int q, } } -void CofactorMatrix(uint32_t mA, int p, int q, int n) +void rc_cofactorMatrix(uint32_t mA, int p, int q, int n) { uint32_t m_size = rc_matrix[mA].c; @@ -716,13 +713,13 @@ double determinant(double* A, int n, uint32_t m_size) return D; } -double Determinant(uint32_t mA) +double rc_determinant(uint32_t mA) { uint32_t m_size = rc_matrix[mA].r; if(rc_matrix[mA].c != m_size) { cout << "Determinant Error: matrix must be square" << endl; - return false; + return 0; } return determinant(rc_matrix[mA].data.data(), m_size, m_size); } @@ -756,7 +753,7 @@ void adjoint(double* A, double* adj, uint32_t n, uint32_t m_size) } } -bool AdjointMatrix(uint32_t mA, uint32_t mB) +bool rc_adjointMatrix(uint32_t mA, uint32_t mB) { uint32_t m_size = rc_matrix[mA].r; if(rc_matrix[mA].c != m_size) @@ -792,7 +789,7 @@ bool inverse(double* A, double* inv, uint32_t n) return true; } -bool InvertMatrix(uint32_t mA, uint32_t mB) +bool rc_invertMatrix(uint32_t mA, uint32_t mB) { uint32_t m_size = rc_matrix[mA].r; if(rc_matrix[mA].c != m_size) @@ -811,7 +808,7 @@ bool InvertMatrix(uint32_t mA, uint32_t mB) //Loads contents of FileName$ into matrix A() -void MatrixFromBuffer(uint32_t mA, uint32_t r, uint32_t c, double* buffer) +void rc_matrixFromBuffer(uint32_t mA, uint32_t r, uint32_t c, double* buffer) { uint32_t row_offset = 0; DimMatrix(mA, r, c); @@ -827,7 +824,7 @@ void MatrixFromBuffer(uint32_t mA, uint32_t r, uint32_t c, double* buffer) } //Loads contents of FileName$ into matrix A() -void BufferFromMatrix(double* buffer, uint32_t mA) +void rc_bufferFromMatrix(double* buffer, uint32_t mA) { uint32_t row_offset = 0; for(uint32_t row = 0; row < rc_matrix[mA].r; row++) @@ -841,7 +838,7 @@ void BufferFromMatrix(double* buffer, uint32_t mA) } //Fills matrix A() with random values ranging from VMin to VMax -void RandomizeMatrix(uint32_t mA, double vmin, double vmax) +void rc_randomizeMatrix(uint32_t mA, double vmin, double vmax) { uint32_t row_offset = 0; for(uint32_t row = 0; row < rc_matrix[mA].r; row++) @@ -855,7 +852,7 @@ void RandomizeMatrix(uint32_t mA, double vmin, double vmax) } //get value from matrix A -double MatrixValue(uint32_t mA, uint32_t r, uint32_t c) +double rc_matrixValue(uint32_t mA, uint32_t r, uint32_t c) { uint32_t pos = r*rc_matrix[mA].c + c; if(pos >= rc_matrix[mA].data.size()) @@ -865,7 +862,7 @@ double MatrixValue(uint32_t mA, uint32_t r, uint32_t c) } //set value at (r, c) in matrix -void SetMatrixValue(uint32_t mA, uint32_t r, uint32_t c, double v) +void rc_setMatrixValue(uint32_t mA, uint32_t r, uint32_t c, double v) { uint32_t pos = r*rc_matrix[mA].c + c; if(pos >= rc_matrix[mA].data.size()) @@ -875,7 +872,7 @@ void SetMatrixValue(uint32_t mA, uint32_t r, uint32_t c, double v) } //Multiplies matrix A() by scalar, output matrix B() -void ScalarMatrix (uint32_t mA, uint32_t mB, double s_value) +void rc_scalarMatrix (uint32_t mA, uint32_t mB, double s_value) { uint32_t row_offset = 0; DimMatrix(mB, rc_matrix[mA].r, rc_matrix[mA].c); @@ -890,7 +887,7 @@ void ScalarMatrix (uint32_t mA, uint32_t mB, double s_value) } // Multiplies matrix A() by scalar S at column J%, output matrix B() -bool ScalarMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols, double s_value) +bool rc_scalarMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols, double s_value) { if(c >= rc_matrix[mA].c) { @@ -901,7 +898,7 @@ bool ScalarMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols if( (c+num_cols) >= rc_matrix[mA].c) num_cols = rc_matrix[mA].c - c; - CopyMatrix(mA, mB); + rc_copyMatrix(mA, mB); int row_offset = 0; int b_offset = 0; @@ -916,7 +913,7 @@ bool ScalarMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols } //Multiplies matrix A() by scalar S at row I%, output matrix B() -bool ScalarMatrixRows(uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows, double s_value) +bool rc_scalarMatrixRows(uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows, double s_value) { if(r > rc_matrix[mA].r) @@ -928,7 +925,7 @@ bool ScalarMatrixRows(uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows, d if( (r+num_rows) > rc_matrix[mA].r) num_rows = rc_matrix[mA].r - r; - CopyMatrix(mA, mB); + rc_copyMatrix(mA, mB); uint32_t row_offset = 0; @@ -946,7 +943,7 @@ bool ScalarMatrixRows(uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows, d } // Multiplies matrix A() * A(), returns matrix B() -bool SquareMatrix(uint32_t mA, uint32_t mB) +bool rc_squareMatrix(uint32_t mA, uint32_t mB) { if(rc_matrix[mA].r != rc_matrix[mA].c) { @@ -954,17 +951,17 @@ bool SquareMatrix(uint32_t mA, uint32_t mB) return false; } - return MultiplyMatrix(mA, mA, mB); + return rc_multiplyMatrix(mA, mA, mB); } // Deletes row r and column c from matrix A -void SubMatrix(uint32_t mA, uint32_t r, uint32_t c) +void rc_subMatrix(uint32_t mA, uint32_t r, uint32_t c) { - CofactorMatrix(mA, r, c, rc_matrix[mA].c); + rc_cofactorMatrix(mA, r, c, rc_matrix[mA].c); } // Subtracts Matrix B() from Matrix A(), answer is Matrix C() -bool SubtractMatrix (uint32_t mA, uint32_t mB, uint32_t mC) +bool rc_subtractMatrix (uint32_t mA, uint32_t mB, uint32_t mC) { if(rc_matrix[mA].r != rc_matrix[mB].r || rc_matrix[mA].c != rc_matrix[mB].c) { @@ -988,20 +985,17 @@ bool SubtractMatrix (uint32_t mA, uint32_t mB, uint32_t mC) } // Swaps contents of Matrix A() with Matrix B() -void SwapMatrix(uint32_t mA, uint32_t mB, int process_num) +void rc_swapMatrix(uint32_t mA, uint32_t mB) { - int tmp_mat1 = process_num < 0 ? RC_TMP_MATRIX : (process_num*2) + RC_PROCESS_TMP_MATRIX_OFFSET; - //int tmp_mat2 = process_num < 0 ? RC_TMP_MATRIX : (process_num*2) + RC_PROCESS_TMP_MATRIX_OFFSET + 1; - - DimMatrix(tmp_mat1, rc_matrix[mA].r, rc_matrix[mA].c); - CopyMatrix(mB, tmp_mat1); - CopyMatrix(mA, mB); - CopyMatrix(tmp_mat1, mA); - DimMatrix(tmp_mat1, 1, 1); + int tmp_mat1 = DimMatrix(NEW_MATRIX, rc_matrix[mA].r, rc_matrix[mA].c); + rc_copyMatrix(mB, tmp_mat1); + rc_copyMatrix(mA, mB); + rc_copyMatrix(tmp_mat1, mA); + rc_deleteMatrix(tmp_mat1); } // Swaps columns C1% and C2% in matrix A() -bool SwapMatrixColumn(uint32_t mA, uint32_t C1, uint32_t C2) +bool rc_swapMatrixColumn(uint32_t mA, uint32_t C1, uint32_t C2) { if(C1 >= rc_matrix[mA].c || C2 >= rc_matrix[mA].c) { @@ -1024,7 +1018,7 @@ bool SwapMatrixColumn(uint32_t mA, uint32_t C1, uint32_t C2) } // Swaps rows R1% and R2% in matrix A() -bool SwapMatrixRow(uint32_t mA, uint32_t R1, uint32_t R2) +bool rc_swapMatrixRow(uint32_t mA, uint32_t R1, uint32_t R2) { if(R1 >= rc_matrix[mA].r || R2 >= rc_matrix[mA].r) { @@ -1047,7 +1041,7 @@ bool SwapMatrixRow(uint32_t mA, uint32_t R1, uint32_t R2) } // Transposes matrix A(), output matrix B() -bool TransposeMatrix(uint32_t mA, uint32_t mB) +bool rc_transposeMatrix(uint32_t mA, uint32_t mB) { DimMatrix(mB, rc_matrix[mA].c, rc_matrix[mA].r); @@ -1067,7 +1061,7 @@ bool TransposeMatrix(uint32_t mA, uint32_t mB) // Splits matrix A() into square Coefficient B() and remaining Augment C() -bool UnAugmentMatrix(uint32_t mA, uint32_t mB, uint32_t mC) +bool rc_unAugmentMatrix(uint32_t mA, uint32_t mB, uint32_t mC) { if(rc_matrix[mA].c <= rc_matrix[mA].r) { @@ -1110,18 +1104,18 @@ bool UnAugmentMatrix(uint32_t mA, uint32_t mB, uint32_t mC) // Clears contents of matrix A(). -void ZeroMatrix (uint32_t mA) +void rc_zeroMatrix (uint32_t mA) { - ClearMatrix(mA); + rc_clearMatrix(mA); } -void GetMatrixSize(uint32_t mA, double* r, double* c) +void rc_getMatrixSize(uint32_t mA, double* r, double* c) { *r = rc_matrix[mA].r; *c = rc_matrix[mA].c; } -void IncrementMatrixRows(uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows, double value) +void rc_incrementMatrixRows(uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows, double value) { if(num_rows < 0) return; @@ -1132,19 +1126,19 @@ void IncrementMatrixRows(uint32_t mA, uint32_t mB, uint32_t r, uint32_t num_rows if( (r+num_rows) >= rc_matrix[mA].r ) num_rows = rc_matrix[mA].r - r; - CopyMatrix(mA, mB); + rc_copyMatrix(mA, mB); for(int mr = r; mr < (r+num_rows); mr++) { for(int mc = 0; mc < rc_matrix[mA].c; mc++) { - double mv = MatrixValue(mA, mr, mc) + value; - SetMatrixValue(mB, mr, mc, mv); + double mv = rc_matrixValue(mA, mr, mc) + value; + rc_setMatrixValue(mB, mr, mc, mv); } } } -void IncrementMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols, double value) +void rc_incrementMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_cols, double value) { if(num_cols < 0) return; @@ -1155,19 +1149,19 @@ void IncrementMatrixColumns(uint32_t mA, uint32_t mB, uint32_t c, uint32_t num_c if( (c+num_cols) >= rc_matrix[mA].c ) num_cols = rc_matrix[mA].c - c; - CopyMatrix(mA, mB); + rc_copyMatrix(mA, mB); for(int mr = 0; mr < rc_matrix[mA].r; mr++) { for(int mc = c; mc < (c+num_cols); mc++) { - double mv = MatrixValue(mA, mr, mc) + value; - SetMatrixValue(mB, mr, mc, mv); + double mv = rc_matrixValue(mA, mr, mc) + value; + rc_setMatrixValue(mB, mr, mc, mv); } } } -void JoinMatrixRows(uint32_t mA, uint32_t mB, uint32_t mC) +void rc_joinMatrixRows(uint32_t mA, uint32_t mB, uint32_t mC) { if(rc_matrix[mA].r != rc_matrix[mB].r) return; @@ -1181,8 +1175,8 @@ void JoinMatrixRows(uint32_t mA, uint32_t mB, uint32_t mC) { for(int r = 0; r < num_rows; r++) { - double mv = MatrixValue(mA, r, c); - SetMatrixValue(mC, r, c, mv); + double mv = rc_matrixValue(mA, r, c); + rc_setMatrixValue(mC, r, c, mv); } } @@ -1190,13 +1184,13 @@ void JoinMatrixRows(uint32_t mA, uint32_t mB, uint32_t mC) { for(int r = 0; r < num_rows; r++) { - double mv = MatrixValue(mB, r, c); - SetMatrixValue(mC, r, rc_matrix[mA].c + c, mv); + double mv = rc_matrixValue(mB, r, c); + rc_setMatrixValue(mC, r, rc_matrix[mA].c + c, mv); } } } -void JoinMatrixColumns(uint32_t mA, uint32_t mB, uint32_t mC) +void rc_joinMatrixColumns(uint32_t mA, uint32_t mB, uint32_t mC) { if(rc_matrix[mA].c != rc_matrix[mB].c) return; @@ -1210,8 +1204,8 @@ void JoinMatrixColumns(uint32_t mA, uint32_t mB, uint32_t mC) { for(int r = 0; r < rc_matrix[mA].r; r++) { - double mv = MatrixValue(mA, r, c); - SetMatrixValue(mC, r, c, mv); + double mv = rc_matrixValue(mA, r, c); + rc_setMatrixValue(mC, r, c, mv); } } @@ -1219,15 +1213,15 @@ void JoinMatrixColumns(uint32_t mA, uint32_t mB, uint32_t mC) { for(int r = 0; r < rc_matrix[mB].r; r++) { - double mv = MatrixValue(mB, r, c); - SetMatrixValue(mC, rc_matrix[mA].r + r, c, mv); + double mv = rc_matrixValue(mB, r, c); + rc_setMatrixValue(mC, rc_matrix[mA].r + r, c, mv); } } } -void ClipMatrix(int mA, int r, int c, int num_rows, int num_cols, int mB) +void rc_clipMatrix(int mA, int r, int c, int num_rows, int num_cols, int mB) { int mA_rows = rc_matrix[mA].r; int mA_cols = rc_matrix[mA].c; @@ -1241,7 +1235,7 @@ void ClipMatrix(int mA, int r, int c, int num_rows, int num_cols, int mB) if(mB_rows < 0) { DimMatrix(mB, mA_rows, mA_cols, false); - ClearMatrix(mB); + rc_clearMatrix(mB); return; } @@ -1251,7 +1245,7 @@ void ClipMatrix(int mA, int r, int c, int num_rows, int num_cols, int mB) if(mB_cols < 0) { DimMatrix(mB, mA_rows, mA_cols, false); - ClearMatrix(mB); + rc_clearMatrix(mB); return; } @@ -1259,7 +1253,7 @@ void ClipMatrix(int mA, int r, int c, int num_rows, int num_cols, int mB) for(int row = r; row < (r+num_rows); row++) for(int col = c; col < (c+num_cols); col++) - SetMatrixValue( mB, row-r, col-c, MatrixValue(mA, row, col)); + rc_setMatrixValue( mB, row-r, col-c, rc_matrixValue(mA, row, col)); } int rc_convertFromIrrMatrix(irr::core::matrix4 irr_mat, int mB = -1) @@ -1279,15 +1273,15 @@ int rc_convertFromIrrMatrix(irr::core::matrix4 irr_mat, int mB = -1) rc_matrix[mA].data[i*4+3] = irr_mat[i*4+3]; } - TransposeMatrix(mA, mB); - DeleteMatrix(mA); + rc_transposeMatrix(mA, mB); + rc_deleteMatrix(mA); return mB; } irr::core::matrix4 rc_convertToIrrMatrix(int mA) { int mB = DimMatrix(NEW_MATRIX, 4, 4); - TransposeMatrix(mA, mB); + rc_transposeMatrix(mA, mB); irr::core::matrix4 irr_mat; @@ -1299,7 +1293,7 @@ irr::core::matrix4 rc_convertToIrrMatrix(int mA) irr_mat[i*4+3] = rc_matrix[mB].data[i*4+3]; } - DeleteMatrix(mB); + rc_deleteMatrix(mB); return irr_mat; } diff --git a/rcbasic_runtime/rc_net.h b/rcbasic_runtime/rc_net.h new file mode 100644 index 0000000..ae5a384 --- /dev/null +++ b/rcbasic_runtime/rc_net.h @@ -0,0 +1,424 @@ +#ifndef RC_NET_H_INCLUDED +#define RC_NET_H_INCLUDED + +#include "rc_os_defines.h" + +#ifdef RC_ANDROID +#define RC_MOBILE +#endif + +#ifdef RC_IOS +#define RC_MOBILE +#endif + + +#ifdef RC_ANDROID + +#include +//Using SDL and standard IO +#include "SDL.h" +#include +#include +#include +#include +#include "SDL_net.h" +#include +#include + +#else + +#ifdef RC_IOS + +//Using SDL and standard IO +#include "SDL2/SDL.h" +#include +#include +#include +#include +#include +#include "SDL2/SDL_net.h" + +#else +//Using SDL and standard IO +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#endif //RC_IOS + +#endif // RC_ANDROID + +const int MAX_SOCKETS = 256; + +struct rc_tcp_socket_obj +{ + TCPsocket socket; + bool active = false; +}; + +std::vector rc_tcp_socket; + +struct rc_udp_socket_obj +{ + UDPsocket socket; + bool active = false; +}; + +std::vector rc_udp_socket; + +UDPpacket * rc_udp_packet; +int rc_udp_channel; +std::string rc_udp_data; +int rc_udp_len; +int rc_udp_maxlen; +std::string rc_udp_host; +Uint16 rc_udp_port; +int rc_packet_size = 0; +SDLNet_SocketSet rc_socket_set; + +bool rc_net_init() +{ + if (SDLNet_Init() < 0) + { + fprintf(stderr, "SDLNet_Init: %s\n", SDLNet_GetError()); + //exit(EXIT_FAILURE); + return false; + } + rc_socket_set = SDLNet_AllocSocketSet(MAX_SOCKETS*2); + + rc_udp_packet = SDLNet_AllocPacket(512); + rc_packet_size = 512; + + return true; +} + +bool rc_net_quit() +{ + SDLNet_Quit(); +} + +int rc_net_tcp_openSocket(std::string host, Uint16 port) +{ + int id = -1; + + for(int i = 0; i < rc_tcp_socket.size(); i++) + { + if(!rc_tcp_socket[i].active) + { + id = i; + break; + } + } + + if(id < 0) + { + rc_tcp_socket_obj obj; + rc_tcp_socket.push_back(obj); + } + + IPaddress ip; + if(host.compare("") == 0) + { + //exit(0); + SDLNet_ResolveHost(&ip, NULL, port); + } + else + { + //exit(0); + SDLNet_ResolveHost(&ip, host.c_str(), port); + } + rc_tcp_socket[id].socket = SDLNet_TCP_Open(&ip); + if(!rc_tcp_socket[id].socket) + return -1; + + //cout << "Add socket to socket_set" << endl; + SDLNet_TCP_AddSocket(rc_socket_set, rc_tcp_socket[id].socket); + return id; +} + +void rc_net_tcp_closeSocket(int _socket) +{ + if(rc_tcp_socket[_socket].socket == NULL) + { + rc_tcp_socket[_socket].active = false; + return; + } + SDLNet_TCP_DelSocket(rc_socket_set, rc_tcp_socket[_socket].socket); + SDLNet_TCP_Close(rc_tcp_socket[_socket].socket); + rc_tcp_socket[_socket].socket = NULL; + rc_tcp_socket[_socket].active = false; +} + +Uint32 rc_net_tcp_remoteHost(int _socket) +{ + IPaddress * ip = SDLNet_TCP_GetPeerAddress(rc_tcp_socket[_socket].socket); + return ip->host; +} + +Uint32 rc_net_tcp_remotePort(int _socket) +{ + IPaddress * ip = SDLNet_TCP_GetPeerAddress(rc_tcp_socket[_socket].socket); + return ip->port; +} + +int rc_net_checkSockets(Uint32 m) +{ + return SDLNet_CheckSockets(rc_socket_set, m); +} + +int rc_net_tcp_socketReady(int _socket) +{ + return SDLNet_SocketReady(rc_tcp_socket[_socket].socket); +} + +int rc_net_tcp_getData(int socket, int numBytes, void * dst) +{ + int rtn = SDLNet_TCP_Recv(rc_tcp_socket[socket].socket, dst, numBytes); + return rtn; +} + +int rc_net_tcp_getData_str(int socket, int numBytes, std::string * dst) +{ + char c[numBytes+1]; + int rtn = rc_net_tcp_getData(socket, numBytes, c); + c[numBytes] = '\0'; + //cout << "Read bytes: " << (string)c << endl; + dst[0] = c; + return rtn; +} + +int rc_net_tcp_getData_dbl(int socket, int numBytes, double * dst) +{ + int i[numBytes]; + int rtn = rc_net_tcp_getData(socket, numBytes, i); + for(int n = 0; n < numBytes; n++) + { + dst[n] = i[n]; + } + return rtn; +} + +void rc_net_tcp_sendData(int socket, std::string data) +{ + SDLNet_TCP_Send(rc_tcp_socket[socket].socket, data.c_str(), data.length()); +} + +bool rc_net_tcp_acceptSocket(int socket_server, int socket_client) +{ + //cout << "\n\nthis is a test\n\n"; + if(rc_tcp_socket[socket_server].socket == NULL) + { + //cout << "no server" << endl; + return false; + } + bool val = (rc_tcp_socket[socket_client].socket = SDLNet_TCP_Accept(rc_tcp_socket[socket_server].socket)); + if(val) + SDLNet_TCP_AddSocket(rc_socket_set, rc_tcp_socket[socket_client].socket); + //cout << "cp1\n"; + return val; +} + +bool rc_net_udp_openSocket(Uint16 port) +{ + int socket = -1; + + for(int i = 0; i < rc_udp_socket.size(); i++) + { + if(!rc_udp_socket[i].active) + { + socket = i; + break; + } + } + + if(socket < 0) + { + rc_udp_socket_obj obj; + socket = rc_udp_socket.size(); + rc_udp_socket.push_back(obj); + } + + bool rtn = (bool)(rc_udp_socket[socket].socket = SDLNet_UDP_Open(port)); + if(rtn) + { + SDLNet_UDP_AddSocket(rc_socket_set, rc_udp_socket[socket].socket); + rc_udp_socket[socket].active = true; + } + else + { + rc_udp_socket[socket].active = false; + rc_udp_socket[socket].socket = NULL; + return -1; + } + + return socket; +} + +int rc_net_udp_socketReady(int socket) +{ + return SDLNet_SocketReady(rc_udp_socket[socket].socket); +} + +int rc_net_udp_readStream(int socket, std::string * host, double * port, std::string * dst) +{ + //cout << "DEBUG READSTREAM\n"; + //UDPsocket sd; /* Socket descriptor */ + //UDPpacket *p; /* Pointer to packet memory */ + //int quit = 0; + + /* Make space for the packet */ + //if (!(rc_udp_packet = SDLNet_AllocPacket(512))) + //{ + // fprintf(stderr, "SDLNet_AllocPacket: %s\n", SDLNet_GetError()); + // exit(EXIT_FAILURE); + //} + + /* Main loop */ + + /* Wait a packet. UDP_Recv returns != 0 if a packet is coming */ + //while(!quit) + //{ + if (SDLNet_UDP_Recv(rc_udp_socket[socket].socket, rc_udp_packet)) + { + //printf("UDP Packet incoming\n"); + //printf("\tChan: %d\n", rc_udp_packet->channel); + rc_udp_channel = rc_udp_packet->channel; + //printf("\tData: %s\n", (char *)rc_udp_packet->data); + const char * c = (const char *)rc_udp_packet->data; + //rc_udp_data = (string)c; + *dst = (std::string)c; + //printf("\tLen: %d\n", rc_udp_packet->len); + rc_udp_len = rc_udp_packet->len; + //printf("\tMaxlen: %d\n", rc_udp_packet->maxlen); + rc_udp_maxlen = rc_udp_packet->maxlen; + //printf("\tStatus: %d\n", rc_udp_packet->status); + //printf("\tAddress: %x %x\n", rc_udp_packet->address.host, rc_udp_packet->address.port); + //rc_udp_host = SDLNet_ResolveIP(&rc_udp_packet->address); + *host = SDLNet_ResolveIP(&rc_udp_packet->address); + //rc_udp_port = rc_udp_packet->address.port; + *port = rc_udp_packet->address.port; + return 1; + //quit = 1; + } + else + { + rc_udp_channel = 0; + //rc_udp_data = ""; + *dst = ""; + rc_udp_len = 0; + rc_udp_maxlen = rc_udp_packet->maxlen; + //rc_udp_host = SDLNet_ResolveIP(&rc_udp_packet->address); + *host = SDLNet_ResolveIP(&rc_udp_packet->address); + //rc_udp_port = rc_udp_packet->address.port; + *port = rc_udp_packet->address.port; + return 0; + } + + //} + + //SDLNet_FreePacket(rc_udp_packet); +} + +Uint32 rc_net_udp_len() +{ + return rc_udp_len; +} + +Uint32 rc_net_udp_maxlen() +{ + return rc_udp_maxlen; +} + +std::string rc_net_udp_getRemoteHost(int socket) +{ + IPaddress * ip = SDLNet_UDP_GetPeerAddress(rc_udp_socket[socket].socket,0); + // + return SDLNet_ResolveIP(ip); +} + +Uint32 rc_net_udp_getRemotePort(int socket) +{ + IPaddress * ip = SDLNet_UDP_GetPeerAddress(rc_udp_socket[socket].socket,0); + return ip->port; +} + +void rc_net_udp_closeSocket(int socket) +{ + SDLNet_UDP_DelSocket(rc_socket_set, rc_udp_socket[socket].socket); + SDLNet_UDP_Close(rc_udp_socket[socket].socket); + rc_udp_socket[socket].socket = NULL; + rc_udp_socket[socket].active = false; +} + +int rc_net_udp_sendData(int slot, std::string host, Uint16 port, std::string s_data) +{ + IPaddress srvadd; + + if(s_data.length()+1 > rc_packet_size) + { + rc_packet_size = SDLNet_ResizePacket(rc_udp_packet, s_data.length()+1); + if(rc_packet_size < s_data.length()) + { + std::cout << "UDP_SendData Error: " << SDLNet_GetError() << endl; + return 0; + } + } + + + if(rc_udp_packet == NULL) + return 0; + + + if (SDLNet_ResolveHost(&srvadd, host.c_str(), port) == -1) + { + std::cout << "UDP_SendData Error: " << SDLNet_GetError() << "\n"; + //exit(EXIT_FAILURE); + return 0; + } + + rc_udp_packet->address.host = srvadd.host; + rc_udp_packet->address.port = srvadd.port; + rc_udp_packet->data = (Uint8*)s_data.c_str(); + + + rc_udp_packet->len = s_data.length()+1; + //cout << "#Data = " << (char*)rc_udp_packet->data << endl; + //cout << "#Length = " << rc_udp_packet->len << endl; + SDLNet_UDP_Send(rc_udp_socket[slot].socket, -1, rc_udp_packet); + + return 1; +} + +std::string rc_byteToString(Uint8 n) +{ + std::stringstream s; + s << (Uint32)n; + return s.str(); +} + +std::string rc_net_myLocalIP() +{ + //cout << "MYLOCALIP" << endl; + IPaddress myIP; + myIP.host = 0; + myIP.port = 0; + std::string net_name = SDLNet_ResolveIP(&myIP); + SDLNet_ResolveHost(&myIP,net_name.c_str(),0); + std::string ip = ""; + ip += rc_byteToString((Uint8)myIP.host) + "."; + ip += rc_byteToString((Uint8)(myIP.host >> 8)) + "."; + ip += rc_byteToString((Uint8)(myIP.host >> 16)) + "."; + ip += rc_byteToString((Uint8)(myIP.host >> 24)); + //cout << "vagina: " << myIP.host << endl; + return ip; +} + + + +#endif // RC_NET_H_INCLUDED diff --git a/rcbasic_runtime/rc_stdlib.h b/rcbasic_runtime/rc_stdlib.h index b5f6204..cd3e29e 100755 --- a/rcbasic_runtime/rc_stdlib.h +++ b/rcbasic_runtime/rc_stdlib.h @@ -1405,8 +1405,9 @@ inline std::string rc_intern_env(std::string v) #endif } -inline int rc_intern_setEnv(std::string name, std::string value, int overwrite) +inline int rc_intern_setEnv(std::string name, std::string value) { + int overwrite = 1; #ifdef RC_WINDOWS //string env_cmd = name + "=" + value; return SetEnvironmentVariable(name.c_str(), value.c_str()) ? 1 : 0; @@ -1649,4 +1650,10 @@ std::string rc_intern_android_jni_message(std::string arg_c) } #endif + +int rc_numCPUs() +{ + return SDL_GetCPUCount(); +} + #endif // RC_STDLIB_H_INCLUDED diff --git a/rcbasic_runtime/rc_video.h b/rcbasic_runtime/rc_video.h new file mode 100644 index 0000000..dbc5d8d --- /dev/null +++ b/rcbasic_runtime/rc_video.h @@ -0,0 +1,109 @@ +#ifndef RC_VIDEO_H_INCLUDED +#define RC_VIDEO_H_INCLUDED + +#include "rc_gfx_core.h" +#include + + + +void rc_loadVideo( std::string vid_file ) +{ + irrtheora::loadVideo(vid_file); +} + +void rc_playVideo( int v_loops ) +{ + if(rc_active_canvas < 0 || rc_active_canvas >= rc_canvas.size()) + { + std::cout << "PlayVideo Error: No Active Canvas available" << std::endl; + return; + } + + if(!rc_canvas[rc_active_canvas].texture) + { + std::cout << "PlayVideo Error: No Active Canvas available" << std::endl; + return; + } + + irrtheora::playVideo(v_loops, rc_canvas[rc_active_canvas].texture); +} + +void rc_pauseVideo( ) +{ + irrtheora::pauseVideo(); +} + +void rc_stopVideo( ) +{ + irrtheora::stopVideo(); +} + +void rc_setVideoPosition(Uint32 pos) +{ + irrtheora::setVideoPosition(pos); +} + +void rc_resumeVideo( ) +{ + irrtheora::resumeVideo(); +} + +Uint32 rc_getVideoPosition( ) +{ + return irrtheora::videoPosition(); +} + +void rc_deleteVideo( ) +{ + irrtheora::deleteVideo(); +} + +bool rc_videoIsPlaying( ) +{ + return irrtheora::videoIsPlaying(); +} + +bool rc_videoEnd( ) +{ + return irrtheora::videoEnd(); +} + +void rc_getVideoStats( std::string vid_file, double* vlen, double* vfps, double* frame_w, double* frame_h ) +{ + irrtheora::getVideoStats(vid_file, vlen, vfps, frame_w, frame_h); +} + +void rc_setVideoDrawRect( double x, double y, double w, double h ) +{ + irrtheora::setVideoDrawRect(x, y, w, h); +} + +void rc_getVideoDrawRect( double* x, double* y, double* w, double* h ) +{ + irrtheora::getVideoDrawRect(x, y, w, h); +} + +void rc_getVideoSize( double* w, double* h ) +{ + irrtheora::getVideoSize(w, h); +} + +bool rc_videoExists( ) +{ + return irrtheora::videoExists(); +} + + +void rc_setVideoVolume( int vol ) +{ + irrtheora::setVideoVolume(vol); +} + +int rc_getVideoVolume( ) +{ + return irrtheora::getVideoVolume(); +} + + + +#endif // RC_VIDEO_H_INCLUDED