├── Tools ├── Importer │ ├── Importer │ │ ├── Utils.h │ │ ├── D3DExporter.h │ │ ├── D3DImporter.h │ │ ├── MPMExporter.h │ │ ├── Types.h │ │ ├── Importer.vcxproj.user │ │ └── Utils.cpp │ └── .gitignore └── ExtGen │ └── .gitignore ├── MAE └── MAE │ ├── Core │ ├── Deletable.h │ ├── Exception.h │ ├── Types.h │ └── Utils.h │ ├── Rendering │ ├── Resources │ │ ├── Texture.cpp │ │ ├── Texture.h │ │ └── TextureImpl.h │ ├── Model │ │ └── ModelBase.h │ └── Mesh.h │ ├── FMOD │ └── CFmodHelper.h │ └── MainImpl.h ├── GML ├── MAE.gmx │ ├── scripts │ │ ├── UpdateCheckbox.gml │ │ ├── CreateCheckbox.gml │ │ ├── MAE_VectorGet.gml │ │ ├── MAE_FmodCreate.gml │ │ ├── MAE_FmodUpdate.gml │ │ ├── MAE_QuaternionGet.gml │ │ ├── UpdateSlider.gml │ │ ├── MAE_FmodGetSounds.gml │ │ ├── MAE_FmodShutdown.gml │ │ ├── MAE_NavMeshCreate.gml │ │ ├── MAE_FmodGetCPUUsage.gml │ │ ├── MAE_FmodInitialize.gml │ │ ├── MAE_MatrixDup.gml │ │ ├── MAE_VectorDup.gml │ │ ├── MAE_ModelXRender.gml │ │ ├── MAE_PhysVertexBufferDestroy.gml │ │ ├── MAE_QuaternionDup.gml │ │ ├── MAE_FmodChannelCreate.gml │ │ ├── MAE_FmodGetSampleRate.gml │ │ ├── MAE_MatrixIsMat2.gml │ │ ├── MAE_MatrixIsMat3.gml │ │ ├── MAE_MatrixIsMat4.gml │ │ ├── MAE_ModelXDestroy.gml │ │ ├── MAE_NavMeshClear.gml │ │ ├── MAE_AnimationGetFrame.gml │ │ ├── MAE_Free.gml │ │ ├── MAE_NavMeshDestroy.gml │ │ ├── MAE_AnimationGetFrameNext.gml │ │ ├── MAE_FmodSoundFree.gml │ │ ├── MAE_ForwardPipelineCreate.gml │ │ ├── MAE_MatrixGet.gml │ │ ├── MAE_ModelDraftDestroy.gml │ │ ├── MAE_NavMeshDebugDraw.gml │ │ ├── MAE_FmodChannelStop.gml │ │ ├── MAE_ModelDraftLoadMPM.gml │ │ ├── MAE_QuaternionSet.gml │ │ ├── MAE_TextureCollectionCreate.gml │ │ ├── MAE_VectorDistance.gml │ │ ├── MAE_FmodSoundGetType.gml │ │ ├── MAE_NavMeshWaitForBuild.gml │ │ ├── MAE_QuaternionIsQuaternion.gml │ │ ├── MAE_ShaderReset.gml │ │ ├── MAE_AnimationGetTween.gml │ │ ├── MAE_FmodChannelDelete.gml │ │ ├── MAE_FmodSetMaxChannels.gml │ │ ├── MAE_ForwardPipelineDestroy.gml │ │ ├── MAE_MatrixCreateNormalMatrix.gml │ │ ├── MAE_NavMeshEndBuild.gml │ │ ├── MAE_NavMeshGetBuildStatus.gml │ │ ├── MAE_FmodSoundLoad.gml │ │ ├── MAE_ParticleEmitterCreate.gml │ │ ├── MAE_FmodSoundPlay.gml │ │ ├── MAE_TextureCollectionDestroy.gml │ │ ├── MAE_VectorIsVec2.gml │ │ ├── MAE_VectorIsVec3.gml │ │ ├── MAE_VectorIsVec4.gml │ │ ├── MAE_VectorSet.gml │ │ ├── MAE_FmodChannelPause.gml │ │ ├── MAE_PhysBodyDestroy.gml │ │ ├── MAE_VectorUnproject.gml │ │ ├── MAE_FmodChannelSetPitch.gml │ │ ├── MAE_ForwardPipelineDestroyModel.gml │ │ ├── MAE_PhysShapeDestroyAll.gml │ │ ├── MAE_QuaternionRotateMatrix.gml │ │ ├── MAE_VectorCreateAngle2D.gml │ │ ├── MAE_FmodChannelSetVolume.gml │ │ ├── MAE_FmodSoundSetLoopMode.gml │ │ ├── MAE_MatrixSet.gml │ │ ├── MAE_PhysBodyDeactivate.gml │ │ ├── MAE_PhysBodyGetMask.gml │ │ ├── MAE_PhysBodyGetShape.gml │ │ ├── MAE_TextureCollectionAdd.gml │ │ ├── CreateSlider.gml │ │ ├── MAE_FmodSetSoftwareFormat.gml │ │ ├── MAE_ForwardPipelineRenderModel.gml │ │ ├── MAE_ParticleSystemCreate.gml │ │ ├── MAE_ParticleSystemGetParticleCount.gml │ │ ├── MAE_PhysBodyGetGroup.gml │ │ ├── MAE_QuaternionCreateIdentity.gml │ │ ├── MAE_FmodChannelSetFrequency.gml │ │ ├── MAE_FmodChannelSetPosition.gml │ │ ├── MAE_MatrixRotateX.gml │ │ ├── MAE_MatrixRotateY.gml │ │ ├── MAE_MatrixRotateZ.gml │ │ ├── MAE_PhysShapeCreateSphere.gml │ │ ├── MAE_PhysWorldExists.gml │ │ ├── MAE_PhysBodyIsStatic.gml │ │ ├── MAE_PhysConstraintDestroy.gml │ │ ├── MAE_QuaternionRotateVector.gml │ │ ├── MAE_ForwardPipelineCreateModel.gml │ │ ├── MAE_ParticleSystemRender.gml │ │ ├── MAE_ParticleSystemSetParticleCount.gml │ │ ├── MAE_PhysBodyActivate.gml │ │ ├── MAE_PhysShapeCreateCylinder.gml │ │ ├── MAE_PhysWorldDestroy.gml │ │ ├── MAE_TextureDestroy.gml │ │ ├── MAE_ParticleSystemDestroy.gml │ │ ├── MAE_PhysWorldGetBodyCount.gml │ │ ├── MAE_QuaternionCreate.gml │ │ ├── MAE_FmodSoundSetLoopPoints.gml │ │ ├── MAE_PhysBodyGetLinearDamping.gml │ │ ├── MAE_PhysBodyIsActive.gml │ │ ├── MAE_PhysBodyIsKinematic.gml │ │ ├── MAE_PhysWorldSetGravity.gml │ │ ├── MAE_QuaternionMagnitude.gml │ │ ├── MAE_ViewportCreate.gml │ │ ├── DrawWindow.gml │ │ ├── MAE_MatrixRotateQuaternion.gml │ │ ├── MAE_ParticleEmitterSetParticleLife.gml │ │ ├── MAE_ParticleEmitterSetParticleSize.gml │ │ ├── MAE_ParticleSystemUpdate.gml │ │ ├── MAE_PhysBodyGetAngularDamping.gml │ │ ├── MAE_ShaderSet.gml │ │ ├── MAE_MatrixRotateVector.gml │ │ ├── MAE_ModelMD2Destroy.gml │ │ ├── MAE_ParticleEmitterSetParticleCount.gml │ │ ├── MAE_PhysBodyIsDynamic.gml │ │ ├── MAE_PhysBodySetShape.gml │ │ ├── MAE_PhysWorldGetConstraintCount.gml │ │ ├── MAE_QuaternionInvert.gml │ │ ├── MAE_QuaternionMagnitudeSquared.gml │ │ ├── MAE_PhysBodyGetFriction.gml │ │ ├── MAE_PhysBodyGetRestitution.gml │ │ ├── MAE_PhysBodyGetRollingFriction.gml │ │ ├── MAE_AnimationSet.gml │ │ ├── MAE_ModelMD2Frames.gml │ │ ├── MAE_ParticleSystemSetTexture.gml │ │ ├── MAE_PhysWorldSetGravityVector.gml │ │ ├── MAE_ShaderDestroy.gml │ │ ├── MAE_PhysVertexBufferCreate.gml │ │ ├── MAE_TextureSet.gml │ │ ├── MAE_PhysBodySetFriction.gml │ │ ├── MAE_ModelXLoad.gml │ │ ├── MAE_NavMeshBeginBuild.gml │ │ ├── MAE_PhysConstraintGetAppliedImpulse.gml │ │ ├── MAE_VectorCreateAngle3D.gml │ │ ├── MAE_MatrixGetDimension.gml │ │ ├── MAE_NavMeshAddLink.gml │ │ ├── MAE_PhysShapeCreateCompound.gml │ │ ├── MAE_NavMeshSetAgentConfig.gml │ │ ├── MAE_PhysBodyDisableDeactivation.gml │ │ ├── MAE_AnimationCreate.gml │ │ ├── MAE_PhysBodySetGravity.gml │ │ ├── MAE_PhysConstraintSetEnabled.gml │ │ ├── MAE_PhysBodyGetRotationMatrix.gml │ │ ├── MAE_PhysBodySetRollingFriction.gml │ │ ├── MAE_PhysShapeRemoveChild.gml │ │ ├── MAE_PhysVertexBufferAddVertex.gml │ │ ├── MAE_PhysBodySetRestitution.gml │ │ ├── MAE_PhysShapeCreateBox.gml │ │ ├── MAE_ShaderCreate.gml │ │ ├── MAE_PhysBodySetAnisotropicFriction.gml │ │ ├── MAE_ModelMD2Load.gml │ │ ├── MAE_PhysBodySetPosition.gml │ │ ├── MAE_PhysShapeCreatePlane.gml │ │ ├── MAE_PhysWorldDebugDraw.gml │ │ ├── MAE_AnimationAdd.gml │ │ ├── MAE_PhysBodySetDeactivationTime.gml │ │ ├── MAE_PhysBodySetGravityVector.gml │ │ ├── MAE_PhysBodySetLinearVelocity.gml │ │ ├── MAE_PhysShapeSetScaling.gml │ │ ├── MAE_ParticleEmitterSetParticleAcceleration.gml │ │ ├── MAE_PhysBodyGetDeactivationTime.gml │ │ ├── MAE_PhysBodySetAngularVelocity.gml │ │ ├── MAE_PhysBodySetDamping.gml │ │ ├── MAE_QuaternionNorm.gml │ │ ├── MAE_PhysBodySetRotation.gml │ │ ├── MAE_PhysShapeCreateCone.gml │ │ ├── MAE_PhysBodySetAnisotropicFrictionVector.gml │ │ ├── MAE_PhysBodySetPositionVector.gml │ │ ├── MAE_ShaderGetLocation.gml │ │ ├── MAE_VectorCross.gml │ │ ├── MAE_ParticleEmitterSetParticlePosition.gml │ │ ├── MAE_ParticleEmitterSetParticleVelocity.gml │ │ ├── MAE_PhysBodyGetUserIndex.gml │ │ ├── MAE_PhysWorldHitFraction.gml │ │ ├── MAE_QuaternionRotate.gml │ │ ├── MAE_ShaderFindConstant.gml │ │ ├── MAE_ParticleEmitterSetParticleColour.gml │ │ ├── MAE_PhysShapeCreateCapsule.gml │ │ ├── MAE_PhysShapeSetScalingVector.gml │ │ ├── MAE_PhysShapeCreateConvexHull.gml │ │ ├── MAE_PhysBodyCreate.gml │ │ ├── MAE_ModelMD2Render.gml │ │ ├── MAE_PhysBodyGetIgnore.gml │ │ ├── MAE_PhysBodySetRotationVec.gml │ │ ├── MAE_MatrixRotate.gml │ │ ├── MAE_PhysBodyApplyTorque.gml │ │ ├── MAE_PhysBodySetAngularVelocityVector.gml │ │ ├── MAE_PhysBodySetIgnore.gml │ │ ├── MAE_PhysBodySetLinearVelocityVector.gml │ │ ├── MAE_PhysBodySetRotationQuat.gml │ │ └── MAE_ShaderSetSampler.gml │ ├── Configs │ │ └── Default │ │ │ ├── HTML5 │ │ │ ├── fav.ico │ │ │ └── splash.png │ │ │ ├── Mac │ │ │ ├── splash.png │ │ │ └── icon512.png │ │ │ ├── iOS │ │ │ ├── splash.png │ │ │ ├── iPadsplash.png │ │ │ ├── iPhone5splash.png │ │ │ ├── iPhone6Splash.png │ │ │ ├── iPhonesplash.png │ │ │ ├── icons │ │ │ │ ├── icon114.png │ │ │ │ ├── icon120.png │ │ │ │ ├── icon144.png │ │ │ │ ├── icon152.png │ │ │ │ ├── icon167.png │ │ │ │ ├── icon57.png │ │ │ │ ├── icon72.png │ │ │ │ └── icon76.png │ │ │ ├── iPadRetinaSplash.png │ │ │ ├── splashPortrait.png │ │ │ ├── iPadsplashPortrait.png │ │ │ ├── iPhone6PlusSplash.png │ │ │ ├── iPhoneRetinasplash.png │ │ │ ├── iPhone5splashPortrait.png │ │ │ ├── iPhone6SplashPortrait.png │ │ │ ├── iPhonesplashPortrait.png │ │ │ ├── iPadRetinaSplashPortrait.png │ │ │ ├── iPhone6PlusSplashPortrait.png │ │ │ └── iPhoneRetinasplashPortrait.png │ │ │ ├── Linux │ │ │ ├── icon64.png │ │ │ └── splash.png │ │ │ ├── Tizen │ │ │ ├── splash.png │ │ │ └── icon117.png │ │ │ ├── Android │ │ │ ├── splash.png │ │ │ ├── icons │ │ │ │ ├── ouyaIcon.png │ │ │ │ ├── icon_hdpi.png │ │ │ │ ├── icon_ldpi.png │ │ │ │ ├── icon_mdpi.png │ │ │ │ ├── icon_xhdpi.png │ │ │ │ ├── icon_xxhdpi.png │ │ │ │ └── icon_xxxhdpi.png │ │ │ └── portrait_splash.png │ │ │ ├── windows │ │ │ ├── License.txt │ │ │ ├── splash.png │ │ │ ├── runner_icon.ico │ │ │ ├── Runner_finish.bmp │ │ │ ├── Runner_header.bmp │ │ │ └── Runner_Icon_256.ico │ │ │ ├── WinPhone │ │ │ ├── CycleSmall.png │ │ │ ├── CycleWide1.png │ │ │ ├── CycleWide2.png │ │ │ ├── CycleWide3.png │ │ │ ├── CycleWide4.png │ │ │ ├── CycleWide5.png │ │ │ ├── CycleWide6.png │ │ │ ├── CycleWide7.png │ │ │ ├── CycleWide8.png │ │ │ ├── CycleWide9.png │ │ │ ├── FlipMedBack.png │ │ │ ├── IconicSmall.png │ │ │ ├── IconicWide.png │ │ │ ├── FlipMedFront.png │ │ │ ├── FlipSmallBack.png │ │ │ ├── FlipWideBack.png │ │ │ ├── FlipWideFront.png │ │ │ ├── ApplicationIcon.png │ │ │ ├── FlipSmallFront.png │ │ │ ├── SplashScreenImage.jpg │ │ │ ├── SplashScreenImage480.jpg │ │ │ └── SplashScreenImage720.jpg │ │ │ ├── Windows8 │ │ │ ├── logos │ │ │ │ ├── logo150.png │ │ │ │ ├── logo30.png │ │ │ │ ├── logo310.png │ │ │ │ └── logo50.png │ │ │ ├── splashscreen.png │ │ │ ├── Windows8_TemporaryKey.pfx │ │ │ └── Win8NativeRunner_TemporaryKey.pfx │ │ │ └── WindowsUAP │ │ │ ├── logos │ │ │ ├── Logo.scale-100.png │ │ │ ├── WideLogo.scale-100.png │ │ │ ├── LargeLogo.scale-100.png │ │ │ ├── SmallLogo.scale-100.png │ │ │ ├── StoreLogo.scale-100.png │ │ │ └── SmallishLogo.scale-100.png │ │ │ ├── SplashScreen.scale-100.png │ │ │ └── WinUWPRunner_TemporaryKey.pfx │ ├── background │ │ └── images │ │ │ ├── tex_box.png │ │ │ └── tex_Light.png │ ├── datafiles │ │ └── COMMON │ │ │ ├── MODEL │ │ │ ├── tank.mpm │ │ │ └── hobgoblin.md2 │ │ │ ├── PARTICLE │ │ │ ├── fire.png │ │ │ └── smoke.png │ │ │ ├── TEXTURE │ │ │ ├── tiger.bmp │ │ │ ├── TankTex.png │ │ │ └── hobgoblin.bmp │ │ │ └── MUSIC │ │ │ └── shes_had_enough_theme1.ogg │ ├── extensions │ │ └── MAE │ │ │ └── Assets │ │ │ ├── datafiles │ │ │ └── .gitignore │ │ │ └── Scripts │ │ │ ├── MAE_VectorGet.gml │ │ │ ├── MAE_QuaternionGet.gml │ │ │ ├── MAE_FmodCreate.gml │ │ │ ├── MAE_FmodUpdate.gml │ │ │ ├── MAE_FmodShutdown.gml │ │ │ ├── MAE_NavMeshCreate.gml │ │ │ ├── MAE_FmodGetSounds.gml │ │ │ ├── MAE_FmodInitialize.gml │ │ │ ├── MAE_MatrixDup.gml │ │ │ ├── MAE_VectorDup.gml │ │ │ ├── MAE_FmodGetCPUUsage.gml │ │ │ ├── MAE_ModelMPMLoad.gml │ │ │ ├── MAE_PhysVertexBufferDestroy.gml │ │ │ ├── MAE_FmodChannelCreate.gml │ │ │ ├── MAE_FmodGetSampleRate.gml │ │ │ ├── MAE_MatrixIsMat2.gml │ │ │ ├── MAE_MatrixIsMat3.gml │ │ │ ├── MAE_MatrixIsMat4.gml │ │ │ ├── MAE_ModelMPMRender.gml │ │ │ ├── MAE_ModelXDestroy.gml │ │ │ ├── MAE_ModelXRender.gml │ │ │ ├── MAE_NavMeshClear.gml │ │ │ ├── MAE_QuaternionDup.gml │ │ │ ├── MAE_ModelMPMDestroy.gml │ │ │ ├── MAE_NavMeshDestroy.gml │ │ │ ├── MAE_AnimationGetFrame.gml │ │ │ ├── MAE_FmodSoundFree.gml │ │ │ ├── MAE_ForwardPipelineCreate.gml │ │ │ ├── MAE_Free.gml │ │ │ ├── MAE_NavMeshDebugDraw.gml │ │ │ ├── MAE_AnimationGetFrameNext.gml │ │ │ ├── MAE_MatrixGet.gml │ │ │ ├── MAE_ModelDraftDestroy.gml │ │ │ ├── MAE_ModelDraftLoadMPM.gml │ │ │ ├── MAE_VectorDistance.gml │ │ │ ├── MAE_FmodChannelStop.gml │ │ │ ├── MAE_FmodSoundGetType.gml │ │ │ ├── MAE_NavMeshWaitForBuild.gml │ │ │ ├── MAE_QuaternionIsQuaternion.gml │ │ │ ├── MAE_QuaternionSet.gml │ │ │ ├── MAE_ShaderReset.gml │ │ │ ├── MAE_TextureCollectionCreate.gml │ │ │ ├── MAE_FmodChannelDelete.gml │ │ │ ├── MAE_FmodSetMaxChannels.gml │ │ │ ├── MAE_MatrixCreateNormalMatrix.gml │ │ │ ├── MAE_NavMeshEndBuild.gml │ │ │ ├── MAE_NavMeshGetBuildStatus.gml │ │ │ ├── MAE_AnimationGetTween.gml │ │ │ ├── MAE_FmodSoundLoad.gml │ │ │ ├── MAE_ForwardPipelineDestroy.gml │ │ │ ├── MAE_ParticleEmitterCreate.gml │ │ │ ├── MAE_FmodSoundPlay.gml │ │ │ ├── MAE_TextureCollectionDestroy.gml │ │ │ ├── MAE_VectorIsVec2.gml │ │ │ ├── MAE_VectorIsVec3.gml │ │ │ ├── MAE_VectorIsVec4.gml │ │ │ ├── MAE_FmodChannelPause.gml │ │ │ ├── MAE_PhysBodyDestroy.gml │ │ │ ├── MAE_TextureCreate.gml │ │ │ ├── MAE_VectorSet.gml │ │ │ ├── MAE_VectorUnproject.gml │ │ │ ├── MAE_ForwardPipelineDestroyModel.gml │ │ │ ├── MAE_VectorCreateAngle2D.gml │ │ │ ├── MAE_FmodChannelSetPitch.gml │ │ │ ├── MAE_FmodChannelSetVolume.gml │ │ │ ├── MAE_FmodSoundSetLoopMode.gml │ │ │ ├── MAE_MatrixSet.gml │ │ │ ├── MAE_PhysBodyDeactivate.gml │ │ │ ├── MAE_PhysBodyGetMask.gml │ │ │ ├── MAE_PhysBodyGetShape.gml │ │ │ ├── MAE_PhysShapeDestroyAll.gml │ │ │ ├── MAE_QuaternionRotateMatrix.gml │ │ │ ├── MAE_FmodSetSoftwareFormat.gml │ │ │ ├── MAE_ForwardPipelineRenderModel.gml │ │ │ ├── MAE_ParticleSystemCreate.gml │ │ │ ├── MAE_ParticleSystemGetParticleCount.gml │ │ │ ├── MAE_PhysBodyGetGroup.gml │ │ │ ├── MAE_QuaternionCreateIdentity.gml │ │ │ ├── MAE_TextureCollectionAdd.gml │ │ │ ├── MAE_FmodChannelSetPosition.gml │ │ │ ├── MAE_PhysShapeCreateSphere.gml │ │ │ ├── MAE_PhysWorldExists.gml │ │ │ ├── MAE_FmodChannelSetFrequency.gml │ │ │ ├── MAE_MatrixRotateX.gml │ │ │ ├── MAE_MatrixRotateY.gml │ │ │ ├── MAE_MatrixRotateZ.gml │ │ │ ├── MAE_PhysBodyIsStatic.gml │ │ │ ├── MAE_QuaternionRotateVector.gml │ │ │ ├── MAE_ParticleSystemRender.gml │ │ │ ├── MAE_PhysConstraintDestroy.gml │ │ │ ├── MAE_PhysShapeCreateCylinder.gml │ │ │ ├── MAE_PhysWorldDestroy.gml │ │ │ ├── MAE_TextureDestroy.gml │ │ │ ├── MAE_ForwardPipelineCreateModel.gml │ │ │ ├── MAE_ParticleSystemDestroy.gml │ │ │ ├── MAE_ParticleSystemSetParticleCount.gml │ │ │ ├── MAE_PhysBodyActivate.gml │ │ │ ├── MAE_PhysWorldGetBodyCount.gml │ │ │ ├── MAE_FmodSoundSetLoopPoints.gml │ │ │ ├── MAE_PhysBodyGetLinearDamping.gml │ │ │ ├── MAE_PhysBodyIsActive.gml │ │ │ ├── MAE_PhysBodyIsKinematic.gml │ │ │ ├── MAE_PhysWorldSetGravity.gml │ │ │ ├── MAE_QuaternionCreate.gml │ │ │ ├── MAE_MatrixRotateQuaternion.gml │ │ │ ├── MAE_ParticleEmitterSetParticleLife.gml │ │ │ ├── MAE_ParticleEmitterSetParticleSize.gml │ │ │ ├── MAE_PhysBodyGetAngularDamping.gml │ │ │ ├── MAE_QuaternionMagnitude.gml │ │ │ ├── MAE_ShaderSet.gml │ │ │ ├── MAE_ViewportCreate.gml │ │ │ ├── MAE_MatrixRotateVector.gml │ │ │ ├── MAE_ParticleEmitterSetParticleCount.gml │ │ │ ├── MAE_ParticleSystemUpdate.gml │ │ │ ├── MAE_PhysBodyIsDynamic.gml │ │ │ ├── MAE_PhysBodySetShape.gml │ │ │ ├── MAE_PhysWorldGetConstraintCount.gml │ │ │ ├── MAE_QuaternionInvert.gml │ │ │ ├── MAE_QuaternionMagnitudeSquared.gml │ │ │ ├── MAE_ModelMD2Destroy.gml │ │ │ ├── MAE_PhysBodyGetRestitution.gml │ │ │ ├── MAE_PhysBodyGetRollingFriction.gml │ │ │ ├── MAE_AnimationSet.gml │ │ │ ├── MAE_ModelMD2Frames.gml │ │ │ ├── MAE_ParticleSystemSetTexture.gml │ │ │ ├── MAE_PhysBodyGetFriction.gml │ │ │ ├── MAE_ShaderDestroy.gml │ │ │ ├── MAE_PhysVertexBufferCreate.gml │ │ │ ├── MAE_PhysWorldSetGravityVector.gml │ │ │ ├── MAE_TextureSet.gml │ │ │ ├── MAE_PhysBodySetFriction.gml │ │ │ ├── MAE_ModelXLoad.gml │ │ │ ├── MAE_NavMeshBeginBuild.gml │ │ │ ├── MAE_PhysConstraintGetAppliedImpulse.gml │ │ │ ├── MAE_MatrixGetDimension.gml │ │ │ ├── MAE_PhysShapeCreateCompound.gml │ │ │ ├── MAE_VectorCreateAngle3D.gml │ │ │ ├── MAE_NavMeshAddLink.gml │ │ │ ├── MAE_PhysBodyDisableDeactivation.gml │ │ │ ├── MAE_AnimationCreate.gml │ │ │ ├── MAE_NavMeshSetAgentConfig.gml │ │ │ ├── MAE_PhysConstraintSetEnabled.gml │ │ │ ├── MAE_PhysBodyGetRotationMatrix.gml │ │ │ ├── MAE_PhysBodySetGravity.gml │ │ │ ├── MAE_PhysShapeRemoveChild.gml │ │ │ ├── MAE_PhysVertexBufferAddVertex.gml │ │ │ ├── MAE_PhysBodySetRollingFriction.gml │ │ │ ├── MAE_ShaderCreate.gml │ │ │ ├── MAE_PhysBodySetAnisotropicFriction.gml │ │ │ ├── MAE_PhysBodySetRestitution.gml │ │ │ ├── MAE_PhysShapeCreateBox.gml │ │ │ ├── MAE_PhysWorldDebugDraw.gml │ │ │ ├── MAE_AnimationAdd.gml │ │ │ ├── MAE_ModelMD2Load.gml │ │ │ ├── MAE_PhysBodySetDeactivationTime.gml │ │ │ ├── MAE_PhysBodySetPosition.gml │ │ │ ├── MAE_PhysShapeCreatePlane.gml │ │ │ ├── MAE_PhysBodySetGravityVector.gml │ │ │ ├── MAE_PhysBodySetLinearVelocity.gml │ │ │ ├── MAE_PhysShapeSetScaling.gml │ │ │ ├── MAE_ParticleEmitterSetParticleAcceleration.gml │ │ │ ├── MAE_PhysBodyGetDeactivationTime.gml │ │ │ ├── MAE_PhysBodySetAngularVelocity.gml │ │ │ ├── MAE_PhysBodySetDamping.gml │ │ │ ├── MAE_QuaternionNorm.gml │ │ │ ├── MAE_PhysBodySetAnisotropicFrictionVector.gml │ │ │ ├── MAE_PhysBodySetRotation.gml │ │ │ ├── MAE_PhysShapeCreateCone.gml │ │ │ ├── MAE_VectorCross.gml │ │ │ ├── MAE_PhysBodySetPositionVector.gml │ │ │ ├── MAE_PhysWorldHitFraction.gml │ │ │ ├── MAE_QuaternionRotate.gml │ │ │ ├── MAE_ShaderFindConstant.gml │ │ │ ├── MAE_ShaderGetLocation.gml │ │ │ ├── MAE_ParticleEmitterSetParticleColour.gml │ │ │ ├── MAE_ParticleEmitterSetParticlePosition.gml │ │ │ ├── MAE_ParticleEmitterSetParticleVelocity.gml │ │ │ ├── MAE_PhysBodyGetUserIndex.gml │ │ │ ├── MAE_PhysShapeCreateCapsule.gml │ │ │ ├── MAE_PhysShapeSetScalingVector.gml │ │ │ ├── MAE_ShaderCompileASM.gml │ │ │ ├── MAE_PhysBodyCreate.gml │ │ │ └── MAE_PhysShapeCreateConvexHull.gml │ └── help.rtf └── Extension │ ├── gml │ └── Math.gml │ ├── generate.bat │ └── external │ └── texturecollection.xml ├── Libraries ├── README.md └── .gitignore ├── Specifications └── README.md └── .gitattributes /Tools/Importer/Importer/Utils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | const char* GetExtension(const char* file); 4 | -------------------------------------------------------------------------------- /MAE/MAE/Core/Deletable.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | class Deletable { 4 | public: 5 | virtual ~Deletable() { } 6 | }; 7 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/UpdateCheckbox.gml: -------------------------------------------------------------------------------- 1 | ///UpdateCheckbox(checkbox); 2 | return chkbx[argument0, checkboxval.value] 3 | 4 | -------------------------------------------------------------------------------- /Libraries/README.md: -------------------------------------------------------------------------------- 1 | # Libraries 2 | 3 | This folder contains the libraries needed for compiling some of the projects. 4 | -------------------------------------------------------------------------------- /Specifications/README.md: -------------------------------------------------------------------------------- 1 | # Specifications 2 | 3 | This folder contains various specifications for different file types used in the engine. 4 | -------------------------------------------------------------------------------- /Tools/ExtGen/.gitignore: -------------------------------------------------------------------------------- 1 | # ============================= 2 | # Ignore ExtGen 3 | # ============================= 4 | 5 | * 6 | !.gitignore 7 | -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/HTML5/fav.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/HTML5/fav.ico -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Mac/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Mac/splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/background/images/tex_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/background/images/tex_box.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/HTML5/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/HTML5/splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Linux/icon64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Linux/icon64.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Linux/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Linux/splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Mac/icon512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Mac/icon512.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Tizen/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Tizen/splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/background/images/tex_Light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/background/images/tex_Light.png -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/MODEL/tank.mpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/MODEL/tank.mpm -------------------------------------------------------------------------------- /Tools/Importer/Importer/D3DExporter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | void D3DRegisterExporter(Assimp::Exporter& imp); 6 | -------------------------------------------------------------------------------- /Tools/Importer/Importer/D3DImporter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | void D3DRegisterImporter(Assimp::Importer& imp); 6 | -------------------------------------------------------------------------------- /Tools/Importer/Importer/MPMExporter.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | void MPMRegisterExporter(Assimp::Exporter& imp); 6 | -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Tizen/icon117.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Tizen/icon117.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPadsplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPadsplash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/windows/License.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/windows/License.txt -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/windows/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/windows/splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/PARTICLE/fire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/PARTICLE/fire.png -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/PARTICLE/smoke.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/PARTICLE/smoke.png -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/TEXTURE/tiger.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/TEXTURE/tiger.bmp -------------------------------------------------------------------------------- /Libraries/.gitignore: -------------------------------------------------------------------------------- 1 | # ============================= 2 | # Ignore Libraries 3 | # ============================= 4 | 5 | * 6 | !README.md 7 | !.gitignore 8 | -------------------------------------------------------------------------------- /MAE/MAE/Rendering/Resources/Texture.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | TextureImpl::~TextureImpl() { 4 | tex->Release(); 5 | } 6 | -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhone5splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhone5splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhone6Splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhone6Splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhonesplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhonesplash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon114.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon120.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon144.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon152.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon167.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon57.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon72.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/icons/icon76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/icons/icon76.png -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/MODEL/hobgoblin.md2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/MODEL/hobgoblin.md2 -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/TEXTURE/TankTex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/TEXTURE/TankTex.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleSmall.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide1.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide2.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide3.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide4.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide5.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide6.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide7.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide8.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/CycleWide9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/CycleWide9.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/FlipMedBack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/FlipMedBack.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/IconicSmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/IconicSmall.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/IconicWide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/IconicWide.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPadRetinaSplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPadRetinaSplash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/splashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/splashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/windows/runner_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/windows/runner_icon.ico -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/TEXTURE/hobgoblin.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/TEXTURE/hobgoblin.bmp -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/icons/ouyaIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/icons/ouyaIcon.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/FlipMedFront.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/FlipMedFront.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/FlipSmallBack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/FlipSmallBack.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/FlipWideBack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/FlipWideBack.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/FlipWideFront.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/FlipWideFront.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Windows8/logos/logo150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Windows8/logos/logo150.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Windows8/logos/logo30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Windows8/logos/logo30.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Windows8/logos/logo310.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Windows8/logos/logo310.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Windows8/logos/logo50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Windows8/logos/logo50.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Windows8/splashscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Windows8/splashscreen.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPadsplashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPadsplashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhone6PlusSplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhone6PlusSplash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhoneRetinasplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhoneRetinasplash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/windows/Runner_finish.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/windows/Runner_finish.bmp -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/windows/Runner_header.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/windows/Runner_header.bmp -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/icons/icon_hdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/icons/icon_hdpi.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/icons/icon_ldpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/icons/icon_ldpi.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/icons/icon_mdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/icons/icon_mdpi.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/icons/icon_xhdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/icons/icon_xhdpi.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/icons/icon_xxhdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/icons/icon_xxhdpi.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/portrait_splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/portrait_splash.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/ApplicationIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/ApplicationIcon.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/FlipSmallFront.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/FlipSmallFront.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhone5splashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhone5splashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhone6SplashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhone6SplashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhonesplashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhonesplashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/windows/Runner_Icon_256.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/windows/Runner_Icon_256.ico -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/datafiles/.gitignore: -------------------------------------------------------------------------------- 1 | # ============================= 2 | # Ignore Everything 3 | # ============================= 4 | 5 | * 6 | !.gitignore 7 | -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Android/icons/icon_xxxhdpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Android/icons/icon_xxxhdpi.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/SplashScreenImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/SplashScreenImage.jpg -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/SplashScreenImage480.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/SplashScreenImage480.jpg -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WinPhone/SplashScreenImage720.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WinPhone/SplashScreenImage720.jpg -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Windows8/Windows8_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Windows8/Windows8_TemporaryKey.pfx -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPadRetinaSplashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPadRetinaSplashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhone6PlusSplashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhone6PlusSplashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/iOS/iPhoneRetinasplashPortrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/iOS/iPhoneRetinasplashPortrait.png -------------------------------------------------------------------------------- /GML/MAE.gmx/datafiles/COMMON/MUSIC/shes_had_enough_theme1.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/datafiles/COMMON/MUSIC/shes_had_enough_theme1.ogg -------------------------------------------------------------------------------- /GML/MAE.gmx/help.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Arial;}} 2 | {\colortbl ;\red0\green0\blue0;} 3 | \viewkind4\uc1\pard\cf1\fs24\par 4 | } 5 | -------------------------------------------------------------------------------- /MAE/MAE/Rendering/Model/ModelBase.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | class ModelBase: public Deletable { 6 | public: 7 | virtual ~ModelBase() { } 8 | }; 9 | -------------------------------------------------------------------------------- /Tools/Importer/Importer/Types.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef unsigned int uint; 4 | typedef signed int sint; 5 | typedef unsigned short ushort; 6 | typedef unsigned char ubyte; 7 | -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/logos/Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/logos/Logo.scale-100.png -------------------------------------------------------------------------------- /GML/Extension/gml/Math.gml: -------------------------------------------------------------------------------- 1 | #define MAE_ViewportCreate 2 | var v; 3 | 4 | v[3] = argument3; 5 | v[2] = argument2; 6 | v[1] = argument1; 7 | v[0] = argument0; 8 | 9 | return v; 10 | 11 | -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/logos/WideLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/logos/WideLogo.scale-100.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/WinUWPRunner_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/WinUWPRunner_TemporaryKey.pfx -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/logos/LargeLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/logos/LargeLogo.scale-100.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/logos/SmallLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/logos/SmallLogo.scale-100.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/logos/StoreLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/logos/StoreLogo.scale-100.png -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/Windows8/Win8NativeRunner_TemporaryKey.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/Windows8/Win8NativeRunner_TemporaryKey.pfx -------------------------------------------------------------------------------- /GML/MAE.gmx/Configs/Default/WindowsUAP/logos/SmallishLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheStolenBattenberg/MAEngine/HEAD/GML/MAE.gmx/Configs/Default/WindowsUAP/logos/SmallishLogo.scale-100.png -------------------------------------------------------------------------------- /MAE/MAE/FMOD/CFmodHelper.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | struct Sound { 6 | FMOD::Sound* m_pVoice; 7 | FMOD::Channel* m_pSound; 8 | uint m_iGroupIndex; 9 | }; -------------------------------------------------------------------------------- /Tools/Importer/Importer/Importer.vcxproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/CreateCheckbox.gml: -------------------------------------------------------------------------------- 1 | ///CreateCheckbox(default); 2 | enum checkboxval { 3 | value, 4 | } 5 | 6 | chkbx[chkbxs, checkboxval.value] = argument0; 7 | chkbxs++; 8 | return chkbxs-1; 9 | 10 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorGet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorGet(v,index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[argument1]; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodUpdate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodUpdate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodUpdate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionGet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionGet(q,index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[argument1]; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/UpdateSlider.gml: -------------------------------------------------------------------------------- 1 | ///UpdateSlider(slider); 2 | sldr[argument0, sliderval.value] = clamp(sldr[argument0, sliderval.value], sldr[argument0, sliderval.mmin], sldr[argument0, sliderval.mmax]); 3 | return sldr[argument0, sliderval.value]; 4 | -------------------------------------------------------------------------------- /MAE/MAE/Rendering/Resources/Texture.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | class Texture: public Deletable { 9 | public: 10 | virtual ~Texture() { } 11 | }; 12 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorGet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorGet(v,index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[argument1]; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodGetSounds.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodGetSounds(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodGetSounds); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodShutdown.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodShutdown(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodShutdown); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodGetCPUUsage.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodGetCPUUsage(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodGetCPUUsage); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodInitialize.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodInitialize(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodInitialize); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixDup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixDup(m); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[0] = argument0[0]; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorDup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorDup(v); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[0] = argument0[0]; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionGet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionGet(q,index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[argument1]; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelXRender.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelXRender(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_XRender, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysVertexBufferDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysVertexBufferDestroy(buffer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | buffer_delete(argument0); 15 | 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionDup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionDup(q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[0] = argument0[0]; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodUpdate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodUpdate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodUpdate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodGetSampleRate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodGetSampleRate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodGetSampleRate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixIsMat2.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixIsMat2(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 4; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixIsMat3.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixIsMat3(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 9; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixIsMat4.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixIsMat4(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 16; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelXDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelXDestroy(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_XDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshClear.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshClear(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshClear, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodShutdown.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodShutdown(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodShutdown); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_AnimationGetFrame.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationGetFrame(); 2 | 3 | /** 4 | * Description: 5 | * Gets the current frame of the animation 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Frame 12 | */ 13 | 14 | return ANI_FRAME_1; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_Free.gml: -------------------------------------------------------------------------------- 1 | ///MAE_Free(); 2 | 3 | /** 4 | * Description: 5 | * Frees the Engine 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | external_call(global._MADX9_Free); 15 | external_free(global._MAEDLL); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshDestroy(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodGetSounds.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodGetSounds(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodGetSounds); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodInitialize.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodInitialize(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodInitialize); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixDup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixDup(m); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[0] = argument0[0]; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorDup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorDup(v); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[0] = argument0[0]; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_AnimationGetFrameNext.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationGetFrameNext(); 2 | 3 | /** 4 | * Description: 5 | * Gets the next frame of the animation 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Frame 12 | */ 13 | 14 | return ANI_FRAME_2; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSoundFree.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundFree(soundPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundFree, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ForwardPipelineCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixGet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixGet(m,i,j); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[argument2 + argument1 * MAE_MatrixGetDimension(argument0)]; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelDraftDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelDraftDestroy(ind); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ModelDraftDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshDebugDraw.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshDebugDraw(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshDebugDraw, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodGetCPUUsage.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodGetCPUUsage(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodGetCPUUsage); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelMPMLoad.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMPMLoad(file); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_MPMLoad, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysVertexBufferDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysVertexBufferDestroy(buffer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | buffer_delete(argument0); 15 | 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelStop.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelStop(channelPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelStop, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelDraftLoadMPM.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelDraftLoadMPM(file); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ModelDraftLoadMPM, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionSet(ref_q,index,val); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ argument1] = argument2; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_TextureCollectionCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureCollectionCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_TextureCollectionCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorDistance.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorDistance(v1,v2); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_VectorMagnitude(MAE_VectorSubtract(argument0, argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodGetSampleRate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodGetSampleRate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodGetSampleRate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixIsMat2.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixIsMat2(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 4; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixIsMat3.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixIsMat3(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 9; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixIsMat4.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixIsMat4(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 16; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelMPMRender.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMPMRender(ind); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_MPMRender, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelXDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelXDestroy(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_XDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelXRender.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelXRender(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_XRender, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshClear.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshClear(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshClear, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionDup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionDup(q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[0] = argument0[0]; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSoundGetType.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundGetType(soundPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundGetType, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshWaitForBuild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshWaitForBuild(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshWaitForBuild, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionIsQuaternion.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionIsQuaternion(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 4; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ShaderReset.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderReset(); 2 | 3 | /** 4 | * Description: 5 | * Resets a shader. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MAE_ShaderReset); 15 | -------------------------------------------------------------------------------- /MAE/MAE/Core/Exception.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | class Exception: public std::runtime_error { 6 | public: 7 | explicit Exception(const std::string& msg): std::runtime_error(msg) { } 8 | explicit Exception(const char* msg): std::runtime_error(msg) { } 9 | }; 10 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelMPMDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMPMDestroy(ind); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_MPMDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshDestroy(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_AnimationGetTween.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationGetTween(); 2 | 3 | /** 4 | * Description: 5 | * Gets the tweening value of an animation 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Tween Value 12 | */ 13 | 14 | return ANI_TIME - floor(ANI_TIME); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelDelete.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelDelete(channelPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelDelete, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSetMaxChannels.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSetMaxChannels(numChannels); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSetMaxChannels, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ForwardPipelineDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineDestroy(fp); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixCreateNormalMatrix.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixCreateNormalMatrix(matrix); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixTranspose(MAE_MatrixInverse(argument0)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshEndBuild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshEndBuild(index,async); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshEndBuild, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshGetBuildStatus.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshGetBuildStatus(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshGetBuildStatus, argument0); 15 | -------------------------------------------------------------------------------- /GML/Extension/generate.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | set extgen="..\..\Tools\ExtGen" 4 | set target="..\MAE.gmx\extensions " 5 | 6 | echo Generating extension... 7 | 8 | %extgen%\ExtGen MAE.xml %target% %extgen%\default 9 | 10 | if %ERRORLEVEL% EQU 0 ( 11 | echo Done! 12 | ) else ( 13 | pause 14 | ) 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_AnimationGetFrame.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationGetFrame(); 2 | 3 | /** 4 | * Description: 5 | * Gets the current frame of the animation 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Frame 12 | */ 13 | 14 | return ANI_FRAME_1; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSoundFree.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundFree(soundPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundFree, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ForwardPipelineCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_Free.gml: -------------------------------------------------------------------------------- 1 | ///MAE_Free(); 2 | 3 | /** 4 | * Description: 5 | * Frees the Engine 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | external_call(global._MADX9_Free); 15 | external_free(global._MAEDLL); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshDebugDraw.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshDebugDraw(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshDebugDraw, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSoundLoad.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundLoad(audioFile,isStreamed); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundLoad, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterCreate(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterCreate, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_AnimationGetFrameNext.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationGetFrameNext(); 2 | 3 | /** 4 | * Description: 5 | * Gets the next frame of the animation 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Frame 12 | */ 13 | 14 | return ANI_FRAME_2; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixGet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixGet(m,i,j); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[argument2 + argument1 * MAE_MatrixGetDimension(argument0)]; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelDraftDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelDraftDestroy(ind); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ModelDraftDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelDraftLoadMPM.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelDraftLoadMPM(file); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ModelDraftLoadMPM, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorDistance.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorDistance(v1,v2); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_VectorMagnitude(MAE_VectorSubtract(argument0, argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSoundPlay.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundPlay(soundPointer,channelPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundPlay, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_TextureCollectionDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureCollectionDestroy(dir); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_TextureCollectionDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorIsVec2.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorIsVec2(n); 2 | 3 | /** 4 | * Description: 5 | * Checks if the ID given is a Vector2. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 2; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorIsVec3.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorIsVec3(n); 2 | 3 | /** 4 | * Description: 5 | * Checks if the ID given is a Vector3. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 3; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorIsVec4.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorIsVec4(n); 2 | 3 | /** 4 | * Description: 5 | * Checks if the ID given is a Vector4. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 4; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorSet(ref_v,index,val); 2 | 3 | /** 4 | * Description: 5 | * Sets a value inside a vector. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ argument1] = argument2 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelStop.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelStop(channelPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelStop, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSoundGetType.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundGetType(soundPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundGetType, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshWaitForBuild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshWaitForBuild(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshWaitForBuild, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionIsQuaternion.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionIsQuaternion(n); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 4; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionSet(ref_q,index,val); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ argument1] = argument2; 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ShaderReset.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderReset(); 2 | 3 | /** 4 | * Description: 5 | * Resets a shader. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MAE_ShaderReset); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_TextureCollectionCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureCollectionCreate(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_TextureCollectionCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelPause.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelPause(channelPointer,isPaused); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelPause, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyDestroy(body); 2 | 3 | /** 4 | * Description: 5 | * Destroys a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorUnproject.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorUnproject(v,m,viewport); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_VectorUnprojectInverse(argument0, MAE_MatrixInverse(argument1), argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelDelete.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelDelete(channelPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelDelete, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSetMaxChannels.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSetMaxChannels(numChannels); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSetMaxChannels, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixCreateNormalMatrix.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixCreateNormalMatrix(matrix); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixTranspose(MAE_MatrixInverse(argument0)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshEndBuild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshEndBuild(index,async); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshEndBuild, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshGetBuildStatus.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshGetBuildStatus(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshGetBuildStatus, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelSetPitch.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetPitch(channelPointer,pitch); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetPitch, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ForwardPipelineDestroyModel.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineDestroyModel(model); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineDestroyModel, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeDestroyAll.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeDestroyAll(); 2 | 3 | /** 4 | * Description: 5 | * Destroys all shapes that have been created. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_ShapeDestroyAll); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionRotateMatrix.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionRotateMatrix(q,m); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_QuaternionMultiply(argument0, MAE_QuaternionCreateRotationMatrix(argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorCreateAngle2D.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorCreateAngle2D(yaw); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[1] = -dsin(argument0); 17 | v[0] = dcos(argument0); 18 | 19 | return v; 20 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_AnimationGetTween.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationGetTween(); 2 | 3 | /** 4 | * Description: 5 | * Gets the tweening value of an animation 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Tween Value 12 | */ 13 | 14 | return ANI_TIME - floor(ANI_TIME); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSoundLoad.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundLoad(audioFile,isStreamed); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundLoad, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ForwardPipelineDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineDestroy(fp); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterCreate(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterCreate, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelSetVolume.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetVolume(channelPointer,volume); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetVolume, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSoundSetLoopMode.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundSetLoopMode(soundPointer,loopMode); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundSetLoopMode, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixSet(ref_m,i,j,val); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ argument2 + argument1 * MAE_MatrixGetDimension(argument0)] = argument3; 15 | return argument0; 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyDeactivate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyDeactivate(body); 2 | 3 | /** 4 | * Description: 5 | * Deactivates a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyDeactivate, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetMask.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetMask(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the collision mask of the body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Integer 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetMask, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetShape.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetShape(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the shape of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * ShapeID 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetShape, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_TextureCollectionAdd.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureCollectionAdd(dir,name,tex); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_TextureCollectionAdd, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSoundPlay.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundPlay(soundPointer,channelPointer); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundPlay, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_TextureCollectionDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureCollectionDestroy(dir); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_TextureCollectionDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorIsVec2.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorIsVec2(n); 2 | 3 | /** 4 | * Description: 5 | * Checks if the ID given is a Vector2. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 2; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorIsVec3.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorIsVec3(n); 2 | 3 | /** 4 | * Description: 5 | * Checks if the ID given is a Vector3. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 3; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorIsVec4.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorIsVec4(n); 2 | 3 | /** 4 | * Description: 5 | * Checks if the ID given is a Vector4. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return is_array(argument0) && array_length_1d(argument0) == 4; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/CreateSlider.gml: -------------------------------------------------------------------------------- 1 | ///CreateSlider(min, max, default); 2 | enum sliderval { 3 | value, 4 | mmin, 5 | mmax 6 | } 7 | 8 | sldr[sldrs, sliderval.value] = argument2; 9 | sldr[sldrs, sliderval.mmin] = argument0; 10 | sldr[sldrs, sliderval.mmax] = argument1; 11 | sldrs++; 12 | return sldrs-1; 13 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSetSoftwareFormat.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSetSoftwareFormat(SampleRate,SpeakerMode); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSetSoftwareFormat, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ForwardPipelineRenderModel.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineRenderModel(fp,model); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineRenderModel, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleSystemCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemCreate(); 2 | 3 | /** 4 | * Description: 5 | * Creates a new Particle System 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Particle System ID 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleSystemGetParticleCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemGetParticleCount(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemGetParticleCount, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetGroup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetGroup(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the collision group of the body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Integer 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetGroup, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionCreateIdentity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionCreateIdentity(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var q; 15 | 16 | q[3] = 1; 17 | q[2] = 0; 18 | q[1] = 0; 19 | q[0] = 0; 20 | 21 | return q; 22 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelPause.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelPause(channelPointer,isPaused); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelPause, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyDestroy(body); 2 | 3 | /** 4 | * Description: 5 | * Destroys a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_TextureCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureCreate(); 2 | 3 | /** 4 | * Description: 5 | * Creates a texture 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * -1 on Error, texture index on success. 12 | */ 13 | 14 | return external_call(global._MAE_TextureCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorSet(ref_v,index,val); 2 | 3 | /** 4 | * Description: 5 | * Sets a value inside a vector. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ argument1] = argument2 15 | 16 | return argument0; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorUnproject.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorUnproject(v,m,viewport); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_VectorUnprojectInverse(argument0, MAE_MatrixInverse(argument1), argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelSetFrequency.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetFrequency(channelPointer,frequency); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetFrequency, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodChannelSetPosition.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetPosition(channelPointer,position); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetPosition, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixRotateX.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateX(m,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument1, MAE_MatrixCreateRotationX(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixRotateY.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateY(m,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument1, MAE_MatrixCreateRotationY(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixRotateZ.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateZ(m,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument1, MAE_MatrixCreateRotationZ(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreateSphere.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateSphere(radius); 2 | 3 | /** 4 | * Description: 5 | * Creates a sphere shape. 6 | * 7 | * Arguments: 8 | * [1] - Radius 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateSphere, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldExists.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldExists(); 2 | 3 | /** 4 | * Description: 5 | * Checks if the physics world exists. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * 1 if the world exists. 0 if it does not. 12 | */ 13 | 14 | return external_call(global._MAB_WorldExists); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ForwardPipelineDestroyModel.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineDestroyModel(model); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineDestroyModel, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorCreateAngle2D.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorCreateAngle2D(yaw); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[1] = -dsin(argument0); 17 | v[0] = dcos(argument0); 18 | 19 | return v; 20 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyIsStatic.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsStatic(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is static. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if static, 0 otherwise. 12 | */ 13 | 14 | return external_call(global._MAB_BodyIsStatic, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysConstraintDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysConstraintDestroy(constraint); 2 | 3 | /** 4 | * Description: 5 | * Destroys a constraint. 6 | * 7 | * Arguments: 8 | * [1] - Constraint 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_ConstraintDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionRotateVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionRotateVector(q,v,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_QuaternionMultiply(argument0, MAE_QuaternionCreateRotationVector(argument1, argument2)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelSetPitch.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetPitch(channelPointer,pitch); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetPitch, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelSetVolume.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetVolume(channelPointer,volume); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetVolume, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSoundSetLoopMode.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundSetLoopMode(soundPointer,loopMode); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundSetLoopMode, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixSet(ref_m,i,j,val); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ argument2 + argument1 * MAE_MatrixGetDimension(argument0)] = argument3; 15 | return argument0; 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyDeactivate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyDeactivate(body); 2 | 3 | /** 4 | * Description: 5 | * Deactivates a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyDeactivate, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetMask.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetMask(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the collision mask of the body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Integer 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetMask, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetShape.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetShape(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the shape of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * ShapeID 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetShape, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeDestroyAll.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeDestroyAll(); 2 | 3 | /** 4 | * Description: 5 | * Destroys all shapes that have been created. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_ShapeDestroyAll); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionRotateMatrix.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionRotateMatrix(q,m); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_QuaternionMultiply(argument0, MAE_QuaternionCreateRotationMatrix(argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ForwardPipelineCreateModel.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineCreateModel(fp,draft,dict); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineCreateModel, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleSystemRender.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemRender(index); 2 | 3 | /** 4 | * Description: 5 | * Renders the Particle System 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemRender, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleSystemSetParticleCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemSetParticleCount(index,count); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemSetParticleCount, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyActivate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyActivate(body); 2 | 3 | /** 4 | * Description: 5 | * If a body is sleeping, this function will activate it. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyActivate, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreateCylinder.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCylinder(radius,half_height,axis); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateCylinder, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldDestroy(); 2 | 3 | /** 4 | * Description: 5 | * Destroys the physics world and everything in it. Shapes are not destroyed. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_WorldDestroy); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_TextureDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureDestroy(ind); 2 | 3 | /** 4 | * Description: 5 | * Destroys a texture 6 | * 7 | * Arguments: 8 | * [1] - Index of the texture 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MADX9_TextureDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSetSoftwareFormat.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSetSoftwareFormat(SampleRate,SpeakerMode); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSetSoftwareFormat, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ForwardPipelineRenderModel.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineRenderModel(fp,model); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineRenderModel, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleSystemCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemCreate(); 2 | 3 | /** 4 | * Description: 5 | * Creates a new Particle System 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Particle System ID 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemCreate); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleSystemGetParticleCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemGetParticleCount(index); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemGetParticleCount, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetGroup.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetGroup(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the collision group of the body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Integer 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetGroup, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionCreateIdentity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionCreateIdentity(); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var q; 15 | 16 | q[3] = 1; 17 | q[2] = 0; 18 | q[1] = 0; 19 | q[0] = 0; 20 | 21 | return q; 22 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_TextureCollectionAdd.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureCollectionAdd(dir,name,tex); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_TextureCollectionAdd, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleSystemDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemDestroy(index); 2 | 3 | /** 4 | * Description: 5 | * Destroys the Particle System 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldGetBodyCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldGetBodyCount(); 2 | 3 | /** 4 | * Description: 5 | * Returns the number of physics bodies that are in the physics world. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_WorldGetBodyCount); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionCreate(x,y,z,w); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var q; 15 | 16 | q[3] = argument3; 17 | q[2] = argument2; 18 | q[1] = argument1; 19 | q[0] = argument0; 20 | 21 | return q; 22 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelSetPosition.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetPosition(channelPointer,position); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetPosition, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreateSphere.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateSphere(radius); 2 | 3 | /** 4 | * Description: 5 | * Creates a sphere shape. 6 | * 7 | * Arguments: 8 | * [1] - Radius 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateSphere, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldExists.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldExists(); 2 | 3 | /** 4 | * Description: 5 | * Checks if the physics world exists. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * 1 if the world exists. 0 if it does not. 12 | */ 13 | 14 | return external_call(global._MAB_WorldExists); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_FmodSoundSetLoopPoints.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundSetLoopPoints(soundPointer,startPoint,endPoint); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundSetLoopPoints, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetLinearDamping.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetLinearDamping(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the linear damping of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetLinearDamping, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyIsActive.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsActive(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is active. (not sleeping) 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if active, 0 otherwise. 12 | */ 13 | 14 | return external_call(global._MAB_BodyIsActive, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyIsKinematic.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsKinematic(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is kinematic. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if kinematic, 0 otherwise. 12 | */ 13 | 14 | return external_call(global._MAB_BodyIsKinematic, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldSetGravity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldSetGravity(x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Sets the gravity of the physics world 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_WorldSetGravity, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionMagnitude.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionMagnitude(q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return sqrt(argument0[0] * argument0[0] + argument0[1] * argument0[1] + argument0[2] * argument0[2] + argument0[3] * argument0[3]); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ViewportCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ViewportCreate(x,y,width,height); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[3] = argument3; 17 | v[2] = argument2; 18 | v[1] = argument1; 19 | v[0] = argument0; 20 | 21 | return v; 22 | -------------------------------------------------------------------------------- /Tools/Importer/.gitignore: -------------------------------------------------------------------------------- 1 | # ============================= 2 | # Ignore Visual Studio folders 3 | # ============================= 4 | 5 | ipch/ 6 | Release/ 7 | Debug/ 8 | .vs/ 9 | 10 | # ============================= 11 | # Ignore Visual Studio files 12 | # ============================= 13 | 14 | *.sdf 15 | *.suo 16 | *.opensdf 17 | *.vc.opendb 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodChannelSetFrequency.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodChannelSetFrequency(channelPointer,frequency); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodChannelSetFrequency, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixRotateX.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateX(m,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument1, MAE_MatrixCreateRotationX(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixRotateY.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateY(m,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument1, MAE_MatrixCreateRotationY(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixRotateZ.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateZ(m,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument1, MAE_MatrixCreateRotationZ(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyIsStatic.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsStatic(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is static. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if static, 0 otherwise. 12 | */ 13 | 14 | return external_call(global._MAB_BodyIsStatic, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionRotateVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionRotateVector(q,v,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_QuaternionMultiply(argument0, MAE_QuaternionCreateRotationVector(argument1, argument2)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/DrawWindow.gml: -------------------------------------------------------------------------------- 1 | ///DrawWindow(x, y, width, height); 2 | draw_set_colour(c_black); 3 | draw_set_alpha(0.5); 4 | draw_roundrect(argument0, argument1, argument0+argument2, argument1+argument3, false); 5 | draw_set_colour(c_silver); 6 | draw_set_alpha(1); 7 | draw_roundrect(argument0, argument1, argument0+argument2, argument1+argument3, true); 8 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixRotateQuaternion.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateQuaternion(m,q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument0, MAE_MatrixCreateRotationQuaternion(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterSetParticleLife.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleLife(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleLife, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterSetParticleSize.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleSize(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleSize, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleSystemUpdate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemUpdate(index,step); 2 | 3 | /** 4 | * Description: 5 | * Updates the Particle System 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemUpdate, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetAngularDamping.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetAngularDamping(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the angular damping of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetAngularDamping, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ShaderSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderSet(shader_index); 2 | 3 | /** 4 | * Description: 5 | * Sets a shader. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MAE_ShaderSet, argument0); 15 | -------------------------------------------------------------------------------- /MAE/MAE/Core/Types.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | typedef unsigned long ulong; 4 | typedef unsigned int uint; 5 | typedef unsigned short ushort; 6 | typedef unsigned char ubyte; 7 | 8 | typedef signed long slong; 9 | typedef signed int sint; 10 | typedef signed short sshort; 11 | typedef signed char sbyte; 12 | 13 | typedef const char* string; 14 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleSystemRender.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemRender(index); 2 | 3 | /** 4 | * Description: 5 | * Renders the Particle System 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemRender, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysConstraintDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysConstraintDestroy(constraint); 2 | 3 | /** 4 | * Description: 5 | * Destroys a constraint. 6 | * 7 | * Arguments: 8 | * [1] - Constraint 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_ConstraintDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreateCylinder.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCylinder(radius,half_height,axis); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateCylinder, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldDestroy(); 2 | 3 | /** 4 | * Description: 5 | * Destroys the physics world and everything in it. Shapes are not destroyed. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_WorldDestroy); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_TextureDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureDestroy(ind); 2 | 3 | /** 4 | * Description: 5 | * Destroys a texture 6 | * 7 | * Arguments: 8 | * [1] - Index of the texture 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MADX9_TextureDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixRotateVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateVector(m,v,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument0, MAE_MatrixCreateRotationVector(MAE_MatrixGetDimension(argument0), argument1, argument2)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelMD2Destroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMD2Destroy(index); 2 | 3 | /** 4 | * Description: 5 | * Removes a previously created MD2 model from memory. 6 | * 7 | * Arguments: 8 | * [1] - MD2 Index. 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MADX9_MD2Destroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterSetParticleCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleCount(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleCount, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyIsDynamic.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsDynamic(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is dynamic. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if dynamic, 0 otherwise. 12 | */ 13 | 14 | return !(MAE_PhysBodyIsStatic(argument0) || MAE_PhysBodyIsKinematic(argument0)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetShape.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetShape(body,shape); 2 | 3 | /** 4 | * Description: 5 | * Sets the shape of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Shape 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetShape, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldGetConstraintCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldGetConstraintCount(); 2 | 3 | /** 4 | * Description: 5 | * Returns the number of constraints that are in the physics world. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_WorldGetConstraintCount); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionInvert.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionInvert(ref_q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ 0] = -argument0[@ 0]; 15 | argument0[@ 1] = -argument0[@ 1]; 16 | argument0[@ 2] = -argument0[@ 2]; 17 | 18 | return argument0; 19 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionMagnitudeSquared.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionMagnitudeSquared(q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[0] * argument0[0] + argument0[1] * argument0[1] + argument0[2] * argument0[2] + argument0[3] * argument0[3]; 15 | -------------------------------------------------------------------------------- /Tools/Importer/Importer/Utils.cpp: -------------------------------------------------------------------------------- 1 | #include "utils.h" 2 | 3 | #include 4 | 5 | const char* GetExtension(const char* file) { 6 | size_t len = strlen(file); 7 | 8 | const char* p = file + len; 9 | 10 | for (; p > file && *p != '.' && *p != '\\'; --p) { } 11 | 12 | if (*p == '.') 13 | return p + 1; 14 | 15 | return file + len; 16 | } 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ForwardPipelineCreateModel.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ForwardPipelineCreateModel(fp,draft,dict); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_ForwardPipelineCreateModel, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleSystemDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemDestroy(index); 2 | 3 | /** 4 | * Description: 5 | * Destroys the Particle System 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleSystemSetParticleCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemSetParticleCount(index,count); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemSetParticleCount, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyActivate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyActivate(body); 2 | 3 | /** 4 | * Description: 5 | * If a body is sleeping, this function will activate it. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyActivate, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldGetBodyCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldGetBodyCount(); 2 | 3 | /** 4 | * Description: 5 | * Returns the number of physics bodies that are in the physics world. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_WorldGetBodyCount); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetFriction(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the friction value of a physics body that is used during collisions. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetFriction, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetRestitution.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetRestitution(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the restitution, or bounciness, value of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetRestitution, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetRollingFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetRollingFriction(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the rolling friction value of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetRollingFriction, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_FmodSoundSetLoopPoints.gml: -------------------------------------------------------------------------------- 1 | ///MAE_FmodSoundSetLoopPoints(soundPointer,startPoint,endPoint); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MAE_FmodSoundSetLoopPoints, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetLinearDamping.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetLinearDamping(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the linear damping of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetLinearDamping, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyIsActive.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsActive(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is active. (not sleeping) 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if active, 0 otherwise. 12 | */ 13 | 14 | return external_call(global._MAB_BodyIsActive, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyIsKinematic.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsKinematic(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is kinematic. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if kinematic, 0 otherwise. 12 | */ 13 | 14 | return external_call(global._MAB_BodyIsKinematic, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldSetGravity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldSetGravity(x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Sets the gravity of the physics world 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_WorldSetGravity, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionCreate(x,y,z,w); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var q; 15 | 16 | q[3] = argument3; 17 | q[2] = argument2; 18 | q[1] = argument1; 19 | q[0] = argument0; 20 | 21 | return q; 22 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_AnimationSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationSet(Animation_Index); 2 | 3 | /** 4 | * Description: 5 | * Sets the animation 6 | * 7 | * Arguments: 8 | * [1] - Animation Index 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | ANI_SET_INDEX = argument0; 15 | ANI_FRAME_1 = ANI_SET[argument0, 0]; 16 | ANI_FRAME_2 = ANI_SET[argument0, 0]+1; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelMD2Frames.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMD2Frames(index); 2 | 3 | /** 4 | * Description: 5 | * Returns the total number of frames in a loaded MD2 Model. 6 | * 7 | * Arguments: 8 | * [1] - MD2 Index. 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MADX9_MD2GetFrames, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleSystemSetTexture.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemSetTexture(index,texture); 2 | 3 | /** 4 | * Description: 5 | * Sets the particle texture 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemSetTexture, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldSetGravityVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldSetGravityVector(v); 2 | 3 | /** 4 | * Description: 5 | * Sets the gravity of the physics world 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var v = argument0; 15 | 16 | return external_call(global._MAB_WorldSetGravity, v[0], v[1], v[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ShaderDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderDestroy(shader_index); 2 | 3 | /** 4 | * Description: 5 | * Destroys a shader. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MAE_ShaderDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixRotateQuaternion.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateQuaternion(m,q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument0, MAE_MatrixCreateRotationQuaternion(MAE_MatrixGetDimension(argument0), argument1)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterSetParticleLife.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleLife(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleLife, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterSetParticleSize.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleSize(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleSize, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetAngularDamping.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetAngularDamping(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the angular damping of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetAngularDamping, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionMagnitude.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionMagnitude(q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return sqrt(argument0[0] * argument0[0] + argument0[1] * argument0[1] + argument0[2] * argument0[2] + argument0[3] * argument0[3]); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ShaderSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderSet(shader_index); 2 | 3 | /** 4 | * Description: 5 | * Sets a shader. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MAE_ShaderSet, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ViewportCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ViewportCreate(x,y,width,height); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[3] = argument3; 17 | v[2] = argument2; 18 | v[1] = argument1; 19 | v[0] = argument0; 20 | 21 | return v; 22 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysVertexBufferCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysVertexBufferCreate(size=64); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var _size = 64; 15 | 16 | if (argument_count > 0) 17 | _size = argument[0]; 18 | 19 | return buffer_create(_size, buffer_grow, 4); 20 | 21 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_TextureSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureSet(ind,stage); 2 | 3 | /** 4 | * Description: 5 | * Sets a texture 6 | * 7 | * Arguments: 8 | * [1] - Texture index or -1 (no texture) 9 | * [2] - Stage 10 | * 11 | * Returns: 12 | * 0 on Error, 1 on success. 13 | */ 14 | 15 | return external_call(global._MADX9_TextureSet, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixRotateVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotateVector(m,v,angle); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return MAE_MatrixMultiplyMatrix(argument0, MAE_MatrixCreateRotationVector(MAE_MatrixGetDimension(argument0), argument1, argument2)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterSetParticleCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleCount(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleCount, argument0, argument1, argument2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleSystemUpdate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemUpdate(index,step); 2 | 3 | /** 4 | * Description: 5 | * Updates the Particle System 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemUpdate, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyIsDynamic.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyIsDynamic(body); 2 | 3 | /** 4 | * Description: 5 | * Checks if the body is dynamic. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 1 if dynamic, 0 otherwise. 12 | */ 13 | 14 | return !(MAE_PhysBodyIsStatic(argument0) || MAE_PhysBodyIsKinematic(argument0)); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetShape.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetShape(body,shape); 2 | 3 | /** 4 | * Description: 5 | * Sets the shape of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Shape 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetShape, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldGetConstraintCount.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldGetConstraintCount(); 2 | 3 | /** 4 | * Description: 5 | * Returns the number of constraints that are in the physics world. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_WorldGetConstraintCount); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionInvert.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionInvert(ref_q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | argument0[@ 0] = -argument0[@ 0]; 15 | argument0[@ 1] = -argument0[@ 1]; 16 | argument0[@ 2] = -argument0[@ 2]; 17 | 18 | return argument0; 19 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionMagnitudeSquared.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionMagnitudeSquared(q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return argument0[0] * argument0[0] + argument0[1] * argument0[1] + argument0[2] * argument0[2] + argument0[3] * argument0[3]; 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetFriction(body,friction); 2 | 3 | /** 4 | * Description: 5 | * Sets the collision friction of a body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Friction 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetFriction, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelMD2Destroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMD2Destroy(index); 2 | 3 | /** 4 | * Description: 5 | * Removes a previously created MD2 model from memory. 6 | * 7 | * Arguments: 8 | * [1] - MD2 Index. 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MADX9_MD2Destroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetRestitution.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetRestitution(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the restitution, or bounciness, value of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetRestitution, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetRollingFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetRollingFriction(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the rolling friction value of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetRollingFriction, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelXLoad.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelXLoad(model,basedir); 2 | 3 | /** 4 | * Description: 5 | * Loads X Model and its textures. 6 | * 7 | * Arguments: 8 | * [1] - X File. 9 | * [2] - Texture base directory. 10 | * 11 | * Returns: 12 | * 0 on Error, 1 on success. 13 | */ 14 | 15 | return external_call(global._MADX9_XLoad, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshBeginBuild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshBeginBuild(index,min_x,min_y,min_z,max_x,max_y,max_z); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshBeginBuild, argument0, argument1, argument2, argument3, argument4, argument5, argument6); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysConstraintGetAppliedImpulse.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysConstraintGetAppliedImpulse(constraint); 2 | 3 | /** 4 | * Description: 5 | * Returns the applied impulse of a constraint. 6 | * 7 | * Arguments: 8 | * [1] - Constraint 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_ConstraintGetAppliedImpulse, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorCreateAngle3D.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorCreateAngle3D(yaw,pitch); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[2] = dsin(argument1); 17 | v[1] = -dsin(argument0) * dcos(argument1); 18 | v[0] = dcos(argument0) * dcos(argument1); 19 | 20 | return v; 21 | -------------------------------------------------------------------------------- /MAE/MAE/MainImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | class MainImpl: public Main { 6 | public: 7 | ~MainImpl(); 8 | 9 | class Renderer* createRendererDX9(LPDIRECT3DDEVICE9 device); 10 | 11 | private: 12 | UnorderedVector scenes; 13 | UnorderedVector textures; 14 | UnorderedVector shaders; 15 | }; 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_AnimationSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationSet(Animation_Index); 2 | 3 | /** 4 | * Description: 5 | * Sets the animation 6 | * 7 | * Arguments: 8 | * [1] - Animation Index 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | ANI_SET_INDEX = argument0; 15 | ANI_FRAME_1 = ANI_SET[argument0, 0]; 16 | ANI_FRAME_2 = ANI_SET[argument0, 0]+1; 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelMD2Frames.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMD2Frames(index); 2 | 3 | /** 4 | * Description: 5 | * Returns the total number of frames in a loaded MD2 Model. 6 | * 7 | * Arguments: 8 | * [1] - MD2 Index. 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MADX9_MD2GetFrames, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleSystemSetTexture.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleSystemSetTexture(index,texture); 2 | 3 | /** 4 | * Description: 5 | * Sets the particle texture 6 | * 7 | * Arguments: 8 | * [1] - Particle System 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleSystemSetTexture, argument0, argument1); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetFriction(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the friction value of a physics body that is used during collisions. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetFriction, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ShaderDestroy.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderDestroy(shader_index); 2 | 3 | /** 4 | * Description: 5 | * Destroys a shader. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * 10 | * Returns: 11 | * 0 on Error, 1 on success. 12 | */ 13 | 14 | return external_call(global._MAE_ShaderDestroy, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixGetDimension.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixGetDimension(m); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | switch (array_length_1d(argument0)) { 15 | case 4: 16 | return 2; 17 | case 9: 18 | return 3; 19 | case 16: 20 | return 4; 21 | } 22 | 23 | return undefined; 24 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshAddLink.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshAddLink(index,x1,y1,z1,x2,y2,z2,dir,radius); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshAddLink, argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreateCompound.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCompound(); 2 | 3 | /** 4 | * Description: 5 | * Creates an empty shape that can have other shapes added to it as children. See MAE_PhysShapeAddChild(). 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateCompound); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysVertexBufferCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysVertexBufferCreate(size=64); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var _size = 64; 15 | 16 | if (argument_count > 0) 17 | _size = argument[0]; 18 | 19 | return buffer_create(_size, buffer_grow, 4); 20 | 21 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldSetGravityVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldSetGravityVector(v); 2 | 3 | /** 4 | * Description: 5 | * Sets the gravity of the physics world 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var v = argument0; 15 | 16 | return external_call(global._MAB_WorldSetGravity, v[0], v[1], v[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_TextureSet.gml: -------------------------------------------------------------------------------- 1 | ///MAE_TextureSet(ind,stage); 2 | 3 | /** 4 | * Description: 5 | * Sets a texture 6 | * 7 | * Arguments: 8 | * [1] - Texture index or -1 (no texture) 9 | * [2] - Stage 10 | * 11 | * Returns: 12 | * 0 on Error, 1 on success. 13 | */ 14 | 15 | return external_call(global._MADX9_TextureSet, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_NavMeshSetAgentConfig.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshSetAgentConfig(index,agent_height,agent_radius,agent_max_climb,agent_max_slope); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshSetAgentConfig, argument0, argument1, argument2, argument3, argument4); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyDisableDeactivation.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyDisableDeactivation(body); 2 | 3 | /** 4 | * Description: 5 | * Disables sleeping for a body. If you call this, the body will never sleep. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyDisableDeactivation, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetFriction(body,friction); 2 | 3 | /** 4 | * Description: 5 | * Sets the collision friction of a body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Friction 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetFriction, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_AnimationCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationCreate(); 2 | 3 | /** 4 | * Description: 5 | * Creates an animation controller 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | ANI_TIME = 0; 15 | ANI_FRAME_1 = 0; 16 | ANI_FRAME_2 = 0; 17 | ANI_SET[0, 0] = noone; 18 | ANI_SET[0, 1] = noone; 19 | ANI_SETS = 0; 20 | ANI_SET_INDEX = 0; 21 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetGravity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetGravity(body,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Overrides the world gravity on a body with a different gravity force. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodySetGravity, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysConstraintSetEnabled.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysConstraintSetEnabled(constraint,enabled); 2 | 3 | /** 4 | * Description: 5 | * Enables or disables a constraint. 6 | * 7 | * Arguments: 8 | * [1] - Constraint 9 | * [2] - Enabled 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_ConstraintSetEnabled, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelXLoad.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelXLoad(model,basedir); 2 | 3 | /** 4 | * Description: 5 | * Loads X Model and its textures. 6 | * 7 | * Arguments: 8 | * [1] - X File. 9 | * [2] - Texture base directory. 10 | * 11 | * Returns: 12 | * 0 on Error, 1 on success. 13 | */ 14 | 15 | return external_call(global._MADX9_XLoad, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshBeginBuild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshBeginBuild(index,min_x,min_y,min_z,max_x,max_y,max_z); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshBeginBuild, argument0, argument1, argument2, argument3, argument4, argument5, argument6); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysConstraintGetAppliedImpulse.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysConstraintGetAppliedImpulse(constraint); 2 | 3 | /** 4 | * Description: 5 | * Returns the applied impulse of a constraint. 6 | * 7 | * Arguments: 8 | * [1] - Constraint 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_ConstraintGetAppliedImpulse, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetRotationMatrix.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetRotationMatrix(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the rotation of a physics body as a matrix. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 4x4 Matrix 12 | */ 13 | 14 | var _rot = MAE_PhysBodyGetRotationQuat(argument0); 15 | return MAE_MatrixCreateRotationQuaternion(4, _rot); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetRollingFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRollingFriction(body,friction); 2 | 3 | /** 4 | * Description: 5 | * Sets the rolling friction of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Friction 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetRollingFriction, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeRemoveChild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeRemoveChild(parent_shape,index); 2 | 3 | /** 4 | * Description: 5 | * Removes a child shape from a compound shape. 6 | * 7 | * Arguments: 8 | * [1] - Parent shape 9 | * [2] - Child index 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_ShapeRemoveChild, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysVertexBufferAddVertex.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysVertexBufferAddVertex(buffer,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | buffer_write(argument0, buffer_f32, argument1); 15 | buffer_write(argument0, buffer_f32, argument2); 16 | buffer_write(argument0, buffer_f32, argument3); 17 | 18 | -------------------------------------------------------------------------------- /MAE/MAE/Core/Utils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | template inline bool readFromStream(std::basic_istream<_Elem, _Traits>& stream, T& val) { 6 | return stream.read((_Elem*) &val, sizeof(val)) ? 1 : 0; 7 | } 8 | 9 | template inline void freeContainer(T& container) { 10 | for (auto i : container) 11 | delete i; 12 | } 13 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_MatrixGetDimension.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixGetDimension(m); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | switch (array_length_1d(argument0)) { 15 | case 4: 16 | return 2; 17 | case 9: 18 | return 3; 19 | case 16: 20 | return 4; 21 | } 22 | 23 | return undefined; 24 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreateCompound.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCompound(); 2 | 3 | /** 4 | * Description: 5 | * Creates an empty shape that can have other shapes added to it as children. See MAE_PhysShapeAddChild(). 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateCompound); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorCreateAngle3D.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorCreateAngle3D(yaw,pitch); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[2] = dsin(argument1); 17 | v[1] = -dsin(argument0) * dcos(argument1); 18 | v[0] = dcos(argument0) * dcos(argument1); 19 | 20 | return v; 21 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetRestitution.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRestitution(body,restitution); 2 | 3 | /** 4 | * Description: 5 | * Sets the restitution, or bounciness, of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Restitution 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetRestitution, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreateBox.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateBox(xsize,ysize,zsize); 2 | 3 | /** 4 | * Description: 5 | * Creates a box shape. 6 | * 7 | * Arguments: 8 | * [1] - X half size 9 | * [2] - Y half size 10 | * [3] - Z half size 11 | * 12 | * Returns: 13 | * Shape ID 14 | */ 15 | 16 | return external_call(global._MAB_ShapeCreateBox, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ShaderCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderCreate(vertshd,pixelshd); 2 | 3 | /** 4 | * Description: 5 | * Creates a shader from strings 6 | * 7 | * Arguments: 8 | * [1] - Vertex Shader Code 9 | * [2] - Pixel Shader Code 10 | * 11 | * Returns: 12 | * -1 on Error, shader index on success 13 | */ 14 | 15 | return external_call(global._MAE_ShaderCreate, argument0, argument1); 16 | -------------------------------------------------------------------------------- /MAE/MAE/Rendering/Resources/TextureImpl.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | class TextureImpl: public Texture { 7 | public: 8 | TextureImpl(LPDIRECT3DTEXTURE9 tex): tex(tex) { } 9 | ~TextureImpl(); 10 | 11 | inline LPDIRECT3DTEXTURE9 getTexture() { 12 | return tex; 13 | } 14 | 15 | private: 16 | LPDIRECT3DTEXTURE9 tex; 17 | }; 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshAddLink.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshAddLink(index,x1,y1,z1,x2,y2,z2,dir,radius); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshAddLink, argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyDisableDeactivation.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyDisableDeactivation(body); 2 | 3 | /** 4 | * Description: 5 | * Disables sleeping for a body. If you call this, the body will never sleep. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodyDisableDeactivation, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetAnisotropicFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetAnisotropicFriction(body,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Sets the ansitropic friction of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodySetAnisotropicFriction, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/Extension/external/texturecollection.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 8 | 9 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_AnimationCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationCreate(); 2 | 3 | /** 4 | * Description: 5 | * Creates an animation controller 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | ANI_TIME = 0; 15 | ANI_FRAME_1 = 0; 16 | ANI_FRAME_2 = 0; 17 | ANI_SET[0, 0] = noone; 18 | ANI_SET[0, 1] = noone; 19 | ANI_SETS = 0; 20 | ANI_SET_INDEX = 0; 21 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_NavMeshSetAgentConfig.gml: -------------------------------------------------------------------------------- 1 | ///MAE_NavMeshSetAgentConfig(index,agent_height,agent_radius,agent_max_climb,agent_max_slope); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MA_NavMeshSetAgentConfig, argument0, argument1, argument2, argument3, argument4); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysConstraintSetEnabled.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysConstraintSetEnabled(constraint,enabled); 2 | 3 | /** 4 | * Description: 5 | * Enables or disables a constraint. 6 | * 7 | * Arguments: 8 | * [1] - Constraint 9 | * [2] - Enabled 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_ConstraintSetEnabled, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetRotationMatrix.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetRotationMatrix(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the rotation of a physics body as a matrix. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * 4x4 Matrix 12 | */ 13 | 14 | var _rot = MAE_PhysBodyGetRotationQuat(argument0); 15 | return MAE_MatrixCreateRotationQuaternion(4, _rot); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetGravity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetGravity(body,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Overrides the world gravity on a body with a different gravity force. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodySetGravity, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeRemoveChild.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeRemoveChild(parent_shape,index); 2 | 3 | /** 4 | * Description: 5 | * Removes a child shape from a compound shape. 6 | * 7 | * Arguments: 8 | * [1] - Parent shape 9 | * [2] - Child index 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_ShapeRemoveChild, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysVertexBufferAddVertex.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysVertexBufferAddVertex(buffer,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | buffer_write(argument0, buffer_f32, argument1); 15 | buffer_write(argument0, buffer_f32, argument2); 16 | buffer_write(argument0, buffer_f32, argument3); 17 | 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetRollingFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRollingFriction(body,friction); 2 | 3 | /** 4 | * Description: 5 | * Sets the rolling friction of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Friction 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetRollingFriction, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ShaderCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderCreate(vertshd,pixelshd); 2 | 3 | /** 4 | * Description: 5 | * Creates a shader from strings 6 | * 7 | * Arguments: 8 | * [1] - Vertex Shader Code 9 | * [2] - Pixel Shader Code 10 | * 11 | * Returns: 12 | * -1 on Error, shader index on success 13 | */ 14 | 15 | return external_call(global._MAE_ShaderCreate, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelMD2Load.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMD2Load(model,texture,normals); 2 | 3 | /** 4 | * Description: 5 | * Loads MD2 Model and Texture. 6 | * 7 | * Arguments: 8 | * [1] - MD2 File. 9 | * [2] - Texture index. 10 | * [3] - Generate normals 11 | * 12 | * Returns: 13 | * 0 on Error, 1 on success. 14 | */ 15 | 16 | return external_call(global._MADX9_MD2Load, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetPosition.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetPosition(body,posx,posy,posz); 2 | 3 | /** 4 | * Description: 5 | * Sets the position of the physics body in the world. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Position as a vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetPosition, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreatePlane.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreatePlane(nx,ny,nz,distance); 2 | 3 | /** 4 | * Description: 5 | * Creates an a static plane shape that is solid to infinity on one side. 6 | * 7 | * Arguments: 8 | * [1] - Distance from origin 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreatePlane, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldDebugDraw.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldDebugDraw(); 2 | 3 | /** 4 | * Description: 5 | * Draws a debug wireframe representation of the physics world, including physics bodies, constraints, and collision points. Call this function in a draw event. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_WorldDebugDraw); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetAnisotropicFriction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetAnisotropicFriction(body,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Sets the ansitropic friction of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_BodySetAnisotropicFriction, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetRestitution.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRestitution(body,restitution); 2 | 3 | /** 4 | * Description: 5 | * Sets the restitution, or bounciness, of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Restitution 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetRestitution, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreateBox.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateBox(xsize,ysize,zsize); 2 | 3 | /** 4 | * Description: 5 | * Creates a box shape. 6 | * 7 | * Arguments: 8 | * [1] - X half size 9 | * [2] - Y half size 10 | * [3] - Z half size 11 | * 12 | * Returns: 13 | * Shape ID 14 | */ 15 | 16 | return external_call(global._MAB_ShapeCreateBox, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_AnimationAdd.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationAdd(Frame_Start,Frame_End); 2 | 3 | /** 4 | * Description: 5 | * Adds a animation 6 | * 7 | * Arguments: 8 | * [1] - First Frame of Animation 9 | * [2] - Last Frame of Animation 10 | * 11 | * Returns: 12 | * Animation Index 13 | */ 14 | 15 | ANI_SET[ANI_SETS, 0] = argument0; 16 | ANI_SET[ANI_SETS, 1] = argument1; 17 | ANI_SETS++; 18 | return ANI_SETS-1; 19 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetDeactivationTime.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetDeactivationTime(body,time); 2 | 3 | /** 4 | * Description: 5 | * Sets the amount of time a body will wait before sleeping when it isn't moving. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Time 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetDeactivationTime, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetGravityVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetGravityVector(body,gravity); 2 | 3 | /** 4 | * Description: 5 | * Overrides the world gravity on a body with a different gravity force. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var vec = argument1; 15 | 16 | return external_call(global._MAB_BodySetGravity, argument0, vec[0], vec[1], vec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetLinearVelocity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetLinearVelocity(body,velx,vely,velz); 2 | 3 | /** 4 | * Description: 5 | * Sets the linear velocity of the physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Velocity vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetLinearVelocity, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeSetScaling.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeSetScaling(shape,scalx,scaly,scalz); 2 | 3 | /** 4 | * Description: 5 | * Sets the scaling of a shape. Please note that not all shapes support non-uniform scaling. 6 | * 7 | * Arguments: 8 | * [1] - Shape 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_ShapeSetScaling, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterSetParticleAcceleration.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleAcceleration(index,acceleration); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var acceleration = argument1; 15 | 16 | return external_call(global._MADX9_ParticleEmitterSetParticleAcc, argument0, acceleration[0], acceleration[1], acceleration[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetDeactivationTime.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetDeactivationTime(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the deactivation time of a physics body. When a body has stopped moving, it will wait this amount of time before sleeping. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetDeactivationTime, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetAngularVelocity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetAngularVelocity(body,velx,vely,velz); 2 | 3 | /** 4 | * Description: 5 | * Sets the angular velocity of the physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Velocity vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetAngularVelocity, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetDamping.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetDamping(body,linear_damping,angular_damping); 2 | 3 | /** 4 | * Description: 5 | * Sets the damping of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Linear damping 10 | * [3] - Angular damping 11 | * 12 | * Returns: 13 | * Success 14 | */ 15 | 16 | return external_call(global._MAB_BodySetDamping, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionNorm.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionNorm(ref_q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var l = MAE_QuaternionMagnitude(argument0); 15 | 16 | if (l == 0) 17 | return undefined; 18 | 19 | argument0[@ 0] /= l; 20 | argument0[@ 1] /= l; 21 | argument0[@ 2] /= l; 22 | argument0[@ 3] /= l; 23 | 24 | return argument0; 25 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldDebugDraw.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldDebugDraw(); 2 | 3 | /** 4 | * Description: 5 | * Draws a debug wireframe representation of the physics world, including physics bodies, constraints, and collision points. Call this function in a draw event. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_WorldDebugDraw); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetRotation.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRotation(body,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Sets the rotation of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Rotation. Can be a vector of euler angles or a quaternion. 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetRotationEuler, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreateCone.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCone(radius,height,axis); 2 | 3 | /** 4 | * Description: 5 | * Creates a cone shape. 6 | * 7 | * Arguments: 8 | * [1] - Radius 9 | * [2] - Height 10 | * [3] - Up axis. Can be 0, 1, or 2, to correspond with x, y, z. 11 | * 12 | * Returns: 13 | * Shape ID 14 | */ 15 | 16 | return external_call(global._MAB_ShapeCreateCone, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_AnimationAdd.gml: -------------------------------------------------------------------------------- 1 | ///MAE_AnimationAdd(Frame_Start,Frame_End); 2 | 3 | /** 4 | * Description: 5 | * Adds a animation 6 | * 7 | * Arguments: 8 | * [1] - First Frame of Animation 9 | * [2] - Last Frame of Animation 10 | * 11 | * Returns: 12 | * Animation Index 13 | */ 14 | 15 | ANI_SET[ANI_SETS, 0] = argument0; 16 | ANI_SET[ANI_SETS, 1] = argument1; 17 | ANI_SETS++; 18 | return ANI_SETS-1; 19 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ModelMD2Load.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMD2Load(model,texture,normals); 2 | 3 | /** 4 | * Description: 5 | * Loads MD2 Model and Texture. 6 | * 7 | * Arguments: 8 | * [1] - MD2 File. 9 | * [2] - Texture index. 10 | * [3] - Generate normals 11 | * 12 | * Returns: 13 | * 0 on Error, 1 on success. 14 | */ 15 | 16 | return external_call(global._MADX9_MD2Load, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetDeactivationTime.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetDeactivationTime(body,time); 2 | 3 | /** 4 | * Description: 5 | * Sets the amount of time a body will wait before sleeping when it isn't moving. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Time 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetDeactivationTime, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetPosition.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetPosition(body,posx,posy,posz); 2 | 3 | /** 4 | * Description: 5 | * Sets the position of the physics body in the world. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Position as a vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetPosition, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreatePlane.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreatePlane(nx,ny,nz,distance); 2 | 3 | /** 4 | * Description: 5 | * Creates an a static plane shape that is solid to infinity on one side. 6 | * 7 | * Arguments: 8 | * [1] - Distance from origin 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreatePlane, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetAnisotropicFrictionVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetAnisotropicFrictionVector(body,friction); 2 | 3 | /** 4 | * Description: 5 | * Sets the ansitropic friction of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var vec = argument1; 15 | 16 | return external_call(global._MAB_BodySetAnisotropicFriction, argument0, vec[0], vec[1], vec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetPositionVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetPositionVector(body,pos); 2 | 3 | /** 4 | * Description: 5 | * Sets the position of the physics body in the world. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Position as a vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | var pos = argument1; 16 | 17 | return external_call(global._MAB_BodySetPosition, argument0, pos[0], pos[1], pos[2]); 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ShaderGetLocation.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderGetLocation(shader_index,str); 2 | 3 | /** 4 | * Description: 5 | * Finds a constant by string. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * [2] - Name of the location 10 | * 11 | * Returns: 12 | * -1 on Error, constant index on success. 13 | */ 14 | 15 | return external_call(global._MAE_ShaderGetLocation, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_VectorCross.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorCross(v1,v2); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[2] = argument0[0] * argument1[1] - argument0[1] * argument1[0]; 17 | v[1] = argument0[2] * argument1[0] - argument0[0] * argument1[2]; 18 | v[0] = argument0[1] * argument1[2] - argument0[2] * argument1[1]; 19 | 20 | return v; 21 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetGravityVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetGravityVector(body,gravity); 2 | 3 | /** 4 | * Description: 5 | * Overrides the world gravity on a body with a different gravity force. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var vec = argument1; 15 | 16 | return external_call(global._MAB_BodySetGravity, argument0, vec[0], vec[1], vec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetLinearVelocity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetLinearVelocity(body,velx,vely,velz); 2 | 3 | /** 4 | * Description: 5 | * Sets the linear velocity of the physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Velocity vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetLinearVelocity, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeSetScaling.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeSetScaling(shape,scalx,scaly,scalz); 2 | 3 | /** 4 | * Description: 5 | * Sets the scaling of a shape. Please note that not all shapes support non-uniform scaling. 6 | * 7 | * Arguments: 8 | * [1] - Shape 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | return external_call(global._MAB_ShapeSetScaling, argument0, argument1, argument2, argument3); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterSetParticlePosition.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticlePosition(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var minVec = argument1, maxVec = argument2; 15 | 16 | return external_call(global._MADX9_ParticleEmitterSetParticlePos, argument0, minVec[0], minVec[1], minVec[2], maxVec[0], maxVec[1], maxVec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterSetParticleVelocity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleVelocity(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var minVec = argument1, maxVec = argument2; 15 | 16 | return external_call(global._MADX9_ParticleEmitterSetParticleVel, argument0, minVec[0], minVec[1], minVec[2], maxVec[0], maxVec[1], maxVec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetUserIndex.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetUserIndex(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the user index of a physics body. If you have not set this, it will default to 0. The user index is for your own use, and can be any integer of your choosing. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Integer 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetUserIndex, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysWorldHitFraction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldHitFraction(); 2 | 3 | /** 4 | * Description: 5 | * Returns the time of the collision of a sweep or raycast. To get the distance to the collision, multiply the distance between the start and end point of the raycast by this. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Real between 0 and 1 12 | */ 13 | 14 | return external_call(global._MAB_HitResult, 2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_QuaternionRotate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionRotate(q,x,y,z,order = EULER_XYZ); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var _order = EULER_XYZ; 15 | 16 | if (argument_count > 4) 17 | _order = argument[4]; 18 | 19 | return MAE_QuaternionMultiply(argument[0], MAE_QuaternionCreateRotation(argument[1], argument[2], argument[3], _order)); 20 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ShaderFindConstant.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderFindConstant(shader_index,name); 2 | 3 | /** 4 | * Description: 5 | * Finds a constant by string. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * [2] - Name of the constant 10 | * 11 | * Returns: 12 | * -1 on Error, constant index on success. 13 | */ 14 | 15 | return external_call(global._MAE_ShaderFindConstant, argument0, argument1); 16 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterSetParticleAcceleration.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleAcceleration(index,acceleration); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var acceleration = argument1; 15 | 16 | return external_call(global._MADX9_ParticleEmitterSetParticleAcc, argument0, acceleration[0], acceleration[1], acceleration[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetDeactivationTime.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetDeactivationTime(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the deactivation time of a physics body. When a body has stopped moving, it will wait this amount of time before sleeping. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Real 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetDeactivationTime, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetAngularVelocity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetAngularVelocity(body,velx,vely,velz); 2 | 3 | /** 4 | * Description: 5 | * Sets the angular velocity of the physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Velocity vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetAngularVelocity, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetDamping.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetDamping(body,linear_damping,angular_damping); 2 | 3 | /** 4 | * Description: 5 | * Sets the damping of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Linear damping 10 | * [3] - Angular damping 11 | * 12 | * Returns: 13 | * Success 14 | */ 15 | 16 | return external_call(global._MAB_BodySetDamping, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ParticleEmitterSetParticleColour.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleColour(index,rStart,gStart,bStart,aStart,rEnd,gEnd,bEnd,aEnd); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleCol, argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreateCapsule.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCapsule(radius,height,axis); 2 | 3 | /** 4 | * Description: 5 | * Creates a capsule shape. 6 | * 7 | * Arguments: 8 | * [1] - Radius 9 | * [2] - Height 10 | * [3] - Up axis. Can be 0, 1, or 2, to correspond with x, y, z. 11 | * 12 | * Returns: 13 | * Shape ID 14 | */ 15 | 16 | return external_call(global._MAB_ShapeCreateCapsule, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeSetScalingVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeSetScalingVector(shape,scale); 2 | 3 | /** 4 | * Description: 5 | * Sets the scaling of a shape. Please note that not all shapes support non-uniform scaling. 6 | * 7 | * Arguments: 8 | * [1] - Shape 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var scal = argument1; 15 | 16 | return external_call(global._MAB_ShapeSetScaling, argument0, scal[0], scal[1], scal[2]); 17 | -------------------------------------------------------------------------------- /MAE/MAE/Rendering/Mesh.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | #include 6 | 7 | typedef vec3 Vertex; 8 | typedef vec3 Normal; 9 | 10 | struct TexCoord 11 | { 12 | float s, t; 13 | }; 14 | 15 | struct VertNorm { 16 | Vertex v; 17 | Normal n; 18 | }; 19 | 20 | struct VertTexCoord { 21 | Vertex v; 22 | TexCoord t; 23 | }; 24 | 25 | struct VertNormalTexCoord { 26 | Vertex v; 27 | Normal n; 28 | TexCoord t; 29 | }; -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionNorm.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionNorm(ref_q); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var l = MAE_QuaternionMagnitude(argument0); 15 | 16 | if (l == 0) 17 | return undefined; 18 | 19 | argument0[@ 0] /= l; 20 | argument0[@ 1] /= l; 21 | argument0[@ 2] /= l; 22 | argument0[@ 3] /= l; 23 | 24 | return argument0; 25 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysShapeCreateConvexHull.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateConvexHull(buffer); 2 | 3 | /** 4 | * Description: 5 | * Creates a convex hull shape around a point cloud. This shape can be used for dynamic bodies. 6 | * 7 | * Arguments: 8 | * [1] - Buffer of points 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateConvexHull, buffer_get_address(argument0), buffer_tell(argument0) div 12); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetAnisotropicFrictionVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetAnisotropicFrictionVector(body,friction); 2 | 3 | /** 4 | * Description: 5 | * Sets the ansitropic friction of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var vec = argument1; 15 | 16 | return external_call(global._MAB_BodySetAnisotropicFriction, argument0, vec[0], vec[1], vec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetRotation.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRotation(body,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Sets the rotation of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Rotation. Can be a vector of euler angles or a quaternion. 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | return external_call(global._MAB_BodySetRotationEuler, argument0, argument1, argument2, argument3); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreateCone.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCone(radius,height,axis); 2 | 3 | /** 4 | * Description: 5 | * Creates a cone shape. 6 | * 7 | * Arguments: 8 | * [1] - Radius 9 | * [2] - Height 10 | * [3] - Up axis. Can be 0, 1, or 2, to correspond with x, y, z. 11 | * 12 | * Returns: 13 | * Shape ID 14 | */ 15 | 16 | return external_call(global._MAB_ShapeCreateCone, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_VectorCross.gml: -------------------------------------------------------------------------------- 1 | ///MAE_VectorCross(v1,v2); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var v; 15 | 16 | v[2] = argument0[0] * argument1[1] - argument0[1] * argument1[0]; 17 | v[1] = argument0[2] * argument1[0] - argument0[0] * argument1[2]; 18 | v[0] = argument0[1] * argument1[2] - argument0[2] * argument1[1]; 19 | 20 | return v; 21 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyCreate(shape,mass,xrot,yrot,zrot,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Creates a rigid body and adds it to the world. 6 | * 7 | * Arguments: 8 | * [1] - Shape 9 | * [2] - Mass (0 for static body) 10 | * 11 | * Returns: 12 | * Body ID 13 | */ 14 | 15 | return external_call(global._MAB_BodyCreate, argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodySetPositionVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetPositionVector(body,pos); 2 | 3 | /** 4 | * Description: 5 | * Sets the position of the physics body in the world. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Position as a vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | var pos = argument1; 16 | 17 | return external_call(global._MAB_BodySetPosition, argument0, pos[0], pos[1], pos[2]); 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysWorldHitFraction.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysWorldHitFraction(); 2 | 3 | /** 4 | * Description: 5 | * Returns the time of the collision of a sweep or raycast. To get the distance to the collision, multiply the distance between the start and end point of the raycast by this. 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * Real between 0 and 1 12 | */ 13 | 14 | return external_call(global._MAB_HitResult, 2); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_QuaternionRotate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_QuaternionRotate(q,x,y,z,order = EULER_XYZ); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var _order = EULER_XYZ; 15 | 16 | if (argument_count > 4) 17 | _order = argument[4]; 18 | 19 | return MAE_QuaternionMultiply(argument[0], MAE_QuaternionCreateRotation(argument[1], argument[2], argument[3], _order)); 20 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ShaderFindConstant.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderFindConstant(shader_index,name); 2 | 3 | /** 4 | * Description: 5 | * Finds a constant by string. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * [2] - Name of the constant 10 | * 11 | * Returns: 12 | * -1 on Error, constant index on success. 13 | */ 14 | 15 | return external_call(global._MAE_ShaderFindConstant, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ShaderGetLocation.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderGetLocation(shader_index,str); 2 | 3 | /** 4 | * Description: 5 | * Finds a constant by string. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * [2] - Name of the location 10 | * 11 | * Returns: 12 | * -1 on Error, constant index on success. 13 | */ 14 | 15 | return external_call(global._MAE_ShaderGetLocation, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ModelMD2Render.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ModelMD2Render(index,frame,frame,tween); 2 | 3 | /** 4 | * Description: 5 | * Draws an MD2 model to the 3D scene. 6 | * 7 | * Arguments: 8 | * [1] - MD2 Index. 9 | * [2] - First Frame. 10 | * [3] - Second Frame. 11 | * [4] - Tween Value. 12 | * 13 | * Returns: 14 | * 0 on Error, 1 on success. 15 | */ 16 | 17 | return external_call(global._MADX9_MD2Render, argument0, argument1, argument2, argument3); 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyGetIgnore.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetIgnore(body,other_body); 2 | 3 | /** 4 | * Description: 5 | * Checks if this body is ignoring collisions with the other one. See MAE_PhysBodySetIgnore() to make a body ignore another. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Other body. 10 | * 11 | * Returns: 12 | * 1 if ignoring, 0 otherwise. 13 | */ 14 | 15 | return external_call(global._MAB_BodyGetIgnore, argument0, argument1); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetRotationVec.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRotationVec(body,rot); 2 | 3 | /** 4 | * Description: 5 | * Sets the rotation of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Rotation. Can be a vector of euler angles or a quaternion. 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | var vec = argument1; 16 | 17 | return external_call(global._MAB_BodySetRotationEuler, argument0, vec[0], vec[1], vec[2]); 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterSetParticleColour.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleColour(index,rStart,gStart,bStart,aStart,rEnd,gEnd,bEnd,aEnd); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | return external_call(global._MADX9_ParticleEmitterSetParticleCol, argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterSetParticlePosition.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticlePosition(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var minVec = argument1, maxVec = argument2; 15 | 16 | return external_call(global._MADX9_ParticleEmitterSetParticlePos, argument0, minVec[0], minVec[1], minVec[2], maxVec[0], maxVec[1], maxVec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ParticleEmitterSetParticleVelocity.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ParticleEmitterSetParticleVelocity(index,min,max); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var minVec = argument1, maxVec = argument2; 15 | 16 | return external_call(global._MADX9_ParticleEmitterSetParticleVel, argument0, minVec[0], minVec[1], minVec[2], maxVec[0], maxVec[1], maxVec[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyGetUserIndex.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyGetUserIndex(body); 2 | 3 | /** 4 | * Description: 5 | * Gets the user index of a physics body. If you have not set this, it will default to 0. The user index is for your own use, and can be any integer of your choosing. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * 10 | * Returns: 11 | * Integer 12 | */ 13 | 14 | return external_call(global._MAB_BodyGetUserIndex, argument0); 15 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreateCapsule.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateCapsule(radius,height,axis); 2 | 3 | /** 4 | * Description: 5 | * Creates a capsule shape. 6 | * 7 | * Arguments: 8 | * [1] - Radius 9 | * [2] - Height 10 | * [3] - Up axis. Can be 0, 1, or 2, to correspond with x, y, z. 11 | * 12 | * Returns: 13 | * Shape ID 14 | */ 15 | 16 | return external_call(global._MAB_ShapeCreateCapsule, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeSetScalingVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeSetScalingVector(shape,scale); 2 | 3 | /** 4 | * Description: 5 | * Sets the scaling of a shape. Please note that not all shapes support non-uniform scaling. 6 | * 7 | * Arguments: 8 | * [1] - Shape 9 | * 10 | * Returns: 11 | * Success 12 | */ 13 | 14 | var scal = argument1; 15 | 16 | return external_call(global._MAB_ShapeSetScaling, argument0, scal[0], scal[1], scal[2]); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_MatrixRotate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_MatrixRotate(m,x,y,z,order = EULER_XYZ); 2 | 3 | /** 4 | * Description: 5 | * 6 | * 7 | * Arguments: 8 | * [-] 9 | * 10 | * Returns: 11 | * [-] 12 | */ 13 | 14 | var _order = EULER_XYZ; 15 | 16 | if (argument_count > 4) 17 | _order = argument[4]; 18 | 19 | return MAE_MatrixMultiplyMatrix(argument[0], MAE_MatrixCreateRotation(MAE_MatrixGetDimension(argument[0]), argument[1], argument[2], argument[3], _order)); 20 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_ShaderCompileASM.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderCompileASM(index,vertshd,pixelshd); 2 | 3 | /** 4 | * Description: 5 | * Creates a shader from strings 6 | * 7 | * Arguments: 8 | * [1] - Shader ID 9 | * [2] - Vertex Shader Code 10 | * [3] - Pixel Shader Code 11 | * 12 | * Returns: 13 | * -1 on Error, shader index on success 14 | */ 15 | 16 | return external_call(global._MAE_ShaderCompileD3D9ASM, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodyApplyTorque.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyApplyTorque(body,relative,torquex,torquey,torquez); 2 | 3 | /** 4 | * Description: 5 | * Applies torque to a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Local space(true), or world space(false) 10 | * [3] - Torque vector 11 | * 12 | * Returns: 13 | * Success 14 | */ 15 | 16 | return external_call(global.MAB_BodyApplyTorque, argument0, argument2, argument3, argument4, argument1); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetAngularVelocityVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetAngularVelocityVector(body,velocity); 2 | 3 | /** 4 | * Description: 5 | * Sets the angular velocity of the physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Velocity vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | var velocity = argument1; 16 | 17 | return external_call(global._MAB_BodySetAngularVelocity, argument0, velocity[0], velocity[1], velocity[2]); 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetIgnore.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetIgnore(body,other_body,ignore); 2 | 3 | /** 4 | * Description: 5 | * This function lets you tell 2 physics bodies to ignore collisions with each other. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Other body 10 | * [3] - Ignore collisions with other body? 11 | * 12 | * Returns: 13 | * Success 14 | */ 15 | 16 | return external_call(global._MAB_BodySetIgnore, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetLinearVelocityVector.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetLinearVelocityVector(body,velocity); 2 | 3 | /** 4 | * Description: 5 | * Sets the linear velocity of the physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Velocity vector 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | var velocity = argument1; 16 | 17 | return external_call(global._MAB_BodySetLinearVelocity, argument0, velocity[0], velocity[1], velocity[2]); 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_PhysBodySetRotationQuat.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodySetRotationQuat(body,rot); 2 | 3 | /** 4 | * Description: 5 | * Sets the rotation of a physics body. 6 | * 7 | * Arguments: 8 | * [1] - Body 9 | * [2] - Rotation. Can be a vector of euler angles or a quaternion. 10 | * 11 | * Returns: 12 | * Success 13 | */ 14 | 15 | var quat = argument1; 16 | 17 | return external_call(global._MAB_BodySetRotationQuat, argument0, quat[0], quat[1], quat[2], quat[3]); 18 | -------------------------------------------------------------------------------- /GML/MAE.gmx/scripts/MAE_ShaderSetSampler.gml: -------------------------------------------------------------------------------- 1 | ///MAE_ShaderSetSampler(shader_index,constant,sampler); 2 | 3 | /** 4 | * Description: 5 | * Sets a sampler. 6 | * 7 | * Arguments: 8 | * [1] - Index to the shader created by MAE_ShaderCreate 9 | * [2] - Index of the constant 10 | * [3] - Sampler 11 | * 12 | * Returns: 13 | * -1 on Error, constant index on success. 14 | */ 15 | 16 | return external_call(global._MAE_ShaderSetSampler, argument0, argument1, argument2); 17 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysBodyCreate.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysBodyCreate(shape,mass,xrot,yrot,zrot,x,y,z); 2 | 3 | /** 4 | * Description: 5 | * Creates a rigid body and adds it to the world. 6 | * 7 | * Arguments: 8 | * [1] - Shape 9 | * [2] - Mass (0 for static body) 10 | * 11 | * Returns: 12 | * Body ID 13 | */ 14 | 15 | return external_call(global._MAB_BodyCreate, argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7); 16 | -------------------------------------------------------------------------------- /GML/MAE.gmx/extensions/MAE/Assets/Scripts/MAE_PhysShapeCreateConvexHull.gml: -------------------------------------------------------------------------------- 1 | ///MAE_PhysShapeCreateConvexHull(buffer); 2 | 3 | /** 4 | * Description: 5 | * Creates a convex hull shape around a point cloud. This shape can be used for dynamic bodies. 6 | * 7 | * Arguments: 8 | * [1] - Buffer of points 9 | * 10 | * Returns: 11 | * Shape ID 12 | */ 13 | 14 | return external_call(global._MAB_ShapeCreateConvexHull, buffer_get_address(argument0), buffer_tell(argument0) div 12); 15 | --------------------------------------------------------------------------------