shattered_ogrerb 0.5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shattered_ogrerb.rb +17 -0
- data/lib/shattered_ogrerb/base.rb +28 -0
- data/lib/shattered_ogrerb/camera.rb +6 -0
- data/lib/shattered_ogrerb/key_manager.rb +54 -0
- data/lib/shattered_ogrerb/light.rb +5 -0
- data/lib/shattered_ogrerb/mesh_instance.rb +92 -0
- data/lib/shattered_ogrerb/rmaterial.rb +86 -0
- data/lib/shattered_ogrerb/vector.rb +211 -0
- data/vendor/Ogre/OIS.dll +0 -0
- data/vendor/Ogre/OgreGUIRenderer.dll +0 -0
- data/vendor/Ogre/OgreMain.dll +0 -0
- data/vendor/Ogre/Plugin_BSPSceneManager.dll +0 -0
- data/vendor/Ogre/Plugin_CgProgramManager.dll +0 -0
- data/vendor/Ogre/Plugin_OctreeSceneManager.dll +0 -0
- data/vendor/Ogre/Plugin_ParticleFX.dll +0 -0
- data/vendor/Ogre/RenderSystem_Direct3D9.dll +0 -0
- data/vendor/Ogre/RenderSystem_GL.dll +0 -0
- data/vendor/Ogre/cg.dll +0 -0
- data/vendor/Ogre/plugins.cfg +9 -0
- data/vendor/ogrerb/MIT_LICENCE +19 -0
- data/vendor/ogrerb/README +79 -0
- data/vendor/ogrerb/Rakefile +220 -0
- data/vendor/ogrerb/build/navi/extconf.rb +53 -0
- data/vendor/ogrerb/build/ogre/extconf.rb +50 -0
- data/vendor/ogrerb/build/ois/extconf.rb +48 -0
- data/vendor/ogrerb/doc_src/ogre.rb +152 -0
- data/vendor/ogrerb/doc_src/ois.rb +67 -0
- data/vendor/ogrerb/lib/constants.rb +35 -0
- data/vendor/ogrerb/lib/ogre.dll +0 -0
- data/vendor/ogrerb/lib/ruby_ois.dll +0 -0
- data/vendor/ogrerb/navi/Navi.i +5 -0
- data/vendor/ogrerb/navi/NaviData.i +18 -0
- data/vendor/ogrerb/navi/NaviManager.i +5 -0
- data/vendor/ogrerb/navi/NaviProxies.i +7 -0
- data/vendor/ogrerb/navi/lib/Navi.lib +0 -0
- data/vendor/ogrerb/navi/lib/Navi_d.lib +0 -0
- data/vendor/ogrerb/navi/lib/llmozlib.lib +0 -0
- data/vendor/ogrerb/navi/lib/llmozlib_d.lib +0 -0
- data/vendor/ogrerb/navi/navi_rb.i +53 -0
- data/vendor/ogrerb/navi/std_multimap.i +581 -0
- data/vendor/ogrerb/ogre.rb +23 -0
- data/vendor/ogrerb/ogre/Application.i +59 -0
- data/vendor/ogrerb/ogre/ApplicationFrameListener.i +67 -0
- data/vendor/ogrerb/ogre/ExampleApplication.i +7 -0
- data/vendor/ogrerb/ogre/ExampleFrameListener.i +7 -0
- data/vendor/ogrerb/ogre/OgreAlignedAllocator.i +5 -0
- data/vendor/ogrerb/ogre/OgreAnimable.i +5 -0
- data/vendor/ogrerb/ogre/OgreAnimation.i +5 -0
- data/vendor/ogrerb/ogre/OgreAnimationState.i +9 -0
- data/vendor/ogrerb/ogre/OgreAnimationTrack.i +5 -0
- data/vendor/ogrerb/ogre/OgreAny.i +5 -0
- data/vendor/ogrerb/ogre/OgreArchive.i +5 -0
- data/vendor/ogrerb/ogre/OgreArchiveFactory.i +5 -0
- data/vendor/ogrerb/ogre/OgreArchiveManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreAutoParamDataSource.i +5 -0
- data/vendor/ogrerb/ogre/OgreAxisAlignedBox.i +5 -0
- data/vendor/ogrerb/ogre/OgreBillboard.i +5 -0
- data/vendor/ogrerb/ogre/OgreBillboardChain.i +11 -0
- data/vendor/ogrerb/ogre/OgreBillboardParticleRenderer.i +5 -0
- data/vendor/ogrerb/ogre/OgreBillboardSet.i +5 -0
- data/vendor/ogrerb/ogre/OgreBitwise.i +5 -0
- data/vendor/ogrerb/ogre/OgreBlendMode.i +5 -0
- data/vendor/ogrerb/ogre/OgreBone.i +5 -0
- data/vendor/ogrerb/ogre/OgreBorderPanelOverlayElement.i +5 -0
- data/vendor/ogrerb/ogre/OgreCamera.i +5 -0
- data/vendor/ogrerb/ogre/OgreCodec.i +5 -0
- data/vendor/ogrerb/ogre/OgreColourValue.i +5 -0
- data/vendor/ogrerb/ogre/OgreCommon.i +33 -0
- data/vendor/ogrerb/ogre/OgreCompiler2Pass.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositionPass.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositionTargetPass.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositionTechnique.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositor.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositorChain.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositorInstance.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositorManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositorScriptCompiler.i +5 -0
- data/vendor/ogrerb/ogre/OgreCompositorSerializer.i +5 -0
- data/vendor/ogrerb/ogre/OgreConfig.i +5 -0
- data/vendor/ogrerb/ogre/OgreConfigDialog.i +5 -0
- data/vendor/ogrerb/ogre/OgreConfigFile.i +13 -0
- data/vendor/ogrerb/ogre/OgreConfigOptionMap.i +5 -0
- data/vendor/ogrerb/ogre/OgreController.i +5 -0
- data/vendor/ogrerb/ogre/OgreControllerManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreConvexBody.i +5 -0
- data/vendor/ogrerb/ogre/OgreDDSCodec.i +5 -0
- data/vendor/ogrerb/ogre/OgreDataStream.i +9 -0
- data/vendor/ogrerb/ogre/OgreDefaultHardwareBufferManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreDynLib.i +5 -0
- data/vendor/ogrerb/ogre/OgreDynLibManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreEdgeListBuilder.i +5 -0
- data/vendor/ogrerb/ogre/OgreEntity.i +5 -0
- data/vendor/ogrerb/ogre/OgreErrorDialog.i +5 -0
- data/vendor/ogrerb/ogre/OgreException.i +5 -0
- data/vendor/ogrerb/ogre/OgreExternalTextureSource.i +5 -0
- data/vendor/ogrerb/ogre/OgreExternalTextureSourceManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreFactoryObj.i +5 -0
- data/vendor/ogrerb/ogre/OgreFileSystem.i +5 -0
- data/vendor/ogrerb/ogre/OgreFont.i +5 -0
- data/vendor/ogrerb/ogre/OgreFontManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreFrameListener.i +12 -0
- data/vendor/ogrerb/ogre/OgreFreeImageCodec.i +5 -0
- data/vendor/ogrerb/ogre/OgreFrustum.i +5 -0
- data/vendor/ogrerb/ogre/OgreGpuProgram.i +5 -0
- data/vendor/ogrerb/ogre/OgreGpuProgramManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreGpuProgramUsage.i +5 -0
- data/vendor/ogrerb/ogre/OgreHardwareBuffer.i +5 -0
- data/vendor/ogrerb/ogre/OgreHardwareBufferManager.i +9 -0
- data/vendor/ogrerb/ogre/OgreHardwareIndexBuffer.i +9 -0
- data/vendor/ogrerb/ogre/OgreHardwareOcclusionQuery.i +5 -0
- data/vendor/ogrerb/ogre/OgreHardwarePixelBuffer.i +9 -0
- data/vendor/ogrerb/ogre/OgreHardwareVertexBuffer.i +10 -0
- data/vendor/ogrerb/ogre/OgreHighLevelGpuProgram.i +5 -0
- data/vendor/ogrerb/ogre/OgreHighLevelGpuProgramManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreImage.i +5 -0
- data/vendor/ogrerb/ogre/OgreImageCodec.i +5 -0
- data/vendor/ogrerb/ogre/OgreInstancedGeometry.i +5 -0
- data/vendor/ogrerb/ogre/OgreIteratorWrappers.i +5 -0
- data/vendor/ogrerb/ogre/OgreKeyFrame.i +7 -0
- data/vendor/ogrerb/ogre/OgreLight.i +5 -0
- data/vendor/ogrerb/ogre/OgreLog.i +5 -0
- data/vendor/ogrerb/ogre/OgreLogManager.i +9 -0
- data/vendor/ogrerb/ogre/OgreManualObject.i +5 -0
- data/vendor/ogrerb/ogre/OgreMaterial.i +9 -0
- data/vendor/ogrerb/ogre/OgreMaterialManager.i +22 -0
- data/vendor/ogrerb/ogre/OgreMaterialScriptCompiler.i +5 -0
- data/vendor/ogrerb/ogre/OgreMaterialSerializer.i +5 -0
- data/vendor/ogrerb/ogre/OgreMath.i +48 -0
- data/vendor/ogrerb/ogre/OgreMatrix3.i +5 -0
- data/vendor/ogrerb/ogre/OgreMatrix4.i +5 -0
- data/vendor/ogrerb/ogre/OgreMemoryMacros.i +5 -0
- data/vendor/ogrerb/ogre/OgreMemoryManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreMesh.i +11 -0
- data/vendor/ogrerb/ogre/OgreMeshFileFormat.i +5 -0
- data/vendor/ogrerb/ogre/OgreMeshManager.i +9 -0
- data/vendor/ogrerb/ogre/OgreMeshSerializer.i +5 -0
- data/vendor/ogrerb/ogre/OgreMeshSerializerImpl.i +5 -0
- data/vendor/ogrerb/ogre/OgreMovableObject.i +46 -0
- data/vendor/ogrerb/ogre/OgreMovablePlane.i +5 -0
- data/vendor/ogrerb/ogre/OgreNoMemoryMacros.i +5 -0
- data/vendor/ogrerb/ogre/OgreNode.i +11 -0
- data/vendor/ogrerb/ogre/OgreNumerics.i +5 -0
- data/vendor/ogrerb/ogre/OgreOverlay.i +5 -0
- data/vendor/ogrerb/ogre/OgreOverlayContainer.i +5 -0
- data/vendor/ogrerb/ogre/OgreOverlayElement.i +5 -0
- data/vendor/ogrerb/ogre/OgreOverlayElementCommands.i +5 -0
- data/vendor/ogrerb/ogre/OgreOverlayElementFactory.i +5 -0
- data/vendor/ogrerb/ogre/OgreOverlayManager.i +9 -0
- data/vendor/ogrerb/ogre/OgrePanelOverlayElement.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticle.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticleAffector.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticleAffectorFactory.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticleEmitter.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticleEmitterCommands.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticleEmitterFactory.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticleIterator.i +5 -0
- data/vendor/ogrerb/ogre/OgreParticleSystem.i +9 -0
- data/vendor/ogrerb/ogre/OgreParticleSystemManager.i +9 -0
- data/vendor/ogrerb/ogre/OgreParticleSystemRenderer.i +9 -0
- data/vendor/ogrerb/ogre/OgrePass.i +10 -0
- data/vendor/ogrerb/ogre/OgrePatchMesh.i +11 -0
- data/vendor/ogrerb/ogre/OgrePatchSurface.i +5 -0
- data/vendor/ogrerb/ogre/OgrePixelFormat.i +5 -0
- data/vendor/ogrerb/ogre/OgrePlane.i +5 -0
- data/vendor/ogrerb/ogre/OgrePlaneBoundedVolume.i +5 -0
- data/vendor/ogrerb/ogre/OgrePlatform.i +5 -0
- data/vendor/ogrerb/ogre/OgrePlugin.i +5 -0
- data/vendor/ogrerb/ogre/OgrePolygon.i +5 -0
- data/vendor/ogrerb/ogre/OgrePose.i +5 -0
- data/vendor/ogrerb/ogre/OgrePredefinedControllers.i +5 -0
- data/vendor/ogrerb/ogre/OgrePrefabFactory.i +5 -0
- data/vendor/ogrerb/ogre/OgrePrerequisites.i +5 -0
- data/vendor/ogrerb/ogre/OgreProfiler.i +5 -0
- data/vendor/ogrerb/ogre/OgreProgressiveMesh.i +5 -0
- data/vendor/ogrerb/ogre/OgreProxies.i +10 -0
- data/vendor/ogrerb/ogre/OgreQuaternion.i +5 -0
- data/vendor/ogrerb/ogre/OgreRadixSort.i +5 -0
- data/vendor/ogrerb/ogre/OgreRay.i +5 -0
- data/vendor/ogrerb/ogre/OgreRectangle.i +5 -0
- data/vendor/ogrerb/ogre/OgreRectangle2D.i +5 -0
- data/vendor/ogrerb/ogre/OgreRenderOperation.i +5 -0
- data/vendor/ogrerb/ogre/OgreRenderQueue.i +10 -0
- data/vendor/ogrerb/ogre/OgreRenderQueueInvocation.i +5 -0
- data/vendor/ogrerb/ogre/OgreRenderQueueListener.i +5 -0
- data/vendor/ogrerb/ogre/OgreRenderQueueSortingGrouping.i +5 -0
- data/vendor/ogrerb/ogre/OgreRenderSystem.i +12 -0
- data/vendor/ogrerb/ogre/OgreRenderSystemCapabilities.i +7 -0
- data/vendor/ogrerb/ogre/OgreRenderTarget.i +27 -0
- data/vendor/ogrerb/ogre/OgreRenderTargetListener.i +7 -0
- data/vendor/ogrerb/ogre/OgreRenderTexture.i +5 -0
- data/vendor/ogrerb/ogre/OgreRenderWindow.i +9 -0
- data/vendor/ogrerb/ogre/OgreRenderable.i +5 -0
- data/vendor/ogrerb/ogre/OgreResource.i +68 -0
- data/vendor/ogrerb/ogre/OgreResourceBackgroundQueue.i +5 -0
- data/vendor/ogrerb/ogre/OgreResourceGroupManager.i +17 -0
- data/vendor/ogrerb/ogre/OgreResourceManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreRibbonTrail.i +5 -0
- data/vendor/ogrerb/ogre/OgreRoot.i +9 -0
- data/vendor/ogrerb/ogre/OgreRotationalSpline.i +5 -0
- data/vendor/ogrerb/ogre/OgreSceneManager.i +17 -0
- data/vendor/ogrerb/ogre/OgreSceneManagerEnumerator.i +8 -0
- data/vendor/ogrerb/ogre/OgreSceneNode.i +9 -0
- data/vendor/ogrerb/ogre/OgreSceneQuery.i +5 -0
- data/vendor/ogrerb/ogre/OgreScriptLoader.i +5 -0
- data/vendor/ogrerb/ogre/OgreSearchOps.i +5 -0
- data/vendor/ogrerb/ogre/OgreSerializer.i +5 -0
- data/vendor/ogrerb/ogre/OgreShadowCameraSetup.i +5 -0
- data/vendor/ogrerb/ogre/OgreShadowCameraSetupFocused.i +5 -0
- data/vendor/ogrerb/ogre/OgreShadowCameraSetupLiSPSM.i +5 -0
- data/vendor/ogrerb/ogre/OgreShadowCameraSetupPlaneOptimal.i +5 -0
- data/vendor/ogrerb/ogre/OgreShadowCaster.i +5 -0
- data/vendor/ogrerb/ogre/OgreShadowTextureManager.i +7 -0
- data/vendor/ogrerb/ogre/OgreShadowVolumeExtrudeProgram.i +5 -0
- data/vendor/ogrerb/ogre/OgreSharedPtr.i +5 -0
- data/vendor/ogrerb/ogre/OgreSimpleRenderable.i +5 -0
- data/vendor/ogrerb/ogre/OgreSimpleSpline.i +5 -0
- data/vendor/ogrerb/ogre/OgreSingleton.i +9 -0
- data/vendor/ogrerb/ogre/OgreSkeleton.i +5 -0
- data/vendor/ogrerb/ogre/OgreSkeletonFileFormat.i +5 -0
- data/vendor/ogrerb/ogre/OgreSkeletonInstance.i +5 -0
- data/vendor/ogrerb/ogre/OgreSkeletonManager.i +5 -0
- data/vendor/ogrerb/ogre/OgreSkeletonSerializer.i +5 -0
- data/vendor/ogrerb/ogre/OgreSphere.i +5 -0
- data/vendor/ogrerb/ogre/OgreSpotShadowFadePng.i +5 -0
- data/vendor/ogrerb/ogre/OgreStableHeaders.i +5 -0
- data/vendor/ogrerb/ogre/OgreStaticFaceGroup.i +5 -0
- data/vendor/ogrerb/ogre/OgreStaticGeometry.i +5 -0
- data/vendor/ogrerb/ogre/OgreStdHeaders.i +5 -0
- data/vendor/ogrerb/ogre/OgreString.i +5 -0
- data/vendor/ogrerb/ogre/OgreStringConverter.i +5 -0
- data/vendor/ogrerb/ogre/OgreStringInterface.i +5 -0
- data/vendor/ogrerb/ogre/OgreStringVector.i +5 -0
- data/vendor/ogrerb/ogre/OgreSubEntity.i +5 -0
- data/vendor/ogrerb/ogre/OgreSubMesh.i +5 -0
- data/vendor/ogrerb/ogre/OgreTagPoint.i +5 -0
- data/vendor/ogrerb/ogre/OgreTechnique.i +5 -0
- data/vendor/ogrerb/ogre/OgreTextAreaOverlayElement.i +5 -0
- data/vendor/ogrerb/ogre/OgreTexture.i +9 -0
- data/vendor/ogrerb/ogre/OgreTextureManager.i +12 -0
- data/vendor/ogrerb/ogre/OgreTextureUnitState.i +12 -0
- data/vendor/ogrerb/ogre/OgreTimer.i +6 -0
- data/vendor/ogrerb/ogre/OgreUTFString.i +5 -0
- data/vendor/ogrerb/ogre/OgreUnifiedHighLevelGpuProgram.i +5 -0
- data/vendor/ogrerb/ogre/OgreUserDefinedObject.i +5 -0
- data/vendor/ogrerb/ogre/OgreVector2.i +5 -0
- data/vendor/ogrerb/ogre/OgreVector3.i +30 -0
- data/vendor/ogrerb/ogre/OgreVector4.i +5 -0
- data/vendor/ogrerb/ogre/OgreVertexBoneAssignment.i +5 -0
- data/vendor/ogrerb/ogre/OgreVertexIndexData.i +5 -0
- data/vendor/ogrerb/ogre/OgreViewport.i +5 -0
- data/vendor/ogrerb/ogre/OgreWindowEventUtilities.i +7 -0
- data/vendor/ogrerb/ogre/OgreWireBoundingBox.i +5 -0
- data/vendor/ogrerb/ogre/OgreZip.i +5 -0
- data/vendor/ogrerb/ogre/ogre_rb.i +343 -0
- data/vendor/ogrerb/ogre/std_multimap.i +581 -0
- data/vendor/ogrerb/ois/OISProxies.i +9 -0
- data/vendor/ogrerb/ois/OISRenames.i +11 -0
- data/vendor/ogrerb/ois/ois.i +135 -0
- data/vendor/ogrerb/ois/std_multimap.i +581 -0
- data/vendor/ogrerb/platform.rb +23 -0
- data/vendor/ogrerb/samples/application.rb +146 -0
- data/vendor/ogrerb/samples/application_frame_listener.rb +302 -0
- data/vendor/ogrerb/samples/application_loading_bar.rb +115 -0
- data/vendor/ogrerb/samples/bsp.rb +74 -0
- data/vendor/ogrerb/samples/cg.dll +0 -0
- data/vendor/ogrerb/samples/js3250.dll +0 -0
- data/vendor/ogrerb/samples/lighting.rb +136 -0
- data/vendor/ogrerb/samples/media/materials/scripts/CloudySky.material +17 -0
- data/vendor/ogrerb/samples/media/materials/scripts/Flare.material +17 -0
- data/vendor/ogrerb/samples/media/materials/scripts/Knot.material +14 -0
- data/vendor/ogrerb/samples/media/materials/scripts/MorningSkyBox.material +17 -0
- data/vendor/ogrerb/samples/media/materials/scripts/Ogre.material +119 -0
- data/vendor/ogrerb/samples/media/materials/scripts/Razor.material +14 -0
- data/vendor/ogrerb/samples/media/materials/scripts/Ribbon.material +19 -0
- data/vendor/ogrerb/samples/media/materials/scripts/RustySteel.material +14 -0
- data/vendor/ogrerb/samples/media/materials/scripts/SpaceSkyBox.material +17 -0
- data/vendor/ogrerb/samples/media/materials/scripts/SpaceSkyPlane.material +17 -0
- data/vendor/ogrerb/samples/media/materials/scripts/TextureEffects.material +15 -0
- data/vendor/ogrerb/samples/media/materials/scripts/dragon.material +42 -0
- data/vendor/ogrerb/samples/media/materials/scripts/smoke.material +18 -0
- data/vendor/ogrerb/samples/media/materials/textures/GreenSkin.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/MtlPlat2.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/RustedMetal.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/RustySteel.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/Water02.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/WeirdEye.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/clouds.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/cursor.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/dirt01.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/flare.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/ogreborder.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/ogreborderUp.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/ribbonband.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/smoke.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/smokecolors.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/spacesky.jpg +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/spheremap.png +0 -0
- data/vendor/ogrerb/samples/media/materials/textures/texmap2.jpg +0 -0
- data/vendor/ogrerb/samples/media/models/knot.mesh +0 -0
- data/vendor/ogrerb/samples/media/models/ogrehead.mesh +0 -0
- data/vendor/ogrerb/samples/media/models/razor.mesh +0 -0
- data/vendor/ogrerb/samples/media/packs/OgreCore.zip +0 -0
- data/vendor/ogrerb/samples/media/packs/chiropteraDM.pk3 +0 -0
- data/vendor/ogrerb/samples/media/packs/chiropteraDM.txt +99 -0
- data/vendor/ogrerb/samples/media/packs/cubemap.zip +0 -0
- data/vendor/ogrerb/samples/media/packs/cubemapsJS.zip +0 -0
- data/vendor/ogrerb/samples/media/packs/dragon.zip +0 -0
- data/vendor/ogrerb/samples/media/packs/skybox.zip +0 -0
- data/vendor/ogrerb/samples/media/particles/smoke.particle +43 -0
- data/vendor/ogrerb/samples/navi/Media/NaviDemo.material +60 -0
- data/vendor/ogrerb/samples/navi/Media/OgreCore.zip +0 -0
- data/vendor/ogrerb/samples/navi/Media/cerulean.jpg +0 -0
- data/vendor/ogrerb/samples/navi/Media/clouds.jpg +0 -0
- data/vendor/ogrerb/samples/navi/Media/controlsNaviMask.png +0 -0
- data/vendor/ogrerb/samples/navi/Media/grass.jpg +0 -0
- data/vendor/ogrerb/samples/navi/Media/knot.mesh +0 -0
- data/vendor/ogrerb/samples/navi/Media/testNaviMask.png +0 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/Navi.js +136 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/buttonBg.jpg +0 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/controls.html +303 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/knobBg.jpg +0 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/moo.dropdownmenu.js +87 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/mootools.v1.1.js +6964 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/naviLogo.html +32 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/naviLogo.png +0 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/pageBg.jpg +0 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/sliderBg.jpg +0 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/test.html +5 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/welcome.html +36 -0
- data/vendor/ogrerb/samples/navi/NaviLocal/welcome.png +0 -0
- data/vendor/ogrerb/samples/navi/chrome/chromelist.txt +597 -0
- data/vendor/ogrerb/samples/navi/chrome/classic.jar +0 -0
- data/vendor/ogrerb/samples/navi/chrome/classic.manifest +4 -0
- data/vendor/ogrerb/samples/navi/chrome/comm.jar +0 -0
- data/vendor/ogrerb/samples/navi/chrome/comm.manifest +2 -0
- data/vendor/ogrerb/samples/navi/chrome/en-US.jar +0 -0
- data/vendor/ogrerb/samples/navi/chrome/en-US.manifest +9 -0
- data/vendor/ogrerb/samples/navi/chrome/toolkit.jar +0 -0
- data/vendor/ogrerb/samples/navi/chrome/toolkit.manifest +6 -0
- data/vendor/ogrerb/samples/navi/components/FeedProcessor.js +1825 -0
- data/vendor/ogrerb/samples/navi/components/alerts.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/appshell.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/appstartup.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/auth.dll +0 -0
- data/vendor/ogrerb/samples/navi/components/autocomplete.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/autoconfig.dll +0 -0
- data/vendor/ogrerb/samples/navi/components/autoconfig.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/caps.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/chardet.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/chrome.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/commandhandler.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/commandlines.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/composer.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/compreg.dat +1474 -0
- data/vendor/ogrerb/samples/navi/components/content_base.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/content_html.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/content_htmldoc.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/content_xmldoc.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/content_xslt.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/content_xtf.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/directory.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/docshell_base.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_base.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_canvas.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_core.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_css.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_events.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_html.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_loadsave.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_range.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_sidebar.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_storage.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_stylesheets.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_svg.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_traversal.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_views.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_xbl.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_xpath.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/dom_xul.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/downloads.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/editor.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/embed_base.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/extensions.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/exthandler.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/fastfind.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/feeds.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/find.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/gfx.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/gksvgrenderer.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/history.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/htmlparser.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/imglib2.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/inspector.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/intl.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/intlcmpt.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/jar.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/jsconsole-clhandler.js +170 -0
- data/vendor/ogrerb/samples/navi/components/jsconsole.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/jsdservice.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/layout_base.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/layout_printing.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/layout_xul.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/layout_xul_tree.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/locale.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/lwbrk.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/mimetype.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/mozbrwsr.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/mozfind.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_about.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_cache.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_cookie.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_data.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_dns.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_file.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_ftp.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_http.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_res.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_socket.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_strconv.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/necko_viewsource.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/nsCloseAllWindows.js +143 -0
- data/vendor/ogrerb/samples/navi/components/nsDefaultCLH.js +231 -0
- data/vendor/ogrerb/samples/navi/components/nsDictionary.js +148 -0
- data/vendor/ogrerb/samples/navi/components/nsExtensionManager.js +8497 -0
- data/vendor/ogrerb/samples/navi/components/nsHelperAppDlg.js +990 -0
- data/vendor/ogrerb/samples/navi/components/nsInterfaceInfoToIDL.js +590 -0
- data/vendor/ogrerb/samples/navi/components/nsKillAll.js +200 -0
- data/vendor/ogrerb/samples/navi/components/nsPostUpdateWin.js +711 -0
- data/vendor/ogrerb/samples/navi/components/nsProgressDialog.js +949 -0
- data/vendor/ogrerb/samples/navi/components/nsProxyAutoConfig.js +396 -0
- data/vendor/ogrerb/samples/navi/components/nsResetPref.js +175 -0
- data/vendor/ogrerb/samples/navi/components/nsURLFormatter.js +179 -0
- data/vendor/ogrerb/samples/navi/components/nsUpdateService.js +3074 -0
- data/vendor/ogrerb/samples/navi/components/nsXULAppInstall.js +301 -0
- data/vendor/ogrerb/samples/navi/components/nsXmlRpcClient.js +1038 -0
- data/vendor/ogrerb/samples/navi/components/oji.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/passwordmgr.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/pipboot.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/pipnss.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/plugin.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/pref.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/prefetch.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/profile.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/progressDlg.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/proxyObject.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/rdf.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/satchel.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/saxparser.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/shistory.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/storage.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/toolkitprofile.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/transformiix.dll +0 -0
- data/vendor/ogrerb/samples/navi/components/txmgr.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/txtsvc.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/uconv.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/unicharutil.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/universalchardet.dll +0 -0
- data/vendor/ogrerb/samples/navi/components/update.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/uriloader.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/urlformatter.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/webBrowser_core.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/webbrowserpersist.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/webshell_idls.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/websrvcs.dll +0 -0
- data/vendor/ogrerb/samples/navi/components/websrvcs.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/widget.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/windowds.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/windowwatcher.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xml-rpc.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xmlextras.dll +0 -0
- data/vendor/ogrerb/samples/navi/components/xpcom_base.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpcom_components.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpcom_ds.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpcom_io.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpcom_obsolete.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpcom_thread.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpcom_xpti.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpconnect.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpinstall.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xpti.dat +1424 -0
- data/vendor/ogrerb/samples/navi/components/xulapp.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xulapp_setup.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xuldoc.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xulrunner.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xultmpl.xpt +0 -0
- data/vendor/ogrerb/samples/navi/components/xulutil.dll +0 -0
- data/vendor/ogrerb/samples/navi/controlsNaviMask.png +0 -0
- data/vendor/ogrerb/samples/navi/greprefs/all.js +1344 -0
- data/vendor/ogrerb/samples/navi/greprefs/security-prefs.js +69 -0
- data/vendor/ogrerb/samples/navi/greprefs/xpinstall.js +2 -0
- data/vendor/ogrerb/samples/navi/navi_demo.rb +207 -0
- data/vendor/ogrerb/samples/navi/plugins.cfg +10 -0
- data/vendor/ogrerb/samples/navi/plugins/NPSWF32.dll +0 -0
- data/vendor/ogrerb/samples/navi/plugins/flashplayer.xpt +0 -0
- data/vendor/ogrerb/samples/navi/plugins/npnul32.dll +0 -0
- data/vendor/ogrerb/samples/navi/res/EditorOverride.css +359 -0
- data/vendor/ogrerb/samples/navi/res/Thumbs.db +0 -0
- data/vendor/ogrerb/samples/navi/res/arrow.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/arrowd.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/bloatcycle.html +40 -0
- data/vendor/ogrerb/samples/navi/res/broken-image.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/charsetData.properties +199 -0
- data/vendor/ogrerb/samples/navi/res/charsetalias.properties +517 -0
- data/vendor/ogrerb/samples/navi/res/cmessage.txt +1 -0
- data/vendor/ogrerb/samples/navi/res/dtd/xhtml11.dtd +300 -0
- data/vendor/ogrerb/samples/navi/res/entityTables/html40Latin1.properties +146 -0
- data/vendor/ogrerb/samples/navi/res/entityTables/html40Special.properties +69 -0
- data/vendor/ogrerb/samples/navi/res/entityTables/html40Symbols.properties +164 -0
- data/vendor/ogrerb/samples/navi/res/entityTables/htmlEntityVersions.properties +50 -0
- data/vendor/ogrerb/samples/navi/res/entityTables/transliterate.properties +2367 -0
- data/vendor/ogrerb/samples/navi/res/fonts/fontEncoding.properties +127 -0
- data/vendor/ogrerb/samples/navi/res/fonts/fontNameMap.properties +134 -0
- data/vendor/ogrerb/samples/navi/res/forms.css +531 -0
- data/vendor/ogrerb/samples/navi/res/grabber.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/hiddenWindow.html +1 -0
- data/vendor/ogrerb/samples/navi/res/html.css +478 -0
- data/vendor/ogrerb/samples/navi/res/html/Thumbs.db +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-audio.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-binary.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-find.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-image.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-menu.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-movie.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-sound.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-telnet.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-text.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/html/gopher-unknown.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/langGroups.properties +236 -0
- data/vendor/ogrerb/samples/navi/res/language.properties +259 -0
- data/vendor/ogrerb/samples/navi/res/loading-image.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/quirk.css +282 -0
- data/vendor/ogrerb/samples/navi/res/samples/Anieyes.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/samples/Thumbs.db +0 -0
- data/vendor/ogrerb/samples/navi/res/samples/aform.css +69 -0
- data/vendor/ogrerb/samples/navi/res/samples/beeptest.html +18 -0
- data/vendor/ogrerb/samples/navi/res/samples/bform.css +45 -0
- data/vendor/ogrerb/samples/navi/res/samples/bg.jpg +0 -0
- data/vendor/ogrerb/samples/navi/res/samples/cform.css +40 -0
- data/vendor/ogrerb/samples/navi/res/samples/checkboxTest.xul +47 -0
- data/vendor/ogrerb/samples/navi/res/samples/demoform.css +97 -0
- data/vendor/ogrerb/samples/navi/res/samples/find.html +97 -0
- data/vendor/ogrerb/samples/navi/res/samples/gear1.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/samples/image_props.html +58 -0
- data/vendor/ogrerb/samples/navi/res/samples/mozform.css +256 -0
- data/vendor/ogrerb/samples/navi/res/samples/printsetup.html +175 -0
- data/vendor/ogrerb/samples/navi/res/samples/raptor.jpg +0 -0
- data/vendor/ogrerb/samples/navi/res/samples/rock_gra.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/samples/scrollbarTest1.xul +66 -0
- data/vendor/ogrerb/samples/navi/res/samples/scrollbarTest2.xul +19 -0
- data/vendor/ogrerb/samples/navi/res/samples/sliderTest1.xul +14 -0
- data/vendor/ogrerb/samples/navi/res/samples/soundtest.html +20 -0
- data/vendor/ogrerb/samples/navi/res/samples/test.wav +0 -0
- data/vendor/ogrerb/samples/navi/res/samples/test0.html +220 -0
- data/vendor/ogrerb/samples/navi/res/samples/test1.html +84 -0
- data/vendor/ogrerb/samples/navi/res/samples/test10.html +16 -0
- data/vendor/ogrerb/samples/navi/res/samples/test11.html +42 -0
- data/vendor/ogrerb/samples/navi/res/samples/test12.html +79 -0
- data/vendor/ogrerb/samples/navi/res/samples/test13.html +126 -0
- data/vendor/ogrerb/samples/navi/res/samples/test14.html +5 -0
- data/vendor/ogrerb/samples/navi/res/samples/test15.html +5 -0
- data/vendor/ogrerb/samples/navi/res/samples/test16.html +124 -0
- data/vendor/ogrerb/samples/navi/res/samples/test2.html +41 -0
- data/vendor/ogrerb/samples/navi/res/samples/test3.html +126 -0
- data/vendor/ogrerb/samples/navi/res/samples/test4.html +335 -0
- data/vendor/ogrerb/samples/navi/res/samples/test5.html +199 -0
- data/vendor/ogrerb/samples/navi/res/samples/test6.html +335 -0
- data/vendor/ogrerb/samples/navi/res/samples/test7.html +11 -0
- data/vendor/ogrerb/samples/navi/res/samples/test8-1.html +66 -0
- data/vendor/ogrerb/samples/navi/res/samples/test8.html +662 -0
- data/vendor/ogrerb/samples/navi/res/samples/test8dom.html +64 -0
- data/vendor/ogrerb/samples/navi/res/samples/test8sca.html +308 -0
- data/vendor/ogrerb/samples/navi/res/samples/test8siz.html +224 -0
- data/vendor/ogrerb/samples/navi/res/samples/test8tab.html +9 -0
- data/vendor/ogrerb/samples/navi/res/samples/test9.html +12 -0
- data/vendor/ogrerb/samples/navi/res/samples/test9a.html +39 -0
- data/vendor/ogrerb/samples/navi/res/samples/test9b.html +16 -0
- data/vendor/ogrerb/samples/navi/res/samples/test_ed.html +5 -0
- data/vendor/ogrerb/samples/navi/res/samples/test_form.html +34 -0
- data/vendor/ogrerb/samples/navi/res/samples/test_gfx.html +75 -0
- data/vendor/ogrerb/samples/navi/res/samples/test_lbox.html +100 -0
- data/vendor/ogrerb/samples/navi/res/samples/test_pr.html +87 -0
- data/vendor/ogrerb/samples/navi/res/samples/test_weight.html +45 -0
- data/vendor/ogrerb/samples/navi/res/samples/toolbarTest1.xul +51 -0
- data/vendor/ogrerb/samples/navi/res/samples/treeTest1.css +62 -0
- data/vendor/ogrerb/samples/navi/res/samples/treeTest1.xul +110 -0
- data/vendor/ogrerb/samples/navi/res/samples/xulTest.css +130 -0
- data/vendor/ogrerb/samples/navi/res/svg.css +64 -0
- data/vendor/ogrerb/samples/navi/res/table-add-column-after-active.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-column-after-hover.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-column-after.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-column-before-active.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-column-before-hover.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-column-before.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-row-after-active.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-row-after-hover.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-row-after.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-row-before-active.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-row-before-hover.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-add-row-before.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-remove-column-active.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-remove-column-hover.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-remove-column.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-remove-row-active.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-remove-row-hover.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/table-remove-row.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/Thumbs.db +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anim.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims00.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims01.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims02.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims03.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims04.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims05.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims06.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims07.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims08.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims09.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims10.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims11.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims12.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims13.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims14.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims15.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims16.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims17.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims18.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims19.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims20.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims21.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims22.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims23.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims24.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims25.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims26.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims27.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims28.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/throbber/anims29.gif +0 -0
- data/vendor/ogrerb/samples/navi/res/ua.css +235 -0
- data/vendor/ogrerb/samples/navi/res/viewer.properties +1 -0
- data/vendor/ogrerb/samples/navi/res/viewsource.css +118 -0
- data/vendor/ogrerb/samples/navi/res/wincharset.properties +55 -0
- data/vendor/ogrerb/samples/navi/resources.cfg +14 -0
- data/vendor/ogrerb/samples/navi/testNaviMask.png +0 -0
- data/vendor/ogrerb/samples/plugins.cfg +11 -0
- data/vendor/ogrerb/samples/quake3settings.cfg +2 -0
- data/vendor/ogrerb/samples/render_to_texture.rb +159 -0
- data/vendor/ogrerb/samples/resources.cfg +14 -0
- data/vendor/ogrerb/samples/sky_box.rb +105 -0
- data/vendor/ogrerb/samples/sky_dome.rb +84 -0
- data/vendor/ogrerb/samples/sky_plane.rb +24 -0
- data/vendor/ogrerb/samples/smoke.rb +21 -0
- data/vendor/ogrerb/src_headers/ExampleApplication/ExampleApplication.h +266 -0
- data/vendor/ogrerb/src_headers/ExampleApplication/ExampleFrameListener.h +408 -0
- data/vendor/ogrerb/src_headers/ExampleApplication/ExampleLoadingBar.h +182 -0
- data/vendor/ogrerb/src_headers/OGRE/GLX/OgreConfigDialogImp.h +76 -0
- data/vendor/ogrerb/src_headers/OGRE/GLX/OgreErrorDialogImp.h +53 -0
- data/vendor/ogrerb/src_headers/OGRE/GLX/OgreTimerImp.h +63 -0
- data/vendor/ogrerb/src_headers/OGRE/Ogre.h +130 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAlignedAllocator.h +181 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAnimable.h +299 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAnimation.h +406 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAnimationState.h +229 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAnimationTrack.h +547 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAny.h +405 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreArchive.h +191 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreArchiveFactory.h +62 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreArchiveManager.h +130 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAutoParamDataSource.h +225 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreAxisAlignedBox.h +790 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBillboard.h +217 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBillboardChain.h +343 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBillboardParticleRenderer.h +250 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBillboardSet.h +841 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBitwise.h +323 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBlendMode.h +245 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBone.h +142 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreBorderPanelOverlayElement.h +344 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCamera.h +566 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCodec.h +133 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreColourValue.h +319 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCommon.h +425 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompiler2Pass.h +667 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositionPass.h +271 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositionTargetPass.h +153 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositionTechnique.h +146 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositor.h +179 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositorChain.h +208 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositorInstance.h +262 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositorManager.h +170 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositorScriptCompiler.h +186 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreCompositorSerializer.h +59 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreConfig.h +120 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreConfigDialog.h +50 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreConfigFile.h +102 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreConfigOptionMap.h +56 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreController.h +227 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreControllerManager.h +287 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreConvexBody.h +252 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreDDSCodec.h +90 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreDataStream.h +442 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreDefaultHardwareBufferManager.h +116 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreDynLib.h +116 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreDynLibManager.h +110 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreEdgeListBuilder.h +261 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreEntity.h +771 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreErrorDialog.h +50 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreException.h +341 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreExternalTextureSource.h +184 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreExternalTextureSourceManager.h +117 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreFactoryObj.h +65 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreFileSystem.h +111 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreFont.h +432 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreFontManager.h +93 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreFrameListener.h +106 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreFreeImageCodec.h +77 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreFrustum.h +590 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreGpuProgram.h +1632 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreGpuProgramManager.h +190 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreGpuProgramUsage.h +129 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHardwareBuffer.h +330 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHardwareBufferManager.h +399 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHardwareIndexBuffer.h +78 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHardwareOcclusionQuery.h +125 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHardwarePixelBuffer.h +198 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHardwareVertexBuffer.h +541 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHighLevelGpuProgram.h +185 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreHighLevelGpuProgramManager.h +146 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreImage.h +428 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreImageCodec.h +82 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreInstancedGeometry.h +833 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreIteratorWrappers.h +359 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreKeyFrame.h +248 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreLight.h +433 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreLog.h +149 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreLogManager.h +163 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreManualObject.h +513 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMaterial.h +680 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMaterialManager.h +242 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMaterialScriptCompiler.h +330 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMaterialSerializer.h +278 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMath.h +606 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMatrix3.h +306 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMatrix4.h +603 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMemoryMacros.h +69 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMemoryManager.h +422 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMesh.h +875 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMeshFileFormat.h +277 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMeshManager.h +431 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMeshSerializer.h +99 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMeshSerializerImpl.h +218 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMovableObject.h +530 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreMovablePlane.h +87 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreNoMemoryMacros.h +42 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreNode.h +727 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreNumerics.h +55 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreOverlay.h +285 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreOverlayContainer.h +145 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreOverlayElement.h +490 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreOverlayElementCommands.h +115 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreOverlayElementFactory.h +121 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreOverlayManager.h +235 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePanelOverlayElement.h +154 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticle.h +147 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleAffector.h +116 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleAffectorFactory.h +74 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleEmitter.h +506 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleEmitterCommands.h +200 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleEmitterFactory.h +77 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleIterator.h +61 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleSystem.h +878 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleSystemManager.h +389 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreParticleSystemRenderer.h +124 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePass.h +1321 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePatchMesh.h +152 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePatchSurface.h +233 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePixelFormat.h +473 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePlane.h +154 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePlaneBoundedVolume.h +128 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePlatform.h +224 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePlugin.h +132 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePolygon.h +130 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePose.h +111 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePredefinedControllers.h +285 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePrefabFactory.h +66 -0
- data/vendor/ogrerb/src_headers/OGRE/OgrePrerequisites.h +390 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreProfiler.h +415 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreProgressiveMesh.h +248 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreQuaternion.h +277 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRadixSort.h +322 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRay.h +115 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRectangle.h +69 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRectangle2D.h +79 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderOperation.h +84 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueue.h +256 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueueInvocation.h +218 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueueListener.h +89 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueueSortingGrouping.h +653 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderSystem.h +1255 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderSystemCapabilities.h +380 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderTarget.h +359 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderTargetListener.h +132 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderTexture.h +101 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderWindow.h +204 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRenderable.h +296 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreResource.h +415 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreResourceBackgroundQueue.h +453 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreResourceGroupManager.h +858 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreResourceManager.h +446 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRibbonTrail.h +224 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRoot.h +844 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreRotationalSpline.h +129 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSceneManager.h +2871 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSceneManagerEnumerator.h +221 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSceneNode.h +448 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSceneQuery.h +557 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreScriptLoader.h +89 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSearchOps.h +65 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSerializer.h +113 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetup.h +100 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetupFocused.h +281 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetupLiSPSM.h +226 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetupPlaneOptimal.h +81 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreShadowCaster.h +215 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreShadowTextureManager.h +145 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreShadowVolumeExtrudeProgram.h +233 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSharedPtr.h +244 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSimpleRenderable.h +98 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSimpleSpline.h +130 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSingleton.h +79 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSkeleton.h +519 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonFileFormat.h +102 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonInstance.h +156 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonManager.h +98 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonSerializer.h +117 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSphere.h +101 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSpotShadowFadePng.h +648 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreStableHeaders.h +80 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreStaticFaceGroup.h +134 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreStaticGeometry.h +748 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreStdHeaders.h +102 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreString.h +149 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreStringConverter.h +246 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreStringInterface.h +332 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreStringVector.h +45 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSubEntity.h +230 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreSubMesh.h +267 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreTagPoint.h +116 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreTechnique.h +488 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreTextAreaOverlayElement.h +247 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreTexture.h +414 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreTextureManager.h +398 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreTextureUnitState.h +1169 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreTimer.h +44 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreUTFString.h +2406 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreUnifiedHighLevelGpuProgram.h +168 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreUserDefinedObject.h +93 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreVector2.h +532 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreVector3.h +768 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreVector4.h +396 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreVertexBoneAssignment.h +56 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreVertexIndexData.h +286 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreViewport.h +331 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreWindowEventUtilities.h +151 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreWireBoundingBox.h +81 -0
- data/vendor/ogrerb/src_headers/OGRE/OgreZip.h +136 -0
- data/vendor/ogrerb/src_headers/OGRE/asm_math.h +367 -0
- data/vendor/ogrerb/src_headers/OIS/OIS.h +38 -0
- data/vendor/ogrerb/src_headers/OIS/OISConfig.h +49 -0
- data/vendor/ogrerb/src_headers/OIS/OISEffect.h +254 -0
- data/vendor/ogrerb/src_headers/OIS/OISEvents.h +43 -0
- data/vendor/ogrerb/src_headers/OIS/OISException.h +70 -0
- data/vendor/ogrerb/src_headers/OIS/OISForceFeedback.h +102 -0
- data/vendor/ogrerb/src_headers/OIS/OISInputManager.h +127 -0
- data/vendor/ogrerb/src_headers/OIS/OISInterface.h +47 -0
- data/vendor/ogrerb/src_headers/OIS/OISJoyStick.h +179 -0
- data/vendor/ogrerb/src_headers/OIS/OISKeyboard.h +310 -0
- data/vendor/ogrerb/src_headers/OIS/OISMouse.h +135 -0
- data/vendor/ogrerb/src_headers/OIS/OISObject.h +89 -0
- data/vendor/ogrerb/src_headers/OIS/OISPrereqs.h +170 -0
- data/vendor/ogrerb/src_headers/navi/Navi.h +121 -0
- data/vendor/ogrerb/src_headers/navi/NaviData.h +145 -0
- data/vendor/ogrerb/src_headers/navi/NaviEventListener.h +56 -0
- data/vendor/ogrerb/src_headers/navi/NaviManager.h +439 -0
- data/vendor/ogrerb/src_headers/navi/llmozlib.h +222 -0
- data/vendor/ogrerb/src_headers/wrappers/Application.h +61 -0
- data/vendor/ogrerb/src_headers/wrappers/ApplicationFrameListener.h +43 -0
- data/vendor/ogrerb/src_headers/wrappers/NaviProxies.h +15 -0
- data/vendor/ogrerb/src_headers/wrappers/OISProxies.h +58 -0
- data/vendor/ogrerb/src_headers/wrappers/OgreProxies.h +98 -0
- data/vendor/ogrerb/website/contact.html +43 -0
- data/vendor/ogrerb/website/docs.html +92 -0
- data/vendor/ogrerb/website/get.html +60 -0
- data/vendor/ogrerb/website/images/Thumbs.db +0 -0
- data/vendor/ogrerb/website/images/header.png +0 -0
- data/vendor/ogrerb/website/images/header.xcf +0 -0
- data/vendor/ogrerb/website/images/ogre3d.gif +0 -0
- data/vendor/ogrerb/website/images/redogrehead.png +0 -0
- data/vendor/ogrerb/website/images/ruby.png +0 -0
- data/vendor/ogrerb/website/images/sample.png +0 -0
- data/vendor/ogrerb/website/index.html +80 -0
- data/vendor/ogrerb/website/javascripts/prototype.js +3271 -0
- data/vendor/ogrerb/website/stylesheets/main.css +96 -0
- metadata +997 -0
@@ -0,0 +1,425 @@
|
|
1
|
+
/*
|
2
|
+
-----------------------------------------------------------------------------
|
3
|
+
This source file is part of OGRE
|
4
|
+
(Object-oriented Graphics Rendering Engine)
|
5
|
+
For the latest info, see http://www.ogre3d.org/
|
6
|
+
|
7
|
+
Copyright (c) 2000-2006 Torus Knot Software Ltd
|
8
|
+
Also see acknowledgements in Readme.html
|
9
|
+
|
10
|
+
This program is free software; you can redistribute it and/or modify it under
|
11
|
+
the terms of the GNU Lesser General Public License as published by the Free Software
|
12
|
+
Foundation; either version 2 of the License, or (at your option) any later
|
13
|
+
version.
|
14
|
+
|
15
|
+
This program is distributed in the hope that it will be useful, but WITHOUT
|
16
|
+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
18
|
+
|
19
|
+
You should have received a copy of the GNU Lesser General Public License along with
|
20
|
+
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
21
|
+
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
|
22
|
+
http://www.gnu.org/copyleft/lesser.txt.
|
23
|
+
|
24
|
+
You may alternatively use this source under the terms of a specific version of
|
25
|
+
the OGRE Unrestricted License provided you have obtained such a license from
|
26
|
+
Torus Knot Software Ltd.
|
27
|
+
-----------------------------------------------------------------------------
|
28
|
+
*/
|
29
|
+
#ifndef __Common_H__
|
30
|
+
#define __Common_H__
|
31
|
+
// Common stuff
|
32
|
+
|
33
|
+
#include "OgreString.h"
|
34
|
+
|
35
|
+
#if defined ( OGRE_GCC_VISIBILITY )
|
36
|
+
# pragma GCC visibility push(default)
|
37
|
+
#endif
|
38
|
+
|
39
|
+
#include <utility>
|
40
|
+
#include <vector>
|
41
|
+
#include <map>
|
42
|
+
|
43
|
+
#if defined ( OGRE_GCC_VISIBILITY )
|
44
|
+
# pragma GCC visibility pop
|
45
|
+
#endif
|
46
|
+
|
47
|
+
namespace Ogre {
|
48
|
+
|
49
|
+
|
50
|
+
/** Comparison functions used for the depth/stencil buffer operations and
|
51
|
+
others. */
|
52
|
+
enum CompareFunction
|
53
|
+
{
|
54
|
+
CMPF_ALWAYS_FAIL,
|
55
|
+
CMPF_ALWAYS_PASS,
|
56
|
+
CMPF_LESS,
|
57
|
+
CMPF_LESS_EQUAL,
|
58
|
+
CMPF_EQUAL,
|
59
|
+
CMPF_NOT_EQUAL,
|
60
|
+
CMPF_GREATER_EQUAL,
|
61
|
+
CMPF_GREATER
|
62
|
+
};
|
63
|
+
|
64
|
+
/** High-level filtering options providing shortcuts to settings the
|
65
|
+
minification, magnification and mip filters. */
|
66
|
+
enum TextureFilterOptions
|
67
|
+
{
|
68
|
+
/// Equal to: min=FO_POINT, mag=FO_POINT, mip=FO_NONE
|
69
|
+
TFO_NONE,
|
70
|
+
/// Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_POINT
|
71
|
+
TFO_BILINEAR,
|
72
|
+
/// Equal to: min=FO_LINEAR, mag=FO_LINEAR, mip=FO_LINEAR
|
73
|
+
TFO_TRILINEAR,
|
74
|
+
/// Equal to: min=FO_ANISOTROPIC, max=FO_ANISOTROPIC, mip=FO_LINEAR
|
75
|
+
TFO_ANISOTROPIC
|
76
|
+
};
|
77
|
+
|
78
|
+
enum FilterType
|
79
|
+
{
|
80
|
+
/// The filter used when shrinking a texture
|
81
|
+
FT_MIN,
|
82
|
+
/// The filter used when magnifiying a texture
|
83
|
+
FT_MAG,
|
84
|
+
/// The filter used when determining the mipmap
|
85
|
+
FT_MIP
|
86
|
+
};
|
87
|
+
/** Filtering options for textures / mipmaps. */
|
88
|
+
enum FilterOptions
|
89
|
+
{
|
90
|
+
/// No filtering, used for FILT_MIP to turn off mipmapping
|
91
|
+
FO_NONE,
|
92
|
+
/// Use the closest pixel
|
93
|
+
FO_POINT,
|
94
|
+
/// Average of a 2x2 pixel area, denotes bilinear for MIN and MAG, trilinear for MIP
|
95
|
+
FO_LINEAR,
|
96
|
+
/// Similar to FO_LINEAR, but compensates for the angle of the texture plane
|
97
|
+
FO_ANISOTROPIC
|
98
|
+
};
|
99
|
+
|
100
|
+
/** Light shading modes. */
|
101
|
+
enum ShadeOptions
|
102
|
+
{
|
103
|
+
SO_FLAT,
|
104
|
+
SO_GOURAUD,
|
105
|
+
SO_PHONG
|
106
|
+
};
|
107
|
+
|
108
|
+
/** Fog modes. */
|
109
|
+
enum FogMode
|
110
|
+
{
|
111
|
+
/// No fog. Duh.
|
112
|
+
FOG_NONE,
|
113
|
+
/// Fog density increases exponentially from the camera (fog = 1/e^(distance * density))
|
114
|
+
FOG_EXP,
|
115
|
+
/// Fog density increases at the square of FOG_EXP, i.e. even quicker (fog = 1/e^(distance * density)^2)
|
116
|
+
FOG_EXP2,
|
117
|
+
/// Fog density increases linearly between the start and end distances
|
118
|
+
FOG_LINEAR
|
119
|
+
};
|
120
|
+
|
121
|
+
/** Hardware culling modes based on vertex winding.
|
122
|
+
This setting applies to how the hardware API culls triangles it is sent. */
|
123
|
+
enum CullingMode
|
124
|
+
{
|
125
|
+
/// Hardware never culls triangles and renders everything it receives.
|
126
|
+
CULL_NONE = 1,
|
127
|
+
/// Hardware culls triangles whose vertices are listed clockwise in the view (default).
|
128
|
+
CULL_CLOCKWISE = 2,
|
129
|
+
/// Hardware culls triangles whose vertices are listed anticlockwise in the view.
|
130
|
+
CULL_ANTICLOCKWISE = 3
|
131
|
+
};
|
132
|
+
|
133
|
+
/** Manual culling modes based on vertex normals.
|
134
|
+
This setting applies to how the software culls triangles before sending them to the
|
135
|
+
hardware API. This culling mode is used by scene managers which choose to implement it -
|
136
|
+
normally those which deal with large amounts of fixed world geometry which is often
|
137
|
+
planar (software culling movable variable geometry is expensive). */
|
138
|
+
enum ManualCullingMode
|
139
|
+
{
|
140
|
+
/// No culling so everything is sent to the hardware.
|
141
|
+
MANUAL_CULL_NONE = 1,
|
142
|
+
/// Cull triangles whose normal is pointing away from the camera (default).
|
143
|
+
MANUAL_CULL_BACK = 2,
|
144
|
+
/// Cull triangles whose normal is pointing towards the camera.
|
145
|
+
MANUAL_CULL_FRONT = 3
|
146
|
+
};
|
147
|
+
|
148
|
+
/** Enumerates the wave types usable with the Ogre engine. */
|
149
|
+
enum WaveformType
|
150
|
+
{
|
151
|
+
/// Standard sine wave which smoothly changes from low to high and back again.
|
152
|
+
WFT_SINE,
|
153
|
+
/// An angular wave with a constant increase / decrease speed with pointed peaks.
|
154
|
+
WFT_TRIANGLE,
|
155
|
+
/// Half of the time is spent at the min, half at the max with instant transition between.
|
156
|
+
WFT_SQUARE,
|
157
|
+
/// Gradual steady increase from min to max over the period with an instant return to min at the end.
|
158
|
+
WFT_SAWTOOTH,
|
159
|
+
/// Gradual steady decrease from max to min over the period, with an instant return to max at the end.
|
160
|
+
WFT_INVERSE_SAWTOOTH,
|
161
|
+
/// Pulse Width Modulation. Works like WFT_SQUARE, except the high to low transition is controlled by duty cycle.
|
162
|
+
/// With a duty cycle of 50% (0.5) will give the same output as WFT_SQUARE.
|
163
|
+
WFT_PWM
|
164
|
+
};
|
165
|
+
|
166
|
+
/** The polygon mode to use when rasterising. */
|
167
|
+
enum PolygonMode
|
168
|
+
{
|
169
|
+
/// Only points are rendered.
|
170
|
+
PM_POINTS = 1,
|
171
|
+
/// Wireframe models are rendered.
|
172
|
+
PM_WIREFRAME = 2,
|
173
|
+
/// Solid polygons are rendered.
|
174
|
+
PM_SOLID = 3
|
175
|
+
};
|
176
|
+
|
177
|
+
/** An enumeration of broad shadow techniques */
|
178
|
+
enum ShadowTechnique
|
179
|
+
{
|
180
|
+
/** No shadows */
|
181
|
+
SHADOWTYPE_NONE = 0x00,
|
182
|
+
/** Mask for additive shadows (not for direct use, use SHADOWTYPE_ enum instead)
|
183
|
+
*/
|
184
|
+
SHADOWDETAILTYPE_ADDITIVE = 0x01,
|
185
|
+
/** Mask for modulative shadows (not for direct use, use SHADOWTYPE_ enum instead)
|
186
|
+
*/
|
187
|
+
SHADOWDETAILTYPE_MODULATIVE = 0x02,
|
188
|
+
/** Mask for integrated shadows (not for direct use, use SHADOWTYPE_ enum instead)
|
189
|
+
*/
|
190
|
+
SHADOWDETAILTYPE_INTEGRATED = 0x04,
|
191
|
+
/** Mask for stencil shadows (not for direct use, use SHADOWTYPE_ enum instead)
|
192
|
+
*/
|
193
|
+
SHADOWDETAILTYPE_STENCIL = 0x10,
|
194
|
+
/** Mask for texture shadows (not for direct use, use SHADOWTYPE_ enum instead)
|
195
|
+
*/
|
196
|
+
SHADOWDETAILTYPE_TEXTURE = 0x20,
|
197
|
+
|
198
|
+
/** Stencil shadow technique which renders all shadow volumes as
|
199
|
+
a modulation after all the non-transparent areas have been
|
200
|
+
rendered. This technique is considerably less fillrate intensive
|
201
|
+
than the additive stencil shadow approach when there are multiple
|
202
|
+
lights, but is not an accurate model.
|
203
|
+
*/
|
204
|
+
SHADOWTYPE_STENCIL_MODULATIVE = 0x12,
|
205
|
+
/** Stencil shadow technique which renders each light as a separate
|
206
|
+
additive pass to the scene. This technique can be very fillrate
|
207
|
+
intensive because it requires at least 2 passes of the entire
|
208
|
+
scene, more if there are multiple lights. However, it is a more
|
209
|
+
accurate model than the modulative stencil approach and this is
|
210
|
+
especially apparant when using coloured lights or bump mapping.
|
211
|
+
*/
|
212
|
+
SHADOWTYPE_STENCIL_ADDITIVE = 0x11,
|
213
|
+
/** Texture-based shadow technique which involves a monochrome render-to-texture
|
214
|
+
of the shadow caster and a projection of that texture onto the
|
215
|
+
shadow receivers as a modulative pass.
|
216
|
+
*/
|
217
|
+
SHADOWTYPE_TEXTURE_MODULATIVE = 0x22,
|
218
|
+
|
219
|
+
/** Texture-based shadow technique which involves a render-to-texture
|
220
|
+
of the shadow caster and a projection of that texture onto the
|
221
|
+
shadow receivers, built up per light as additive passes.
|
222
|
+
This technique can be very fillrate intensive because it requires numLights + 2
|
223
|
+
passes of the entire scene. However, it is a more accurate model than the
|
224
|
+
modulative approach and this is especially apparant when using coloured lights
|
225
|
+
or bump mapping.
|
226
|
+
*/
|
227
|
+
SHADOWTYPE_TEXTURE_ADDITIVE = 0x21,
|
228
|
+
|
229
|
+
/** Texture-based shadow technique which involves a render-to-texture
|
230
|
+
of the shadow caster and a projection of that texture on to the shadow
|
231
|
+
receivers, with the usage of those shadow textures completely controlled
|
232
|
+
by the materials of the receivers.
|
233
|
+
This technique is easily the most flexible of all techniques because
|
234
|
+
the material author is in complete control over how the shadows are
|
235
|
+
combined with regular rendering. It can perform shadows as accurately
|
236
|
+
as SHADOWTYPE_TEXTURE_ADDITIVE but more efficiently because it requires
|
237
|
+
less passes. However it also requires more expertise to use, and
|
238
|
+
in almost all cases, shader capable hardware to really use to the full.
|
239
|
+
@note The 'additive' part of this mode means that the colour of
|
240
|
+
the rendered shadow texture is by default plain black. It does
|
241
|
+
not mean it does the adding on your receivers automatically though, how you
|
242
|
+
use that result is up to you.
|
243
|
+
*/
|
244
|
+
SHADOWTYPE_TEXTURE_ADDITIVE_INTEGRATED = 0x25,
|
245
|
+
/** Texture-based shadow technique which involves a render-to-texture
|
246
|
+
of the shadow caster and a projection of that texture on to the shadow
|
247
|
+
receivers, with the usage of those shadow textures completely controlled
|
248
|
+
by the materials of the receivers.
|
249
|
+
This technique is easily the most flexible of all techniques because
|
250
|
+
the material author is in complete control over how the shadows are
|
251
|
+
combined with regular rendering. It can perform shadows as accurately
|
252
|
+
as SHADOWTYPE_TEXTURE_ADDITIVE but more efficiently because it requires
|
253
|
+
less passes. However it also requires more expertise to use, and
|
254
|
+
in almost all cases, shader capable hardware to really use to the full.
|
255
|
+
@note The 'modulative' part of this mode means that the colour of
|
256
|
+
the rendered shadow texture is by default the 'shadow colour'. It does
|
257
|
+
not mean it modulates on your receivers automatically though, how you
|
258
|
+
use that result is up to you.
|
259
|
+
*/
|
260
|
+
SHADOWTYPE_TEXTURE_MODULATIVE_INTEGRATED = 0x26
|
261
|
+
};
|
262
|
+
|
263
|
+
/** An enumeration describing which material properties should track the vertex colours */
|
264
|
+
typedef int TrackVertexColourType;
|
265
|
+
enum TrackVertexColourEnum {
|
266
|
+
TVC_NONE = 0x0,
|
267
|
+
TVC_AMBIENT = 0x1,
|
268
|
+
TVC_DIFFUSE = 0x2,
|
269
|
+
TVC_SPECULAR = 0x4,
|
270
|
+
TVC_EMISSIVE = 0x8
|
271
|
+
};
|
272
|
+
|
273
|
+
/** Sort mode for billboard-set and particle-system */
|
274
|
+
enum SortMode
|
275
|
+
{
|
276
|
+
/** Sort by direction of the camera */
|
277
|
+
SM_DIRECTION,
|
278
|
+
/** Sort by distance from the camera */
|
279
|
+
SM_DISTANCE
|
280
|
+
};
|
281
|
+
|
282
|
+
/** Defines the frame buffer types. */
|
283
|
+
enum FrameBufferType {
|
284
|
+
FBT_COLOUR = 0x1,
|
285
|
+
FBT_DEPTH = 0x2,
|
286
|
+
FBT_STENCIL = 0x4
|
287
|
+
};
|
288
|
+
|
289
|
+
|
290
|
+
class Light;
|
291
|
+
typedef std::vector<Light*> LightList;
|
292
|
+
|
293
|
+
typedef std::map<String, bool> UnaryOptionList;
|
294
|
+
typedef std::map<String, String> BinaryOptionList;
|
295
|
+
|
296
|
+
/// Name / value parameter pair (first = name, second = value)
|
297
|
+
typedef std::map<String, String> NameValuePairList;
|
298
|
+
|
299
|
+
/// Alias / Texture name pair (first = alias, second = texture name)
|
300
|
+
typedef std::map<String, String> AliasTextureNamePairList;
|
301
|
+
|
302
|
+
template< typename T > struct TRect
|
303
|
+
{
|
304
|
+
T left, top, right, bottom;
|
305
|
+
TRect() {}
|
306
|
+
TRect( T const & l, T const & t, T const & r, T const & b )
|
307
|
+
: left( l ), top( t ), right( r ), bottom( b )
|
308
|
+
{
|
309
|
+
}
|
310
|
+
TRect( TRect const & o )
|
311
|
+
: left( o.left ), top( o.top ), right( o.right ), bottom( o.bottom )
|
312
|
+
{
|
313
|
+
}
|
314
|
+
TRect & operator=( TRect const & o )
|
315
|
+
{
|
316
|
+
left = o.left;
|
317
|
+
top = o.top;
|
318
|
+
right = o.right;
|
319
|
+
bottom = o.bottom;
|
320
|
+
return *this;
|
321
|
+
}
|
322
|
+
T width() const
|
323
|
+
{
|
324
|
+
return right - left;
|
325
|
+
}
|
326
|
+
T height() const
|
327
|
+
{
|
328
|
+
return bottom - top;
|
329
|
+
}
|
330
|
+
};
|
331
|
+
|
332
|
+
/** Structure used to define a rectangle in a 2-D floating point space.
|
333
|
+
*/
|
334
|
+
typedef TRect<float> FloatRect;
|
335
|
+
|
336
|
+
/** Structure used to define a rectangle in a 2-D integer space.
|
337
|
+
*/
|
338
|
+
typedef TRect< long > Rect;
|
339
|
+
|
340
|
+
/** Structure used to define a box in a 3-D integer space.
|
341
|
+
Note that the left, top, and front edges are included but the right,
|
342
|
+
bottom and back ones are not.
|
343
|
+
*/
|
344
|
+
struct Box
|
345
|
+
{
|
346
|
+
size_t left, top, right, bottom, front, back;
|
347
|
+
/// Parameterless constructor for setting the members manually
|
348
|
+
Box()
|
349
|
+
{
|
350
|
+
}
|
351
|
+
/** Define a box from left, top, right and bottom coordinates
|
352
|
+
This box will have depth one (front=0 and back=1).
|
353
|
+
@param l x value of left edge
|
354
|
+
@param t y value of top edge
|
355
|
+
@param r x value of right edge
|
356
|
+
@param b y value of bottom edge
|
357
|
+
@note Note that the left, top, and front edges are included
|
358
|
+
but the right, bottom and back ones are not.
|
359
|
+
*/
|
360
|
+
Box( size_t l, size_t t, size_t r, size_t b ):
|
361
|
+
left(l),
|
362
|
+
top(t),
|
363
|
+
right(r),
|
364
|
+
bottom(b),
|
365
|
+
front(0),
|
366
|
+
back(1)
|
367
|
+
{
|
368
|
+
assert(right >= left && bottom >= top && back >= front);
|
369
|
+
}
|
370
|
+
/** Define a box from left, top, front, right, bottom and back
|
371
|
+
coordinates.
|
372
|
+
@param l x value of left edge
|
373
|
+
@param t y value of top edge
|
374
|
+
@param ff z value of front edge
|
375
|
+
@param r x value of right edge
|
376
|
+
@param b y value of bottom edge
|
377
|
+
@param bb z value of back edge
|
378
|
+
@note Note that the left, top, and front edges are included
|
379
|
+
but the right, bottom and back ones are not.
|
380
|
+
*/
|
381
|
+
Box( size_t l, size_t t, size_t ff, size_t r, size_t b, size_t bb ):
|
382
|
+
left(l),
|
383
|
+
top(t),
|
384
|
+
right(r),
|
385
|
+
bottom(b),
|
386
|
+
front(ff),
|
387
|
+
back(bb)
|
388
|
+
{
|
389
|
+
assert(right >= left && bottom >= top && back >= front);
|
390
|
+
}
|
391
|
+
|
392
|
+
/// Return true if the other box is a part of this one
|
393
|
+
bool contains(const Box &def) const
|
394
|
+
{
|
395
|
+
return (def.left >= left && def.top >= top && def.front >= front &&
|
396
|
+
def.right <= right && def.bottom <= bottom && def.back <= back);
|
397
|
+
}
|
398
|
+
|
399
|
+
/// Get the width of this box
|
400
|
+
size_t getWidth() const { return right-left; }
|
401
|
+
/// Get the height of this box
|
402
|
+
size_t getHeight() const { return bottom-top; }
|
403
|
+
/// Get the depth of this box
|
404
|
+
size_t getDepth() const { return back-front; }
|
405
|
+
};
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
/** Locate command-line options of the unary form '-blah' and of the
|
410
|
+
binary form '-blah foo', passing back the index of the next non-option.
|
411
|
+
@param numargs, argv The standard parameters passed to the main method
|
412
|
+
@param unaryOptList Map of unary options (ie those that do not require a parameter).
|
413
|
+
Should be pre-populated with, for example '-e' in the key and false in the
|
414
|
+
value. Options which are found will be set to true on return.
|
415
|
+
@param binOptList Map of binnary options (ie those that require a parameter
|
416
|
+
e.g. '-e afile.txt').
|
417
|
+
Should be pre-populated with, for example '-e' and the default setting.
|
418
|
+
Options which are found will have the value updated.
|
419
|
+
*/
|
420
|
+
int _OgreExport findCommandLineOpts(int numargs, char** argv, UnaryOptionList& unaryOptList,
|
421
|
+
BinaryOptionList& binOptList);
|
422
|
+
|
423
|
+
}
|
424
|
+
|
425
|
+
#endif
|
@@ -0,0 +1,667 @@
|
|
1
|
+
/*
|
2
|
+
-----------------------------------------------------------------------------
|
3
|
+
This source file is part of OGRE
|
4
|
+
(Object-oriented Graphics Rendering Engine)
|
5
|
+
For the latest info, see http://www.ogre3d.org
|
6
|
+
|
7
|
+
Copyright (c) 2000-2006 Torus Knot Software Ltd
|
8
|
+
Also see acknowledgements in Readme.html
|
9
|
+
|
10
|
+
This program is free software; you can redistribute it and/or modify it under
|
11
|
+
the terms of the GNU Lesser General Public License as published by the Free Software
|
12
|
+
Foundation; either version 2 of the License, or (at your option) any later
|
13
|
+
version.
|
14
|
+
|
15
|
+
This program is distributed in the hope that it will be useful, but WITHOUT
|
16
|
+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
18
|
+
|
19
|
+
You should have received a copy of the GNU Lesser General Public License along with
|
20
|
+
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
21
|
+
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
|
22
|
+
http://www.gnu.org/copyleft/lesser.txt.
|
23
|
+
|
24
|
+
You may alternatively use this source under the terms of a specific version of
|
25
|
+
the OGRE Unrestricted License provided you have obtained such a license from
|
26
|
+
Torus Knot Software Ltd.
|
27
|
+
-----------------------------------------------------------------------------
|
28
|
+
*/
|
29
|
+
|
30
|
+
|
31
|
+
#ifndef __Compiler2Pass_H__
|
32
|
+
#define __Compiler2Pass_H__
|
33
|
+
|
34
|
+
#include "OgrePrerequisites.h"
|
35
|
+
#include "OgreStdHeaders.h"
|
36
|
+
|
37
|
+
namespace Ogre {
|
38
|
+
|
39
|
+
/** Compiler2Pass is a generic 2 pass compiler/assembler
|
40
|
+
@remarks
|
41
|
+
provides a tokenizer in pass 1 and relies on the subclass to provide the virtual method for pass 2
|
42
|
+
|
43
|
+
PASS 1 - tokenize source: this is a simple brute force lexical scanner/analyzer that also parses
|
44
|
+
the formed token for proper semantics and context in one pass
|
45
|
+
it uses top down (recursive descent) ruling based on Backus - Naur Form (BNF) notation for semantic
|
46
|
+
checking.
|
47
|
+
|
48
|
+
During Pass1, if a terminal token is identified as having an action then that action gets triggered
|
49
|
+
when the next terminal token is uncountered that has an action.
|
50
|
+
|
51
|
+
PASS 2 - generate application specific instructions ie native instructions based on the tokens in the instruction container.
|
52
|
+
|
53
|
+
@par
|
54
|
+
this class must be subclassed with the subclass providing some implementation details for Pass 2. The subclass
|
55
|
+
is responsible for setting up the token libraries along with defining the language syntax and handling
|
56
|
+
token actions during the second pass.
|
57
|
+
|
58
|
+
@par
|
59
|
+
The sub class normally supplies a simplified BNF text description in its constructor prior to doing any parsing/tokenizing of source.
|
60
|
+
The simplified BNF text description defines the language syntax and rule structure.
|
61
|
+
The meta-symbols used in the BNF text description are:
|
62
|
+
@par
|
63
|
+
::= meaning "is defined as". "::=" starts the definition of a rule. The left side of ::= must contain an <identifier>
|
64
|
+
@par
|
65
|
+
<> angle brackets are used to surround syntax rule names. A syntax rule name is also called a non-terminal in that
|
66
|
+
it does not generate a terminal token in the instruction container for pass 2 processing.
|
67
|
+
@par
|
68
|
+
| meaning "or". if the item on the left of the | fails then the item on the right is tested.
|
69
|
+
Example: <true_false> ::= 'true' | 'false';
|
70
|
+
whitespace is used to imply AND operation between left and right items.
|
71
|
+
Example: <terrain_shadaws> ::= 'terrain_shadows' <true_false>
|
72
|
+
the 'terrain_shadows' terminal token must be found and <true_false> rule must pass in order for <terrain_shadows> rule
|
73
|
+
to pass.
|
74
|
+
@par
|
75
|
+
[] optional rule identifier is enclosed in meta symbols [ and ].
|
76
|
+
Note that only one identifier or terminal token can take [] modifier.
|
77
|
+
@par
|
78
|
+
{} repetitive identifier (zero or more times) is enclosed in meta symbols { and }
|
79
|
+
Note that only one identifier or terminal token can take {} modifier.
|
80
|
+
@par
|
81
|
+
'' terminal tokens are surrounded by single quotes. A terminal token is always one or more characters.
|
82
|
+
For example: 'Colour' defines a character sequence that must be matched in whole. Note that matching is case
|
83
|
+
sensitive.
|
84
|
+
@par
|
85
|
+
@ turn on single character scanning and don't skip white space.
|
86
|
+
Mainly used for label processing that allow white space.
|
87
|
+
Example: '@ ' prevents the white space between the quotes from being skipped
|
88
|
+
@par
|
89
|
+
-'' no terminal token is generated when a - precedes the first single quote but the text in between the quotes is still
|
90
|
+
tested against the characters in the source being parsed.
|
91
|
+
@par
|
92
|
+
(?! ) negative lookahead (not test) inspired by Perl 5. Scans ahead for a non-terminal or terminal expression
|
93
|
+
that should fail in order to make the rule production pass.
|
94
|
+
Does not generate a token or advance the cursur. If the lookahead result fails ie token is found,
|
95
|
+
then the current rule fails and rollback occurs. Mainly used to solve multiple contexts of a token.
|
96
|
+
An Example of where not test is used to solve multiple contexts:
|
97
|
+
|
98
|
+
<rule> ::= <identifier> "::=" <expression>\n
|
99
|
+
<expression> ::= <and_term> { <or_term> }\n
|
100
|
+
<or_term> ::= "|" <and_term>\n
|
101
|
+
<and_term> ::= <term> { <term> }\n
|
102
|
+
<term> ::= <identifier_right> | <terminal_symbol> | <repeat_expression> | <optional_expression>\n
|
103
|
+
<identifier_right> ::= <identifier> (?!"::=")
|
104
|
+
|
105
|
+
<identiefier> appears on both sides of the ::= so (?!"::=") test to make sure that ::= is not on the
|
106
|
+
right which would indicate that a new rule was being formed.
|
107
|
+
|
108
|
+
Works on both terminals and non-terminals.
|
109
|
+
Note: lookahead failure causes the whole rule to fail and rollback to occur
|
110
|
+
|
111
|
+
@par
|
112
|
+
<#name> # indicates that a numerical value is to be parsed to form a terminal token. Name is optional and is just a descriptor
|
113
|
+
to help with understanding what the value will be used for.
|
114
|
+
Example: <Colour> ::= <#red> <#green> <#blue>
|
115
|
+
|
116
|
+
@par
|
117
|
+
() parentheses enclose a set of characters that can be used to generate a user identifier. for example:
|
118
|
+
(0123456789) matches a single character found in that set.
|
119
|
+
An example of a user identifier:
|
120
|
+
|
121
|
+
@par
|
122
|
+
<Label> ::= <Character> {<Character>}\n
|
123
|
+
<Character> ::= (abcdefghijklmnopqrstuvwxyz)
|
124
|
+
|
125
|
+
This will generate a rule that accepts one or more lowercase letters to make up the Label. The User identifier
|
126
|
+
stops collecting the characters into a string when a match cannot be found in the rule.
|
127
|
+
|
128
|
+
@par
|
129
|
+
(! ) if the first character in the set is a ! then any input character not found in the set will be
|
130
|
+
accepted.
|
131
|
+
An example:
|
132
|
+
|
133
|
+
<Label> ::= <AnyCharacter_NoLineBreak> {<AnyCharacter_NoLineBreak>}\n
|
134
|
+
<AnyCharacter_NoLineBreak> ::= (!\n\r)
|
135
|
+
|
136
|
+
any character but \n or \r is accepted in the input.
|
137
|
+
|
138
|
+
@par
|
139
|
+
: Insert the terminal token on the left before the next terminal token on the right if the next terminal token on right parses.
|
140
|
+
Usefull for when terminal tokens don't have a definate text state but only context state based on another terminal or character token.
|
141
|
+
An example:
|
142
|
+
|
143
|
+
<Last_Resort> ::= 'external_command' : <Special_Label>\n
|
144
|
+
<Special_Label> ::= (!\n\r\t)
|
145
|
+
|
146
|
+
In the example, <Last_Resort> gets processed when all other rules fail to parse.
|
147
|
+
if <Special_Label> parses (reads in any character but \n\r\t) then the terminal token 'external_command'
|
148
|
+
is inserted prior to the Special_Label for pass 2 processing. 'external_command' does not have have an explicit text
|
149
|
+
representation but based on the context of no other rules matching and <Special_Label> parsing, 'external_command' is
|
150
|
+
considered parsed.
|
151
|
+
*/
|
152
|
+
class _OgreExport Compiler2Pass
|
153
|
+
{
|
154
|
+
|
155
|
+
protected:
|
156
|
+
|
157
|
+
// BNF operation types
|
158
|
+
enum OperationType {otUNKNOWN, otRULE, otAND, otOR, otOPTIONAL,
|
159
|
+
otREPEAT, otDATA, otNOT_TEST, otINSERT_TOKEN, otEND};
|
160
|
+
|
161
|
+
/** structure used to build rule paths
|
162
|
+
|
163
|
+
*/
|
164
|
+
struct TokenRule
|
165
|
+
{
|
166
|
+
OperationType operation;
|
167
|
+
size_t tokenID;
|
168
|
+
|
169
|
+
TokenRule(void) : operation(otUNKNOWN), tokenID(0) {}
|
170
|
+
TokenRule(const OperationType ot, const size_t token)
|
171
|
+
: operation(ot), tokenID(token) {}
|
172
|
+
};
|
173
|
+
|
174
|
+
typedef std::vector<TokenRule> TokenRuleContainer;
|
175
|
+
typedef TokenRuleContainer::iterator TokenRuleIterator;
|
176
|
+
|
177
|
+
static const size_t SystemTokenBase = 1000;
|
178
|
+
enum SystemRuleToken {
|
179
|
+
_no_token_ = SystemTokenBase,
|
180
|
+
_character_,
|
181
|
+
_value_,
|
182
|
+
_no_space_skip_
|
183
|
+
};
|
184
|
+
|
185
|
+
enum BNF_ID {BNF_UNKOWN = 0,
|
186
|
+
BNF_SYNTAX, BNF_RULE, BNF_IDENTIFIER, BNF_IDENTIFIER_RIGHT, BNF_IDENTIFIER_CHARACTERS, BNF_ID_BEGIN, BNF_ID_END,
|
187
|
+
BNF_CONSTANT_BEGIN, BNF_SET_RULE, BNF_EXPRESSION,
|
188
|
+
BNF_AND_TERM, BNF_OR_TERM, BNF_TERM, BNF_TERM_ID, BNF_CONSTANT, BNF_OR, BNF_TERMINAL_SYMBOL, BNF_TERMINAL_START,
|
189
|
+
BNF_REPEAT_EXPRESSION, BNF_REPEAT_BEGIN, BNF_REPEAT_END, BNF_SET, BNF_SET_BEGIN, BNF_SET_END,
|
190
|
+
BNF_NOT_TEST, BNF_NOT_TEST_BEGIN, BNF_CONDITIONAL_TOKEN_INSERT, BNF_OPTIONAL_EXPRESSION,
|
191
|
+
BNF_NOT_EXPRESSION, BNF_NOT_CHK,
|
192
|
+
BNF_OPTIONAL_BEGIN, BNF_OPTIONAL_END, BNF_NO_TOKEN_START, BNF_SINGLEQUOTE, BNF_SINGLE_QUOTE_EXC, BNF_SET_END_EXC,
|
193
|
+
BNF_ANY_CHARACTER, BNF_SPECIAL_CHARACTERS1,
|
194
|
+
BNF_SPECIAL_CHARACTERS2, BNF_WHITE_SPACE_CHK,
|
195
|
+
|
196
|
+
BNF_LETTER, BNF_LETTER_DIGIT, BNF_DIGIT, BNF_WHITE_SPACE,
|
197
|
+
BNF_ALPHA_SET, BNF_NUMBER_SET, BNF_SPECIAL_CHARACTER_SET1,
|
198
|
+
BNF_SPECIAL_CHARACTER_SET2, BNF_SPECIAL_CHARACTER_SET3, BNF_NOT_CHARS,
|
199
|
+
|
200
|
+
// do not remove - this indicates where manually defined tokens end and where auto-gen ones start
|
201
|
+
BNF_AUTOTOKENSTART
|
202
|
+
};
|
203
|
+
|
204
|
+
|
205
|
+
/** structure used to build lexeme Type library */
|
206
|
+
struct LexemeTokenDef
|
207
|
+
{
|
208
|
+
size_t ID; /// Token ID which is the index into the Lexeme Token Definition Container
|
209
|
+
bool hasAction; /// has an action associated with it. only applicable to terminal tokens
|
210
|
+
bool isNonTerminal; /// if true then token is non-terminal
|
211
|
+
size_t ruleID; /// index into Rule database for non-terminal token rulepath and lexeme
|
212
|
+
bool isCaseSensitive; /// if true use case sensitivity when comparing lexeme to source
|
213
|
+
String lexeme; /// text representation of token or valid characters for label parsing
|
214
|
+
|
215
|
+
LexemeTokenDef(void) : ID(0), hasAction(false), isNonTerminal(false), ruleID(0), isCaseSensitive(false) {}
|
216
|
+
LexemeTokenDef( const size_t ID, const String& lexeme, const bool hasAction = false, const bool caseSensitive = false )
|
217
|
+
: ID(ID)
|
218
|
+
, hasAction(hasAction)
|
219
|
+
, isNonTerminal(false)
|
220
|
+
, ruleID(0)
|
221
|
+
, isCaseSensitive(caseSensitive)
|
222
|
+
, lexeme(lexeme)
|
223
|
+
{
|
224
|
+
}
|
225
|
+
|
226
|
+
};
|
227
|
+
|
228
|
+
typedef std::vector<LexemeTokenDef> LexemeTokenDefContainer;
|
229
|
+
typedef LexemeTokenDefContainer::iterator LexemeTokenDefIterator;
|
230
|
+
|
231
|
+
typedef std::map<std::string, size_t> LexemeTokenMap;
|
232
|
+
typedef LexemeTokenMap::iterator TokenKeyIterator;
|
233
|
+
/// map used to lookup client token based on previously defined lexeme
|
234
|
+
|
235
|
+
|
236
|
+
/** structure for Token instructions that are constructed during first pass*/
|
237
|
+
struct TokenInst
|
238
|
+
{
|
239
|
+
size_t NTTRuleID; /// Non-Terminal Token Rule ID that generated Token
|
240
|
+
size_t tokenID; /// expected Token ID. Could be UNKNOWN if valid token was not found.
|
241
|
+
size_t line; /// line number in source code where Token was found
|
242
|
+
size_t pos; /// Character position in source where Token was found
|
243
|
+
bool found; /// is true if expected token was found
|
244
|
+
};
|
245
|
+
|
246
|
+
typedef std::vector<TokenInst> TokenInstContainer;
|
247
|
+
typedef TokenInstContainer::iterator TokenInstIterator;
|
248
|
+
|
249
|
+
// token que, definitions, rules
|
250
|
+
struct TokenState
|
251
|
+
{
|
252
|
+
TokenInstContainer tokenQue;
|
253
|
+
LexemeTokenDefContainer lexemeTokenDefinitions;
|
254
|
+
TokenRuleContainer rootRulePath;
|
255
|
+
LexemeTokenMap lexemeTokenMap;
|
256
|
+
};
|
257
|
+
|
258
|
+
TokenState* mClientTokenState;
|
259
|
+
|
260
|
+
/// Active token que, definitions, rules currntly being used by parser
|
261
|
+
TokenState* mActiveTokenState;
|
262
|
+
/// the location within the token instruction container where pass 2 is
|
263
|
+
mutable size_t mPass2TokenQuePosition;
|
264
|
+
/** the que position of the previous token that had an action.
|
265
|
+
A token's action is fired on the next token having an action.
|
266
|
+
*/
|
267
|
+
size_t mPreviousActionQuePosition;
|
268
|
+
/** the que position for the next token that has an action.
|
269
|
+
*/
|
270
|
+
size_t mNextActionQuePosition;
|
271
|
+
|
272
|
+
/// pointer to the source to be compiled
|
273
|
+
const String* mSource;
|
274
|
+
/// name of the source to be compiled
|
275
|
+
String mSourceName;
|
276
|
+
size_t mEndOfSource;
|
277
|
+
|
278
|
+
size_t mCurrentLine; /// current line number in source being tokenized
|
279
|
+
size_t mCharPos; /// position in current line in source being tokenized
|
280
|
+
size_t mErrorCharPos; /// character position in source where last error occured
|
281
|
+
|
282
|
+
/// storage container for constants defined in source
|
283
|
+
/// container uses Token index as a key associated with a float constant
|
284
|
+
std::map<size_t, float> mConstants;
|
285
|
+
/// storage container for string labels defined in source
|
286
|
+
/// container uses Token index as a key associated with a label
|
287
|
+
typedef std::map<size_t, String> LabelContainer;
|
288
|
+
LabelContainer mLabels;
|
289
|
+
/// flag indicates when a label is being parsed.
|
290
|
+
/// It gets set false when a terminal token not of _character_ is encountered
|
291
|
+
bool mLabelIsActive;
|
292
|
+
/// the key of the active label being built during pass 1.
|
293
|
+
/// a new key is calculated when mLabelIsActive switches from false to true
|
294
|
+
size_t mActiveLabelKey;
|
295
|
+
/// The active label that is receiving characters during pass 1.
|
296
|
+
String* mActiveLabel;
|
297
|
+
/// flag being true indicates that spaces are not to be skipped
|
298
|
+
/// automatically gets set to false when mLabelIsActive goes to false
|
299
|
+
bool mNoSpaceSkip;
|
300
|
+
/// if flag is true then next terminal token is not added to token que if found
|
301
|
+
/// but does effect rule path flow
|
302
|
+
bool mNoTerminalToken;
|
303
|
+
/// TokenID to insert if next rule finds a terminal token
|
304
|
+
/// if zero then no token inserted
|
305
|
+
size_t mInsertTokenID;
|
306
|
+
|
307
|
+
/// Active Contexts pattern used in pass 1 to determine which tokens are valid for a certain context
|
308
|
+
uint mActiveContexts;
|
309
|
+
|
310
|
+
/** perform pass 1 of compile process
|
311
|
+
scans source for lexemes that can be tokenized and then
|
312
|
+
performs general semantic and context verification on each lexeme before it is tokenized.
|
313
|
+
A tokenized instruction list is built to be used by Pass 2.
|
314
|
+
A rule path can trigger Pass 2 execution if enough tokens have been generated in Pass 1.
|
315
|
+
Pass 1 will then pass control to pass 2 temporarily until the current tokens have been consumed.
|
316
|
+
|
317
|
+
*/
|
318
|
+
bool doPass1();
|
319
|
+
|
320
|
+
/** performs Pass 2 of compile process which is execution of the tokens
|
321
|
+
@remark
|
322
|
+
Pass 2 takes the token instructions generated in Pass 1 and
|
323
|
+
builds the application specific instructions along with verifying
|
324
|
+
symantic and context rules that could not be checked in Pass 1.
|
325
|
+
@par
|
326
|
+
Pass 2 execution consumes tokens and moves the Pass 2 token instruction position towards the end
|
327
|
+
of the token container. Token execution can insert new tokens into the token container.
|
328
|
+
*/
|
329
|
+
bool doPass2();
|
330
|
+
|
331
|
+
/** execute the action associated with the token pointed to by the Pass 2 token instruction position.
|
332
|
+
@remarks
|
333
|
+
Its upto the child class to implement how it will associate a token key with and action.
|
334
|
+
Actions should be placed at positions withing the BNF grammer (instruction que) that indicate
|
335
|
+
enough tokens exist for pass 2 processing to take place.
|
336
|
+
*/
|
337
|
+
virtual void executeTokenAction(const size_t tokenID) = 0;
|
338
|
+
/** Get the start ID for auto generated token IDs. This is also one pass the end of manually set token IDs.
|
339
|
+
Manually set Token ID are usually setup in the client code through an enum type so its best to make the
|
340
|
+
last entry the auto ID start position and return this enum value.
|
341
|
+
This method gets called automatically just prior to setupTokenDefinitions() to ensure that any tokens that are auto generated are placed after
|
342
|
+
the manually set ones.
|
343
|
+
*/
|
344
|
+
virtual size_t getAutoTokenIDStart() const = 0;
|
345
|
+
/** setup client token definitions. Gets called when BNF grammer is being setup.
|
346
|
+
*/
|
347
|
+
virtual void setupTokenDefinitions(void) = 0;
|
348
|
+
/** Gets the next token from the instruction que.
|
349
|
+
@remarks
|
350
|
+
If an unkown token is found then an exception is raised but
|
351
|
+
the instruction pointer is still moved passed the unknown token. The subclass should catch the exception,
|
352
|
+
provide an error message, and attempt recovery.
|
353
|
+
|
354
|
+
@param expectedTokenID if greater than 0 then an exception is raised if tokenID does not match.
|
355
|
+
*/
|
356
|
+
const TokenInst& getNextToken(const size_t expectedTokenID = 0) const
|
357
|
+
{
|
358
|
+
skipToken();
|
359
|
+
return getCurrentToken(expectedTokenID);
|
360
|
+
}
|
361
|
+
/** Gets the current token from the instruction que.
|
362
|
+
@remarks
|
363
|
+
If an unkown token is found then an exception is raised.
|
364
|
+
The subclass should catch the exception, provide an error message, and attempt recovery.
|
365
|
+
|
366
|
+
@param expectedTokenID if greater than 0 then an exception is raised if tokenID does not match.
|
367
|
+
|
368
|
+
*/
|
369
|
+
const TokenInst& getCurrentToken(const size_t expectedTokenID = 0) const;
|
370
|
+
/** If a next token instruction exist then test if its token ID matches.
|
371
|
+
@remarks
|
372
|
+
This method is usefull for peeking ahead during pass 2 to see if a certain
|
373
|
+
token exists. If the tokens don't match or there is no next token (end of que)
|
374
|
+
then false is returned.
|
375
|
+
@param expectedTokenID is the ID of the token to match.
|
376
|
+
*/
|
377
|
+
bool testNextTokenID(const size_t expectedTokenID) const;
|
378
|
+
|
379
|
+
/** If a current token instruction exist then test if its token ID matches.
|
380
|
+
@param expectedTokenID is the ID of the token to match.
|
381
|
+
*/
|
382
|
+
bool testCurrentTokenID(const size_t expectedTokenID) const
|
383
|
+
{
|
384
|
+
return mActiveTokenState->tokenQue[mPass2TokenQuePosition].tokenID == expectedTokenID;
|
385
|
+
}
|
386
|
+
/** skip to the next token in the pass2 queue.
|
387
|
+
*/
|
388
|
+
void skipToken(void) const;
|
389
|
+
/** go back to the previous token in the pass2 queue.
|
390
|
+
*/
|
391
|
+
void replaceToken(void);
|
392
|
+
/** Gets the next token's associated floating point value in the instruction que that was parsed from the
|
393
|
+
text source. If an unkown token is found or no associated value was found then an exception is raised but
|
394
|
+
the instruction pointer is still moved passed the unknown token. The subclass should catch the exception,
|
395
|
+
provide an error message, and attempt recovery.
|
396
|
+
*/
|
397
|
+
float getNextTokenValue(void) const
|
398
|
+
{
|
399
|
+
skipToken();
|
400
|
+
return getCurrentTokenValue();
|
401
|
+
}
|
402
|
+
/** Gets the current token's associated floating point value in the instruction que that was parsed from the
|
403
|
+
text source.
|
404
|
+
@remarks
|
405
|
+
If an unkown token is found or no associated value was found then an exception is raised.
|
406
|
+
The subclass should catch the exception, provide an error message, and attempt recovery.
|
407
|
+
*/
|
408
|
+
float getCurrentTokenValue(void) const;
|
409
|
+
/** Gets the next token's associated text label in the instruction que that was parsed from the
|
410
|
+
text source.
|
411
|
+
@remarks
|
412
|
+
If an unkown token is found or no associated label was found then an exception is raised but
|
413
|
+
the instruction pointer is still moved passed the unknown token. The subclass should catch the exception,
|
414
|
+
provide an error message, and attempt recovery.
|
415
|
+
*/
|
416
|
+
const String& getNextTokenLabel(void) const
|
417
|
+
{
|
418
|
+
skipToken();
|
419
|
+
return getCurrentTokenLabel();
|
420
|
+
}
|
421
|
+
/** Gets the next token's associated text label in the instruction que that was parsed from the
|
422
|
+
text source. If an unkown token is found or no associated label was found then an exception is raised.
|
423
|
+
The subclass should catch the exception, provide an error message, and attempt recovery.
|
424
|
+
*/
|
425
|
+
const String& getCurrentTokenLabel(void) const;
|
426
|
+
/** Get the next token's ID value.
|
427
|
+
*/
|
428
|
+
size_t getNextTokenID(void) const { return getNextToken().tokenID; }
|
429
|
+
/** Get the current token's ID value.
|
430
|
+
*/
|
431
|
+
size_t getCurrentTokenID(void) const { return getCurrentToken().tokenID; }
|
432
|
+
/** Get the next token's lexeme string. Handy when you don't want the ID but want the string
|
433
|
+
representation.
|
434
|
+
*/
|
435
|
+
const String& getNextTokenLexeme(void) const
|
436
|
+
{
|
437
|
+
skipToken();
|
438
|
+
return getCurrentTokenLexeme();
|
439
|
+
}
|
440
|
+
/** Get the current token's lexeme string. Handy when you don't want the ID but want the string
|
441
|
+
representation.
|
442
|
+
*/
|
443
|
+
const String& getCurrentTokenLexeme(void) const;
|
444
|
+
/** Gets the number of tokens waiting in the instruction que that need to be processed by an token action in pass 2.
|
445
|
+
*/
|
446
|
+
size_t getPass2TokenQueCount(void) const;
|
447
|
+
/** Get the number of tokens not processed by action token.
|
448
|
+
Client Actions should use this method to retreive the number of parameters(tokens)
|
449
|
+
remaining to be processed in the action.
|
450
|
+
*/
|
451
|
+
size_t getRemainingTokensForAction(void) const;
|
452
|
+
/** Manualy set the Pass2 Token que position.
|
453
|
+
@remarks
|
454
|
+
This method will also set the position of the next token in the pass2 que that
|
455
|
+
has an action ensuring that getRemainingTokensForAction works currectly.
|
456
|
+
This method is useful for when the token que must be reprocessed after
|
457
|
+
pass1 and the position in the que must be changed so that an action will be triggered.
|
458
|
+
@param pos is the new position within the Pass2 que
|
459
|
+
@param activateAction if set true and the token at the new position has an action then the
|
460
|
+
action is activated.
|
461
|
+
*/
|
462
|
+
void setPass2TokenQuePosition(size_t pos, const bool activateAction = false);
|
463
|
+
/** Get the current position in the Pass2 Token Que.
|
464
|
+
*/
|
465
|
+
size_t getPass2TokenQuePosition(void) const { return mPass2TokenQuePosition; }
|
466
|
+
/** Set the position of the next token action in the Pass2 Token Que.
|
467
|
+
@remarks
|
468
|
+
If the position is not within the que or there is no action associated with
|
469
|
+
the token at the position in the que then NextActionQuePosition is not set.
|
470
|
+
@param pos is the position in the Pass2 Token Que where the next action is.
|
471
|
+
@param search if true then the que is searched from pos until an action is found.
|
472
|
+
If the end of the que is reached and no action has been found then NextActionQuePosition
|
473
|
+
is set to the end of the que and false is returned.
|
474
|
+
*/
|
475
|
+
bool setNextActionQuePosition(size_t pos, const bool search = false);
|
476
|
+
/** Add a lexeme token association.
|
477
|
+
@remarks
|
478
|
+
The backend compiler uses the associations between lexeme and token when
|
479
|
+
building the rule base from the BNF script so all associations must be done
|
480
|
+
prior to compiling a source.
|
481
|
+
@param lexeme is the name of the token and use when parsing the source to determin a match for a token.
|
482
|
+
@param token is the ID associated with the lexeme. If token is 0 then the token ID is auto generated and returned.
|
483
|
+
@param hasAction must be set true if the client wants an action triggered when this token is generated
|
484
|
+
@param caseSensitive should be set true if lexeme match should use case sensitivity
|
485
|
+
@return the ID of the token. Useful when auto generating token IDs.
|
486
|
+
*/
|
487
|
+
size_t addLexemeToken(const String& lexeme, const size_t token, const bool hasAction = false, const bool caseSensitive = false);
|
488
|
+
|
489
|
+
/** Sets up the parser rules for the client based on the BNF Grammer text passed in.
|
490
|
+
@remarks
|
491
|
+
Raises an exception if the grammer did not compile successfully. This method gets called
|
492
|
+
when a call to compile occurs and no compiled BNF grammer exists, otherwise nothing will happen since the compiler has no rules to work
|
493
|
+
with. The grammer only needs to be set once during the lifetime of the compiler unless the
|
494
|
+
grammer changes.
|
495
|
+
@note
|
496
|
+
BNF Grammer rules are cached once the BNF grammer source is compiled.
|
497
|
+
The client should never have to call this method directly.
|
498
|
+
*/
|
499
|
+
void setClientBNFGrammer(void);
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
/// find the eol charater
|
504
|
+
void findEOL();
|
505
|
+
|
506
|
+
/** check to see if the text at the present position in the source is a numerical constant
|
507
|
+
@param fvalue is a reference that will receive the float value that is in the source
|
508
|
+
@param charsize reference to receive number of characters that make of the value in the source
|
509
|
+
@return
|
510
|
+
true if characters form a valid float representation
|
511
|
+
false if a number value could not be extracted
|
512
|
+
*/
|
513
|
+
bool isFloatValue(float& fvalue, size_t& charsize) const;
|
514
|
+
|
515
|
+
/** Check if source at current position is supposed to be a user defined character label.
|
516
|
+
A new label is processed when previous operation was not _character_ otherwise the processed
|
517
|
+
character (if match was found) is added to the current label. This allows _character_ operations
|
518
|
+
to be chained together to form a crude regular expression to build a label.
|
519
|
+
@param rulepathIDX index into rule path database of token to validate.
|
520
|
+
@return
|
521
|
+
true if token was found for character label.
|
522
|
+
*/
|
523
|
+
bool isCharacterLabel(const size_t rulepathIDX);
|
524
|
+
/** check to see if the text is in the lexeme text library
|
525
|
+
@param lexeme points to begining of text where a lexem token might exist
|
526
|
+
@param caseSensitive set to true if match should be case sensitive
|
527
|
+
@return
|
528
|
+
true if a matching token could be found in the token type library
|
529
|
+
false if could not be tokenized
|
530
|
+
*/
|
531
|
+
bool isLexemeMatch(const String& lexeme, const bool caseSensitive) const;
|
532
|
+
/// Check if pass 1 has parsed to the end of the source
|
533
|
+
bool isEndOfSource() const { return mCharPos >= mEndOfSource; }
|
534
|
+
/// position to the next possible valid sysmbol
|
535
|
+
bool positionToNextLexeme();
|
536
|
+
/** process input source text using rulepath to determine allowed tokens
|
537
|
+
@remarks
|
538
|
+
the method is reentrant and recursive
|
539
|
+
if a non-terminal token is encountered in the current rule path then the method is
|
540
|
+
called using the new rule path referenced by the non-terminal token
|
541
|
+
Tokens can have the following operation states which effects the flow path of the rule
|
542
|
+
RULE: defines a rule path for the non-terminal token
|
543
|
+
AND: the token is required for the rule to pass
|
544
|
+
OR: if the previous tokens failed then try these ones
|
545
|
+
OPTIONAL: the token is optional and does not cause the rule to fail if the token is not found
|
546
|
+
REPEAT: the token is required but there can be more than one in a sequence
|
547
|
+
DATA: Used by a previous token ie for character sets
|
548
|
+
NOTTEST: performs negative lookahead ie make sure the next token is not of a certain type
|
549
|
+
END: end of the rule path - the method returns the succuss of the rule
|
550
|
+
|
551
|
+
@param rulepathIDX index into an array of Token Rules that define a rule path to be processed
|
552
|
+
@return
|
553
|
+
true if rule passed - all required tokens found
|
554
|
+
false if one or more tokens required to complete the rule were not found
|
555
|
+
*/
|
556
|
+
bool processRulePath( size_t rulepathIDX);
|
557
|
+
|
558
|
+
|
559
|
+
/** setup ActiveContexts - should be called by subclass to setup initial language contexts
|
560
|
+
*/
|
561
|
+
void setActiveContexts(const uint contexts){ mActiveContexts = contexts; }
|
562
|
+
|
563
|
+
/// comment specifiers are hard coded
|
564
|
+
void skipComments();
|
565
|
+
|
566
|
+
/// find end of line marker and move past it
|
567
|
+
void skipEOL();
|
568
|
+
|
569
|
+
/// skip all the white space which includes spaces and tabs
|
570
|
+
void skipWhiteSpace();
|
571
|
+
|
572
|
+
|
573
|
+
/** check if current position in source has the lexeme text equivalent to the TokenID
|
574
|
+
@param rulepathIDX index into rule path database of token to validate
|
575
|
+
@param activeRuleID index of non-terminal rule that generated the token
|
576
|
+
@return
|
577
|
+
true if token was found
|
578
|
+
false if token lexeme text does not match the source text
|
579
|
+
if token is non-terminal then processRulePath is called
|
580
|
+
*/
|
581
|
+
bool ValidateToken(const size_t rulepathIDX, const size_t activeRuleID);
|
582
|
+
|
583
|
+
/** scan through all the rules and initialize token definition with index to rules for non-terminal tokens.
|
584
|
+
Gets called when internal grammer is being verified or after client grammer has been parsed.
|
585
|
+
@param grammerName is the name of the grammer the token rules are for
|
586
|
+
*/
|
587
|
+
void verifyTokenRuleLinks(const String& grammerName);
|
588
|
+
/** Checks the last token instruction and if it has an action then it triggers the action of the previously
|
589
|
+
found token having an action.
|
590
|
+
*/
|
591
|
+
void checkTokenActionTrigger(void);
|
592
|
+
/** Get the text representation of the rule path. This is a good way to way to visually verify
|
593
|
+
that the BNF grammer did compile correctly.
|
594
|
+
@param ruleID is the index into the rule path.
|
595
|
+
@param level is the number of levels a non-terminal will expand to. Defaults to 0 if not set which
|
596
|
+
will cause non-terminals to not expand.
|
597
|
+
*/
|
598
|
+
String getBNFGrammerTextFromRulePath(size_t ruleID, const size_t level = 0);
|
599
|
+
|
600
|
+
|
601
|
+
private:
|
602
|
+
// used for interpreting BNF script
|
603
|
+
// keep it as static so that only one structure is created
|
604
|
+
// no matter how many times this class is instantiated.
|
605
|
+
static TokenState mBNFTokenState;
|
606
|
+
// maintain a map of BNF grammer
|
607
|
+
typedef std::map<String, TokenState> TokenStateContainer;
|
608
|
+
static TokenStateContainer mClientTokenStates;
|
609
|
+
/// if a previous token action was setup then activate it now
|
610
|
+
void activatePreviousTokenAction(void);
|
611
|
+
/// initialize token definitions and rule paths
|
612
|
+
void initBNFCompiler(void);
|
613
|
+
/// Convert BNF grammer token que created in pass 1 into a BNF rule path
|
614
|
+
void buildClientBNFRulePaths(void);
|
615
|
+
/// modify the last rule in the container. An end operation is added to the rule path.
|
616
|
+
void modifyLastRule(const OperationType pendingRuleOp, const size_t tokenID);
|
617
|
+
/** get the token ID for a lexeme in the client state. If the lexeme is not found then
|
618
|
+
it is added to the map and definition container and a new tokenID created.
|
619
|
+
@return the ID of the token.
|
620
|
+
*/
|
621
|
+
size_t getClientLexemeTokenID(const String& lexeme, const bool isCaseSensitive = false);
|
622
|
+
/// Extract a Non Terminal identifier from the token que
|
623
|
+
void extractNonTerminal(const OperationType pendingRuleOp);
|
624
|
+
/// Extract a Terminal lexeme from the token que and add to current rule expression
|
625
|
+
void extractTerminal(const OperationType pendingRuleOp, const bool notoken = false);
|
626
|
+
/// Extract a set from the token que and add to current rule expression
|
627
|
+
void extractSet(const OperationType pendingRuleOp);
|
628
|
+
/// Extract a numeric constant from the token que and add it to the current rule expression
|
629
|
+
void extractNumericConstant(const OperationType pendingRuleOp);
|
630
|
+
/// changes previous terminal token rule into a conditional terminal token insert rule
|
631
|
+
void setConditionalTokenInsert(void);
|
632
|
+
/// get the lexeme text of a rule.
|
633
|
+
String getLexemeText(size_t& ruleID, const size_t level = 0);
|
634
|
+
|
635
|
+
|
636
|
+
public:
|
637
|
+
|
638
|
+
/// constructor
|
639
|
+
Compiler2Pass();
|
640
|
+
virtual ~Compiler2Pass() {}
|
641
|
+
|
642
|
+
/** compile the source - performs 2 passes.
|
643
|
+
First pass is to tokinize, check semantics and context.
|
644
|
+
The second pass is performed by using tokens to look up function implementors and executing
|
645
|
+
them which convert tokens to application specific instructions.
|
646
|
+
@remark
|
647
|
+
Pass 2 only gets executed if Pass 1 has built enough tokens to complete a rule path and found no errors
|
648
|
+
@param source a pointer to the source text to be compiled
|
649
|
+
@return
|
650
|
+
true if Pass 1 and Pass 2 are successfull
|
651
|
+
false if any errors occur in Pass 1 or Pass 2
|
652
|
+
*/
|
653
|
+
bool compile(const String& source, const String& sourceName);
|
654
|
+
/** gets BNF Grammer. Gets called when BNF grammer has to be compiled for the first time.
|
655
|
+
*/
|
656
|
+
virtual const String& getClientBNFGrammer(void) const = 0;
|
657
|
+
|
658
|
+
/** get the name of the BNF grammer.
|
659
|
+
*/
|
660
|
+
virtual const String& getClientGrammerName(void) const = 0;
|
661
|
+
|
662
|
+
};
|
663
|
+
|
664
|
+
}
|
665
|
+
|
666
|
+
#endif
|
667
|
+
|