├── WFC ├── Excel │ └── csv.txt ├── Media │ ├── #Shaders │ │ ├── ScreenQuad_Shadertoy_IQ2_ps.h │ │ ├── ScreenQuad_Shadertoy_IQ2_vs.h │ │ ├── ScreenQuad_Shadertoy_IQ_ps.h │ │ ├── ScreenQuad_Sky_vs.h │ │ ├── ScreenQuad_ColorSphere_vs.h │ │ ├── ScreenQuad_Atmosphere_vs.h │ │ ├── ScreenQuad_MinimalAtmosphere_vs.h │ │ ├── ScreenQuad_SimpleAtmosphericScattering_vs.h │ │ ├── ScreenQuad_Default_vs.h │ │ ├── luminance.glsl │ │ ├── ScreenQuad_Shadertoy_IQ_vs.h │ │ ├── RenderModel_SimpleShader2_vs.h │ │ ├── RenderModel_Mapcap_vs.h │ │ ├── RenderModel_WFCShader_vs.h │ │ ├── ScreenQuad_ColorSphere_ps.h │ │ ├── ScreenQuad_ColorSphere2_ps.h │ │ ├── RenderModel_SimpleShader1_vs.h │ │ └── RenderModel_SimpleShader1_ps.h │ ├── wfc_mini.zb2 │ ├── wfc_test.zb2 │ ├── wfc_test2.zb2 │ ├── wfc_test3.zb2 │ ├── wfc_legoland.zb2 │ ├── arial_black_20.bin │ └── wfc_legoland_unmerged.zb2 ├── Screenshots │ ├── screenshots.txt │ ├── Screenshot0.jpg │ ├── Screenshot1.jpg │ ├── Screenshot10.jpg │ ├── Screenshot2.jpg │ ├── Screenshot3.jpg │ ├── Screenshot4.jpg │ ├── Screenshot5.jpg │ ├── Screenshot6.jpg │ ├── Screenshot7.jpg │ ├── Screenshot8.jpg │ └── Screenshot9.jpg ├── Src │ ├── Rock │ │ └── Src │ │ │ ├── APIs │ │ │ ├── Core │ │ │ │ ├── RockFPU.cpp │ │ │ │ ├── RockHash.cpp │ │ │ │ ├── RockHashMap.cpp │ │ │ │ ├── RockArray.cpp │ │ │ │ ├── RockCommon.h │ │ │ │ ├── RockFormat.h │ │ │ │ ├── RockSettings.h │ │ │ │ ├── RockSpy.h │ │ │ │ ├── RockSort.cpp │ │ │ │ ├── RockAssert.cpp │ │ │ │ ├── RockCore.h │ │ │ │ ├── RockString.h │ │ │ │ ├── RockTimer.h │ │ │ │ ├── RockLog.h │ │ │ │ ├── RockBitmap.cpp │ │ │ │ ├── RockString.cpp │ │ │ │ ├── RockTimer.cpp │ │ │ │ ├── RockMemory.h │ │ │ │ ├── RockAssert.h │ │ │ │ ├── RockLog.cpp │ │ │ │ └── RockAllocator.cpp │ │ │ ├── Math │ │ │ │ ├── RockFloat3.cpp │ │ │ │ └── RockMath.h │ │ │ └── Rock.h │ │ │ └── APPs │ │ │ └── RockWinTest │ │ │ ├── RockWinTest.h │ │ │ ├── targetver.h │ │ │ ├── framework.h │ │ │ └── Resource.h │ ├── PEEL.APS │ ├── PEEL.ico │ ├── GL │ │ ├── glew32.dll │ │ ├── glew32.lib │ │ ├── glew32s.lib │ │ ├── glew64.dll │ │ └── glew64.lib │ ├── Ice │ │ ├── Lib │ │ │ ├── IML.lib │ │ │ ├── ZCB2.lib │ │ │ ├── Contact.lib │ │ │ ├── IML_D.lib │ │ │ ├── IceCore.lib │ │ │ ├── IceGUI.lib │ │ │ ├── ZCB2_D.lib │ │ │ ├── Contact_D.lib │ │ │ ├── IceCore_D.lib │ │ │ ├── IceGUI_D.lib │ │ │ ├── IceMaths.lib │ │ │ ├── IceCharacter.lib │ │ │ ├── IceImageWork.lib │ │ │ ├── IceMaths_D.lib │ │ │ ├── IceRenderer.lib │ │ │ ├── IceTerrain.lib │ │ │ ├── IceTerrain_D.lib │ │ │ ├── Meshmerizer.lib │ │ │ ├── IceCharacter_D.lib │ │ │ ├── IceImageWork_D.lib │ │ │ ├── IceRenderer_D.lib │ │ │ ├── Meshmerizer_D.lib │ │ │ ├── IceCharacterController.lib │ │ │ └── IceCharacterController_D.lib │ │ ├── Lib64 │ │ │ ├── ZCB264.lib │ │ │ ├── Contact64.lib │ │ │ ├── IceCore64.lib │ │ │ ├── IceGUI64.lib │ │ │ ├── IceGUI64_D.lib │ │ │ ├── IceMaths64.lib │ │ │ ├── ZCB264_D.lib │ │ │ ├── Contact64_D.lib │ │ │ ├── IceCharacter.lib │ │ │ ├── IceCore64_D.lib │ │ │ ├── IceMaths64_D.lib │ │ │ ├── IceRenderer.lib │ │ │ ├── IceTerrain64.lib │ │ │ ├── IceCharacter64.lib │ │ │ ├── IceCharacter_D.lib │ │ │ ├── IceImageWork64.lib │ │ │ ├── IceRenderer64.lib │ │ │ ├── IceRenderer64_D.lib │ │ │ ├── IceTerrain64_D.lib │ │ │ ├── Meshmerizer64.lib │ │ │ ├── Meshmerizer64_D.lib │ │ │ ├── IceCharacter64_D.lib │ │ │ └── IceImageWork64_D.lib │ │ └── APIs │ │ │ └── Ice │ │ │ ├── IceImageWork │ │ │ ├── IcePaletteCpp.h │ │ │ ├── IceImageWorkAFX.h │ │ │ ├── StdAfx.h │ │ │ └── IceImageWorkSettings.h │ │ │ ├── IceMaths │ │ │ ├── IceMathsAFX.h │ │ │ ├── IceScrewing.h │ │ │ ├── StdAfx.h │ │ │ ├── IceCubeRoot.h │ │ │ ├── IceJacobi.h │ │ │ ├── IceMathsSettings.h │ │ │ ├── IceFFT.h │ │ │ ├── IceTSS.h │ │ │ └── IceEigen.h │ │ │ ├── IceCore │ │ │ ├── IceCPUID.h │ │ │ ├── IceQuote.h │ │ │ ├── IceHandleManagerDef.h │ │ │ ├── IceNLogLogN.h │ │ │ ├── IceCallbacksDef.h │ │ │ ├── IceStackTrack.h │ │ │ ├── StdAfx.h │ │ │ ├── IceCRC.h │ │ │ ├── IceCoreTypes.h │ │ │ ├── IceAVI.h │ │ │ ├── IceFrameAllocator.h │ │ │ └── IceResource.h │ │ │ ├── IceGUI │ │ │ ├── IceGUIAFX.h │ │ │ ├── IceSpinBox.h │ │ │ ├── IceLabel.h │ │ │ ├── IceToolbar.h │ │ │ ├── IceColorPicker2.h │ │ │ ├── IceMenu.h │ │ │ ├── IceRadioButton.h │ │ │ ├── IceMenuBar.h │ │ │ ├── IceColorPicker.h │ │ │ ├── IcePanel.h │ │ │ ├── StdAfx.h │ │ │ ├── IceGroupBox.h │ │ │ ├── IceFileselect.h │ │ │ ├── IceProgressBar.h │ │ │ └── IceTabControl.h │ │ │ ├── Meshmerizer │ │ │ ├── MeshmerizerAFX.h │ │ │ ├── StdAfx.h │ │ │ ├── IceSeparatingAxes.h │ │ │ ├── IceManifoldMesh.h │ │ │ ├── MeshmerizerErrors.h │ │ │ ├── IceInnerBoxes.h │ │ │ ├── IceConvexHull2.h │ │ │ └── IceUVCreator.h │ │ │ ├── IceRenderer │ │ │ ├── IceSurface.h │ │ │ ├── IceRenderCaps.h │ │ │ ├── IceRenderStates.h │ │ │ ├── IceRendererAFX.h │ │ │ ├── IceVBMultiplexer.h │ │ │ ├── StdAfx.h │ │ │ ├── IceRendererSettings.h │ │ │ └── IceProjector.h │ │ │ ├── IceCharacter │ │ │ ├── IceCharacterAFX.h │ │ │ ├── IceCharacterStudioNodes.h │ │ │ └── StdAfx.h │ │ │ ├── Contact │ │ │ ├── CTC_PlaneAABBOverlap.h │ │ │ ├── CTC_RayAABBDistance.h │ │ │ ├── CTC_RayTriangleOverlap.h │ │ │ ├── CTC_TriangleAABBOverlap.h │ │ │ ├── CTC_TriangleTriangleOverlap.h │ │ │ ├── ContactAFX.h │ │ │ ├── CTC_PolygonPolygonContact.h │ │ │ ├── CTC_SweepBoxBox.h │ │ │ ├── CTC_SweepSphereCapsule.h │ │ │ ├── CTC_SweepCapsuleCapsule.h │ │ │ ├── CTC_SweepBoxSphere.h │ │ │ ├── stdafx.h │ │ │ ├── CTC_SweepBoxTriangle.h │ │ │ ├── CTC_ContactWitness.h │ │ │ ├── CTC_SphereConeOverlap.h │ │ │ ├── CTC_Extrude.h │ │ │ ├── CTC_SweptBox.h │ │ │ ├── CTC_PlanePlanePlane.h │ │ │ ├── CTC_PointSphereOverlap.h │ │ │ ├── CTC_RayCapsuleOverlap.h │ │ │ ├── CTC_RayPolygonOverlap.h │ │ │ ├── CTC_OBBOBBDistance.h │ │ │ ├── CTC_PlanePlane.h │ │ │ ├── CTC_DiskPlaneOverlap.h │ │ │ ├── CTC_EdgeEdgeDistance.h │ │ │ ├── CTC_SegmentRectangleDistance.h │ │ │ └── CTC_PointRectangleDistance.h │ │ │ ├── IceTerrain │ │ │ ├── IceTerrainAFX.h │ │ │ ├── StdAfx.h │ │ │ ├── IceTerrainSettings.h │ │ │ └── IceLightning.h │ │ │ └── ZCB2 │ │ │ ├── ChunkDLIT.h │ │ │ ├── ChunkCGIZ.h │ │ │ ├── ChunkBGIZ.h │ │ │ ├── ZCB2Exporter.h │ │ │ ├── ChunkSGIZ.h │ │ │ ├── ChunkPLIT.h │ │ │ ├── ZCB2AFX.h │ │ │ ├── ZCB2Breaker.h │ │ │ ├── ChunkSLIT.h │ │ │ ├── ChunkList.h │ │ │ ├── StdAfx.h │ │ │ ├── ZCB2Settings.h │ │ │ ├── ChunkFCAM.h │ │ │ ├── ChunkTCAM.h │ │ │ ├── ChunkUBAR.h │ │ │ ├── ChunkROBJ.h │ │ │ ├── ChunkXIDS.h │ │ │ └── ChunkROTA.h │ ├── SupportFile.cpp │ ├── GlutX │ │ ├── Lib │ │ │ ├── GlutX.lib │ │ │ ├── GlutX64.lib │ │ │ ├── GlutX_D.lib │ │ │ └── GlutX64_D.lib │ │ ├── stdafx.h │ │ └── stdafx.cpp │ ├── stdafx.cpp │ ├── Plugins.cpp │ ├── WFC_Utils.cpp │ ├── Plugins.h │ ├── foundation │ │ └── _stdint.h │ ├── RockInit.h │ ├── Grid.h │ ├── GLVSync.h │ ├── GLConvexRenderer.h │ ├── TrashCache.h │ ├── DisplayTexture.h │ ├── GLScaledCylinder.h │ ├── Sound.h │ ├── Foundation.h │ ├── RoundCorners.h │ ├── resource.h │ ├── USDExport.h │ ├── ZB2Export.h │ ├── GLScreenshot.h │ ├── CRC32.h │ ├── GL_MSAA.h │ ├── ProgressBar.h │ ├── DefaultEnv.h │ ├── Devil.h │ ├── Script.h │ ├── PintRenderPass.h │ ├── PintRenderState.h │ ├── FlatShader.h │ ├── TestSelector.h │ ├── GLRenderStates.h │ ├── PintTiming.cpp │ ├── PEEL_Threads.h │ ├── MeshCleaner.h │ ├── DisplayMessage.h │ ├── Loader_RepX.h │ ├── PintDLCylinderShapeRenderer.cpp │ ├── GLPointRenderer.h │ ├── ToolAddImpulse.h │ ├── targetver.h │ ├── PEEL_Settings.h │ ├── Gamepad.h │ ├── RaytracingTest.h │ ├── PintObjectsManager.h │ ├── ToolTransform.h │ ├── ICE_To_PX.h │ ├── PintEngineData.cpp │ ├── Cylinder.h │ ├── ScreenQuad_Atmosphere.h │ ├── GLPointRenderer2.h │ ├── GUI_RenderInterface.h │ ├── Scattering.h │ ├── ToolShootObject.h │ ├── CRC32.cpp │ ├── PintPointSpriteSphereShapeRenderer.h │ ├── PintNullRenderer.h │ ├── PintEngineData.h │ ├── ScreenQuad_MinimalAtmosphere.h │ ├── #Compiler_vs2017 │ │ └── WFCExplorer.vcxproj.user │ ├── Capsule.h │ ├── PintDLShapeRenderer.h │ ├── ScreenQuad_Sky.h │ ├── GLTexture.h │ ├── Profiling.h │ ├── ScreenQuad_SimpleAtmosphericScattering.h │ ├── ScreenQuad_BackColor.h │ ├── RenderTarget.h │ ├── SimpleShader.h │ ├── PintPointSpriteSphereShapeRenderer.cpp │ ├── Grid.cpp │ └── GLFontRenderer.h └── Build64 │ ├── DevIL.dll │ ├── glew32.dll │ ├── GlutX64.dll │ ├── IceGUI64.dll │ ├── msvcm90d.dll │ ├── msvcp90.dll │ ├── msvcp90d.dll │ ├── msvcr90.dll │ ├── msvcr90d.dll │ ├── Contact64.dll │ ├── Contact64_D.dll │ ├── GlutX64_D.dll │ ├── IceCore64.dll │ ├── IceCore64_D.dll │ ├── IceGUI64_D.dll │ ├── IceMaths64.dll │ ├── IceMaths64_D.dll │ ├── IceRenderer64.dll │ ├── IceTerrain64.dll │ ├── Meshmerizer64.dll │ ├── PhysXDevice64.dll │ ├── IceCharacter64.dll │ ├── IceCharacter64_D.dll │ ├── IceImageWork64.dll │ ├── IceImageWork64_D.dll │ ├── IceRenderer64_D.dll │ ├── IceTerrain64_D.dll │ ├── Meshmerizer64_D.dll │ ├── PhysX_64_5_6_0_GitHub.dll │ ├── WFCExplorer64_vs2017.exe │ ├── PhysXDEBUG_64_5_6_0_GitHub.dll │ ├── WFCExplorer64_DEBUG_vs2017.exe │ ├── PhysXCommon_64_5_6_0_GitHub.dll │ ├── PhysXCooking_64_5_6_0_GitHub.dll │ ├── PINT_PhysX560GitHub_VS2017_64.dll │ ├── PINT_PhysX560GitHub_VS2017_64_D.dll │ ├── PhysXFoundation_64_5_6_0_GitHub.dll │ ├── PhysXCommonDEBUG_64_5_6_0_GitHub.dll │ ├── PhysXCookingDEBUG_64_5_6_0_GitHub.dll │ ├── PhysXFoundationDEBUG_64_5_6_0_GitHub.dll │ └── Microsoft.VC90.DebugCRT.manifest ├── PEEL_Externals └── DevIL_1.8.0 │ ├── include │ └── IL │ │ ├── stamp-h.in │ │ ├── DevIL.i │ │ ├── build-python │ │ ├── ilut_config.h │ │ └── ilu_region.h │ └── lib │ ├── x64 │ ├── Release │ │ ├── DevIL.dll │ │ ├── DevIL.lib │ │ ├── ILU.dll │ │ ├── ILU.lib │ │ ├── ILUT.dll │ │ └── ILUT.lib │ └── unicode │ │ └── Release │ │ ├── ILU.dll │ │ ├── ILU.lib │ │ ├── ILUT.dll │ │ ├── ILUT.lib │ │ ├── DevIL.dll │ │ └── DevIL.lib │ └── x86 │ ├── Release │ ├── DevIL.dll │ ├── DevIL.lib │ ├── ILU.dll │ ├── ILU.lib │ ├── ILUT.dll │ └── ILUT.lib │ └── unicode │ └── Release │ ├── ILU.dll │ ├── ILU.lib │ ├── ILUT.dll │ ├── ILUT.lib │ ├── DevIL.dll │ └── DevIL.lib └── License.txt /WFC/Excel/csv.txt: -------------------------------------------------------------------------------- 1 | Target directory for CSV files. -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_Shadertoy_IQ2_ps.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_Shadertoy_IQ2_vs.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_Shadertoy_IQ_ps.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/include/IL/stamp-h.in: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /WFC/Screenshots/screenshots.txt: -------------------------------------------------------------------------------- 1 | Target directory for screenshots. -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockFPU.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockHash.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockHashMap.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Math/RockFloat3.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | 4 | -------------------------------------------------------------------------------- /WFC/Src/PEEL.APS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/PEEL.APS -------------------------------------------------------------------------------- /WFC/Src/PEEL.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/PEEL.ico -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APPs/RockWinTest/RockWinTest.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /WFC/Build64/DevIL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/DevIL.dll -------------------------------------------------------------------------------- /WFC/Build64/glew32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/glew32.dll -------------------------------------------------------------------------------- /WFC/Media/wfc_mini.zb2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Media/wfc_mini.zb2 -------------------------------------------------------------------------------- /WFC/Media/wfc_test.zb2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Media/wfc_test.zb2 -------------------------------------------------------------------------------- /WFC/Src/GL/glew32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GL/glew32.dll -------------------------------------------------------------------------------- /WFC/Src/GL/glew32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GL/glew32.lib -------------------------------------------------------------------------------- /WFC/Src/GL/glew32s.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GL/glew32s.lib -------------------------------------------------------------------------------- /WFC/Src/GL/glew64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GL/glew64.dll -------------------------------------------------------------------------------- /WFC/Src/GL/glew64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GL/glew64.lib -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockArray.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace Rock; 4 | 5 | -------------------------------------------------------------------------------- /WFC/Build64/GlutX64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/GlutX64.dll -------------------------------------------------------------------------------- /WFC/Build64/IceGUI64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceGUI64.dll -------------------------------------------------------------------------------- /WFC/Build64/msvcm90d.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/msvcm90d.dll -------------------------------------------------------------------------------- /WFC/Build64/msvcp90.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/msvcp90.dll -------------------------------------------------------------------------------- /WFC/Build64/msvcp90d.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/msvcp90d.dll -------------------------------------------------------------------------------- /WFC/Build64/msvcr90.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/msvcr90.dll -------------------------------------------------------------------------------- /WFC/Build64/msvcr90d.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/msvcr90d.dll -------------------------------------------------------------------------------- /WFC/Media/wfc_test2.zb2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Media/wfc_test2.zb2 -------------------------------------------------------------------------------- /WFC/Media/wfc_test3.zb2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Media/wfc_test3.zb2 -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IML.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IML.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/ZCB2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/ZCB2.lib -------------------------------------------------------------------------------- /WFC/Src/SupportFile.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/SupportFile.cpp -------------------------------------------------------------------------------- /WFC/Build64/Contact64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/Contact64.dll -------------------------------------------------------------------------------- /WFC/Build64/Contact64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/Contact64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/GlutX64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/GlutX64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/IceCore64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceCore64.dll -------------------------------------------------------------------------------- /WFC/Build64/IceCore64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceCore64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/IceGUI64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceGUI64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/IceMaths64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceMaths64.dll -------------------------------------------------------------------------------- /WFC/Media/wfc_legoland.zb2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Media/wfc_legoland.zb2 -------------------------------------------------------------------------------- /WFC/Src/GlutX/Lib/GlutX.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GlutX/Lib/GlutX.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/Contact.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/Contact.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IML_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IML_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceCore.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceCore.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceGUI.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceGUI.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/ZCB2_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/ZCB2_D.lib -------------------------------------------------------------------------------- /WFC/Build64/IceMaths64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceMaths64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/IceRenderer64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceRenderer64.dll -------------------------------------------------------------------------------- /WFC/Build64/IceTerrain64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceTerrain64.dll -------------------------------------------------------------------------------- /WFC/Build64/Meshmerizer64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/Meshmerizer64.dll -------------------------------------------------------------------------------- /WFC/Build64/PhysXDevice64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXDevice64.dll -------------------------------------------------------------------------------- /WFC/Media/arial_black_20.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Media/arial_black_20.bin -------------------------------------------------------------------------------- /WFC/Src/GlutX/Lib/GlutX64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GlutX/Lib/GlutX64.lib -------------------------------------------------------------------------------- /WFC/Src/GlutX/Lib/GlutX_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GlutX/Lib/GlutX_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/Contact_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/Contact_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceCore_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceCore_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceGUI_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceGUI_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceMaths.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceMaths.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/ZCB264.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/ZCB264.lib -------------------------------------------------------------------------------- /WFC/Build64/IceCharacter64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceCharacter64.dll -------------------------------------------------------------------------------- /WFC/Build64/IceCharacter64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceCharacter64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/IceImageWork64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceImageWork64.dll -------------------------------------------------------------------------------- /WFC/Build64/IceImageWork64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceImageWork64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/IceRenderer64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceRenderer64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/IceTerrain64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/IceTerrain64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/Meshmerizer64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/Meshmerizer64_D.dll -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot0.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot1.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot10.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot2.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot3.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot4.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot5.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot6.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot7.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot8.jpg -------------------------------------------------------------------------------- /WFC/Screenshots/Screenshot9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Screenshots/Screenshot9.jpg -------------------------------------------------------------------------------- /WFC/Src/GlutX/Lib/GlutX64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/GlutX/Lib/GlutX64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceImageWork/IcePaletteCpp.h: -------------------------------------------------------------------------------- 1 | void T::Reset() 2 | { 3 | DELETEARRAY(mColors); 4 | mNbColors = 0; 5 | } 6 | -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceCharacter.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceCharacter.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceImageWork.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceImageWork.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceMaths_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceMaths_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceRenderer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceRenderer.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceTerrain.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceTerrain.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceTerrain_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceTerrain_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/Meshmerizer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/Meshmerizer.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/Contact64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/Contact64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceCore64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceCore64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceGUI64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceGUI64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceGUI64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceGUI64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceMaths64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceMaths64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/ZCB264_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/ZCB264_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceCharacter_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceCharacter_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceImageWork_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceImageWork_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceRenderer_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceRenderer_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/Meshmerizer_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/Meshmerizer_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/Contact64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/Contact64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceCharacter.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceCharacter.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceCore64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceCore64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceMaths64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceMaths64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceRenderer.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceRenderer.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceTerrain64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceTerrain64.lib -------------------------------------------------------------------------------- /WFC/Build64/PhysX_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysX_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Build64/WFCExplorer64_vs2017.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/WFCExplorer64_vs2017.exe -------------------------------------------------------------------------------- /WFC/Media/wfc_legoland_unmerged.zb2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Media/wfc_legoland_unmerged.zb2 -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceMathsAFX.h: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace IceCore; 3 | 4 | #include "IceMaths.h" 5 | -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceCharacter64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceCharacter64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceCharacter_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceCharacter_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceImageWork64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceImageWork64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceRenderer64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceRenderer64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceRenderer64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceRenderer64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceTerrain64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceTerrain64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/Meshmerizer64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/Meshmerizer64.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/Meshmerizer64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/Meshmerizer64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceCPUID.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/IceCore/IceCPUID.h -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceQuote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/IceCore/IceQuote.h -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceCharacter64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceCharacter64_D.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib64/IceImageWork64_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib64/IceImageWork64_D.lib -------------------------------------------------------------------------------- /WFC/Build64/PhysXDEBUG_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXDEBUG_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Build64/WFCExplorer64_DEBUG_vs2017.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/WFCExplorer64_DEBUG_vs2017.exe -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceGUIAFX.h: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace IceImageWork; 3 | 4 | #include "IceGUI.h" 5 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/MeshmerizerAFX.h: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace Ctc; 3 | 4 | #include "Meshmerizer.h" 5 | -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceCharacterController.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceCharacterController.lib -------------------------------------------------------------------------------- /WFC/Build64/PhysXCommon_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXCommon_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Build64/PhysXCooking_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXCooking_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceScrewing.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/IceMaths/IceScrewing.h -------------------------------------------------------------------------------- /WFC/Src/Ice/Lib/IceCharacterController_D.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/Lib/IceCharacterController_D.lib -------------------------------------------------------------------------------- /WFC/Build64/PINT_PhysX560GitHub_VS2017_64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PINT_PhysX560GitHub_VS2017_64.dll -------------------------------------------------------------------------------- /WFC/Build64/PINT_PhysX560GitHub_VS2017_64_D.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PINT_PhysX560GitHub_VS2017_64_D.dll -------------------------------------------------------------------------------- /WFC/Build64/PhysXFoundation_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXFoundation_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceImageWork/IceImageWorkAFX.h: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace IceMaths; 3 | 4 | #include "IceImageWork.h" 5 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/IceSurface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/IceRenderer/IceSurface.h -------------------------------------------------------------------------------- /WFC/Build64/PhysXCommonDEBUG_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXCommonDEBUG_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Build64/PhysXCookingDEBUG_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXCookingDEBUG_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCharacter/IceCharacterAFX.h: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace Meshmerizer; 3 | 4 | #include "IceCharacter.h" 5 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/IceRenderCaps.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/IceRenderer/IceRenderCaps.h -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/Release/DevIL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/Release/DevIL.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/Release/DevIL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/Release/DevIL.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILU.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILU.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILU.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILU.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILUT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILUT.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILUT.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/Release/ILUT.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/Release/DevIL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/Release/DevIL.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/Release/DevIL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/Release/DevIL.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILU.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILU.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILU.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILU.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILUT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILUT.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILUT.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/Release/ILUT.lib -------------------------------------------------------------------------------- /WFC/Build64/PhysXFoundationDEBUG_64_5_6_0_GitHub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Build64/PhysXFoundationDEBUG_64_5_6_0_GitHub.dll -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_PlaneAABBOverlap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/Contact/CTC_PlaneAABBOverlap.h -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_RayAABBDistance.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/Contact/CTC_RayAABBDistance.h -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/IceRenderStates.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/IceRenderer/IceRenderStates.h -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_RayTriangleOverlap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/Contact/CTC_RayTriangleOverlap.h -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_TriangleAABBOverlap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/Contact/CTC_TriangleAABBOverlap.h -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Math/RockMath.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_MATH_H 2 | #define ROCK_MATH_H 3 | 4 | #include 5 | #include 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILU.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILU.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILU.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILU.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILUT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILUT.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILUT.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/ILUT.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILU.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILU.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILU.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILU.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILUT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILUT.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILUT.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/ILUT.lib -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_TriangleTriangleOverlap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/Contact/CTC_TriangleTriangleOverlap.h -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCharacter/IceCharacterStudioNodes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/WFC/Src/Ice/APIs/Ice/IceCharacter/IceCharacterStudioNodes.h -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/DevIL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/DevIL.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/DevIL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x64/unicode/Release/DevIL.lib -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/DevIL.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/DevIL.dll -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/DevIL.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pierre-Terdiman/WFC_Explorer/HEAD/PEEL_Externals/DevIL_1.8.0/lib/x86/unicode/Release/DevIL.lib -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_Sky_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | 5 | void main() 6 | { 7 | varyPos = gl_Normal; 8 | gl_Position = gl_Vertex; 9 | } 10 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_ColorSphere_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | 5 | void main() 6 | { 7 | varyPos = gl_Normal; 8 | gl_Position = gl_Vertex; 9 | } 10 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_Atmosphere_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | 5 | void main() 6 | { 7 | varyPos = gl_Normal; 8 | gl_Position = gl_Vertex; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_MinimalAtmosphere_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | 5 | void main() 6 | { 7 | varyPos = gl_Normal; 8 | gl_Position = gl_Vertex; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_SimpleAtmosphericScattering_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | 5 | void main() 6 | { 7 | varyPos = gl_Normal; 8 | gl_Position = gl_Vertex; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/ContactAFX.h: -------------------------------------------------------------------------------- 1 | //#define BAN_ICECORE_AUTOLINK 2 | //#define BAN_ICEMATHS_AUTOLINK 3 | 4 | #include 5 | using namespace IceMaths; 6 | 7 | #include "Contact.h" 8 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_Default_vs.h: -------------------------------------------------------------------------------- 1 | 2 | #ifdef _VERTEX_ 3 | 4 | varying vec3 varyPos; 5 | 6 | void main() 7 | { 8 | varyPos = gl_Normal; 9 | gl_Position = gl_Vertex; 10 | } 11 | 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceHandleManagerDef.h: -------------------------------------------------------------------------------- 1 | 2 | // Will be included by relevant files 3 | 4 | #define TEMPLATED_MANAGER HandleManager 5 | #define TEMPLATED_OBJECT void* 6 | #define TEMPLATED_EXPORT ICECORE_API -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/IceRendererAFX.h: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace Meshmerizer; 3 | 4 | #include 5 | using namespace IceImageWork; 6 | 7 | #include "IceRenderer.h" 8 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockCommon.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_COMMON_H 2 | #define ROCK_COMMON_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockFormat.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_FORMAT_H 2 | #define ROCK_FORMAT_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Rock 8 | { 9 | ROCK_API String _F(const char* format, ...); 10 | } 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/include/IL/DevIL.i: -------------------------------------------------------------------------------- 1 | %module DevIL 2 | %{ 3 | #include "il.h" 4 | #include "ilu.h" 5 | #include "ilut.h" 6 | //#include "ilu_region.h" 7 | %} 8 | 9 | %include "il.h" 10 | %include "ilu.h" 11 | %include "ilut.h" 12 | //%include "ilu_region.h" 13 | 14 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceTerrain/IceTerrainAFX.h: -------------------------------------------------------------------------------- 1 | 2 | #define BAN_ICERENDERER_AUTOLINK 3 | #define BAN_CONTACT_AUTOLINK 4 | #define BAN_MESHMERIZER_AUTOLINK 5 | 6 | #include 7 | using namespace IceRenderer; 8 | 9 | #include "IceTerrain.h" 10 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/luminance.glsl: -------------------------------------------------------------------------------- 1 | /** 2 | * log luminance according to a formula from wikipedia 3 | * http://en.wikipedia.org/wiki/Luminance_(relative) 4 | */ 5 | float logLuminance(vec4 c) 6 | { 7 | // return 0.0f; 8 | return log(c.r * 0.2126f + c.g * 0.7152f + c.b * 0.0722f); 9 | } 10 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockSettings.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_SETTINGS_H 2 | #define ROCK_SETTINGS_H 3 | 4 | // Use SPY or not. SPY is a custom profiler. 5 | //#define ROCK_USE_SPY 6 | 7 | //#define ROCK_USE_SSE4_1 8 | //#define ROCK_USE_AVX2 9 | 10 | #define ROCK_USE_CUDA 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_Shadertoy_IQ_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | varying vec3 varyPos2; 5 | 6 | void main() 7 | { 8 | varyPos = gl_Normal; 9 | varyPos2 = gl_Vertex.xyz; 10 | 11 | gl_FrontColor = gl_Color; 12 | gl_Position = gl_Vertex; 13 | // gl_Position = ftransform(); 14 | } 15 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/RenderModel_SimpleShader2_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | 5 | void main() 6 | { 7 | gl_FrontColor = gl_Color; 8 | gl_Position = ftransform(); 9 | 10 | // gl_TexCoord[0] = gl_ModelViewMatrixInverseTranspose * vec4(gl_Normal.xyz, 0.0); 11 | varyPos = vec3(gl_ModelViewMatrix * gl_Vertex); 12 | } 13 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APPs/RockWinTest/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // // Including SDKDDKVer.h defines the highest available Windows platform. 4 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 5 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 6 | #include 7 | -------------------------------------------------------------------------------- /WFC/Src/GlutX/stdafx.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #pragma once 10 | 11 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceNLogLogN.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef ICENLOGLOGN_H 5 | #define ICENLOGLOGN_H 6 | 7 | 8 | 9 | #endif // ICENLOGLOGN_H 10 | 11 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/IceVBMultiplexer.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef ICEVBMULTIPLEXER_H 5 | #define ICEVBMULTIPLEXER_H 6 | 7 | #endif // ICEVBMULTIPLEXER_H 8 | -------------------------------------------------------------------------------- /WFC/Src/stdafx.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | -------------------------------------------------------------------------------- /WFC/Src/GlutX/stdafx.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | -------------------------------------------------------------------------------- /WFC/Src/Plugins.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "Plugins.h" 11 | -------------------------------------------------------------------------------- /WFC/Src/WFC_Utils.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "WFC_Utils.h" 11 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_PolygonPolygonContact.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef CTCPOLYGONPOLYGONCONTACT_H 5 | #define CTCPOLYGONPOLYGONCONTACT_H 6 | 7 | #endif // CTCPOLYGONPOLYGONCONTACT_H 8 | 9 | -------------------------------------------------------------------------------- /WFC/Src/Plugins.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PLUGINS_H 10 | #define PLUGINS_H 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /WFC/Src/foundation/_stdint.h: -------------------------------------------------------------------------------- 1 | #ifndef STDINT_H 2 | 3 | #define STDINT_H 4 | 5 | #define UINT32_MAX 0xffffffff 6 | 7 | typedef signed char int8_t; 8 | typedef short int16_t; 9 | typedef int int32_t; 10 | 11 | typedef unsigned char uint8_t; 12 | typedef unsigned short uint16_t; 13 | typedef unsigned int uint32_t; 14 | 15 | typedef __int64 int64_t; 16 | typedef unsigned __int64 uint64_t; 17 | 18 | #endif -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Rock.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_H 2 | #define ROCK_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Rock 8 | { 9 | ROCK_FUNCTION ROCK_API void InitRock(Allocator* allocator=null, Log* log=null); 10 | ROCK_FUNCTION ROCK_API void CloseRock(); 11 | 12 | ROCK_FUNCTION ROCK_API void TestRock(); 13 | ROCK_FUNCTION ROCK_API void TestRockCuda(); 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/RenderModel_Mapcap_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | //varying vec3 varyNormal; 4 | varying vec3 varyPos; 5 | 6 | void main() 7 | { 8 | gl_FrontColor = gl_Color; 9 | gl_Position = ftransform(); 10 | 11 | gl_TexCoord[0] = gl_ModelViewMatrixInverseTranspose * vec4(gl_Normal.xyz, 0.0); 12 | 13 | //varyNormal = normalize(gl_NormalMatrix * gl_Normal); 14 | varyPos = vec3(gl_ModelViewMatrix * gl_Vertex); 15 | 16 | } 17 | 18 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceCallbacksDef.h: -------------------------------------------------------------------------------- 1 | 2 | // Will be included by relevant files 3 | 4 | #define TEMPLATED_CALLBACK IceCallback 5 | #define TEMPLATED_CONTAINER IceCoreCallbacksContainer 6 | #define TEMPLATED_MANAGER IceCoreCallbacksManager 7 | #define TEMPLATED_CODE IceCoreCallbackCode 8 | #define TEMPLATED_PARAM IceCoreCallbackCode 9 | #define TEMPLATED_SIZE ICCB_SIZE 10 | #define TEMPLATED_EXPORT ICECORE_API 11 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceSpinBox.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICESPINBOX_H 4 | #define ICESPINBOX_H 5 | 6 | FUNCTION ICEGUI_API IceEditBox* CreateSpinBox(IceWidget* parent, sdword x, sdword y, sdword init_value, udword id); 7 | 8 | #endif // ICEPANEL_H -------------------------------------------------------------------------------- /WFC/Src/RockInit.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef ROCK_INIT_H 10 | #define ROCK_INIT_H 11 | 12 | void InitRock(); 13 | void ReleaseRock(); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /WFC/Src/Grid.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GRID_H 10 | #define GRID_H 11 | 12 | class PintRender; 13 | void RenderGrid(PintRender& renderer); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /WFC/Src/GLVSync.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_VSYNC_H 10 | #define GL_VSYNC_H 11 | 12 | bool EnableGLExtensions(); 13 | bool GL_SelectVSYNC(bool flag); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /WFC/Src/GLConvexRenderer.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_CONVEX_RENDERER_H 10 | #define GL_CONVEX_RENDERER_H 11 | 12 | namespace GLConvexRenderer 13 | { 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APPs/RockWinTest/framework.h: -------------------------------------------------------------------------------- 1 | // header.h : include file for standard system include files, 2 | // or project specific include files 3 | // 4 | 5 | #pragma once 6 | 7 | #include "targetver.h" 8 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 9 | // Windows Header Files 10 | #include 11 | // C RunTime Header Files 12 | #include 13 | #include 14 | #include 15 | #include 16 | -------------------------------------------------------------------------------- /WFC/Src/TrashCache.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef TRASH_CACHE_H 10 | #define TRASH_CACHE_H 11 | 12 | void trashCache(); 13 | // void trashIcacheAndBranchPredictors(); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /WFC/Src/DisplayTexture.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef DISPLAY_TEXTURE_H 10 | #define DISPLAY_TEXTURE_H 11 | 12 | void DisplayTexture(udword screen_width, udword screen_height); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /WFC/Src/GLScaledCylinder.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_SCALED_CYLINDER_H 10 | #define GL_SCALED_CYLINDER_H 11 | 12 | void InitScaledCylinders(); 13 | void ReleaseScaledCylinders(); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /WFC/Src/Sound.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SOUND_H 10 | #define SOUND_H 11 | 12 | void StartSound(const char* filename, udword pos); 13 | udword GetSoundPos(); 14 | void SetFreq(int); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Src/Foundation.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef FOUNDATION_H 10 | #define FOUNDATION_H 11 | 12 | void initFoundation(); 13 | void releaseFoundation(); 14 | bool isFoundationInitialized(); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SweepBoxBox.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef CTCSWEEPBOXBOX_H 4 | #define CTCSWEEPBOXBOX_H 5 | 6 | CONTACT_API bool SweepBoxBox(const OBB& box0, const OBB& box1, const Point& dir, float length, Point& hit, Point& normal, float& t); 7 | 8 | #endif // CTCSWEEPBOXBOX_H 9 | 10 | 11 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockSpy.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_SPY_H 2 | #define ROCK_SPY_H 3 | 4 | #include 5 | 6 | #ifdef ROCK_USE_SPY 7 | #include "../../../Rock_Externals/Spy/SpyClient.h" 8 | 9 | #define SPY_ZONE(Label) Spy::Zone __SpyZone(Label); 10 | #define SPY_SYNC Spy::Sync(); 11 | #define SPY_INIT Spy::Init(); 12 | #define SPY_CLOSE Spy::Close(); 13 | #else 14 | #define SPY_ZONE(Label) 15 | #define SPY_SYNC 16 | #define SPY_INIT 17 | #define SPY_CLOSE 18 | #endif 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /WFC/Src/RoundCorners.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef ROUND_CORNERS_H 10 | #define ROUND_CORNERS_H 11 | 12 | void DrawRoundCorners(udword screen_width, udword screen_height, udword corner_size); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /WFC/Src/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by PEEL.rc 4 | // 5 | #define IDI_ICON1 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Src/USDExport.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef USD_EXPORT_H 10 | #define USD_EXPORT_H 11 | 12 | class EditorPlugin; 13 | 14 | void ExportUSD(const EditorPlugin& editor, const String* filename); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Src/ZB2Export.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef ZB2_EXPORT_H 10 | #define ZB2_EXPORT_H 11 | 12 | class EditorPlugin; 13 | 14 | void ExportZB2(const EditorPlugin& editor, const char* filename); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/RenderModel_WFCShader_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | varying vec3 varyPos; 4 | varying vec3 varyWorldPos; 5 | 6 | uniform mat4 worldMatrix; 7 | 8 | void main() 9 | { 10 | gl_FrontColor = gl_Color; 11 | gl_Position = ftransform(); 12 | //gl_TexCoord[0] = gl_ModelViewMatrixInverseTranspose * vec4(gl_Normal.xyz,0.0); 13 | gl_TexCoord[0] = worldMatrix * vec4(gl_Normal.xyz,0.0); 14 | varyPos = vec3(gl_ModelViewMatrix * gl_Vertex); 15 | 16 | varyWorldPos = vec3(worldMatrix * vec4(gl_Vertex.xyz, 1.0)); 17 | } 18 | -------------------------------------------------------------------------------- /WFC/Src/GLScreenshot.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_SCREENSHOT_H 10 | #define GL_SCREENSHOT_H 11 | 12 | bool SaveScreenshotToFile(const char* filename, udword windowWidth, udword windowHeight, bool backBuffer); 13 | 14 | #endif -------------------------------------------------------------------------------- /WFC/Src/CRC32.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef CRC32_H 10 | #define CRC32_H 11 | 12 | udword ComputeCRC32_Verts(const SurfaceInterface& surface); 13 | udword ComputeCRC32_Faces(const SurfaceInterface& surface); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkDLIT.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef CHUNKDLIT_H 5 | #define CHUNKDLIT_H 6 | 7 | #define DLIT_VERSION 1 8 | 9 | class ZCB2_API DLITChunk : public LITEChunk 10 | { 11 | DECLARE_CHUNK(DLITChunk, mDLITCore) 12 | 13 | DECLARE_STD_MEMBER(TDist, float) 14 | }; 15 | 16 | #endif // CHUNKDLIT_H 17 | -------------------------------------------------------------------------------- /WFC/Src/GL_MSAA.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_MSAA_H 10 | #define GL_MSAA_H 11 | 12 | void StartFrame_MSAA(); 13 | void EndFrame_MSAA(); 14 | void Release_MSAA(); 15 | void Resize_MSAA(); 16 | void Select_MSAA(udword index); 17 | 18 | #endif -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SweepSphereCapsule.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef CTCSWEEPSPHERECAPSULE_H 4 | #define CTCSWEEPSPHERECAPSULE_H 5 | 6 | CONTACT_API bool SweepSphereCapsule(const Sphere& sphere, const LSS& lss, const Point& dir, float length, float& d, Point& ip, Point& nrm); 7 | 8 | #endif // CTCSWEEPSPHERECAPSULE_H 9 | 10 | 11 | -------------------------------------------------------------------------------- /WFC/Src/ProgressBar.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PROGRESS_BAR_H 10 | #define PROGRESS_BAR_H 11 | 12 | void CreateProgressBar(udword nb, const char* label); 13 | void SetProgress(udword i); 14 | void ReleaseProgressBar(); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SweepCapsuleCapsule.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef CTCSWEEPCAPSULECAPSULE_H 4 | #define CTCSWEEPCAPSULECAPSULE_H 5 | 6 | CONTACT_API bool SweepCapsuleCapsule(const LSS& lss0, const LSS& lss1, const Point& dir, float length, float& min_dist, Point& ip, Point& normal); 7 | 8 | #endif // CTCSWEEPCAPSULECAPSULE_H 9 | 10 | 11 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockSort.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace Rock; 6 | using namespace SortInternals; 7 | 8 | Stack::~Stack() 9 | { 10 | if(mRealloc) 11 | ROCK_FREE(mMemory); 12 | } 13 | 14 | void Stack::Grow() 15 | { 16 | mCapacity *= 2; 17 | i32* newMem = ROCK_ALLOCATE(i32, mCapacity, "Stack"); 18 | CopyMemory_(newMem, mMemory, mSize * sizeof(i32)); 19 | if(mRealloc) 20 | ROCK_FREE(mMemory); 21 | mRealloc = true; 22 | mMemory = newMem; 23 | } 24 | -------------------------------------------------------------------------------- /WFC/Src/DefaultEnv.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef DEFAULT_ENV_H 10 | #define DEFAULT_ENV_H 11 | 12 | float GetDefaultEnvironmentSize(); 13 | bool SetupDefaultEnvironment(Pint& pint, bool enabled); 14 | bool ReleaseDefaultEnvironment(Pint& pint); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceStackTrack.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef ICESTACKTRACK_H 5 | #define ICESTACKTRACK_H 6 | 7 | #ifndef _WIN64 8 | class ICECORE_API StackTrack 9 | { 10 | public: 11 | StackTrack(); 12 | udword GetUsedStackSize() const; 13 | private: 14 | void* mStackPtr; 15 | }; 16 | #endif 17 | 18 | #endif // ICESTACKTRACK_H 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkCGIZ.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef CHUNKCGIZ_H 5 | #define CHUNKCGIZ_H 6 | 7 | #define CGIZ_VERSION 1 8 | 9 | class ZCB2_API CGIZChunk : public HELPChunk 10 | { 11 | DECLARE_CHUNK(CGIZChunk, mCGIZCore) 12 | 13 | DECLARE_STD_MEMBER(Height, float) 14 | DECLARE_STD_MEMBER(Radius, float) 15 | }; 16 | 17 | #endif // CHUNKCGIZ_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Devil.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef DEVIL_H 10 | #define DEVIL_H 11 | 12 | bool InitDevil(); 13 | bool CloseDevil(); 14 | 15 | bool LoadWithDevil(const char* filename, Picture& pic); 16 | bool SaveWithDevil(const char* filename, const Picture& pic); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /WFC/Src/Script.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SCRIPT_H 10 | #define SCRIPT_H 11 | 12 | void ReleaseAutomatedTests(); 13 | 14 | void RunScript(const char* filename); 15 | void UpdateAutomatedTests(udword frame_nb, bool menu_is_visible); 16 | 17 | void StartTest(const char* name); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/include/IL/build-python: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | IL_INCLUDE_PATH="/usr/local/include" 4 | IL_LIB_PATH="/usr/local/lib" 5 | PYTHON_INCLUDE_PATH="/usr/include/python2.5" 6 | 7 | swig "-I$IL_INCLUDE_PATH" -python -interface DevIL DevIL.i 8 | if [ $? -ne 0 ] ; then 9 | echo Error while building the swig interface 10 | exit 1 11 | fi 12 | 13 | gcc -shared "-I$IL_INCLUDE_PATH" "-I$PYTHON_INCLUDE_PATH" "-L$IL_LIB_PATH" -lIL -lILU -lILUT DevIL_wrap.c -o DevIL.so 14 | if [ $? -ne 0 ] ; then 15 | echo Error while compiling the python module 16 | fi 17 | echo "DevIL.py and DevIL.so are ready" 18 | -------------------------------------------------------------------------------- /WFC/Build64/Microsoft.VC90.DebugCRT.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkBGIZ.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef CHUNKBGIZ_H 5 | #define CHUNKBGIZ_H 6 | 7 | #define BGIZ_VERSION 1 8 | 9 | class ZCB2_API BGIZChunk : public HELPChunk 10 | { 11 | DECLARE_CHUNK(BGIZChunk, mBGIZCore) 12 | 13 | DECLARE_STD_MEMBER(Length, float) 14 | DECLARE_STD_MEMBER(Width, float) 15 | DECLARE_STD_MEMBER(Height, float) 16 | }; 17 | 18 | #endif // CHUNKBGIZ_H 19 | -------------------------------------------------------------------------------- /WFC/Src/PintRenderPass.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PINT_RENDER_PASS_H 10 | #define PINT_RENDER_PASS_H 11 | 12 | enum PintRenderPass 13 | { 14 | PINT_RENDER_PASS_MAIN, 15 | PINT_RENDER_PASS_SHADOW, 16 | PINT_RENDER_PASS_REFLECTIONS, 17 | PINT_RENDER_PASS_WIREFRAME_OVERLAY, 18 | }; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/include/IL/ilut_config.h: -------------------------------------------------------------------------------- 1 | #ifndef __ILUT_CONFIG_H__ 2 | #define __ILUT_CONFIG_H__ 3 | 4 | //#define IL_USE_PRAGMA_LIBS 5 | 6 | // Supported APIs (ILUT) 7 | 8 | // 9 | // sorry just 10 | // cant get this one to work under windows 11 | // have disabled for the now 12 | // 13 | // will look at it some more later 14 | // 15 | // Kriss 16 | // 17 | #undef ILUT_USE_ALLEGRO 18 | 19 | #undef ILUT_USE_DIRECTX8 20 | //#define ILUT_USE_DIRECTX9 21 | //#define ILUT_USE_DIRECTX10 22 | #define ILUT_USE_OPENGL 23 | //#define ILUT_USE_SDL 24 | #define ILUT_USE_WIN32 25 | 26 | #endif//__ILUT_CONFIG_H__ 27 | -------------------------------------------------------------------------------- /WFC/Src/PintRenderState.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PINT_RENDER_STATE_H 10 | #define PINT_RENDER_STATE_H 11 | 12 | void SetEngineColor(const Point& color); 13 | void SetMainColor(const Point& color); 14 | void SetMainColor(const RGBAColor& color); 15 | void ResetMainColor(); 16 | Point GetMainColor(); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /WFC/Src/FlatShader.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef FLAT_SHADER_H 10 | #define FLAT_SHADER_H 11 | 12 | #include "Shader.h" 13 | 14 | class FlatShader : public PEEL::Shader 15 | { 16 | PREVENT_COPY(FlatShader) 17 | public: 18 | FlatShader(); 19 | virtual ~FlatShader(); 20 | 21 | bool Init(); 22 | }; 23 | 24 | #endif -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockAssert.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | bool Rock::CustomAssert(size_t exp, const char* desc, int line, const char* file, bool& ignore) 7 | { 8 | if(ignore || exp) 9 | return false; 10 | 11 | const MbReturnCode Ret = Rock::MessageBoxAbortRetryIgnore(_F("In %s\nat line %d\n\n%s", file, line, desc), "Custom assert"); 12 | if(Ret==ROCK_MB_RETRY) 13 | return false; 14 | if(Ret==ROCK_MB_ABORT) 15 | return true; 16 | assert(Ret==ROCK_MB_IGNORE); 17 | ignore = true; 18 | return false; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockCore.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_CORE_H 2 | #define ROCK_CORE_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockString.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_STRING_H 2 | #define ROCK_STRING_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Rock 8 | { 9 | class ROCK_API String : public UserAllocated 10 | { 11 | public: 12 | String(const char* string=null); 13 | String(const String& string); 14 | ~String(); 15 | 16 | void Reset(); 17 | bool Set(const char* string); 18 | 19 | //! Cast operator for const char* = String 20 | inline_ operator const char*() const { return (const char*)(mText); } 21 | 22 | private: 23 | char* mText; 24 | }; 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SweepBoxSphere.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef CTCSWEEPBOXSPHERE_H 4 | #define CTCSWEEPBOXSPHERE_H 5 | 6 | CONTACT_API bool SweepBoxSphere(const OBB& box, const Sphere& sphere, const Point& dir, float length, float& min_dist, Point& normal); 7 | CONTACT_API bool SweepCapsuleBox(const LSS& lss, const OBB& box, const Point& dir, float length, float& min_dist, Point& normal); 8 | 9 | #endif // CTCSWEEPBOXSPHERE_H 10 | 11 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceLabel.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICELABEL_H 4 | #define ICELABEL_H 5 | 6 | class ICEGUI_API LabelDesc : public WidgetDesc 7 | { 8 | public: 9 | LabelDesc(); 10 | }; 11 | 12 | class ICEGUI_API IceLabel : public IceWidget 13 | { 14 | public: 15 | IceLabel(const LabelDesc& desc); 16 | virtual ~IceLabel(); 17 | 18 | private: 19 | PREVENT_COPY(IceLabel); 20 | }; 21 | 22 | #endif // ICELABEL_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ZCB2Exporter.h: -------------------------------------------------------------------------------- 1 | #ifndef ZCB2EXPORTER_H 2 | #define ZCB2EXPORTER_H 3 | 4 | class ZCB2_API ZCB2Exporter : public Allocateable 5 | { 6 | public: 7 | ZCB2Exporter(); 8 | ~ZCB2Exporter(); 9 | 10 | struct ChunkInfo 11 | { 12 | BaseChunk* mChunk; 13 | BOOL mMustDelete; 14 | }; 15 | 16 | bool Release(); 17 | 18 | BaseChunk* CreateChunk(udword type); 19 | 20 | BaseChunk* RegisterUserDefinedChunk(BaseChunk*, BOOL transfer_ownership=TRUE); 21 | 22 | bool Export(const char* filename); 23 | private: 24 | Container mChunkData; 25 | }; 26 | 27 | #endif // ZCB2EXPORTER_H 28 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkSGIZ.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef CHUNKSGIZ_H 5 | #define CHUNKSGIZ_H 6 | 7 | #define SGIZ_VERSION 1 8 | 9 | enum ZCB2_SGIZ_Flag 10 | { 11 | ZCB2_SGIZ_HEMI = (1<<0), 12 | }; 13 | 14 | class ZCB2_API SGIZChunk : public HELPChunk 15 | { 16 | DECLARE_CHUNK(SGIZChunk, mSGIZCore) 17 | 18 | DECLARE_STD_MEMBER(Radius, float) 19 | 20 | DECLARE_STD_FLAG(Hemi, ZCB2_SGIZ_HEMI) 21 | }; 22 | 23 | #endif // CHUNKSGIZ_H 24 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceToolbar.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICETOOLBAR_H 4 | #define ICETOOLBAR_H 5 | 6 | class ICEGUI_API ToolbarDesc : public WindowDesc 7 | { 8 | public: 9 | ToolbarDesc(); 10 | }; 11 | 12 | class ICEGUI_API IceToolbar : public IceWindow 13 | { 14 | public: 15 | IceToolbar(const ToolbarDesc& desc); 16 | virtual ~IceToolbar(); 17 | 18 | private: 19 | PREVENT_COPY(IceToolbar); 20 | }; 21 | 22 | #endif // ICETOOLBAR_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkPLIT.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef CHUNKPLIT_H 5 | #define CHUNKPLIT_H 6 | 7 | #define PLIT_VERSION 1 8 | 9 | class ZCB2_API PLITChunk : public LITEChunk 10 | { 11 | DECLARE_CHUNK(PLITChunk, mPLITCore) 12 | 13 | DECLARE_STD_MEMBER(Range, float) 14 | DECLARE_STD_MEMBER(Attenuation0, float) 15 | DECLARE_STD_MEMBER(Attenuation1, float) 16 | DECLARE_STD_MEMBER(Attenuation2, float) 17 | }; 18 | 19 | #endif // CHUNKPLIT_H 20 | -------------------------------------------------------------------------------- /WFC/Src/TestSelector.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef TEST_SELECTOR_H 10 | #define TEST_SELECTOR_H 11 | 12 | class GLFontRenderer; 13 | class PhysicsTest; 14 | 15 | int TestSelectionKeyboardCallback(int key, int current_test); 16 | 17 | PhysicsTest* RenderTestSelector(const GLFontRenderer& texter, float x, float text_scale, int start_index, float& y_last); 18 | 19 | #endif -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockTimer.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_TIMER_H 2 | #define ROCK_TIMER_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Rock 8 | { 9 | // Granularity: cycles 10 | ROCK_FUNCTION ROCK_API void StartProfile_RDTSC(u64& val); 11 | ROCK_FUNCTION ROCK_API void EndProfile_RDTSC(u64& val); 12 | 13 | // Granularity: us 14 | ROCK_FUNCTION ROCK_API void StartProfile_QPC(QPCTime& timer); 15 | ROCK_FUNCTION ROCK_API u32 EndProfile_QPC(QPCTime& timer); 16 | 17 | // Granularity: ms 18 | ROCK_FUNCTION ROCK_API void StartProfile_TimeGetTime(u32& val); 19 | ROCK_FUNCTION ROCK_API void EndProfile_TimeGetTime(u32& val); 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /PEEL_Externals/DevIL_1.8.0/include/IL/ilu_region.h: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------------- 2 | // 3 | // ImageLib Utility Sources 4 | // Copyright (C) 2000-2002 by Denton Woods 5 | // Last modified: 07/09/2002 <--Y2K Compliant! =] 6 | // 7 | // Filename: src-ILU/src/ilu_region.h 8 | // 9 | // Description: Creates an image region. 10 | // 11 | //----------------------------------------------------------------------------- 12 | 13 | #ifndef ILU_REGION_H 14 | #define ILU_REGION_H 15 | 16 | typedef struct Edge 17 | { 18 | ILint yUpper; 19 | ILfloat xIntersect, dxPerScan; 20 | struct Edge *next; 21 | } Edge; 22 | 23 | 24 | #endif//ILU_REGION_H 25 | 26 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_ColorSphere_ps.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | uniform vec3 camPos; 4 | varying vec3 varyPos; 5 | 6 | uniform vec3 topCol; 7 | uniform vec3 middleCol; 8 | uniform vec3 bottomCol; 9 | uniform float colorSpread; 10 | 11 | vec3 render( in vec3 ro, in vec3 rd ) 12 | { 13 | vec3 col; 14 | if(rd.y>0.0) 15 | col = mix(middleCol, topCol, rd.y*colorSpread); 16 | else 17 | col = mix(middleCol, bottomCol, -rd.y*colorSpread); 18 | return vec3(clamp(col, 0.0, 1.0)); 19 | } 20 | 21 | void main() 22 | { 23 | vec3 rd = normalize(varyPos.xyz); 24 | 25 | vec3 col = render( camPos, rd ); 26 | // col = pow( col, vec3(0.4545) ); 27 | gl_FragColor = vec4( col, 1.0 ); 28 | } 29 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockLog.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_LOG_H 2 | #define ROCK_LOG_H 3 | 4 | #include 5 | 6 | namespace Rock 7 | { 8 | enum LogType 9 | { 10 | LOG_INFO, 11 | LOG_WARNING, 12 | LOG_ERROR, 13 | }; 14 | 15 | class ROCK_API Log 16 | { 17 | public: 18 | Log() {} 19 | virtual ~Log() {} 20 | 21 | virtual void SendText(LogType type, const char* text, const void* user_data=null) = 0; 22 | }; 23 | 24 | ROCK_FUNCTION ROCK_API Log& GetLog(); 25 | 26 | #define ROCK_INFO(x) GetLog().SendText(LOG_INFO, x); 27 | #define ROCK_WARNING(x) GetLog().SendText(LOG_WARNING, x); 28 | #define ROCK_ERROR(x) GetLog().SendText(LOG_ERROR, x); 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /WFC/Src/GLRenderStates.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_RENDER_STATES_H 10 | #define GL_RENDER_STATES_H 11 | 12 | namespace GLRenderStates 13 | { 14 | // void EnableFrontfaceCulling(); 15 | // void EnableBackfaceCulling(); 16 | // void DisableBackfaceCulling(); 17 | void SetDefaultCullMode(CULLMODE cull_mode=CULL_CW); 18 | void SetDefaultRenderStates(bool flip_culling=false); 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/ScreenQuad_ColorSphere2_ps.h: -------------------------------------------------------------------------------- 1 | #ifdef _FRAGMENT_ 2 | 3 | uniform vec3 camPos; 4 | varying vec3 varyPos; 5 | 6 | uniform vec3 topCol; 7 | uniform vec3 middleCol; 8 | uniform vec3 bottomCol; 9 | uniform float colorSpread; 10 | 11 | vec3 render( in vec3 ro, in vec3 rd ) 12 | { 13 | vec3 col; 14 | if(rd.y>0.0) 15 | col = mix(middleCol, topCol, rd.y*colorSpread); 16 | else 17 | col = mix(middleCol, bottomCol, -rd.y*colorSpread); 18 | return vec3(clamp(col, 0.0, 1.0)); 19 | } 20 | 21 | void main() 22 | { 23 | vec3 rd = normalize(varyPos.xyz); 24 | 25 | vec3 col = render( camPos, rd ); 26 | // col = pow( col, vec3(0.4545) ); 27 | gl_FragColor = vec4( col, 1.0 ); 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceColorPicker2.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICECOLORPICKER2_H 4 | #define ICECOLORPICKER2_H 5 | 6 | class ICEGUI_API ColorPickerCallback 7 | { 8 | public: 9 | virtual void OnNewColorSelected(ubyte r, ubyte g, ubyte b) = 0; 10 | }; 11 | 12 | FUNCTION ICEGUI_API void CreateColorPic(Picture& picture, udword w, udword h, float z); 13 | FUNCTION ICEGUI_API IceWindow* CreateColorPicker2(IceWidget* parent, sdword x, sdword y, ColorPickerCallback* callback); 14 | 15 | #endif // ICECOLORPICKER2_H -------------------------------------------------------------------------------- /WFC/Src/PintTiming.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "PintTiming.h" 11 | 12 | PintTiming::PintTiming() : 13 | mNbCalls (0), 14 | mCurrentTestResult (INVALID_ID), 15 | mCurrentMemory (0), 16 | mCurrentTime (0), 17 | mAvgTime (0), 18 | mWorstTime (0) 19 | { 20 | ZeroMemory(mRecorded, sizeof(PintRecord)*MAX_NB_RECORDED_FRAMES); 21 | } 22 | 23 | PintTiming::~PintTiming() 24 | { 25 | } 26 | 27 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/StdAfx.h: -------------------------------------------------------------------------------- 1 | #if !defined(AFX_STDAFX_H__E15597C9_1053_11D4_8B0F_0050BAC83302__INCLUDED_) 2 | #define AFX_STDAFX_H__E15597C9_1053_11D4_8B0F_0050BAC83302__INCLUDED_ 3 | 4 | #if _MSC_VER > 1000 5 | #pragma once 6 | #endif // _MSC_VER > 1000 7 | 8 | 9 | // Insert your headers here 10 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 11 | 12 | #include "IceRendererAFX.h" 13 | 14 | // TODO: reference additional headers your program requires here 15 | 16 | //{{AFX_INSERT_LOCATION}} 17 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 18 | 19 | #endif // !defined(AFX_STDAFX_H__E15597C9_1053_11D4_8B0F_0050BAC83302__INCLUDED_) 20 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ZCB2AFX.h: -------------------------------------------------------------------------------- 1 | 2 | #define BAN_ICECORE_AUTOLINK 3 | #define BAN_ICEMATHS_AUTOLINK 4 | #define BAN_ICEIMAGEWORK_AUTOLINK 5 | #define BAN_MESHMERIZER_AUTOLINK 6 | #define BAN_ICECHARACTER_AUTOLINK 7 | #define BAN_ICERENDERER_AUTOLINK 8 | 9 | // Ignore unnecessary headers that don't compile on Win64 10 | #define ICERENDERSTATEMANAGER_H 11 | #define ICESTATEBLOCK_H 12 | #define ICERENDERCORE_H 13 | #define ICERENDERABLESURFACE_H 14 | #define ICEVOIDRENDERER_H 15 | 16 | #include 17 | using namespace IceRenderer; 18 | 19 | // #include 20 | #include 21 | using namespace IceCharacter; 22 | 23 | #include "ZCB2.h" 24 | -------------------------------------------------------------------------------- /WFC/Src/PEEL_Threads.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PEEL_THREADS_H 10 | #define PEEL_THREADS_H 11 | 12 | void PEEL_InitThreads(); 13 | void PEEL_ReleaseThreads(); 14 | 15 | typedef int (*PEEL_ThreadCallback)(void*); 16 | 17 | void PEEL_AddThreadWork(udword index, PEEL_ThreadCallback callback, void* user_data); 18 | void PEEL_StartThreadWork(udword nb_threads); 19 | void PEEL_EndThreadWork(udword nb_threads); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /WFC/Src/MeshCleaner.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef MESH_CLEANER_H 10 | #define MESH_CLEANER_H 11 | 12 | class MeshCleaner 13 | { 14 | public: 15 | MeshCleaner(udword nbVerts, const Point* verts, udword nbTris, const udword* indices, float meshWeldTolerance=0.01f); 16 | ~MeshCleaner(); 17 | 18 | udword mNbVerts; 19 | udword mNbTris; 20 | Point* mVerts; 21 | udword* mIndices; 22 | udword* mRemap; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /WFC/Src/DisplayMessage.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef DISPLAY_MESSAGE_H 10 | #define DISPLAY_MESSAGE_H 11 | 12 | class GLFontRenderer; 13 | 14 | enum MessageType 15 | { 16 | SAVING_RESULTS, 17 | SAVING_SCREENSHOT, 18 | PRIVATE_BUILD, 19 | }; 20 | 21 | void StartDisplayMessage(MessageType type); 22 | float DisplayMessage(GLFontRenderer& texter, float y, float textScale); 23 | void UpdateDisplayMessage(float elapsedTime); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /WFC/Src/Loader_RepX.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef LOADER_REPX_H 10 | #define LOADER_REPX_H 11 | 12 | class SurfaceManager; 13 | void LoadRepXFile_Obsolete(SurfaceManager& test, const char* filename, float scale, bool z_is_up); 14 | 15 | class Pint; 16 | void* CreateRepXContext(const char* filename, float scale, bool z_is_up); 17 | void ReleaseRepXContext(void* repx_context); 18 | bool AddToPint(Pint& pint, void* repx_context); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /WFC/Src/PintDLCylinderShapeRenderer.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "PintDLCylinderShapeRenderer.h" 11 | #include "GLRenderHelpers.h" 12 | 13 | // A basic display-list-based cylinder renderer. Not batched. 14 | 15 | PintDLCylinderShapeRenderer::PintDLCylinderShapeRenderer(float r, float h) : mData(r, h) 16 | { 17 | glNewList(mDisplayListNum, GL_COMPILE); 18 | GLRenderHelpers::DrawCylinder(r, h); 19 | glEndList(); 20 | } 21 | -------------------------------------------------------------------------------- /WFC/Src/GLPointRenderer.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_POINT_RENDERER_H 10 | #define GL_POINT_RENDERER_H 11 | 12 | namespace GLPointRenderer 13 | { 14 | void Init(); 15 | void Close(); 16 | void SetScreenResolution(int width, int height); 17 | void Draw(const Point& color, udword nb_pts, const Point* pts, udword stride); 18 | // void Draw(int n, int offset, float radius, float screenWidth, float screenAspect, float fov); 19 | }; 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /WFC/Src/ToolAddImpulse.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef TOOL_ADD_IMPULSE_H 10 | #define TOOL_ADD_IMPULSE_H 11 | 12 | #include "ToolRayBased.h" 13 | 14 | class ToolAddImpulse : public ToolRayBased 15 | { 16 | public: 17 | ToolAddImpulse(); 18 | virtual ~ToolAddImpulse(); 19 | 20 | virtual void CreateUI (PintGUIHelper& helper, IceWidget* parent, Widgets& owner); 21 | 22 | virtual void RightDownCallback (Pint& pint, udword pint_index) override; 23 | }; 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ZCB2Breaker.h: -------------------------------------------------------------------------------- 1 | #ifndef ZCB2BREAKER_H 2 | #define ZCB2BREAKER_H 3 | 4 | #define ZCB2_VERSION 1 5 | 6 | class ZCB2_API ChunkDescriptor : public Allocateable 7 | { 8 | public: 9 | ChunkDescriptor() 10 | { 11 | mChunkType = 0; 12 | mID = 0; 13 | mFlags = 0; 14 | mNameOffset = 0; 15 | mVisibilityOffset = 0; 16 | mStartOffset = 0; 17 | mChunkSize = 0; 18 | mFilenameOffset = 0; 19 | } 20 | ~ChunkDescriptor() {} 21 | 22 | udword mChunkType; 23 | udword mID; 24 | udword mFlags; 25 | udword mNameOffset; 26 | udword mVisibilityOffset; 27 | // Chunk location 28 | udword mStartOffset; 29 | udword mChunkSize; 30 | udword mFilenameOffset; 31 | }; 32 | 33 | #endif // ZCB2BREAKER_H 34 | -------------------------------------------------------------------------------- /WFC/Src/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // The following macros define the minimum required platform. The minimum required platform 4 | // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run 5 | // your application. The macros work by enabling all features available on platform versions up to and 6 | // including the version specified. 7 | 8 | // Modify the following defines if you have to target a platform prior to the ones specified below. 9 | // Refer to MSDN for the latest info on corresponding values for different platforms. 10 | #ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. 11 | #define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceMenu.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICEMENU_H 4 | #define ICEMENU_H 5 | 6 | class ICEGUI_API IceMenu : public IceGUIElement 7 | { 8 | public: 9 | IceMenu(); 10 | virtual ~IceMenu(); 11 | 12 | void Add(const char* item, int id); 13 | void AddMenu(const char* item, IceMenu* menu); 14 | void AddSeparator(); 15 | void SetEnabled(int id, bool b); 16 | void SetChecked(int id, bool b); 17 | 18 | bool IsEnabled(int id) const; 19 | bool IsChecked(int id) const; 20 | private: 21 | PREVENT_COPY(IceMenu); 22 | }; 23 | 24 | #endif // ICEMENU_H -------------------------------------------------------------------------------- /WFC/Src/PEEL_Settings.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PEEL_SETTINGS_H 10 | #define PEEL_SETTINGS_H 11 | 12 | // Public or private builds. Public builds remove support for tests that include (private) customer-provided data. 13 | #define PEEL_PUBLIC_BUILD 1 14 | 15 | // Use NVD or not. NVD is a custom PVD. 16 | #define PEEL_COMPILE_NVD 0 17 | 18 | #define PEEL_USE_MSAA 1 19 | 20 | //#ifndef _WIN64 21 | // Use SPY or not. SPY is a custom profiler. 22 | #define PEEL_USE_SPY 0 23 | //#endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /WFC/Src/Gamepad.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GAMEPAD_H 10 | #define GAMEPAD_H 11 | 12 | bool InitGamepads(); 13 | void ReleaseGamepads(); 14 | 15 | class GamepadInterface 16 | { 17 | public: 18 | virtual void OnButtonEvent(udword button_id, bool down) = 0; 19 | virtual void OnAnalogButtonEvent(udword button_id, ubyte old_value, ubyte new_value) = 0; 20 | virtual void OnAxisEvent(udword axis_id, float value) = 0; 21 | }; 22 | 23 | void ProcessGamepads(GamepadInterface&); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceRadioButton.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICERADIOBUTTON_H 4 | #define ICERADIOBUTTON_H 5 | 6 | class ICEGUI_API RadioButtonDesc : public WidgetDesc 7 | { 8 | public: 9 | RadioButtonDesc(); 10 | 11 | bool mNewGroup; 12 | }; 13 | 14 | class ICEGUI_API IceRadioButton : public IceWidget 15 | { 16 | public: 17 | IceRadioButton(const RadioButtonDesc& desc); 18 | virtual ~IceRadioButton(); 19 | 20 | void SetChecked(bool b); 21 | 22 | bool IsChecked() const; 23 | 24 | private: 25 | PREVENT_COPY(IceRadioButton); 26 | }; 27 | 28 | #endif // ICERADIOBUTTON_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkSLIT.h: -------------------------------------------------------------------------------- 1 | 2 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 3 | // Include Guard 4 | #ifndef CHUNKSLIT_H 5 | #define CHUNKSLIT_H 6 | 7 | #define SLIT_VERSION 1 8 | 9 | class ZCB2_API SLITChunk : public LITEChunk 10 | { 11 | DECLARE_CHUNK(SLITChunk, mSLITCore) 12 | 13 | DECLARE_STD_MEMBER(Range, float) 14 | DECLARE_STD_MEMBER(Falloff, float) 15 | DECLARE_STD_MEMBER(Attenuation0, float) 16 | DECLARE_STD_MEMBER(Attenuation1, float) 17 | DECLARE_STD_MEMBER(Attenuation2, float) 18 | DECLARE_STD_MEMBER(Theta, float) 19 | DECLARE_STD_MEMBER(Phi, float) 20 | DECLARE_STD_MEMBER(TDist, float) 21 | }; 22 | 23 | #endif // CHUNKSLIT_H 24 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkList.h: -------------------------------------------------------------------------------- 1 | CREATECHUNK('SCEN', SCENChunk) 2 | 3 | CREATECHUNK('CAME', CAMEChunk) 4 | CREATECHUNK('FCAM', FCAMChunk) 5 | CREATECHUNK('TCAM', TCAMChunk) 6 | 7 | CREATECHUNK('MESH', MESHChunk) 8 | 9 | CREATECHUNK('LITE', LITEChunk) 10 | CREATECHUNK('SLIT', SLITChunk) 11 | CREATECHUNK('PLIT', PLITChunk) 12 | CREATECHUNK('DLIT', DLITChunk) 13 | 14 | #ifndef _WIN64 // "temporary" 15 | CREATECHUNK('MATL', MATLChunk) 16 | #endif 17 | CREATECHUNK('TXMP', TXMPChunk) 18 | 19 | CREATECHUNK('BGIZ', BGIZChunk) 20 | CREATECHUNK('SGIZ', SGIZChunk) 21 | CREATECHUNK('CGIZ', CGIZChunk) 22 | CREATECHUNK('HELP', HELPChunk) 23 | CREATECHUNK('SKEL', SKELChunk) 24 | 25 | CREATECHUNK('SHAP', SHAPChunk) 26 | 27 | CREATECHUNK('SAMP', SAMPChunk) 28 | CREATECHUNK('ROTA', ROTAChunk) 29 | CREATECHUNK('MOVE', MOVEChunk) 30 | 31 | -------------------------------------------------------------------------------- /WFC/Src/RaytracingTest.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef RAYTRACING_TEST_H 10 | #define RAYTRACING_TEST_H 11 | 12 | class Pint; 13 | 14 | // udword RaytracingTest(Pint& pint, udword& total, udword screen_width, udword screen_height); 15 | udword RaytracingTest(Picture& pic, Pint& pint, udword& total_time, udword screen_width, udword screen_height, udword nb_rays, float max_dist); 16 | udword RaytracingTestMT(Picture& pic, Pint& pint, udword& total_time, udword screen_width, udword screen_height, udword nb_rays, float max_dist); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /WFC/Src/PintObjectsManager.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PINT_OBJECTS_MANAGER_H 10 | #define PINT_OBJECTS_MANAGER_H 11 | 12 | #include "Pint.h" 13 | 14 | void DeletePintObjectShapes(PINT_OBJECT_CREATE& desc); 15 | 16 | PintActorHandle CreatePintObject(Pint& pint, const PINT_OBJECT_CREATE& desc); 17 | void ReleasePintObject(Pint& pint, PintActorHandle removed_object, bool release_from_selection); 18 | 19 | bool ReleasePintJoints(Pint& pint, PintActorHandle actor); 20 | 21 | bool IsDefaultEnv(Pint& pint, PintActorHandle h); 22 | 23 | #endif -------------------------------------------------------------------------------- /WFC/Src/ToolTransform.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef TOOL_TRANSFORM_H 10 | #define TOOL_TRANSFORM_H 11 | 12 | #include "PintDef.h" 13 | 14 | class Pint; 15 | 16 | class Transformer 17 | { 18 | public: 19 | Transformer(); 20 | ~Transformer(); 21 | 22 | void Reset(); 23 | 24 | void Start(Pint& pint, PintActorHandle h); 25 | void Stop(Pint& pint, PintActorHandle h); 26 | void SetPose(Pint& pint, PintActorHandle h, const PR& pose); 27 | 28 | protected: 29 | bool mIsKine; 30 | bool mActive; 31 | }; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockBitmap.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace Rock; 4 | 5 | void Bitmap::Extend(u32 size) 6 | { 7 | const u32 newWordCount = (size + 31) >> 5; 8 | if(newWordCount > GetWordCount()) 9 | { 10 | u32* newMap = ROCK_ALLOCATE(u32, newWordCount, "Bitmap"); 11 | if(mMap) 12 | { 13 | CopyMemory(newMap, mMap, GetWordCount() * sizeof(u32)); 14 | ROCK_FREE(mMap); 15 | } 16 | ZeroMemory(newMap + GetWordCount(), (newWordCount - GetWordCount()) * sizeof(u32)); 17 | mMap = newMap; 18 | mWordCount = newWordCount; 19 | } 20 | } 21 | 22 | void Bitmap::ExtendUninitialized(u32 size) 23 | { 24 | const u32 newWordCount = (size + 31) >> 5; 25 | if(newWordCount > GetWordCount()) 26 | { 27 | ROCK_FREE(mMap); 28 | mWordCount = newWordCount; 29 | mMap = ROCK_ALLOCATE(u32, newWordCount, "Bitmap"); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceMenuBar.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICEMENUBAR_H 4 | #define ICEMENUBAR_H 5 | 6 | class ICEGUI_API IceMenuBar : public IceGUIElement 7 | { 8 | public: 9 | IceMenuBar(IceWindow* parent); 10 | virtual ~IceMenuBar(); 11 | 12 | void AddMenu(const char* item, IceMenu* menu); 13 | void SetEnabled(int id, bool b); 14 | void SetChecked(int id, bool b); 15 | void Modify(int id, int newId, const char* newItem); 16 | 17 | bool IsEnabled(int id) const; 18 | bool IsChecked(int id) const; 19 | int GetHeight() const; 20 | private: 21 | PREVENT_COPY(IceMenuBar); 22 | }; 23 | 24 | #endif // ICEMENUBAR_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__CDB5785E_A6F2_4D41_A558_33C512DD41ED__INCLUDED_) 7 | #define AFX_STDAFX_H__CDB5785E_A6F2_4D41_A558_33C512DD41ED__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include "ContactAFX.h" 16 | 17 | // TODO: reference additional headers your program requires here 18 | 19 | //{{AFX_INSERT_LOCATION}} 20 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 21 | 22 | #endif // !defined(AFX_STDAFX_H__CDB5785E_A6F2_4D41_A558_33C512DD41ED__INCLUDED_) 23 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceColorPicker.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICECOLORPICKER_H 4 | #define ICECOLORPICKER_H 5 | 6 | enum PickerEvent 7 | { 8 | PICKER_PALETTE_UPDATE, 9 | }; 10 | 11 | struct PickerEventContext 12 | { 13 | }; 14 | 15 | struct PickerEventContext_PaletteUpdate : public PickerEventContext 16 | { 17 | const RGBAPalette* mPalette; 18 | }; 19 | 20 | typedef udword (*ColorPickerCB)(PickerEvent picker_event_code, void* context, void* user_data); 21 | 22 | FUNCTION ICEGUI_API IceWindow* CreateColorPicker(IceWidget* parent, sdword x, sdword y, sdword width, sdword height, ColorPickerCB cb, void* user_data); 23 | 24 | #endif // ICECOLORPICKER_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IcePanel.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICEPANEL_H 4 | #define ICEPANEL_H 5 | 6 | class ICEGUI_API PanelDesc : public WindowDesc 7 | { 8 | public: 9 | PanelDesc(); 10 | }; 11 | 12 | class ICEGUI_API IcePanel : public IceWindow 13 | { 14 | public: 15 | IcePanel(const PanelDesc& desc); 16 | virtual ~IcePanel(); 17 | 18 | virtual void Refresh(); 19 | virtual int handleEvent(IceGUIEvent* event); 20 | 21 | bool AddWidget(IceWidget* widget); 22 | bool Update(); 23 | private: 24 | udword mPanelFlags; 25 | udword mOffsetY; 26 | PtrContainer mWidgets; 27 | }; 28 | 29 | #endif // ICEPANEL_H -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APPs/RockWinTest/Resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by RockWinTest.rc 4 | 5 | #define IDS_APP_TITLE 103 6 | 7 | #define IDR_MAINFRAME 128 8 | #define IDD_ROCKWINTEST_DIALOG 102 9 | #define IDD_ABOUTBOX 103 10 | #define IDM_ABOUT 104 11 | #define IDM_EXIT 105 12 | #define IDI_ROCKWINTEST 107 13 | #define IDI_SMALL 108 14 | #define IDC_ROCKWINTEST 109 15 | #define IDC_MYICON 2 16 | #ifndef IDC_STATIC 17 | #define IDC_STATIC -1 18 | #endif 19 | // Next default values for new objects 20 | // 21 | #ifdef APSTUDIO_INVOKED 22 | #ifndef APSTUDIO_READONLY_SYMBOLS 23 | 24 | #define _APS_NO_MFC 130 25 | #define _APS_NEXT_RESOURCE_VALUE 129 26 | #define _APS_NEXT_COMMAND_VALUE 32771 27 | #define _APS_NEXT_CONTROL_VALUE 1000 28 | #define _APS_NEXT_SYMED_VALUE 110 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__DAB396A4_9C35_11D5_8B0F_0050BAC83302__INCLUDED_) 7 | #define AFX_STDAFX_H__DAB396A4_9C35_11D5_8B0F_0050BAC83302__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #define ZCB2_API 16 | #include "ZCB2AFX.h" 17 | 18 | // TODO: reference additional headers your program requires here 19 | 20 | //{{AFX_INSERT_LOCATION}} 21 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 22 | 23 | #endif // !defined(AFX_STDAFX_H__DAB396A4_9C35_11D5_8B0F_0050BAC83302__INCLUDED_) 24 | -------------------------------------------------------------------------------- /WFC/Src/ICE_To_PX.h: -------------------------------------------------------------------------------- 1 | 2 | inline_ const Point& ToPoint(const PxVec3& p) { return (const Point&)p; } 3 | inline_ const PxVec3& ToPxVec3(const Point& p) { return (const PxVec3&)p; } 4 | ICE_COMPILE_TIME_ASSERT(OFFSET_OF(Quat, p.x)==OFFSET_OF(PxQuat, x)); 5 | ICE_COMPILE_TIME_ASSERT(OFFSET_OF(Quat, p.y)==OFFSET_OF(PxQuat, y)); 6 | ICE_COMPILE_TIME_ASSERT(OFFSET_OF(Quat, p.z)==OFFSET_OF(PxQuat, z)); 7 | ICE_COMPILE_TIME_ASSERT(OFFSET_OF(Quat, w)==OFFSET_OF(PxQuat, w)); 8 | inline_ const Quat& ToQuat(const PxQuat& q) { return (const Quat&)q; } 9 | inline_ const PxQuat& ToPxQuat(const Quat& q) { return (const PxQuat&)q; } 10 | 11 | inline_ const PxTransform ToPxTransform(const PR& pose) 12 | { 13 | return PxTransform(ToPxVec3(pose.mPos), ToPxQuat(pose.mRot)); 14 | } 15 | 16 | inline_ const PR ToPR(const PxTransform& pose) 17 | { 18 | return PR(ToPoint(pose.p), ToQuat(pose.q)); 19 | } 20 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/RenderModel_SimpleShader1_vs.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | //uniform float uvScale = 1.0; 4 | 5 | //****varying vec3 varyPos; 6 | 7 | void main() 8 | { 9 | gl_FrontColor = gl_Color; 10 | // vec4 eyeSpacePos = gl_ModelViewMatrix * gl_Vertex; 11 | // gl_Position = gl_ProjectionMatrix*eyeSpacePos; 12 | gl_Position = ftransform(); // This does the same as the two lines above 13 | 14 | // gl_TexCoord[0] = gl_MultiTexCoord0*uvScale; 15 | // gl_TexCoord[1] = eyeSpacePos; 16 | gl_TexCoord[0] = gl_ModelViewMatrixInverseTranspose * vec4(gl_Normal.xyz, 0.0); 17 | // gl_TexCoord[0] = vec4(gl_Normal.xyz, 0.0); 18 | // gl_TexCoord[2] = normalize(gl_ModelViewMatrixInverseTranspose * vec4(gl_Normal.xyz, 0.0)); 19 | // gl_ClipVertex = vec4(eyeSpacePos.xyz, 1.0); 20 | 21 | // varyPos = normalize(vec3(gl_ModelViewMatrix * gl_Vertex)); 22 | //**** varyPos = gl_ModelViewMatrix * gl_Vertex; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /WFC/Src/PintEngineData.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "PintEngineData.h" 11 | #include "Pint.h" 12 | 13 | void EngineData::Init(Pint* engine) 14 | { 15 | ASSERT(engine); 16 | mSQHelper.Init(engine); 17 | mVisHelper = ICE_NEW(VisibilityManager); 18 | mVisHelper->Init(engine); 19 | mEngine = engine; 20 | engine->mDefaultEnvHandle = null; 21 | } 22 | 23 | void EngineData::Reset() 24 | { 25 | if(mEngine) 26 | mEngine->mDefaultEnvHandle = null; 27 | mSQHelper.Reset(); 28 | if(mVisHelper) 29 | { 30 | mVisHelper->Reset(); 31 | DELETESINGLE(mVisHelper); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /WFC/Src/Cylinder.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef CYLINDER_H 10 | #define CYLINDER_H 11 | 12 | class CylinderMesh 13 | { 14 | public: 15 | CylinderMesh(); 16 | CylinderMesh(udword nb_circle_pts, float radius, float half_height, Orientation orientation=ORIENTATION_XY); 17 | ~CylinderMesh(); 18 | 19 | void Generate(udword nb_circle_pts, float radius, float half_height, Orientation orientation=ORIENTATION_XY); 20 | void Reset(); 21 | 22 | Orientation mOrientation; 23 | float mRadius; 24 | float mHalfHeight; 25 | udword mNbVerts; 26 | Point* mVerts; 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__DB968C7B_34A2_41E3_A7B3_C39D94747C44__INCLUDED_) 7 | #define AFX_STDAFX_H__DB968C7B_34A2_41E3_A7B3_C39D94747C44__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | 14 | // Insert your headers here 15 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 16 | 17 | #include "IceGUIAFX.h" 18 | 19 | // TODO: reference additional headers your program requires here 20 | 21 | //{{AFX_INSERT_LOCATION}} 22 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 23 | 24 | #endif // !defined(AFX_STDAFX_H__DB968C7B_34A2_41E3_A7B3_C39D94747C44__INCLUDED_) 25 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockString.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace Rock; 6 | 7 | String::String(const char* string) : mText(null) 8 | { 9 | if(string) 10 | Set(string); 11 | } 12 | 13 | String::String(const String& string) : mText(null) 14 | { 15 | const char* Str = string; 16 | if(Str) 17 | Set(Str); 18 | } 19 | 20 | String::~String() 21 | { 22 | Reset(); 23 | } 24 | 25 | void String::Reset() 26 | { 27 | ROCK_FREE(mText); 28 | } 29 | 30 | bool String::Set(const char* string) 31 | { 32 | Reset(); 33 | if(string) 34 | { 35 | const size_t Length = strlen(string); 36 | if(Length) 37 | { 38 | mText = ROCK_ALLOCATE(char, (Length+1), "String::mText"); 39 | ROCK_CHECKALLOC(mText); 40 | CopyMemory_(mText, string, Length); 41 | mText[Length] = 0; 42 | } 43 | } 44 | return true; 45 | } 46 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SweepBoxTriangle.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef CTCSWEEPBOXTRIANGLE_H 4 | #define CTCSWEEPBOXTRIANGLE_H 5 | 6 | CONTACT_API bool SweepBoxTriangle(const Triangle& tri, const Triangle* edge_triangle, udword edge_flags, 7 | const AABB& box, const Point* box_vertices, const Point& motion, 8 | Point& hit, Point& normal, float& d); 9 | 10 | CONTACT_API bool SweepBoxTriangles(udword nb_tris, const Triangle* triangles, const Triangle* _edge_triangles, 11 | const udword* edge_flags, const AABB& box, const Point& dir, float length, 12 | Point& _hit, Point& _normal, float& _d, udword& _index, udword* cachedIndex); 13 | 14 | #endif // CTCSWEEPBOXTRIANGLE_H 15 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__D0E3DE2A_0F03_11D4_8B0F_0050BAC83302__INCLUDED_) 7 | #define AFX_STDAFX_H__D0E3DE2A_0F03_11D4_8B0F_0050BAC83302__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | 14 | // Insert your headers here 15 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 16 | 17 | #include "IceCore.h" 18 | 19 | // TODO: reference additional headers your program requires here 20 | 21 | //{{AFX_INSERT_LOCATION}} 22 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 23 | 24 | #endif // !defined(AFX_STDAFX_H__D0E3DE2A_0F03_11D4_8B0F_0050BAC83302__INCLUDED_) 25 | 26 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__3C99020A_0F39_11D4_8B0F_0050BAC83302__INCLUDED_) 7 | #define AFX_STDAFX_H__3C99020A_0F39_11D4_8B0F_0050BAC83302__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | 14 | // Insert your headers here 15 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 16 | 17 | #include "IceMathsAFX.h" 18 | 19 | // TODO: reference additional headers your program requires here 20 | 21 | //{{AFX_INSERT_LOCATION}} 22 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 23 | 24 | #endif // !defined(AFX_STDAFX_H__3C99020A_0F39_11D4_8B0F_0050BAC83302__INCLUDED_) 25 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceTerrain/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__79A639A4_24E3_11D4_8B0F_0050BAC83302__INCLUDED_) 7 | #define AFX_STDAFX_H__79A639A4_24E3_11D4_8B0F_0050BAC83302__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | // Insert your headers here 14 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 15 | 16 | #include "IceTerrainAFX.h" 17 | 18 | // TODO: reference additional headers your program requires here 19 | 20 | //{{AFX_INSERT_LOCATION}} 21 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 22 | 23 | #endif // !defined(AFX_STDAFX_H__79A639A4_24E3_11D4_8B0F_0050BAC83302__INCLUDED_) 24 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceGroupBox.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICEGROUPBOX_H 4 | #define ICEGROUPBOX_H 5 | 6 | class ICEGUI_API GroupBoxDesc : public WidgetDesc 7 | { 8 | public: 9 | GroupBoxDesc(); 10 | }; 11 | 12 | class ICEGUI_API IceGroupBox : public IceWidget 13 | { 14 | public: 15 | IceGroupBox(const GroupBoxDesc& desc); 16 | virtual ~IceGroupBox(); 17 | 18 | inline_ IceWindow* GetSupport() { return mSupport; } 19 | virtual void SetVisible(bool b); 20 | 21 | void GetText(String& text) const; 22 | void SetText(const char* text) const; 23 | private: 24 | IceWindow* mSupport; 25 | 26 | PREVENT_COPY(IceGroupBox); 27 | }; 28 | 29 | #endif // ICEGROUPBOX_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__32978703_7D1A_11D4_8B0F_0050BAC83302__INCLUDED_) 7 | #define AFX_STDAFX_H__32978703_7D1A_11D4_8B0F_0050BAC83302__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | 14 | // Insert your headers here 15 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 16 | 17 | #include "MeshmerizerAFX.h" 18 | 19 | // TODO: reference additional headers your program requires here 20 | 21 | //{{AFX_INSERT_LOCATION}} 22 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 23 | 24 | #endif // !defined(AFX_STDAFX_H__32978703_7D1A_11D4_8B0F_0050BAC83302__INCLUDED_) 25 | -------------------------------------------------------------------------------- /WFC/Src/ScreenQuad_Atmosphere.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SCREEN_QUAD_ATMOSPHERE_H 10 | #define SCREEN_QUAD_ATMOSPHERE_H 11 | 12 | #include "ScreenQuad.h" 13 | #include "GLShader.h" 14 | 15 | class ScreenQuadAtmosphere : public ShaderBasedScreenQuad 16 | { 17 | public: 18 | ScreenQuadAtmosphere(); 19 | virtual ~ScreenQuadAtmosphere(); 20 | 21 | virtual const char* GetUIName() const { return "Atmosphere"; } 22 | virtual void Apply(udword screen_width, udword screen_height); 23 | virtual void CreateUI(PintGUIHelper& helper, Widgets* widgets, IceWindow* parent); 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /WFC/Src/GLPointRenderer2.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_POINT_RENDERER2_H 10 | #define GL_POINT_RENDERER2_H 11 | 12 | namespace GLPointRenderer2 13 | { 14 | void Init(); 15 | void Close(); 16 | void DrawPoint(const Point& pos, float radius); 17 | 18 | void BatchPoint(const Point& pos, float radius); 19 | void DrawBatchedPoints(); 20 | 21 | // void SetScreenResolution(int width, int height); 22 | // void Draw(const Point& color, udword nb_pts, const Point* pts, udword stride); 23 | // void Draw(int n, int offset, float radius, float screenWidth, float screenAspect, float fov); 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /WFC/Src/GUI_RenderInterface.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GUI_RENDER_INTERFACE_H 10 | #define GUI_RENDER_INTERFACE_H 11 | 12 | class Pint; 13 | class PintRender; 14 | 15 | class GUI_RenderInterface 16 | { 17 | public: 18 | GUI_RenderInterface () {} 19 | virtual ~GUI_RenderInterface () {} 20 | 21 | virtual void PreRenderCallback () {} 22 | virtual void RenderCallback (PintRender& render, Pint& pint, udword pint_index) {} 23 | virtual void PostRenderCallback () {} 24 | virtual void FinalRenderCallback () {} 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCharacter/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__530B58C3_379E_11D4_8B0F_0050BAC83302__INCLUDED_) 7 | #define AFX_STDAFX_H__530B58C3_379E_11D4_8B0F_0050BAC83302__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | 14 | // Insert your headers here 15 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 16 | 17 | #include "IceCharacterAFX.h" 18 | 19 | // TODO: reference additional headers your program requires here 20 | 21 | //{{AFX_INSERT_LOCATION}} 22 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 23 | 24 | #endif // !defined(AFX_STDAFX_H__530B58C3_379E_11D4_8B0F_0050BAC83302__INCLUDED_) 25 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceImageWork/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__75269F2A_16A4_11D4_8B0F_0050BAC83302__INCLUDED_) 7 | #define AFX_STDAFX_H__75269F2A_16A4_11D4_8B0F_0050BAC83302__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | 14 | // Insert your headers here 15 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers 16 | 17 | #include "IceImageWorkAFX.h" 18 | 19 | // TODO: reference additional headers your program requires here 20 | 21 | //{{AFX_INSERT_LOCATION}} 22 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 23 | 24 | #endif // !defined(AFX_STDAFX_H__75269F2A_16A4_11D4_8B0F_0050BAC83302__INCLUDED_) 25 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ZCB2Settings.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Compilation flags for ZCB2. 4 | * \file ZCB2Settings.h 5 | * \author Pierre Terdiman 6 | * \date January, 14, 2003 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ZCB2SETTINGS_H 13 | #define ZCB2SETTINGS_H 14 | 15 | // #define ZCB2_FLIPX 16 | 17 | #endif // ZCB2SETTINGS_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Scattering.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SCATTERING_H 10 | #define SCATTERING_H 11 | 12 | extern float gSunPhi; 13 | extern float gSunTheta; 14 | extern float gSunIntensity; 15 | extern Sun gSun; 16 | extern bool gRenderSunEnabled; 17 | extern float gRayleighMultiplier; 18 | extern float gMieMultiplier; 19 | extern float gScatteringMultiplier; 20 | extern float gExtinctionMultiplier; 21 | extern float gHGg; 22 | 23 | void UpdateSun(); 24 | Point GetSunDir(); 25 | HPoint GetSunColorAndIntensity(); 26 | 27 | void InitAtmosphere(); 28 | void SetupAtmosphereShaderParams(GLuint shader_program); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /License.txt: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) 2012-2025 Pierre Terdiman - http://www.codercorner.com/blog 3 | 4 | 5 | This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 8 | 9 | 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 10 | 11 | 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 12 | 13 | 3. This notice may not be removed or altered from any source distribution. 14 | 15 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_ContactWitness.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for contact witnesses. 4 | * \file CTC_ContactWitness.h 5 | * \author Pierre Terdiman 6 | * \date November, 28, 2004 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCCONTACTWITNESS_H 13 | #define CTCCONTACTWITNESS_H 14 | 15 | #endif // CTCCONTACTWITNESS_H 16 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceTerrain/IceTerrainSettings.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Compilation flags for IceTerrain. 4 | * \file IceTerrainSettings.h 5 | * \author Pierre Terdiman 6 | * \date October, 19, 2002 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICETERRAINSETTINGS_H 13 | #define ICETERRAINSETTINGS_H 14 | 15 | #endif // ICETERRAINSETTINGS_H 16 | -------------------------------------------------------------------------------- /WFC/Src/ToolShootObject.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef TOOL_SHOOT_OBJECT_H 10 | #define TOOL_SHOOT_OBJECT_H 11 | 12 | #include "ToolRayBased.h" 13 | 14 | class ToolShootObject : public ToolRayBased 15 | { 16 | public: 17 | ToolShootObject(); 18 | virtual ~ToolShootObject(); 19 | 20 | virtual void CreateUI (PintGUIHelper& helper, IceWidget* parent, Widgets& owner); 21 | 22 | virtual void RightDownCallback (Pint& pint, udword pint_index); 23 | 24 | private: 25 | ComboBoxPtr mShapeComboBox; 26 | 27 | void CreateShotObject(Pint& pint, const PINT_SHAPE_CREATE& create); 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /WFC/Src/CRC32.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "CRC32.h" 11 | 12 | udword ComputeCRC32_Verts(const SurfaceInterface& surface) 13 | { 14 | if(!surface.mVerts || !surface.mNbVerts) 15 | return 0; 16 | return Crc32(surface.mVerts, surface.mNbVerts*sizeof(Point)); 17 | } 18 | 19 | udword ComputeCRC32_Faces(const SurfaceInterface& surface) 20 | { 21 | if(!surface.mNbFaces) 22 | return 0; 23 | if(surface.mDFaces) 24 | return Crc32(surface.mDFaces, surface.mNbFaces*sizeof(udword)); 25 | else if(surface.mWFaces) 26 | return Crc32(surface.mWFaces, surface.mNbFaces*sizeof(uword)); 27 | else 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /WFC/Src/PintPointSpriteSphereShapeRenderer.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PINT_POINT_SPRITE_SPHERE_SHAPE_RENDERER_H 10 | #define PINT_POINT_SPRITE_SPHERE_SHAPE_RENDERER_H 11 | 12 | #include "PintShapeRenderer.h" 13 | 14 | class PintPointSpriteSphereShapeRenderer : public PintShapeRenderer 15 | { 16 | float mRadius; 17 | public: 18 | PintPointSpriteSphereShapeRenderer(float radius); 19 | 20 | // PintShapeRenderer 21 | virtual const char* GetClassName() const override { return "PintPointSpriteSphereShapeRenderer"; } 22 | virtual void _Render(const PR& pose) const override; 23 | //~PintShapeRenderer 24 | }; 25 | 26 | #endif -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceCubeRoot.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for cube roots. 4 | * \file IceCubeRoot.h 5 | * \author Ken Turkowski 6 | * \date 1997-1999 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICECUBEROOT_H 13 | #define ICECUBEROOT_H 14 | 15 | FUNCTION ICEMATHS_API float CubeRoot(float x); 16 | 17 | #endif // ICECUBEROOT_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/IceSeparatingAxes.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICESEPARATINGAXES_H 4 | #define ICESEPARATINGAXES_H 5 | 6 | // ### TODO better later 7 | 8 | // This class holds a list of potential separating axes. 9 | // - the orientation is irrelevant so V and -V should be the same vector 10 | // - the scale is irrelevant so V and n*V should be the same vector 11 | // - a given separating axis should appear only once in the class 12 | class SeparatingAxes 13 | { 14 | /* SeparatingAxes() 15 | { 16 | } 17 | ~SeparatingAxes() 18 | { 19 | } 20 | */ 21 | public: 22 | 23 | bool AddAxis(const Point& axis); 24 | 25 | // private: 26 | 27 | Vertices mAxes; 28 | }; 29 | 30 | #endif // ICESEPARATINGAXES_H 31 | 32 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceImageWork/IceImageWorkSettings.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Compilation flags for IceImageWork. 4 | * \file IceImageWorkSettings.h 5 | * \author Pierre Terdiman 6 | * \date October, 19, 2002 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEIMAGEWORKSETTINGS_H 13 | #define ICEIMAGEWORKSETTINGS_H 14 | 15 | #endif // ICEIMAGEWORKSETTINGS_H 16 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SphereConeOverlap.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for sphere-cone intersection 4 | * \file CTC_SphereConeOverlap.h 5 | * \author Peter Warden 6 | * \date December, 20, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCSPHERECONEOVERLAP_H 13 | #define CTCSPHERECONEOVERLAP_H 14 | 15 | #endif // CTCSPHERECONEOVERLAP_H 16 | -------------------------------------------------------------------------------- /WFC/Src/PintNullRenderer.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PINT_NULL_RENDERER_H 10 | #define PINT_NULL_RENDERER_H 11 | 12 | #include "PintShapeRenderer.h" 13 | 14 | class NullRenderer : public PintShapeRenderer 15 | { 16 | public: 17 | NullRenderer() : PintShapeRenderer(/*SHAPE_RENDERER_UNDEFINED,*/ 0) {} 18 | virtual ~NullRenderer() {} 19 | 20 | // PintShapeRenderer 21 | virtual const char* GetClassName() const override { return "NullRenderer"; } 22 | virtual udword GetNbRenderers() const override { return 0; } 23 | virtual void _Render(const PR& pose) const override {} 24 | //~PintShapeRenderer 25 | }; 26 | 27 | #endif -------------------------------------------------------------------------------- /WFC/Src/PintEngineData.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PINT_ENGINE_DATA_H 10 | #define PINT_ENGINE_DATA_H 11 | 12 | #include "PintTiming.h" 13 | #include "PintSQ.h" 14 | #include "PintVisibilityManager.h" 15 | 16 | struct EngineData 17 | { 18 | EngineData() : 19 | mEngine (null), 20 | mVisHelper (null), 21 | mEnabled (true), 22 | mSupportsCurrentTest (true) 23 | { 24 | } 25 | 26 | void Init(Pint* engine); 27 | void Reset(); 28 | 29 | Pint* mEngine; 30 | PintSQ mSQHelper; 31 | PintTiming mTiming; 32 | VisibilityManager* mVisHelper; 33 | bool mEnabled; 34 | bool mSupportsCurrentTest; 35 | }; 36 | 37 | #endif -------------------------------------------------------------------------------- /WFC/Src/ScreenQuad_MinimalAtmosphere.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SCREEN_QUAD_MINIMAL_ATMOSPHERE_H 10 | #define SCREEN_QUAD_MINIMAL_ATMOSPHERE_H 11 | 12 | #include "ScreenQuad.h" 13 | #include "GLShader.h" 14 | 15 | class ScreenQuadMinimalAtmosphere : public ShaderBasedScreenQuad 16 | { 17 | public: 18 | ScreenQuadMinimalAtmosphere(); 19 | virtual ~ScreenQuadMinimalAtmosphere(); 20 | 21 | virtual const char* GetUIName() const { return "Minimal atmosphere"; } 22 | virtual void Apply(udword screen_width, udword screen_height); 23 | virtual void CreateUI(PintGUIHelper& helper, Widgets* widgets, IceWindow* parent); 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /WFC/Src/#Compiler_vs2017/WFCExplorer.vcxproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ..\..\Build64\WFCExplorer64_vs2017.exe 5 | WindowsLocalDebugger 6 | -0p PINT_PhysX560GitHub_VS2017_64.dll 7 | 8 | 9 | ..\..\Build64\WFCExplorer64_DEBUG_vs2017.exe 10 | WindowsLocalDebugger 11 | -p PINT_PhysX560GitHub_VS2017_64_D.dll -zp PINT_PhysX52Dev_VS2017_64.dll -zt DisplayAllShapes 12 | 13 | -------------------------------------------------------------------------------- /WFC/Src/Capsule.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef CAPSULE_H 10 | #define CAPSULE_H 11 | 12 | class CapsuleMesh 13 | { 14 | public: 15 | CapsuleMesh(); 16 | CapsuleMesh(udword nb_circle_pts, float radius, float half_height, bool generate_normals); 17 | ~CapsuleMesh(); 18 | 19 | void Generate(udword nb_circle_pts, float radius, float half_height, bool generate_normals); 20 | void Reset(); 21 | 22 | Orientation mOrientation; 23 | float mRadius; 24 | float mHalfHeight; 25 | udword mNbVerts; 26 | Point* mVerts; 27 | Point* mNormals; 28 | udword mNbTris; 29 | IndexedTriangle* mTris; 30 | }; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceJacobi.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for Jacobi transform. 4 | * \file IceJacobi.h 5 | * \author Pierre Terdiman 6 | * \date October, 10, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEJACOBI_H 13 | #define ICEJACOBI_H 14 | 15 | ICEMATHS_API bool JacobiTransform(int n, double a[], double w[]); 16 | 17 | #endif // ICEJACOBI_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_Extrude.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef CTCEXTRUDE_H 4 | #define CTCEXTRUDE_H 5 | 6 | CONTACT_API udword ExtrudeMesh(udword nb_tris, const Triangle* triangles, const udword* edge_flags, const Point& extrusion_dir, Triangle* tris, udword* ids, const Point& dir); 7 | CONTACT_API udword ExtrudeMesh(udword nb_tris, const Triangle* triangles, const udword* edge_flags, const Point& extrusion_dir, Triangle* tris, udword* ids, const Point& dir, const OBB& tbv); 8 | CONTACT_API udword ExtrudeBox(const AABB& local_box, const Matrix4x4* world, const Point& extrusion_dir, Triangle* tris); 9 | CONTACT_API udword ExtrudeBox2(const AABB& local_box, const Matrix4x4* world, const Point& extrusion_dir, Triangle* tris, const Point& dir); 10 | 11 | #endif // CTCEXTRUDE_H 12 | 13 | -------------------------------------------------------------------------------- /WFC/Src/PintDLShapeRenderer.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PINT_DL_SHAPE_RENDERER_H 10 | #define PINT_DL_SHAPE_RENDERER_H 11 | 12 | #include "PintShapeRenderer.h" 13 | 14 | class PintDLShapeRenderer : public PintShapeRenderer 15 | { 16 | // Matrix4x4 mCached; 17 | // PR mLastPR; 18 | public: 19 | PintDLShapeRenderer(); 20 | virtual ~PintDLShapeRenderer(); 21 | 22 | // PintShapeRenderer 23 | virtual const char* GetClassName() const override { return "PintDLShapeRenderer"; } 24 | virtual void _Render(const PR& pose) const override; 25 | //~PintShapeRenderer 26 | 27 | protected: 28 | GLuint mDisplayListNum; 29 | // udword mNbVerts; 30 | }; 31 | 32 | #endif -------------------------------------------------------------------------------- /WFC/Src/ScreenQuad_Sky.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SCREEN_QUAD_SKY_H 10 | #define SCREEN_QUAD_SKY_H 11 | 12 | #include "ScreenQuad.h" 13 | #include "GLShader.h" 14 | 15 | class ScreenQuadSky : public ShaderBasedScreenQuad, public ColorPickerCallback 16 | { 17 | public: 18 | ScreenQuadSky(); 19 | virtual ~ScreenQuadSky(); 20 | 21 | virtual const char* GetUIName() const { return "Sky"; } 22 | virtual void Apply(udword screen_width, udword screen_height); 23 | virtual void CreateUI(PintGUIHelper& helper, Widgets* widgets, IceWindow* parent); 24 | 25 | // ColorPickerCallback 26 | virtual void OnNewColorSelected(ubyte r, ubyte g, ubyte b); 27 | }; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceCRC.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains CRC code. 4 | * \file IceCRC.h 5 | * \author Unknown 6 | * \date Unknown 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICECRC_H 13 | #define ICECRC_H 14 | 15 | FUNCTION ICECORE_API udword Crc16(const void* buffer, udword nb_bytes); 16 | FUNCTION ICECORE_API udword Crc32(const void* buffer, udword nb_bytes); 17 | 18 | #endif // ICECRC_H 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/IceManifoldMesh.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code to make manifold meshes. 4 | * \file IceManifoldMesh.h 5 | * \author Pierre Terdiman 6 | * \date January, 17, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEMANIFOLDMESH_H 13 | #define ICEMANIFOLDMESH_H 14 | 15 | MESHMERIZER_API bool MakeManifoldMesh(IndexedSurface& surface); 16 | 17 | #endif // ICEMANIFOLDMESH_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceCoreTypes.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains types for IceCore. 4 | * \file IceCoreTypes.h 5 | * \author Pierre Terdiman 6 | * \date September, 9, 2001 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICECORETYPES_H 13 | #define ICECORETYPES_H 14 | 15 | extern ICECORE_API const char* gID_DataBlock; 16 | extern ICECORE_API const char* gID_CustomList; 17 | 18 | #endif // ICECORETYPES_H 19 | -------------------------------------------------------------------------------- /WFC/Src/GLTexture.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GLTEXTURE_H 10 | #define GLTEXTURE_H 11 | 12 | namespace GLTexture 13 | { 14 | GLuint CreateSingleColorTexture(udword width, udword height, const RGBAPixel& color, bool create_mipmaps); 15 | GLuint CreateTexture(udword width, udword height, const RGBAPixel* pixels, bool create_mipmaps); 16 | void UpdateTexture(GLuint texId, udword width, udword height, const RGBAPixel* pixels, bool createMipmaps); 17 | void ReleaseTexture(GLuint& texId); 18 | void BlitTextureToScreen(GLuint texId); 19 | 20 | // Frame buffer stuff, maybe move somewhere else 21 | void ReleaseFramebuffer(GLuint& id); 22 | void ReleaseRenderbuffer(GLuint& id); 23 | } 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/IceRendererSettings.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Compilation flags for IceRenderer. 4 | * \file IceRendererSettings.h 5 | * \author Pierre Terdiman 6 | * \date October, 19, 2002 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICERENDERERSETTINGS_H 13 | #define ICERENDERERSETTINGS_H 14 | 15 | // #define SUPPORT_CONSOLE 16 | #define NEW_VB_MANAGEMENT 17 | 18 | #endif // ICERENDERERSETTINGS_H 19 | -------------------------------------------------------------------------------- /WFC/Src/Profiling.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef PROFILING_H 10 | #define PROFILING_H 11 | 12 | enum ProfilingUnits 13 | { 14 | PROFILING_UNITS_RDTSC, 15 | PROFILING_UNITS_TIME_GET_TIME, 16 | PROFILING_UNITS_QPC, 17 | }; 18 | 19 | enum UserProfilingMode 20 | { 21 | USER_PROFILING_DEFAULT, 22 | USER_PROFILING_SIM, 23 | USER_PROFILING_UPDATE, 24 | USER_PROFILING_COMBINED, 25 | }; 26 | 27 | class PhysicsTest; 28 | struct EngineData; 29 | 30 | void Simulate( float timestep, ProfilingUnits profiling_units, UserProfilingMode user_profiling_mode, 31 | PhysicsTest* test, udword nb_engines, EngineData* engines, 32 | bool randomize_order, bool paused, bool trash_cache); 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockTimer.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include 6 | #pragma intrinsic(__rdtsc) 7 | 8 | void Rock::StartProfile_RDTSC(u64& val) 9 | { 10 | val = __rdtsc(); 11 | } 12 | 13 | void Rock::EndProfile_RDTSC(u64& val) 14 | { 15 | val = __rdtsc() - val; 16 | } 17 | 18 | // We must pass a QPCTime instance to the functions below, because "getElapsedSeconds" updates a 19 | // local time value in the class. So we cannot safely use a global timer in multi-threaded code. 20 | 21 | void Rock::StartProfile_QPC(QPCTime& timer) 22 | { 23 | timer.getElapsedSeconds(); 24 | } 25 | 26 | u32 Rock::EndProfile_QPC(QPCTime& timer) 27 | { 28 | const QPCTime::Second s = timer.getElapsedSeconds(); 29 | return u32(s*1000000.0); 30 | } 31 | 32 | void Rock::StartProfile_TimeGetTime(u32& val) 33 | { 34 | val = TimeGetTime(); 35 | } 36 | 37 | void Rock::EndProfile_TimeGetTime(u32& val) 38 | { 39 | val = TimeGetTime() - val; 40 | } 41 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceMathsSettings.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Compilation flags for IceMaths. 4 | * \file IceMathsSettings.h 5 | * \author Pierre Terdiman 6 | * \date October, 19, 2002 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEMATHSSETTINGS_H 13 | #define ICEMATHSSETTINGS_H 14 | 15 | #define ICE_USE_MINMAX // if defined, use (Min, Max) AABBs, else use (Center, Extents) ones. 16 | 17 | #endif // ICEMATHSSETTINGS_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkFCAM.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * FCAM chunk for ZB2 format. 4 | * \file ChunkFCAM.h 5 | * \author Pierre Terdiman 6 | * \date August, 30, 2001 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CHUNKFCAM_H 13 | #define CHUNKFCAM_H 14 | 15 | #define FCAM_VERSION 1 16 | 17 | class ZCB2_API FCAMChunk : public CAMEChunk 18 | { 19 | DECLARE_CHUNK(FCAMChunk, mFCAMCore) 20 | }; 21 | 22 | #endif // CHUNKFCAM_H 23 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkTCAM.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * TCAM chunk for ZB2 format. 4 | * \file ChunkTCAM.h 5 | * \author Pierre Terdiman 6 | * \date August, 30, 2001 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CHUNKTCAM_H 13 | #define CHUNKTCAM_H 14 | 15 | #define TCAM_VERSION 1 16 | 17 | class ZCB2_API TCAMChunk : public CAMEChunk 18 | { 19 | DECLARE_CHUNK(TCAMChunk, mTCAMCore) 20 | }; 21 | 22 | #endif // CHUNKTCAM_H 23 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkUBAR.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * UBAR chunk for ZB2 format. 4 | * \file ChunkUBAR.h 5 | * \author Pierre Terdiman 6 | * \date September, 11, 2001 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CHUNKUBAR_H 13 | #define CHUNKUBAR_H 14 | 15 | #define UBAR_VERSION 1 16 | 17 | class ZCB2_API UBARChunk : public BaseChunk 18 | { 19 | DECLARE_CHUNK(UBARChunk, mUBARCore) 20 | }; 21 | 22 | #endif // CHUNKUBAR_H 23 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockMemory.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_MEMORY_H 2 | #define ROCK_MEMORY_H 3 | 4 | #include 5 | 6 | #undef ZeroMemory 7 | #undef CopyMemory 8 | #undef MoveMemory 9 | #undef FillMemory 10 | 11 | namespace Rock 12 | { 13 | inline_ void ZeroMemory_(void* dest, size_t size) { memset(dest, 0, size); } 14 | inline_ void FillMemory_(void* dest, size_t size, u8 val) { memset(dest, val, size); } 15 | inline_ void CopyMemory_(void* dest, const void* src, size_t size) { memcpy(dest, src, size); } 16 | inline_ void MoveMemory_(void* dest, const void* src, size_t size) { memmove(dest, src, size); } 17 | inline_ void StoreDwords_(u32* dest, u32 nb, u32 value) 18 | { 19 | while(nb--) 20 | *dest++ = value; 21 | } 22 | } 23 | 24 | #define ROCK_DELETE(x) if(x) { delete x; x = null; } 25 | #define ROCK_DELETE_ARRAY(x) if(x) { delete []x; x = null; } 26 | #define ROCK_RELEASE(x) if(x) { x->Release(); x = null; } 27 | 28 | #define ROCK_CHECKALLOC(x) if(!x) return false; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceFileselect.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICEFILESELECT_H 4 | #define ICEFILESELECT_H 5 | 6 | struct ICEGUI_API FILESELECTCREATE 7 | { 8 | String mFilter; //!< File filter (ex. "PI1 Files (*.pi1)|*.pi1|All Files (*.*)|*.*||") 9 | String mFileName; //!< Default File Name 10 | String mInitialDir; //!< Initial Directory 11 | String mCaptionTitle; //!< Dialog title 12 | String mDefExt; //!< Default extension 13 | }; 14 | 15 | FUNCTION ICEGUI_API bool FileselectOpenSingle (const FILESELECTCREATE& create, String& filename); 16 | FUNCTION ICEGUI_API bool FileselectOpenMultiple (const FILESELECTCREATE& create, Strings& filenames); 17 | FUNCTION ICEGUI_API bool FileselectSave (const FILESELECTCREATE& create, String& filename, bool check_overwrite=false); 18 | 19 | #endif // ICEFILESELECT_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceFFT.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * This file contains code for Fast Fourier Transform. 4 | * \file IceFFT.h 5 | * \author Pierre Terdiman 6 | * \date January, 29, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEFFT_H 13 | #define ICEFFT_H 14 | 15 | // Fast Fourier Transform 16 | FUNCTION ICEMATHS_API void FFT(float* complex, int* extents, int dimensions, bool inverse); 17 | 18 | #endif // ICEFFT_H 19 | 20 | -------------------------------------------------------------------------------- /WFC/Src/ScreenQuad_SimpleAtmosphericScattering.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SCREEN_QUAD_SIMPLE_ATMOSPHERIC_SCATTERING_H 10 | #define SCREEN_QUAD_SIMPLE_ATMOSPHERIC_SCATTERING_H 11 | 12 | #include "ScreenQuad.h" 13 | #include "GLShader.h" 14 | 15 | class ScreenQuadSimpleAtmosphericScattering : public ShaderBasedScreenQuad 16 | { 17 | public: 18 | ScreenQuadSimpleAtmosphericScattering(); 19 | virtual ~ScreenQuadSimpleAtmosphericScattering(); 20 | 21 | virtual const char* GetUIName() const { return "Simple atmospheric scattering"; } 22 | virtual void Apply(udword screen_width, udword screen_height); 23 | virtual void CreateUI(PintGUIHelper& helper, Widgets* widgets, IceWindow* parent); 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SweptBox.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for swept boxes intersection 4 | * \file CTC_SweptBox.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCSWEPTBOX_H 13 | #define CTCSWEPTBOX_H 14 | 15 | CONTACT_API bool SweptBoxesIntersect(float time, const OBB& box0, const Point& vel0, const OBB& box1, const Point& vel1); 16 | 17 | #endif // CTCSWEPTBOX_H 18 | 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/MeshmerizerErrors.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains error & message codes for Meshmerizer. 4 | * \file MeshmerizerErrors.h 5 | * \author Pierre Terdiman 6 | * \date March, 12, 2003 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef MESHMERIZERERRORS_H 13 | #define MESHMERIZERERRORS_H 14 | 15 | // Error codes for Meshmerizer 16 | extern MESHMERIZER_API const char* EC_NON_MANIFOLD_MESH; 17 | 18 | #endif // MESHMERIZERERRORS_H 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_PlanePlanePlane.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for intersection of 3 planes 4 | * \file CTC_PlanePlanePlane.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCPLANEPLANEPLANE_H 13 | #define CTCPLANEPLANEPLANE_H 14 | 15 | CONTACT_API bool ComputeIntersection(const Plane& p1, const Plane& p2, const Plane& p3, Point& v); 16 | 17 | #endif // CTCPLANEPLANEPLANE_H 18 | 19 | -------------------------------------------------------------------------------- /WFC/Src/ScreenQuad_BackColor.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SCREEN_QUAD_BACK_COLOR_H 10 | #define SCREEN_QUAD_BACK_COLOR_H 11 | 12 | #include "ScreenQuad.h" 13 | 14 | class ScreenQuadBackColor : public ScreenQuadMode, public ColorPickerCallback 15 | { 16 | public: 17 | ScreenQuadBackColor(const Point& back_color); 18 | virtual ~ScreenQuadBackColor(); 19 | 20 | virtual const char* GetUIName() const { return "Back color"; } 21 | virtual void Apply(udword screen_width, udword screen_height); 22 | virtual void CreateUI(PintGUIHelper& helper, Widgets* widgets, IceWindow* parent); 23 | 24 | // ColorPickerCallback 25 | virtual void OnNewColorSelected(ubyte r, ubyte g, ubyte b); 26 | 27 | Point mBackColor; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_PointSphereOverlap.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for sphere-point intersection 4 | * \file CTC_PointSphereOverlap.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCSPHEREPOINTOVERLAP_H 13 | #define CTCSPHEREPOINTOVERLAP_H 14 | 15 | CONTACT_API float SpherePoint(const Point& center, float radius, const Point& p, Point& normal); 16 | 17 | #endif // CTCSPHEREPOINTOVERLAP_H 18 | -------------------------------------------------------------------------------- /WFC/Src/RenderTarget.h: -------------------------------------------------------------------------------- 1 | #ifndef RENDER_TARGET 2 | #define RENDER_TARGET 3 | 4 | #include "FrameBufferObject.h" 5 | 6 | class SystemTexture; 7 | 8 | namespace PEEL // To avoid conflicts with the ICE RenderTarget class 9 | { 10 | class RenderTarget 11 | { 12 | public: 13 | RenderTarget(udword width, udword height); 14 | ~RenderTarget(); 15 | 16 | void Resize(udword width, udword height); 17 | 18 | void BeginCapture(); 19 | void EndCapture(); 20 | 21 | inline_ GLuint GetColorTexId() const { return mColorTexId; } 22 | inline_ GLuint GetDepthTexId() const { return mDepthTexId; } 23 | inline_ udword GetWidth() const { return mWidth; } 24 | inline_ udword GetHeight() const { return mHeight; } 25 | 26 | private: 27 | void Clear(); 28 | 29 | FrameBufferObject* mFBO; 30 | GLuint mColorTexId; 31 | GLuint mDepthTexId; 32 | udword mWidth; 33 | udword mHeight; 34 | 35 | SystemTexture* mColorTexture; 36 | SystemTexture* mDepthTexture; 37 | }; 38 | } 39 | 40 | #endif -------------------------------------------------------------------------------- /WFC/Src/SimpleShader.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef SIMPLE_SHADER_H 10 | #define SIMPLE_SHADER_H 11 | 12 | #include "Shader.h" 13 | 14 | struct SimpleShaderProps : ShaderProps 15 | { 16 | Point mBackLightDir; 17 | }; 18 | 19 | class SimpleShader : public PEEL::Shader 20 | { 21 | PREVENT_COPY(SimpleShader) 22 | public: 23 | SimpleShader(bool needs_vertex_normals); 24 | virtual ~SimpleShader(); 25 | 26 | bool Init(); 27 | 28 | void __UpdateCamera(const float* modelView, const float* proj); 29 | 30 | // Shader 31 | virtual void Activate(const ShaderProps& mat) override; 32 | //~Shader 33 | 34 | private: 35 | float mCamModelView[16]; 36 | // float mCamProj[16]; 37 | const bool mNeedsVertexNormals; 38 | }; 39 | 40 | #endif -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceProgressBar.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICEPROGRESSBAR_H 4 | #define ICEPROGRESSBAR_H 5 | 6 | enum ProgressBarType 7 | { 8 | PROGRESSBAR_NORMAL, 9 | PROGRESSBAR_SMOOTH 10 | }; 11 | 12 | class ICEGUI_API ProgressBarDesc : public WidgetDesc 13 | { 14 | public: 15 | ProgressBarDesc(); 16 | 17 | ProgressBarType mStyle; 18 | }; 19 | 20 | class ICEGUI_API IceProgressBar : public IceWidget 21 | { 22 | public: 23 | IceProgressBar(const ProgressBarDesc& desc); 24 | virtual ~IceProgressBar(); 25 | 26 | void SetValue(int value); 27 | void SetTotalSteps(int steps); 28 | 29 | int GetValue() const; 30 | int GetTotalSteps() const; 31 | private: 32 | int mValue; 33 | int mSteps; 34 | 35 | PREVENT_COPY(IceProgressBar); 36 | }; 37 | 38 | #endif // ICEPROGRESSBAR_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_RayCapsuleOverlap.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for ray-capsule intersection 4 | * \file CTC_RayCapsuleOverlap.h 5 | * \author Pierre Terdiman 6 | * \date November, 28, 2004 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCRAYCAPSULEOVERLAP_H 13 | #define CTCRAYCAPSULEOVERLAP_H 14 | 15 | CONTACT_API udword RayCapsuleOverlap(const Point& origin, const Point& dir, const LSS& capsule, float s[2]); 16 | 17 | #endif // CTCRAYCAPSULEOVERLAP_H 18 | 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceAVI.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code to play AVI files. 4 | * \file IceAVI.h 5 | * \author Pierre Terdiman 6 | * \date April, 11, 2003 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEAVI_H 13 | #define ICEAVI_H 14 | 15 | #ifndef _WIN64 16 | FUNCTION ICECORE_API bool OpenAVI(const char* filename); 17 | FUNCTION ICECORE_API const ubyte* GrabAVIFrame(int frame); 18 | FUNCTION ICECORE_API bool CloseAVI(); 19 | #endif 20 | 21 | #endif // ICEAVI_H 22 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/IceInnerBoxes.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code to compute inner boxes. 4 | * \file IceInnerBoxes.h 5 | * \author Pierre Terdiman 6 | * \date January, 29, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEINNERBOXES_H 13 | #define ICEINNERBOXES_H 14 | 15 | // ### Warning: experimental 16 | FUNCTION MESHMERIZER_API bool ComputeInnerBox(IndexedSurface* surface, const Matrix4x4& world, udword density, AABB& box); 17 | 18 | #endif // ICEINNERBOXES_H 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkROBJ.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * ROBJ chunk for ZB2 format. 4 | * \file ChunkROBJ.h 5 | * \author Pierre Terdiman 6 | * \date September, 13, 2001 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CHUNKROBJ_H 13 | #define CHUNKROBJ_H 14 | 15 | #define ROBJ_VERSION 1 16 | 17 | class ZCB2_API ROBJChunk : public BaseChunk 18 | { 19 | DECLARE_CHUNK(ROBJChunk, mROBJCore) 20 | 21 | DECLARE_SUBCHUNK(Controllers, XIDSChunk) 22 | }; 23 | 24 | #endif // CHUNKROBJ_H 25 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_RayPolygonOverlap.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for ray-polygon intersection 4 | * \file CTC_RayPolygonOverlap.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCRAYPOLYGONOVERLAP_H 13 | #define CTCRAYPOLYGONOVERLAP_H 14 | 15 | CONTACT_API bool RayPolygon(udword nb_verts, const Point* verts, const udword* indices, const Ray& ray, float& t); 16 | 17 | #endif // CTCRAYPOLYGONOVERLAP_H 18 | 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceRenderer/IceProjector.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains a simple projector wrapper. 4 | * \file IceProjector.h 5 | * \author Pierre Terdiman 6 | * \date August, 9, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEPROJECTOR_H 13 | #define ICEPROJECTOR_H 14 | 15 | FUNCTION ICERENDERER_API void SetupProjector(RenderStateManager& rsm, udword stage, const PR& pr, const Matrix4x4& inverse_view, udword width, udword height, float fov); 16 | 17 | #endif // ICEPROJECTOR_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockAssert.h: -------------------------------------------------------------------------------- 1 | #ifndef ROCK_ASSERT_H 2 | #define ROCK_ASSERT_H 3 | 4 | #include 5 | 6 | namespace Rock 7 | { 8 | ROCK_FUNCTION ROCK_API bool CustomAssert(size_t, const char*, int, const char*, bool&); 9 | } 10 | 11 | // Custom assert function. Various usages: 12 | // ROCK_ASSERT(condition) 13 | // ROCK_ASSERT(!"Not implemented") 14 | // ROCK_ASSERT(condition && "error text") 15 | #define ROCK_ASSERT_IMPL(exp) \ 16 | { \ 17 | static bool IgnoreAlways = false; \ 18 | if(!IgnoreAlways && Rock::CustomAssert(size_t(exp), #exp, __LINE__, __FILE__, IgnoreAlways)) \ 19 | __debugbreak(); \ 20 | } 21 | 22 | // Call ROCK_ASSERT_IMPL to assert even in Release builds. 23 | // Call ROCK_ASSERT to assert only in Debug builds. 24 | 25 | #if defined(_DEBUG) 26 | #define ROCK_ASSERT(exp) ROCK_ASSERT_IMPL(exp) 27 | #else 28 | #define ROCK_ASSERT(exp) {} 29 | #endif 30 | 31 | #define ROCK_COMPILE_TIME_ASSERT(exp) extern char ROCK_Dummy[ (exp) ? 1 : -1 ] 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_OBBOBBDistance.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for box-box distance 4 | * \file CTC_OBBOBBDistance.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCOBBOBBDISTANCE_H 13 | #define CTCOBBOBBDISTANCE_H 14 | 15 | CONTACT_API float BoxBoxDist(const Matrix3x3& rot, const Point& trans, const Point& centerp, const Point& extentsp, const Point& centerq, const Point& extentsq); 16 | 17 | #endif // CTCOBBOBBDISTANCE_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceGUI/IceTabControl.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | // Include Guard 3 | #ifndef ICETABCONTROL_H 4 | #define ICETABCONTROL_H 5 | 6 | enum TabControlStyle 7 | { 8 | TABCONTROL_NORMAL = 0, 9 | TABCONTROL_BUTTONS = (1<<0), 10 | TABCONTROL_FLATBUTTONS = (1<<1), 11 | TABCONTROL_MULTILINE = (1<<2), 12 | }; 13 | 14 | class ICEGUI_API TabControlDesc : public WidgetDesc 15 | { 16 | public: 17 | TabControlDesc(); 18 | 19 | TabControlStyle mStyle; 20 | }; 21 | 22 | class ICEGUI_API IceTabControl : public IceWidget 23 | { 24 | public: 25 | IceTabControl(const TabControlDesc& desc); 26 | virtual ~IceTabControl(); 27 | 28 | void Add(IceWidget* widget, const char* text); 29 | void Remove(int index); 30 | void Select(int index); 31 | 32 | int GetSelectedIndex() const; 33 | 34 | private: 35 | PREVENT_COPY(IceTabControl); 36 | }; 37 | 38 | #endif // ICETABCONTROL_H -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/IceConvexHull2.h: -------------------------------------------------------------------------------- 1 | #ifndef ICECONVEXHULL2_H 2 | #define ICECONVEXHULL2_H 3 | 4 | class MESHMERIZER_API ConvexHull2 : public Allocateable 5 | { 6 | public: 7 | ConvexHull2(); 8 | ~ConvexHull2(); 9 | 10 | // Wrappers to make the ConvexHull-based code compile 11 | inline_ udword GetNbVerts() const { return mNbVerts; } 12 | inline_ const Point* GetVerts() const { return mVerts; } 13 | 14 | inline_ udword GetNbPolygons() const { return mNbPolygons; } 15 | inline_ const HullPolygon& GetPolygon(udword i) const { return mPolygons[i]; } 16 | 17 | Point* InitVertices(udword nb); 18 | udword mNbVerts; 19 | Point* mVerts; 20 | 21 | udword* InitIndices(udword nb); 22 | udword mNbIndices; 23 | udword* mIndices; 24 | 25 | HullPolygon* InitPolygons(udword nb); 26 | udword mNbPolygons; 27 | HullPolygon* mPolygons; 28 | }; 29 | 30 | FUNCTION MESHMERIZER_API ConvexHull2* CreateConvexHull2(udword nb_verts, const Point* verts); 31 | 32 | #endif // ICECONVEXHULL2_H 33 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockLog.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | using namespace Rock; 6 | 7 | namespace 8 | { 9 | class BasicLog : public Log 10 | { 11 | public: 12 | BasicLog() {} 13 | virtual ~BasicLog() {} 14 | 15 | virtual void SendText(LogType type, const char* text, const void* /*user_data*/) override 16 | { 17 | if(type==LOG_INFO) 18 | { 19 | SetConsoleTextColor(CONSOLE_TEXT_COLOR_WHITE); 20 | printf(text); 21 | } 22 | else 23 | { 24 | if(type==LOG_WARNING) 25 | SetConsoleTextColor(CONSOLE_TEXT_COLOR_YELLOW); 26 | else if(type==LOG_ERROR) 27 | SetConsoleTextColor(CONSOLE_TEXT_COLOR_RED); 28 | printf(text); 29 | SetConsoleTextColor(CONSOLE_TEXT_COLOR_WHITE); 30 | } 31 | } 32 | }; 33 | } 34 | 35 | static BasicLog gBasicLog; 36 | static Log* gCurrentLog = null; 37 | 38 | void SetupLog(Log* log) 39 | { 40 | gCurrentLog = log ? log : &gBasicLog; 41 | } 42 | 43 | Log& Rock::GetLog() 44 | { 45 | ROCK_ASSERT(gCurrentLog); 46 | return *gCurrentLog; 47 | } 48 | 49 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_PlanePlane.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for plane-plane intersections 4 | * \file CTC_PlanePlaneOverlap.h 5 | * \author Pierre Terdiman 6 | * \date April, 27, 2004 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCPLANEPLANE_H 13 | #define CTCPLANEPLANE_H 14 | 15 | CONTACT_API bool PlanePlaneContact(const Plane& plane0, const Plane& plane1, Ray& line); 16 | CONTACT_API bool ClipAllPlanes(Vertices& verts, const Planes& planes); 17 | 18 | #endif // CTCPLANEPLANE_H 19 | 20 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_DiskPlaneOverlap.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for disk-plane intersection 4 | * \file CTC_DiskPlaneOverlap.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCDISKPLANEOVERLAP_H 13 | #define CTCDISKPLANEOVERLAP_H 14 | 15 | // Disk-Plane intersection 16 | CONTACT_API bool DiskPlaneOverlap(float& penetration, Point& point_on_disk, const Circle& disk, const Plane& plane); 17 | 18 | #endif // CTCDISKPLANEOVERLAP_H 19 | 20 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceFrameAllocator.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains a frame allocator. 4 | * \file IceAllocator.h 5 | * \author Pierre Terdiman 6 | * \date February, 23, 2008 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEFRAMEALLOCATOR_H 13 | #define ICEFRAMEALLOCATOR_H 14 | 15 | FUNCTION ICECORE_API void* FrameAlloc(udword nb_bytes); 16 | FUNCTION ICECORE_API void FrameFree(void* memory, udword nb_bytes); 17 | FUNCTION ICECORE_API udword ResetFrameMemory(); 18 | 19 | #endif // ICEFRAMEALLOCATOR_H 20 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceTSS.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for triangle-swept spheres. 4 | * \file IceTSS.h 5 | * \author Pierre Terdiman 6 | * \date April, 4, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICETSS_H 13 | #define ICETSS_H 14 | 15 | class ICEMATHS_API TSS : public Triangle 16 | { 17 | public: 18 | //! Constructor 19 | inline_ TSS() {} 20 | //! Destructor 21 | inline_ ~TSS() {} 22 | 23 | float mRadius; //!< Sphere radius 24 | }; 25 | 26 | #endif // ICETSS_H 27 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceTerrain/IceLightning.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for lightnings. 4 | * \file IceLightning.h 5 | * \author Pierre Terdiman 6 | * \date March, 5, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICELIGHTNING_H 13 | #define ICELIGHTNING_H 14 | 15 | ICETERRAIN_API udword ComputeLightningNbPts(udword level); 16 | ICETERRAIN_API bool GenerateLightning(udword seed, udword level, float dispersion, const Point& p0, const Point& p1, Vertices& lightning); 17 | 18 | #endif // ICELIGHTNING_H 19 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkXIDS.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * XIDS chunk for ZB2 format. 4 | * \file ChunkXIDS.h 5 | * \author Pierre Terdiman 6 | * \date September, 11, 2001 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CHUNKXIDS_H 13 | #define CHUNKXIDS_H 14 | 15 | #define XIDS_VERSION 1 16 | 17 | class ZCB2_API XIDSChunk : public BaseChunk 18 | { 19 | DECLARE_CHUNK(XIDSChunk, mXIDSCore) 20 | 21 | DECLARE_STD_ARRAY(DIDs, udword) 22 | DECLARE_STD_ARRAY(WIDs, uword) 23 | }; 24 | 25 | #endif // CHUNKXIDS_H 26 | -------------------------------------------------------------------------------- /WFC/Src/PintPointSpriteSphereShapeRenderer.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "PintPointSpriteSphereShapeRenderer.h" 11 | #include "GLPointRenderer2.h" 12 | 13 | // This point-sprite sphere isn't perspective correct and cannot be combined with the DL version.... 14 | // so we need the real raytaced version, and for that we need to compute the proper screen bounds. 15 | 16 | PintPointSpriteSphereShapeRenderer::PintPointSpriteSphereShapeRenderer(float radius) : mRadius(radius) 17 | { 18 | } 19 | 20 | void PintPointSpriteSphereShapeRenderer::_Render(const PR& pose) const 21 | { 22 | // glPushMatrix(); 23 | // GLRenderHelpers::SetupGLMatrix(pose); 24 | // GLPointRenderer2::DrawPoint(pose.mPos, mRadius); 25 | GLPointRenderer2::BatchPoint(pose.mPos, mRadius); 26 | // glPopMatrix(); 27 | } 28 | 29 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_EdgeEdgeDistance.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for edge-edge distance 4 | * \file CTC_EdgeEdgeDistance.h 5 | * \author Pierre Terdiman (original code from Eric Larsen in PQP) 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCEDGEEDGEDISTANCE_H 13 | #define CTCEDGEEDGEDISTANCE_H 14 | 15 | CONTACT_API void EdgeEdgeDist(Point& x, Point& y, const Point& p0, const Point& dir0, const Point& p1, const Point& dir1); 16 | 17 | #endif // CTCEDGEEDGEDISTANCE_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Rock/Src/APIs/Core/RockAllocator.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | using namespace Rock; 4 | 5 | namespace 6 | { 7 | class BasicAllocator : public Allocator 8 | { 9 | public: 10 | BasicAllocator() {} 11 | virtual ~BasicAllocator() {} 12 | 13 | virtual void* malloc(size_t size, MemoryType /*type*/) override 14 | { 15 | return _aligned_malloc(size, 16); 16 | } 17 | 18 | virtual void* mallocDebug(size_t size, const char* /*filename*/, u32 /*line*/, const char* /*class_name*/, MemoryType /*type*/, bool /*from_new*/) override 19 | { 20 | return _aligned_malloc(size, 16); 21 | } 22 | 23 | virtual void free(void* memory, bool /*from_new*/) override 24 | { 25 | _aligned_free(memory); 26 | } 27 | }; 28 | } 29 | 30 | static BasicAllocator gBasicAllocator; 31 | static Allocator* gCurrentAllocator = null; 32 | 33 | void SetupAllocator(Allocator* allocator) 34 | { 35 | gCurrentAllocator = allocator ? allocator : &gBasicAllocator; 36 | } 37 | 38 | Allocator& Rock::GetAllocator() 39 | { 40 | ROCK_ASSERT(gCurrentAllocator); 41 | return *gCurrentAllocator; 42 | } 43 | 44 | -------------------------------------------------------------------------------- /WFC/Src/Grid.cpp: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #include "stdafx.h" 10 | #include "Grid.h" 11 | #include "Pint.h" 12 | 13 | void RenderGrid(PintRender& renderer) 14 | { 15 | const float gridSize = 200.0f; 16 | const float minX = -gridSize; 17 | const float maxX = gridSize; 18 | const float minZ = -gridSize; 19 | const float maxZ = gridSize; 20 | const float dX = 1.0f; 21 | const float dZ = 1.0f; 22 | 23 | const Point color(1.0f, 1.0f, 1.0f); 24 | 25 | float currentX = minX; 26 | while(currentX<=maxX) 27 | { 28 | renderer.DrawLine(Point(currentX, 0.0f, minZ), Point(currentX, 0.0f, maxZ), color); 29 | currentX += dX; 30 | } 31 | 32 | float currentZ = minZ; 33 | while(currentZ<=maxZ) 34 | { 35 | renderer.DrawLine(Point(minX, 0.0f, currentZ), Point(maxX, 0.0f, currentZ), color); 36 | currentZ += dZ; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceCore/IceResource.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code to manage resources. Resources are external files used by an app. 4 | * \file IceResource.h 5 | * \author Pierre Terdiman 6 | * \date April, 26, 2007 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICERESOURCE_H 13 | #define ICERESOURCE_H 14 | 15 | FUNCTION ICECORE_API bool RegisterResource(const char* filename); 16 | FUNCTION ICECORE_API void ReleaseResourceData(); 17 | FUNCTION ICECORE_API void CopyResources(); 18 | 19 | #endif // ICERESOURCE_H 20 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/ZCB2/ChunkROTA.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * ROTA chunk for ZB2 format. 4 | * \file ChunkROTA.h 5 | * \author Pierre Terdiman 6 | * \date September, 11, 2001 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CHUNKROTA_H 13 | #define CHUNKROTA_H 14 | 15 | #define ROTA_VERSION 1 16 | 17 | class ZCB2_API ROTAChunk : public CTRLChunk 18 | { 19 | DECLARE_CHUNK(ROTAChunk, mROTACore) 20 | 21 | DECLARE_STD_MEMBER(Speed, float) 22 | DECLARE_STD_MEMBER(Component, AxisIndex) 23 | }; 24 | 25 | #endif // CHUNKROTA_H 26 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Meshmerizer/IceUVCreator.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code to generate standard UVs. 4 | * \file IceUVCreator.h 5 | * \author Pierre Terdiman 6 | * \date January, 29, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEUVCREATOR_H 13 | #define ICEUVCREATOR_H 14 | 15 | FUNCTION MESHMERIZER_API bool ComputeSphereMapModel(udword nb_verts, const Point* verts, Point* uvs); 16 | FUNCTION MESHMERIZER_API bool ComputePlanarModel(IndexedSurface* primary, IndexedSurface* detail); 17 | 18 | #endif // ICEUVCREATOR_H 19 | -------------------------------------------------------------------------------- /WFC/Src/GLFontRenderer.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////// 2 | /* 3 | * PEEL - Physics Engine Evaluation Lab 4 | * Copyright (C) 2012 Pierre Terdiman 5 | * Homepage: http://www.codercorner.com/blog.htm 6 | */ 7 | /////////////////////////////////////////////////////////////////////////////// 8 | 9 | #ifndef GL_FONT_RENDERER 10 | #define GL_FONT_RENDERER 11 | 12 | class GLFontRenderer 13 | { 14 | private: 15 | 16 | static bool m_isInit; 17 | static unsigned int m_textureObject; 18 | static int m_screenWidth; 19 | static int m_screenHeight; 20 | static float m_color[4]; 21 | 22 | public: 23 | 24 | static bool init(); 25 | static void print(float x, float y, float fontSize, const char* pString, bool forceMonoSpace=false, int monoSpaceWidth=11, bool doOrthoProj=true); 26 | static void print_(float x, float y, float fontSize, const char* pString, bool forceMonoSpace=false, int monoSpaceWidth=11, bool doOrthoProj=true); 27 | static void setScreenResolution(int screenWidth, int screenHeight); 28 | static void setColor(float r, float g, float b, float a); 29 | }; 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_SegmentRectangleDistance.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for segment-rectangle distance 4 | * \file CTC_SegmentRectangleDistance.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCSEGMENTRECTANGLEDISTANCE_H 13 | #define CTCSEGMENTRECTANGLEDISTANCE_H 14 | 15 | CONTACT_API float SegmentRectangleSqrDist(const Segment& segment, const Rectangle3& rectangle, float* t=null, float* u=null, float* v=null); 16 | 17 | #endif // CTCSEGMENTRECTANGLEDISTANCE_H 18 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/IceMaths/IceEigen.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * This file contains code for eigen vectors & eigen values. Original code from Numerical Recipes in C. 4 | * \file IceEigen.h 5 | * \author Pierre Terdiman 6 | * \date January, 29, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef ICEEIGEN_H 13 | #define ICEEIGEN_H 14 | 15 | FUNCTION ICEMATHS_API int Eigen(Matrix3x3& vout, Point& dout, const Matrix3x3& mat); 16 | FUNCTION ICEMATHS_API bool EigenVectors(const Matrix3x3& M, Matrix3x3& V, Point& d); 17 | 18 | #endif // ICEEIGEN_H 19 | 20 | -------------------------------------------------------------------------------- /WFC/Media/#Shaders/RenderModel_SimpleShader1_ps.h: -------------------------------------------------------------------------------- 1 | #version 130 2 | 3 | uniform vec3 parallelLightDir; 4 | //****varying vec3 varyPos; 5 | 6 | void main() 7 | { 8 | // gl_FragColor = gl_Color; 9 | vec3 normal = normalize(gl_TexCoord[0].xyz); 10 | // vec3 normal = gl_TexCoord[2].xyz; 11 | // if(dot(normal, gl_TexCoord[1].xyz) > 0) 12 | // { 13 | // normal.xyz *= -1; 14 | // } 15 | // gl_FragColor = vec4(normal, gl_Color.w); 16 | // return; 17 | 18 | //**** vec3 dx = dFdx(varyPos.xyz); 19 | //**** vec3 dy = dFdy(varyPos.xyz); 20 | //**** normal = normalize(cross(dx, dy)); 21 | 22 | 23 | float diffuse = (0.3 + 0.7 * max(dot(normal, -parallelLightDir),0.0)); 24 | // float diffuse = (0.7 * max(dot(normal, -parallelLightDir),0.0)); 25 | // float diffuse = max(dot(normal, -parallelLightDir), 0.0); 26 | 27 | diffuse = clamp(diffuse, 0.0, 1.0); 28 | 29 | vec4 color = gl_Color * diffuse; 30 | 31 | // float diffuse2 = (0.7 * max(dot(normal, parallelLightDir),0.0)); 32 | // diffuse2 = clamp(diffuse2, 0.0, 1.0); 33 | // vec4 color2 = vec4(1,0,0,0) * diffuse2; 34 | // color += color2; 35 | 36 | gl_FragColor = vec4(color.xyz, gl_Color.w); 37 | } 38 | -------------------------------------------------------------------------------- /WFC/Src/Ice/APIs/Ice/Contact/CTC_PointRectangleDistance.h: -------------------------------------------------------------------------------- 1 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 2 | /** 3 | * Contains code for point-rectangle distance 4 | * \file CTC_PointRectangleDistance.h 5 | * \author Pierre Terdiman 6 | * \date January, 13, 2000 7 | */ 8 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 9 | 10 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 11 | // Include Guard 12 | #ifndef CTCPOINTRECTANGLEDISTANCE_H 13 | #define CTCPOINTRECTANGLEDISTANCE_H 14 | 15 | // Point-rectangle squared distance 16 | CONTACT_API float PointRectangleSqrDist(const Point& p, const Rectangle3& rectangle, float* s=null, float* t=null); 17 | 18 | #endif // CTCPOINTRECTANGLEDISTANCE_H 19 | --------------------------------------------------------------------------------