shattered_ogrerb 0.5.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (905) hide show
  1. data/lib/shattered_ogrerb.rb +17 -0
  2. data/lib/shattered_ogrerb/base.rb +28 -0
  3. data/lib/shattered_ogrerb/camera.rb +6 -0
  4. data/lib/shattered_ogrerb/key_manager.rb +54 -0
  5. data/lib/shattered_ogrerb/light.rb +5 -0
  6. data/lib/shattered_ogrerb/mesh_instance.rb +92 -0
  7. data/lib/shattered_ogrerb/rmaterial.rb +86 -0
  8. data/lib/shattered_ogrerb/vector.rb +211 -0
  9. data/vendor/Ogre/OIS.dll +0 -0
  10. data/vendor/Ogre/OgreGUIRenderer.dll +0 -0
  11. data/vendor/Ogre/OgreMain.dll +0 -0
  12. data/vendor/Ogre/Plugin_BSPSceneManager.dll +0 -0
  13. data/vendor/Ogre/Plugin_CgProgramManager.dll +0 -0
  14. data/vendor/Ogre/Plugin_OctreeSceneManager.dll +0 -0
  15. data/vendor/Ogre/Plugin_ParticleFX.dll +0 -0
  16. data/vendor/Ogre/RenderSystem_Direct3D9.dll +0 -0
  17. data/vendor/Ogre/RenderSystem_GL.dll +0 -0
  18. data/vendor/Ogre/cg.dll +0 -0
  19. data/vendor/Ogre/plugins.cfg +9 -0
  20. data/vendor/ogrerb/MIT_LICENCE +19 -0
  21. data/vendor/ogrerb/README +79 -0
  22. data/vendor/ogrerb/Rakefile +220 -0
  23. data/vendor/ogrerb/build/navi/extconf.rb +53 -0
  24. data/vendor/ogrerb/build/ogre/extconf.rb +50 -0
  25. data/vendor/ogrerb/build/ois/extconf.rb +48 -0
  26. data/vendor/ogrerb/doc_src/ogre.rb +152 -0
  27. data/vendor/ogrerb/doc_src/ois.rb +67 -0
  28. data/vendor/ogrerb/lib/constants.rb +35 -0
  29. data/vendor/ogrerb/lib/ogre.dll +0 -0
  30. data/vendor/ogrerb/lib/ruby_ois.dll +0 -0
  31. data/vendor/ogrerb/navi/Navi.i +5 -0
  32. data/vendor/ogrerb/navi/NaviData.i +18 -0
  33. data/vendor/ogrerb/navi/NaviManager.i +5 -0
  34. data/vendor/ogrerb/navi/NaviProxies.i +7 -0
  35. data/vendor/ogrerb/navi/lib/Navi.lib +0 -0
  36. data/vendor/ogrerb/navi/lib/Navi_d.lib +0 -0
  37. data/vendor/ogrerb/navi/lib/llmozlib.lib +0 -0
  38. data/vendor/ogrerb/navi/lib/llmozlib_d.lib +0 -0
  39. data/vendor/ogrerb/navi/navi_rb.i +53 -0
  40. data/vendor/ogrerb/navi/std_multimap.i +581 -0
  41. data/vendor/ogrerb/ogre.rb +23 -0
  42. data/vendor/ogrerb/ogre/Application.i +59 -0
  43. data/vendor/ogrerb/ogre/ApplicationFrameListener.i +67 -0
  44. data/vendor/ogrerb/ogre/ExampleApplication.i +7 -0
  45. data/vendor/ogrerb/ogre/ExampleFrameListener.i +7 -0
  46. data/vendor/ogrerb/ogre/OgreAlignedAllocator.i +5 -0
  47. data/vendor/ogrerb/ogre/OgreAnimable.i +5 -0
  48. data/vendor/ogrerb/ogre/OgreAnimation.i +5 -0
  49. data/vendor/ogrerb/ogre/OgreAnimationState.i +9 -0
  50. data/vendor/ogrerb/ogre/OgreAnimationTrack.i +5 -0
  51. data/vendor/ogrerb/ogre/OgreAny.i +5 -0
  52. data/vendor/ogrerb/ogre/OgreArchive.i +5 -0
  53. data/vendor/ogrerb/ogre/OgreArchiveFactory.i +5 -0
  54. data/vendor/ogrerb/ogre/OgreArchiveManager.i +5 -0
  55. data/vendor/ogrerb/ogre/OgreAutoParamDataSource.i +5 -0
  56. data/vendor/ogrerb/ogre/OgreAxisAlignedBox.i +5 -0
  57. data/vendor/ogrerb/ogre/OgreBillboard.i +5 -0
  58. data/vendor/ogrerb/ogre/OgreBillboardChain.i +11 -0
  59. data/vendor/ogrerb/ogre/OgreBillboardParticleRenderer.i +5 -0
  60. data/vendor/ogrerb/ogre/OgreBillboardSet.i +5 -0
  61. data/vendor/ogrerb/ogre/OgreBitwise.i +5 -0
  62. data/vendor/ogrerb/ogre/OgreBlendMode.i +5 -0
  63. data/vendor/ogrerb/ogre/OgreBone.i +5 -0
  64. data/vendor/ogrerb/ogre/OgreBorderPanelOverlayElement.i +5 -0
  65. data/vendor/ogrerb/ogre/OgreCamera.i +5 -0
  66. data/vendor/ogrerb/ogre/OgreCodec.i +5 -0
  67. data/vendor/ogrerb/ogre/OgreColourValue.i +5 -0
  68. data/vendor/ogrerb/ogre/OgreCommon.i +33 -0
  69. data/vendor/ogrerb/ogre/OgreCompiler2Pass.i +5 -0
  70. data/vendor/ogrerb/ogre/OgreCompositionPass.i +5 -0
  71. data/vendor/ogrerb/ogre/OgreCompositionTargetPass.i +5 -0
  72. data/vendor/ogrerb/ogre/OgreCompositionTechnique.i +5 -0
  73. data/vendor/ogrerb/ogre/OgreCompositor.i +5 -0
  74. data/vendor/ogrerb/ogre/OgreCompositorChain.i +5 -0
  75. data/vendor/ogrerb/ogre/OgreCompositorInstance.i +5 -0
  76. data/vendor/ogrerb/ogre/OgreCompositorManager.i +5 -0
  77. data/vendor/ogrerb/ogre/OgreCompositorScriptCompiler.i +5 -0
  78. data/vendor/ogrerb/ogre/OgreCompositorSerializer.i +5 -0
  79. data/vendor/ogrerb/ogre/OgreConfig.i +5 -0
  80. data/vendor/ogrerb/ogre/OgreConfigDialog.i +5 -0
  81. data/vendor/ogrerb/ogre/OgreConfigFile.i +13 -0
  82. data/vendor/ogrerb/ogre/OgreConfigOptionMap.i +5 -0
  83. data/vendor/ogrerb/ogre/OgreController.i +5 -0
  84. data/vendor/ogrerb/ogre/OgreControllerManager.i +5 -0
  85. data/vendor/ogrerb/ogre/OgreConvexBody.i +5 -0
  86. data/vendor/ogrerb/ogre/OgreDDSCodec.i +5 -0
  87. data/vendor/ogrerb/ogre/OgreDataStream.i +9 -0
  88. data/vendor/ogrerb/ogre/OgreDefaultHardwareBufferManager.i +5 -0
  89. data/vendor/ogrerb/ogre/OgreDynLib.i +5 -0
  90. data/vendor/ogrerb/ogre/OgreDynLibManager.i +5 -0
  91. data/vendor/ogrerb/ogre/OgreEdgeListBuilder.i +5 -0
  92. data/vendor/ogrerb/ogre/OgreEntity.i +5 -0
  93. data/vendor/ogrerb/ogre/OgreErrorDialog.i +5 -0
  94. data/vendor/ogrerb/ogre/OgreException.i +5 -0
  95. data/vendor/ogrerb/ogre/OgreExternalTextureSource.i +5 -0
  96. data/vendor/ogrerb/ogre/OgreExternalTextureSourceManager.i +5 -0
  97. data/vendor/ogrerb/ogre/OgreFactoryObj.i +5 -0
  98. data/vendor/ogrerb/ogre/OgreFileSystem.i +5 -0
  99. data/vendor/ogrerb/ogre/OgreFont.i +5 -0
  100. data/vendor/ogrerb/ogre/OgreFontManager.i +5 -0
  101. data/vendor/ogrerb/ogre/OgreFrameListener.i +12 -0
  102. data/vendor/ogrerb/ogre/OgreFreeImageCodec.i +5 -0
  103. data/vendor/ogrerb/ogre/OgreFrustum.i +5 -0
  104. data/vendor/ogrerb/ogre/OgreGpuProgram.i +5 -0
  105. data/vendor/ogrerb/ogre/OgreGpuProgramManager.i +5 -0
  106. data/vendor/ogrerb/ogre/OgreGpuProgramUsage.i +5 -0
  107. data/vendor/ogrerb/ogre/OgreHardwareBuffer.i +5 -0
  108. data/vendor/ogrerb/ogre/OgreHardwareBufferManager.i +9 -0
  109. data/vendor/ogrerb/ogre/OgreHardwareIndexBuffer.i +9 -0
  110. data/vendor/ogrerb/ogre/OgreHardwareOcclusionQuery.i +5 -0
  111. data/vendor/ogrerb/ogre/OgreHardwarePixelBuffer.i +9 -0
  112. data/vendor/ogrerb/ogre/OgreHardwareVertexBuffer.i +10 -0
  113. data/vendor/ogrerb/ogre/OgreHighLevelGpuProgram.i +5 -0
  114. data/vendor/ogrerb/ogre/OgreHighLevelGpuProgramManager.i +5 -0
  115. data/vendor/ogrerb/ogre/OgreImage.i +5 -0
  116. data/vendor/ogrerb/ogre/OgreImageCodec.i +5 -0
  117. data/vendor/ogrerb/ogre/OgreInstancedGeometry.i +5 -0
  118. data/vendor/ogrerb/ogre/OgreIteratorWrappers.i +5 -0
  119. data/vendor/ogrerb/ogre/OgreKeyFrame.i +7 -0
  120. data/vendor/ogrerb/ogre/OgreLight.i +5 -0
  121. data/vendor/ogrerb/ogre/OgreLog.i +5 -0
  122. data/vendor/ogrerb/ogre/OgreLogManager.i +9 -0
  123. data/vendor/ogrerb/ogre/OgreManualObject.i +5 -0
  124. data/vendor/ogrerb/ogre/OgreMaterial.i +9 -0
  125. data/vendor/ogrerb/ogre/OgreMaterialManager.i +22 -0
  126. data/vendor/ogrerb/ogre/OgreMaterialScriptCompiler.i +5 -0
  127. data/vendor/ogrerb/ogre/OgreMaterialSerializer.i +5 -0
  128. data/vendor/ogrerb/ogre/OgreMath.i +48 -0
  129. data/vendor/ogrerb/ogre/OgreMatrix3.i +5 -0
  130. data/vendor/ogrerb/ogre/OgreMatrix4.i +5 -0
  131. data/vendor/ogrerb/ogre/OgreMemoryMacros.i +5 -0
  132. data/vendor/ogrerb/ogre/OgreMemoryManager.i +5 -0
  133. data/vendor/ogrerb/ogre/OgreMesh.i +11 -0
  134. data/vendor/ogrerb/ogre/OgreMeshFileFormat.i +5 -0
  135. data/vendor/ogrerb/ogre/OgreMeshManager.i +9 -0
  136. data/vendor/ogrerb/ogre/OgreMeshSerializer.i +5 -0
  137. data/vendor/ogrerb/ogre/OgreMeshSerializerImpl.i +5 -0
  138. data/vendor/ogrerb/ogre/OgreMovableObject.i +46 -0
  139. data/vendor/ogrerb/ogre/OgreMovablePlane.i +5 -0
  140. data/vendor/ogrerb/ogre/OgreNoMemoryMacros.i +5 -0
  141. data/vendor/ogrerb/ogre/OgreNode.i +11 -0
  142. data/vendor/ogrerb/ogre/OgreNumerics.i +5 -0
  143. data/vendor/ogrerb/ogre/OgreOverlay.i +5 -0
  144. data/vendor/ogrerb/ogre/OgreOverlayContainer.i +5 -0
  145. data/vendor/ogrerb/ogre/OgreOverlayElement.i +5 -0
  146. data/vendor/ogrerb/ogre/OgreOverlayElementCommands.i +5 -0
  147. data/vendor/ogrerb/ogre/OgreOverlayElementFactory.i +5 -0
  148. data/vendor/ogrerb/ogre/OgreOverlayManager.i +9 -0
  149. data/vendor/ogrerb/ogre/OgrePanelOverlayElement.i +5 -0
  150. data/vendor/ogrerb/ogre/OgreParticle.i +5 -0
  151. data/vendor/ogrerb/ogre/OgreParticleAffector.i +5 -0
  152. data/vendor/ogrerb/ogre/OgreParticleAffectorFactory.i +5 -0
  153. data/vendor/ogrerb/ogre/OgreParticleEmitter.i +5 -0
  154. data/vendor/ogrerb/ogre/OgreParticleEmitterCommands.i +5 -0
  155. data/vendor/ogrerb/ogre/OgreParticleEmitterFactory.i +5 -0
  156. data/vendor/ogrerb/ogre/OgreParticleIterator.i +5 -0
  157. data/vendor/ogrerb/ogre/OgreParticleSystem.i +9 -0
  158. data/vendor/ogrerb/ogre/OgreParticleSystemManager.i +9 -0
  159. data/vendor/ogrerb/ogre/OgreParticleSystemRenderer.i +9 -0
  160. data/vendor/ogrerb/ogre/OgrePass.i +10 -0
  161. data/vendor/ogrerb/ogre/OgrePatchMesh.i +11 -0
  162. data/vendor/ogrerb/ogre/OgrePatchSurface.i +5 -0
  163. data/vendor/ogrerb/ogre/OgrePixelFormat.i +5 -0
  164. data/vendor/ogrerb/ogre/OgrePlane.i +5 -0
  165. data/vendor/ogrerb/ogre/OgrePlaneBoundedVolume.i +5 -0
  166. data/vendor/ogrerb/ogre/OgrePlatform.i +5 -0
  167. data/vendor/ogrerb/ogre/OgrePlugin.i +5 -0
  168. data/vendor/ogrerb/ogre/OgrePolygon.i +5 -0
  169. data/vendor/ogrerb/ogre/OgrePose.i +5 -0
  170. data/vendor/ogrerb/ogre/OgrePredefinedControllers.i +5 -0
  171. data/vendor/ogrerb/ogre/OgrePrefabFactory.i +5 -0
  172. data/vendor/ogrerb/ogre/OgrePrerequisites.i +5 -0
  173. data/vendor/ogrerb/ogre/OgreProfiler.i +5 -0
  174. data/vendor/ogrerb/ogre/OgreProgressiveMesh.i +5 -0
  175. data/vendor/ogrerb/ogre/OgreProxies.i +10 -0
  176. data/vendor/ogrerb/ogre/OgreQuaternion.i +5 -0
  177. data/vendor/ogrerb/ogre/OgreRadixSort.i +5 -0
  178. data/vendor/ogrerb/ogre/OgreRay.i +5 -0
  179. data/vendor/ogrerb/ogre/OgreRectangle.i +5 -0
  180. data/vendor/ogrerb/ogre/OgreRectangle2D.i +5 -0
  181. data/vendor/ogrerb/ogre/OgreRenderOperation.i +5 -0
  182. data/vendor/ogrerb/ogre/OgreRenderQueue.i +10 -0
  183. data/vendor/ogrerb/ogre/OgreRenderQueueInvocation.i +5 -0
  184. data/vendor/ogrerb/ogre/OgreRenderQueueListener.i +5 -0
  185. data/vendor/ogrerb/ogre/OgreRenderQueueSortingGrouping.i +5 -0
  186. data/vendor/ogrerb/ogre/OgreRenderSystem.i +12 -0
  187. data/vendor/ogrerb/ogre/OgreRenderSystemCapabilities.i +7 -0
  188. data/vendor/ogrerb/ogre/OgreRenderTarget.i +27 -0
  189. data/vendor/ogrerb/ogre/OgreRenderTargetListener.i +7 -0
  190. data/vendor/ogrerb/ogre/OgreRenderTexture.i +5 -0
  191. data/vendor/ogrerb/ogre/OgreRenderWindow.i +9 -0
  192. data/vendor/ogrerb/ogre/OgreRenderable.i +5 -0
  193. data/vendor/ogrerb/ogre/OgreResource.i +68 -0
  194. data/vendor/ogrerb/ogre/OgreResourceBackgroundQueue.i +5 -0
  195. data/vendor/ogrerb/ogre/OgreResourceGroupManager.i +17 -0
  196. data/vendor/ogrerb/ogre/OgreResourceManager.i +5 -0
  197. data/vendor/ogrerb/ogre/OgreRibbonTrail.i +5 -0
  198. data/vendor/ogrerb/ogre/OgreRoot.i +9 -0
  199. data/vendor/ogrerb/ogre/OgreRotationalSpline.i +5 -0
  200. data/vendor/ogrerb/ogre/OgreSceneManager.i +17 -0
  201. data/vendor/ogrerb/ogre/OgreSceneManagerEnumerator.i +8 -0
  202. data/vendor/ogrerb/ogre/OgreSceneNode.i +9 -0
  203. data/vendor/ogrerb/ogre/OgreSceneQuery.i +5 -0
  204. data/vendor/ogrerb/ogre/OgreScriptLoader.i +5 -0
  205. data/vendor/ogrerb/ogre/OgreSearchOps.i +5 -0
  206. data/vendor/ogrerb/ogre/OgreSerializer.i +5 -0
  207. data/vendor/ogrerb/ogre/OgreShadowCameraSetup.i +5 -0
  208. data/vendor/ogrerb/ogre/OgreShadowCameraSetupFocused.i +5 -0
  209. data/vendor/ogrerb/ogre/OgreShadowCameraSetupLiSPSM.i +5 -0
  210. data/vendor/ogrerb/ogre/OgreShadowCameraSetupPlaneOptimal.i +5 -0
  211. data/vendor/ogrerb/ogre/OgreShadowCaster.i +5 -0
  212. data/vendor/ogrerb/ogre/OgreShadowTextureManager.i +7 -0
  213. data/vendor/ogrerb/ogre/OgreShadowVolumeExtrudeProgram.i +5 -0
  214. data/vendor/ogrerb/ogre/OgreSharedPtr.i +5 -0
  215. data/vendor/ogrerb/ogre/OgreSimpleRenderable.i +5 -0
  216. data/vendor/ogrerb/ogre/OgreSimpleSpline.i +5 -0
  217. data/vendor/ogrerb/ogre/OgreSingleton.i +9 -0
  218. data/vendor/ogrerb/ogre/OgreSkeleton.i +5 -0
  219. data/vendor/ogrerb/ogre/OgreSkeletonFileFormat.i +5 -0
  220. data/vendor/ogrerb/ogre/OgreSkeletonInstance.i +5 -0
  221. data/vendor/ogrerb/ogre/OgreSkeletonManager.i +5 -0
  222. data/vendor/ogrerb/ogre/OgreSkeletonSerializer.i +5 -0
  223. data/vendor/ogrerb/ogre/OgreSphere.i +5 -0
  224. data/vendor/ogrerb/ogre/OgreSpotShadowFadePng.i +5 -0
  225. data/vendor/ogrerb/ogre/OgreStableHeaders.i +5 -0
  226. data/vendor/ogrerb/ogre/OgreStaticFaceGroup.i +5 -0
  227. data/vendor/ogrerb/ogre/OgreStaticGeometry.i +5 -0
  228. data/vendor/ogrerb/ogre/OgreStdHeaders.i +5 -0
  229. data/vendor/ogrerb/ogre/OgreString.i +5 -0
  230. data/vendor/ogrerb/ogre/OgreStringConverter.i +5 -0
  231. data/vendor/ogrerb/ogre/OgreStringInterface.i +5 -0
  232. data/vendor/ogrerb/ogre/OgreStringVector.i +5 -0
  233. data/vendor/ogrerb/ogre/OgreSubEntity.i +5 -0
  234. data/vendor/ogrerb/ogre/OgreSubMesh.i +5 -0
  235. data/vendor/ogrerb/ogre/OgreTagPoint.i +5 -0
  236. data/vendor/ogrerb/ogre/OgreTechnique.i +5 -0
  237. data/vendor/ogrerb/ogre/OgreTextAreaOverlayElement.i +5 -0
  238. data/vendor/ogrerb/ogre/OgreTexture.i +9 -0
  239. data/vendor/ogrerb/ogre/OgreTextureManager.i +12 -0
  240. data/vendor/ogrerb/ogre/OgreTextureUnitState.i +12 -0
  241. data/vendor/ogrerb/ogre/OgreTimer.i +6 -0
  242. data/vendor/ogrerb/ogre/OgreUTFString.i +5 -0
  243. data/vendor/ogrerb/ogre/OgreUnifiedHighLevelGpuProgram.i +5 -0
  244. data/vendor/ogrerb/ogre/OgreUserDefinedObject.i +5 -0
  245. data/vendor/ogrerb/ogre/OgreVector2.i +5 -0
  246. data/vendor/ogrerb/ogre/OgreVector3.i +30 -0
  247. data/vendor/ogrerb/ogre/OgreVector4.i +5 -0
  248. data/vendor/ogrerb/ogre/OgreVertexBoneAssignment.i +5 -0
  249. data/vendor/ogrerb/ogre/OgreVertexIndexData.i +5 -0
  250. data/vendor/ogrerb/ogre/OgreViewport.i +5 -0
  251. data/vendor/ogrerb/ogre/OgreWindowEventUtilities.i +7 -0
  252. data/vendor/ogrerb/ogre/OgreWireBoundingBox.i +5 -0
  253. data/vendor/ogrerb/ogre/OgreZip.i +5 -0
  254. data/vendor/ogrerb/ogre/ogre_rb.i +343 -0
  255. data/vendor/ogrerb/ogre/std_multimap.i +581 -0
  256. data/vendor/ogrerb/ois/OISProxies.i +9 -0
  257. data/vendor/ogrerb/ois/OISRenames.i +11 -0
  258. data/vendor/ogrerb/ois/ois.i +135 -0
  259. data/vendor/ogrerb/ois/std_multimap.i +581 -0
  260. data/vendor/ogrerb/platform.rb +23 -0
  261. data/vendor/ogrerb/samples/application.rb +146 -0
  262. data/vendor/ogrerb/samples/application_frame_listener.rb +302 -0
  263. data/vendor/ogrerb/samples/application_loading_bar.rb +115 -0
  264. data/vendor/ogrerb/samples/bsp.rb +74 -0
  265. data/vendor/ogrerb/samples/cg.dll +0 -0
  266. data/vendor/ogrerb/samples/js3250.dll +0 -0
  267. data/vendor/ogrerb/samples/lighting.rb +136 -0
  268. data/vendor/ogrerb/samples/media/materials/scripts/CloudySky.material +17 -0
  269. data/vendor/ogrerb/samples/media/materials/scripts/Flare.material +17 -0
  270. data/vendor/ogrerb/samples/media/materials/scripts/Knot.material +14 -0
  271. data/vendor/ogrerb/samples/media/materials/scripts/MorningSkyBox.material +17 -0
  272. data/vendor/ogrerb/samples/media/materials/scripts/Ogre.material +119 -0
  273. data/vendor/ogrerb/samples/media/materials/scripts/Razor.material +14 -0
  274. data/vendor/ogrerb/samples/media/materials/scripts/Ribbon.material +19 -0
  275. data/vendor/ogrerb/samples/media/materials/scripts/RustySteel.material +14 -0
  276. data/vendor/ogrerb/samples/media/materials/scripts/SpaceSkyBox.material +17 -0
  277. data/vendor/ogrerb/samples/media/materials/scripts/SpaceSkyPlane.material +17 -0
  278. data/vendor/ogrerb/samples/media/materials/scripts/TextureEffects.material +15 -0
  279. data/vendor/ogrerb/samples/media/materials/scripts/dragon.material +42 -0
  280. data/vendor/ogrerb/samples/media/materials/scripts/smoke.material +18 -0
  281. data/vendor/ogrerb/samples/media/materials/textures/GreenSkin.jpg +0 -0
  282. data/vendor/ogrerb/samples/media/materials/textures/MtlPlat2.jpg +0 -0
  283. data/vendor/ogrerb/samples/media/materials/textures/RustedMetal.jpg +0 -0
  284. data/vendor/ogrerb/samples/media/materials/textures/RustySteel.jpg +0 -0
  285. data/vendor/ogrerb/samples/media/materials/textures/Water02.jpg +0 -0
  286. data/vendor/ogrerb/samples/media/materials/textures/WeirdEye.png +0 -0
  287. data/vendor/ogrerb/samples/media/materials/textures/clouds.jpg +0 -0
  288. data/vendor/ogrerb/samples/media/materials/textures/cursor.png +0 -0
  289. data/vendor/ogrerb/samples/media/materials/textures/dirt01.jpg +0 -0
  290. data/vendor/ogrerb/samples/media/materials/textures/flare.png +0 -0
  291. data/vendor/ogrerb/samples/media/materials/textures/ogreborder.png +0 -0
  292. data/vendor/ogrerb/samples/media/materials/textures/ogreborderUp.png +0 -0
  293. data/vendor/ogrerb/samples/media/materials/textures/ribbonband.png +0 -0
  294. data/vendor/ogrerb/samples/media/materials/textures/smoke.png +0 -0
  295. data/vendor/ogrerb/samples/media/materials/textures/smokecolors.png +0 -0
  296. data/vendor/ogrerb/samples/media/materials/textures/spacesky.jpg +0 -0
  297. data/vendor/ogrerb/samples/media/materials/textures/spheremap.png +0 -0
  298. data/vendor/ogrerb/samples/media/materials/textures/texmap2.jpg +0 -0
  299. data/vendor/ogrerb/samples/media/models/knot.mesh +0 -0
  300. data/vendor/ogrerb/samples/media/models/ogrehead.mesh +0 -0
  301. data/vendor/ogrerb/samples/media/models/razor.mesh +0 -0
  302. data/vendor/ogrerb/samples/media/packs/OgreCore.zip +0 -0
  303. data/vendor/ogrerb/samples/media/packs/chiropteraDM.pk3 +0 -0
  304. data/vendor/ogrerb/samples/media/packs/chiropteraDM.txt +99 -0
  305. data/vendor/ogrerb/samples/media/packs/cubemap.zip +0 -0
  306. data/vendor/ogrerb/samples/media/packs/cubemapsJS.zip +0 -0
  307. data/vendor/ogrerb/samples/media/packs/dragon.zip +0 -0
  308. data/vendor/ogrerb/samples/media/packs/skybox.zip +0 -0
  309. data/vendor/ogrerb/samples/media/particles/smoke.particle +43 -0
  310. data/vendor/ogrerb/samples/navi/Media/NaviDemo.material +60 -0
  311. data/vendor/ogrerb/samples/navi/Media/OgreCore.zip +0 -0
  312. data/vendor/ogrerb/samples/navi/Media/cerulean.jpg +0 -0
  313. data/vendor/ogrerb/samples/navi/Media/clouds.jpg +0 -0
  314. data/vendor/ogrerb/samples/navi/Media/controlsNaviMask.png +0 -0
  315. data/vendor/ogrerb/samples/navi/Media/grass.jpg +0 -0
  316. data/vendor/ogrerb/samples/navi/Media/knot.mesh +0 -0
  317. data/vendor/ogrerb/samples/navi/Media/testNaviMask.png +0 -0
  318. data/vendor/ogrerb/samples/navi/NaviLocal/Navi.js +136 -0
  319. data/vendor/ogrerb/samples/navi/NaviLocal/buttonBg.jpg +0 -0
  320. data/vendor/ogrerb/samples/navi/NaviLocal/controls.html +303 -0
  321. data/vendor/ogrerb/samples/navi/NaviLocal/knobBg.jpg +0 -0
  322. data/vendor/ogrerb/samples/navi/NaviLocal/moo.dropdownmenu.js +87 -0
  323. data/vendor/ogrerb/samples/navi/NaviLocal/mootools.v1.1.js +6964 -0
  324. data/vendor/ogrerb/samples/navi/NaviLocal/naviLogo.html +32 -0
  325. data/vendor/ogrerb/samples/navi/NaviLocal/naviLogo.png +0 -0
  326. data/vendor/ogrerb/samples/navi/NaviLocal/pageBg.jpg +0 -0
  327. data/vendor/ogrerb/samples/navi/NaviLocal/sliderBg.jpg +0 -0
  328. data/vendor/ogrerb/samples/navi/NaviLocal/test.html +5 -0
  329. data/vendor/ogrerb/samples/navi/NaviLocal/welcome.html +36 -0
  330. data/vendor/ogrerb/samples/navi/NaviLocal/welcome.png +0 -0
  331. data/vendor/ogrerb/samples/navi/chrome/chromelist.txt +597 -0
  332. data/vendor/ogrerb/samples/navi/chrome/classic.jar +0 -0
  333. data/vendor/ogrerb/samples/navi/chrome/classic.manifest +4 -0
  334. data/vendor/ogrerb/samples/navi/chrome/comm.jar +0 -0
  335. data/vendor/ogrerb/samples/navi/chrome/comm.manifest +2 -0
  336. data/vendor/ogrerb/samples/navi/chrome/en-US.jar +0 -0
  337. data/vendor/ogrerb/samples/navi/chrome/en-US.manifest +9 -0
  338. data/vendor/ogrerb/samples/navi/chrome/toolkit.jar +0 -0
  339. data/vendor/ogrerb/samples/navi/chrome/toolkit.manifest +6 -0
  340. data/vendor/ogrerb/samples/navi/components/FeedProcessor.js +1825 -0
  341. data/vendor/ogrerb/samples/navi/components/alerts.xpt +0 -0
  342. data/vendor/ogrerb/samples/navi/components/appshell.xpt +0 -0
  343. data/vendor/ogrerb/samples/navi/components/appstartup.xpt +0 -0
  344. data/vendor/ogrerb/samples/navi/components/auth.dll +0 -0
  345. data/vendor/ogrerb/samples/navi/components/autocomplete.xpt +0 -0
  346. data/vendor/ogrerb/samples/navi/components/autoconfig.dll +0 -0
  347. data/vendor/ogrerb/samples/navi/components/autoconfig.xpt +0 -0
  348. data/vendor/ogrerb/samples/navi/components/caps.xpt +0 -0
  349. data/vendor/ogrerb/samples/navi/components/chardet.xpt +0 -0
  350. data/vendor/ogrerb/samples/navi/components/chrome.xpt +0 -0
  351. data/vendor/ogrerb/samples/navi/components/commandhandler.xpt +0 -0
  352. data/vendor/ogrerb/samples/navi/components/commandlines.xpt +0 -0
  353. data/vendor/ogrerb/samples/navi/components/composer.xpt +0 -0
  354. data/vendor/ogrerb/samples/navi/components/compreg.dat +1474 -0
  355. data/vendor/ogrerb/samples/navi/components/content_base.xpt +0 -0
  356. data/vendor/ogrerb/samples/navi/components/content_html.xpt +0 -0
  357. data/vendor/ogrerb/samples/navi/components/content_htmldoc.xpt +0 -0
  358. data/vendor/ogrerb/samples/navi/components/content_xmldoc.xpt +0 -0
  359. data/vendor/ogrerb/samples/navi/components/content_xslt.xpt +0 -0
  360. data/vendor/ogrerb/samples/navi/components/content_xtf.xpt +0 -0
  361. data/vendor/ogrerb/samples/navi/components/directory.xpt +0 -0
  362. data/vendor/ogrerb/samples/navi/components/docshell_base.xpt +0 -0
  363. data/vendor/ogrerb/samples/navi/components/dom.xpt +0 -0
  364. data/vendor/ogrerb/samples/navi/components/dom_base.xpt +0 -0
  365. data/vendor/ogrerb/samples/navi/components/dom_canvas.xpt +0 -0
  366. data/vendor/ogrerb/samples/navi/components/dom_core.xpt +0 -0
  367. data/vendor/ogrerb/samples/navi/components/dom_css.xpt +0 -0
  368. data/vendor/ogrerb/samples/navi/components/dom_events.xpt +0 -0
  369. data/vendor/ogrerb/samples/navi/components/dom_html.xpt +0 -0
  370. data/vendor/ogrerb/samples/navi/components/dom_loadsave.xpt +0 -0
  371. data/vendor/ogrerb/samples/navi/components/dom_range.xpt +0 -0
  372. data/vendor/ogrerb/samples/navi/components/dom_sidebar.xpt +0 -0
  373. data/vendor/ogrerb/samples/navi/components/dom_storage.xpt +0 -0
  374. data/vendor/ogrerb/samples/navi/components/dom_stylesheets.xpt +0 -0
  375. data/vendor/ogrerb/samples/navi/components/dom_svg.xpt +0 -0
  376. data/vendor/ogrerb/samples/navi/components/dom_traversal.xpt +0 -0
  377. data/vendor/ogrerb/samples/navi/components/dom_views.xpt +0 -0
  378. data/vendor/ogrerb/samples/navi/components/dom_xbl.xpt +0 -0
  379. data/vendor/ogrerb/samples/navi/components/dom_xpath.xpt +0 -0
  380. data/vendor/ogrerb/samples/navi/components/dom_xul.xpt +0 -0
  381. data/vendor/ogrerb/samples/navi/components/downloads.xpt +0 -0
  382. data/vendor/ogrerb/samples/navi/components/editor.xpt +0 -0
  383. data/vendor/ogrerb/samples/navi/components/embed_base.xpt +0 -0
  384. data/vendor/ogrerb/samples/navi/components/extensions.xpt +0 -0
  385. data/vendor/ogrerb/samples/navi/components/exthandler.xpt +0 -0
  386. data/vendor/ogrerb/samples/navi/components/fastfind.xpt +0 -0
  387. data/vendor/ogrerb/samples/navi/components/feeds.xpt +0 -0
  388. data/vendor/ogrerb/samples/navi/components/find.xpt +0 -0
  389. data/vendor/ogrerb/samples/navi/components/gfx.xpt +0 -0
  390. data/vendor/ogrerb/samples/navi/components/gksvgrenderer.xpt +0 -0
  391. data/vendor/ogrerb/samples/navi/components/history.xpt +0 -0
  392. data/vendor/ogrerb/samples/navi/components/htmlparser.xpt +0 -0
  393. data/vendor/ogrerb/samples/navi/components/imglib2.xpt +0 -0
  394. data/vendor/ogrerb/samples/navi/components/inspector.xpt +0 -0
  395. data/vendor/ogrerb/samples/navi/components/intl.xpt +0 -0
  396. data/vendor/ogrerb/samples/navi/components/intlcmpt.xpt +0 -0
  397. data/vendor/ogrerb/samples/navi/components/jar.xpt +0 -0
  398. data/vendor/ogrerb/samples/navi/components/jsconsole-clhandler.js +170 -0
  399. data/vendor/ogrerb/samples/navi/components/jsconsole.xpt +0 -0
  400. data/vendor/ogrerb/samples/navi/components/jsdservice.xpt +0 -0
  401. data/vendor/ogrerb/samples/navi/components/layout_base.xpt +0 -0
  402. data/vendor/ogrerb/samples/navi/components/layout_printing.xpt +0 -0
  403. data/vendor/ogrerb/samples/navi/components/layout_xul.xpt +0 -0
  404. data/vendor/ogrerb/samples/navi/components/layout_xul_tree.xpt +0 -0
  405. data/vendor/ogrerb/samples/navi/components/locale.xpt +0 -0
  406. data/vendor/ogrerb/samples/navi/components/lwbrk.xpt +0 -0
  407. data/vendor/ogrerb/samples/navi/components/mimetype.xpt +0 -0
  408. data/vendor/ogrerb/samples/navi/components/mozbrwsr.xpt +0 -0
  409. data/vendor/ogrerb/samples/navi/components/mozfind.xpt +0 -0
  410. data/vendor/ogrerb/samples/navi/components/necko.xpt +0 -0
  411. data/vendor/ogrerb/samples/navi/components/necko_about.xpt +0 -0
  412. data/vendor/ogrerb/samples/navi/components/necko_cache.xpt +0 -0
  413. data/vendor/ogrerb/samples/navi/components/necko_cookie.xpt +0 -0
  414. data/vendor/ogrerb/samples/navi/components/necko_data.xpt +0 -0
  415. data/vendor/ogrerb/samples/navi/components/necko_dns.xpt +0 -0
  416. data/vendor/ogrerb/samples/navi/components/necko_file.xpt +0 -0
  417. data/vendor/ogrerb/samples/navi/components/necko_ftp.xpt +0 -0
  418. data/vendor/ogrerb/samples/navi/components/necko_http.xpt +0 -0
  419. data/vendor/ogrerb/samples/navi/components/necko_res.xpt +0 -0
  420. data/vendor/ogrerb/samples/navi/components/necko_socket.xpt +0 -0
  421. data/vendor/ogrerb/samples/navi/components/necko_strconv.xpt +0 -0
  422. data/vendor/ogrerb/samples/navi/components/necko_viewsource.xpt +0 -0
  423. data/vendor/ogrerb/samples/navi/components/nsCloseAllWindows.js +143 -0
  424. data/vendor/ogrerb/samples/navi/components/nsDefaultCLH.js +231 -0
  425. data/vendor/ogrerb/samples/navi/components/nsDictionary.js +148 -0
  426. data/vendor/ogrerb/samples/navi/components/nsExtensionManager.js +8497 -0
  427. data/vendor/ogrerb/samples/navi/components/nsHelperAppDlg.js +990 -0
  428. data/vendor/ogrerb/samples/navi/components/nsInterfaceInfoToIDL.js +590 -0
  429. data/vendor/ogrerb/samples/navi/components/nsKillAll.js +200 -0
  430. data/vendor/ogrerb/samples/navi/components/nsPostUpdateWin.js +711 -0
  431. data/vendor/ogrerb/samples/navi/components/nsProgressDialog.js +949 -0
  432. data/vendor/ogrerb/samples/navi/components/nsProxyAutoConfig.js +396 -0
  433. data/vendor/ogrerb/samples/navi/components/nsResetPref.js +175 -0
  434. data/vendor/ogrerb/samples/navi/components/nsURLFormatter.js +179 -0
  435. data/vendor/ogrerb/samples/navi/components/nsUpdateService.js +3074 -0
  436. data/vendor/ogrerb/samples/navi/components/nsXULAppInstall.js +301 -0
  437. data/vendor/ogrerb/samples/navi/components/nsXmlRpcClient.js +1038 -0
  438. data/vendor/ogrerb/samples/navi/components/oji.xpt +0 -0
  439. data/vendor/ogrerb/samples/navi/components/passwordmgr.xpt +0 -0
  440. data/vendor/ogrerb/samples/navi/components/pipboot.xpt +0 -0
  441. data/vendor/ogrerb/samples/navi/components/pipnss.xpt +0 -0
  442. data/vendor/ogrerb/samples/navi/components/plugin.xpt +0 -0
  443. data/vendor/ogrerb/samples/navi/components/pref.xpt +0 -0
  444. data/vendor/ogrerb/samples/navi/components/prefetch.xpt +0 -0
  445. data/vendor/ogrerb/samples/navi/components/profile.xpt +0 -0
  446. data/vendor/ogrerb/samples/navi/components/progressDlg.xpt +0 -0
  447. data/vendor/ogrerb/samples/navi/components/proxyObject.xpt +0 -0
  448. data/vendor/ogrerb/samples/navi/components/rdf.xpt +0 -0
  449. data/vendor/ogrerb/samples/navi/components/satchel.xpt +0 -0
  450. data/vendor/ogrerb/samples/navi/components/saxparser.xpt +0 -0
  451. data/vendor/ogrerb/samples/navi/components/shistory.xpt +0 -0
  452. data/vendor/ogrerb/samples/navi/components/storage.xpt +0 -0
  453. data/vendor/ogrerb/samples/navi/components/toolkitprofile.xpt +0 -0
  454. data/vendor/ogrerb/samples/navi/components/transformiix.dll +0 -0
  455. data/vendor/ogrerb/samples/navi/components/txmgr.xpt +0 -0
  456. data/vendor/ogrerb/samples/navi/components/txtsvc.xpt +0 -0
  457. data/vendor/ogrerb/samples/navi/components/uconv.xpt +0 -0
  458. data/vendor/ogrerb/samples/navi/components/unicharutil.xpt +0 -0
  459. data/vendor/ogrerb/samples/navi/components/universalchardet.dll +0 -0
  460. data/vendor/ogrerb/samples/navi/components/update.xpt +0 -0
  461. data/vendor/ogrerb/samples/navi/components/uriloader.xpt +0 -0
  462. data/vendor/ogrerb/samples/navi/components/urlformatter.xpt +0 -0
  463. data/vendor/ogrerb/samples/navi/components/webBrowser_core.xpt +0 -0
  464. data/vendor/ogrerb/samples/navi/components/webbrowserpersist.xpt +0 -0
  465. data/vendor/ogrerb/samples/navi/components/webshell_idls.xpt +0 -0
  466. data/vendor/ogrerb/samples/navi/components/websrvcs.dll +0 -0
  467. data/vendor/ogrerb/samples/navi/components/websrvcs.xpt +0 -0
  468. data/vendor/ogrerb/samples/navi/components/widget.xpt +0 -0
  469. data/vendor/ogrerb/samples/navi/components/windowds.xpt +0 -0
  470. data/vendor/ogrerb/samples/navi/components/windowwatcher.xpt +0 -0
  471. data/vendor/ogrerb/samples/navi/components/xml-rpc.xpt +0 -0
  472. data/vendor/ogrerb/samples/navi/components/xmlextras.dll +0 -0
  473. data/vendor/ogrerb/samples/navi/components/xpcom_base.xpt +0 -0
  474. data/vendor/ogrerb/samples/navi/components/xpcom_components.xpt +0 -0
  475. data/vendor/ogrerb/samples/navi/components/xpcom_ds.xpt +0 -0
  476. data/vendor/ogrerb/samples/navi/components/xpcom_io.xpt +0 -0
  477. data/vendor/ogrerb/samples/navi/components/xpcom_obsolete.xpt +0 -0
  478. data/vendor/ogrerb/samples/navi/components/xpcom_thread.xpt +0 -0
  479. data/vendor/ogrerb/samples/navi/components/xpcom_xpti.xpt +0 -0
  480. data/vendor/ogrerb/samples/navi/components/xpconnect.xpt +0 -0
  481. data/vendor/ogrerb/samples/navi/components/xpinstall.xpt +0 -0
  482. data/vendor/ogrerb/samples/navi/components/xpti.dat +1424 -0
  483. data/vendor/ogrerb/samples/navi/components/xulapp.xpt +0 -0
  484. data/vendor/ogrerb/samples/navi/components/xulapp_setup.xpt +0 -0
  485. data/vendor/ogrerb/samples/navi/components/xuldoc.xpt +0 -0
  486. data/vendor/ogrerb/samples/navi/components/xulrunner.xpt +0 -0
  487. data/vendor/ogrerb/samples/navi/components/xultmpl.xpt +0 -0
  488. data/vendor/ogrerb/samples/navi/components/xulutil.dll +0 -0
  489. data/vendor/ogrerb/samples/navi/controlsNaviMask.png +0 -0
  490. data/vendor/ogrerb/samples/navi/greprefs/all.js +1344 -0
  491. data/vendor/ogrerb/samples/navi/greprefs/security-prefs.js +69 -0
  492. data/vendor/ogrerb/samples/navi/greprefs/xpinstall.js +2 -0
  493. data/vendor/ogrerb/samples/navi/navi_demo.rb +207 -0
  494. data/vendor/ogrerb/samples/navi/plugins.cfg +10 -0
  495. data/vendor/ogrerb/samples/navi/plugins/NPSWF32.dll +0 -0
  496. data/vendor/ogrerb/samples/navi/plugins/flashplayer.xpt +0 -0
  497. data/vendor/ogrerb/samples/navi/plugins/npnul32.dll +0 -0
  498. data/vendor/ogrerb/samples/navi/res/EditorOverride.css +359 -0
  499. data/vendor/ogrerb/samples/navi/res/Thumbs.db +0 -0
  500. data/vendor/ogrerb/samples/navi/res/arrow.gif +0 -0
  501. data/vendor/ogrerb/samples/navi/res/arrowd.gif +0 -0
  502. data/vendor/ogrerb/samples/navi/res/bloatcycle.html +40 -0
  503. data/vendor/ogrerb/samples/navi/res/broken-image.gif +0 -0
  504. data/vendor/ogrerb/samples/navi/res/charsetData.properties +199 -0
  505. data/vendor/ogrerb/samples/navi/res/charsetalias.properties +517 -0
  506. data/vendor/ogrerb/samples/navi/res/cmessage.txt +1 -0
  507. data/vendor/ogrerb/samples/navi/res/dtd/xhtml11.dtd +300 -0
  508. data/vendor/ogrerb/samples/navi/res/entityTables/html40Latin1.properties +146 -0
  509. data/vendor/ogrerb/samples/navi/res/entityTables/html40Special.properties +69 -0
  510. data/vendor/ogrerb/samples/navi/res/entityTables/html40Symbols.properties +164 -0
  511. data/vendor/ogrerb/samples/navi/res/entityTables/htmlEntityVersions.properties +50 -0
  512. data/vendor/ogrerb/samples/navi/res/entityTables/transliterate.properties +2367 -0
  513. data/vendor/ogrerb/samples/navi/res/fonts/fontEncoding.properties +127 -0
  514. data/vendor/ogrerb/samples/navi/res/fonts/fontNameMap.properties +134 -0
  515. data/vendor/ogrerb/samples/navi/res/forms.css +531 -0
  516. data/vendor/ogrerb/samples/navi/res/grabber.gif +0 -0
  517. data/vendor/ogrerb/samples/navi/res/hiddenWindow.html +1 -0
  518. data/vendor/ogrerb/samples/navi/res/html.css +478 -0
  519. data/vendor/ogrerb/samples/navi/res/html/Thumbs.db +0 -0
  520. data/vendor/ogrerb/samples/navi/res/html/gopher-audio.gif +0 -0
  521. data/vendor/ogrerb/samples/navi/res/html/gopher-binary.gif +0 -0
  522. data/vendor/ogrerb/samples/navi/res/html/gopher-find.gif +0 -0
  523. data/vendor/ogrerb/samples/navi/res/html/gopher-image.gif +0 -0
  524. data/vendor/ogrerb/samples/navi/res/html/gopher-menu.gif +0 -0
  525. data/vendor/ogrerb/samples/navi/res/html/gopher-movie.gif +0 -0
  526. data/vendor/ogrerb/samples/navi/res/html/gopher-sound.gif +0 -0
  527. data/vendor/ogrerb/samples/navi/res/html/gopher-telnet.gif +0 -0
  528. data/vendor/ogrerb/samples/navi/res/html/gopher-text.gif +0 -0
  529. data/vendor/ogrerb/samples/navi/res/html/gopher-unknown.gif +0 -0
  530. data/vendor/ogrerb/samples/navi/res/langGroups.properties +236 -0
  531. data/vendor/ogrerb/samples/navi/res/language.properties +259 -0
  532. data/vendor/ogrerb/samples/navi/res/loading-image.gif +0 -0
  533. data/vendor/ogrerb/samples/navi/res/quirk.css +282 -0
  534. data/vendor/ogrerb/samples/navi/res/samples/Anieyes.gif +0 -0
  535. data/vendor/ogrerb/samples/navi/res/samples/Thumbs.db +0 -0
  536. data/vendor/ogrerb/samples/navi/res/samples/aform.css +69 -0
  537. data/vendor/ogrerb/samples/navi/res/samples/beeptest.html +18 -0
  538. data/vendor/ogrerb/samples/navi/res/samples/bform.css +45 -0
  539. data/vendor/ogrerb/samples/navi/res/samples/bg.jpg +0 -0
  540. data/vendor/ogrerb/samples/navi/res/samples/cform.css +40 -0
  541. data/vendor/ogrerb/samples/navi/res/samples/checkboxTest.xul +47 -0
  542. data/vendor/ogrerb/samples/navi/res/samples/demoform.css +97 -0
  543. data/vendor/ogrerb/samples/navi/res/samples/find.html +97 -0
  544. data/vendor/ogrerb/samples/navi/res/samples/gear1.gif +0 -0
  545. data/vendor/ogrerb/samples/navi/res/samples/image_props.html +58 -0
  546. data/vendor/ogrerb/samples/navi/res/samples/mozform.css +256 -0
  547. data/vendor/ogrerb/samples/navi/res/samples/printsetup.html +175 -0
  548. data/vendor/ogrerb/samples/navi/res/samples/raptor.jpg +0 -0
  549. data/vendor/ogrerb/samples/navi/res/samples/rock_gra.gif +0 -0
  550. data/vendor/ogrerb/samples/navi/res/samples/scrollbarTest1.xul +66 -0
  551. data/vendor/ogrerb/samples/navi/res/samples/scrollbarTest2.xul +19 -0
  552. data/vendor/ogrerb/samples/navi/res/samples/sliderTest1.xul +14 -0
  553. data/vendor/ogrerb/samples/navi/res/samples/soundtest.html +20 -0
  554. data/vendor/ogrerb/samples/navi/res/samples/test.wav +0 -0
  555. data/vendor/ogrerb/samples/navi/res/samples/test0.html +220 -0
  556. data/vendor/ogrerb/samples/navi/res/samples/test1.html +84 -0
  557. data/vendor/ogrerb/samples/navi/res/samples/test10.html +16 -0
  558. data/vendor/ogrerb/samples/navi/res/samples/test11.html +42 -0
  559. data/vendor/ogrerb/samples/navi/res/samples/test12.html +79 -0
  560. data/vendor/ogrerb/samples/navi/res/samples/test13.html +126 -0
  561. data/vendor/ogrerb/samples/navi/res/samples/test14.html +5 -0
  562. data/vendor/ogrerb/samples/navi/res/samples/test15.html +5 -0
  563. data/vendor/ogrerb/samples/navi/res/samples/test16.html +124 -0
  564. data/vendor/ogrerb/samples/navi/res/samples/test2.html +41 -0
  565. data/vendor/ogrerb/samples/navi/res/samples/test3.html +126 -0
  566. data/vendor/ogrerb/samples/navi/res/samples/test4.html +335 -0
  567. data/vendor/ogrerb/samples/navi/res/samples/test5.html +199 -0
  568. data/vendor/ogrerb/samples/navi/res/samples/test6.html +335 -0
  569. data/vendor/ogrerb/samples/navi/res/samples/test7.html +11 -0
  570. data/vendor/ogrerb/samples/navi/res/samples/test8-1.html +66 -0
  571. data/vendor/ogrerb/samples/navi/res/samples/test8.html +662 -0
  572. data/vendor/ogrerb/samples/navi/res/samples/test8dom.html +64 -0
  573. data/vendor/ogrerb/samples/navi/res/samples/test8sca.html +308 -0
  574. data/vendor/ogrerb/samples/navi/res/samples/test8siz.html +224 -0
  575. data/vendor/ogrerb/samples/navi/res/samples/test8tab.html +9 -0
  576. data/vendor/ogrerb/samples/navi/res/samples/test9.html +12 -0
  577. data/vendor/ogrerb/samples/navi/res/samples/test9a.html +39 -0
  578. data/vendor/ogrerb/samples/navi/res/samples/test9b.html +16 -0
  579. data/vendor/ogrerb/samples/navi/res/samples/test_ed.html +5 -0
  580. data/vendor/ogrerb/samples/navi/res/samples/test_form.html +34 -0
  581. data/vendor/ogrerb/samples/navi/res/samples/test_gfx.html +75 -0
  582. data/vendor/ogrerb/samples/navi/res/samples/test_lbox.html +100 -0
  583. data/vendor/ogrerb/samples/navi/res/samples/test_pr.html +87 -0
  584. data/vendor/ogrerb/samples/navi/res/samples/test_weight.html +45 -0
  585. data/vendor/ogrerb/samples/navi/res/samples/toolbarTest1.xul +51 -0
  586. data/vendor/ogrerb/samples/navi/res/samples/treeTest1.css +62 -0
  587. data/vendor/ogrerb/samples/navi/res/samples/treeTest1.xul +110 -0
  588. data/vendor/ogrerb/samples/navi/res/samples/xulTest.css +130 -0
  589. data/vendor/ogrerb/samples/navi/res/svg.css +64 -0
  590. data/vendor/ogrerb/samples/navi/res/table-add-column-after-active.gif +0 -0
  591. data/vendor/ogrerb/samples/navi/res/table-add-column-after-hover.gif +0 -0
  592. data/vendor/ogrerb/samples/navi/res/table-add-column-after.gif +0 -0
  593. data/vendor/ogrerb/samples/navi/res/table-add-column-before-active.gif +0 -0
  594. data/vendor/ogrerb/samples/navi/res/table-add-column-before-hover.gif +0 -0
  595. data/vendor/ogrerb/samples/navi/res/table-add-column-before.gif +0 -0
  596. data/vendor/ogrerb/samples/navi/res/table-add-row-after-active.gif +0 -0
  597. data/vendor/ogrerb/samples/navi/res/table-add-row-after-hover.gif +0 -0
  598. data/vendor/ogrerb/samples/navi/res/table-add-row-after.gif +0 -0
  599. data/vendor/ogrerb/samples/navi/res/table-add-row-before-active.gif +0 -0
  600. data/vendor/ogrerb/samples/navi/res/table-add-row-before-hover.gif +0 -0
  601. data/vendor/ogrerb/samples/navi/res/table-add-row-before.gif +0 -0
  602. data/vendor/ogrerb/samples/navi/res/table-remove-column-active.gif +0 -0
  603. data/vendor/ogrerb/samples/navi/res/table-remove-column-hover.gif +0 -0
  604. data/vendor/ogrerb/samples/navi/res/table-remove-column.gif +0 -0
  605. data/vendor/ogrerb/samples/navi/res/table-remove-row-active.gif +0 -0
  606. data/vendor/ogrerb/samples/navi/res/table-remove-row-hover.gif +0 -0
  607. data/vendor/ogrerb/samples/navi/res/table-remove-row.gif +0 -0
  608. data/vendor/ogrerb/samples/navi/res/throbber/Thumbs.db +0 -0
  609. data/vendor/ogrerb/samples/navi/res/throbber/anim.gif +0 -0
  610. data/vendor/ogrerb/samples/navi/res/throbber/anims00.gif +0 -0
  611. data/vendor/ogrerb/samples/navi/res/throbber/anims01.gif +0 -0
  612. data/vendor/ogrerb/samples/navi/res/throbber/anims02.gif +0 -0
  613. data/vendor/ogrerb/samples/navi/res/throbber/anims03.gif +0 -0
  614. data/vendor/ogrerb/samples/navi/res/throbber/anims04.gif +0 -0
  615. data/vendor/ogrerb/samples/navi/res/throbber/anims05.gif +0 -0
  616. data/vendor/ogrerb/samples/navi/res/throbber/anims06.gif +0 -0
  617. data/vendor/ogrerb/samples/navi/res/throbber/anims07.gif +0 -0
  618. data/vendor/ogrerb/samples/navi/res/throbber/anims08.gif +0 -0
  619. data/vendor/ogrerb/samples/navi/res/throbber/anims09.gif +0 -0
  620. data/vendor/ogrerb/samples/navi/res/throbber/anims10.gif +0 -0
  621. data/vendor/ogrerb/samples/navi/res/throbber/anims11.gif +0 -0
  622. data/vendor/ogrerb/samples/navi/res/throbber/anims12.gif +0 -0
  623. data/vendor/ogrerb/samples/navi/res/throbber/anims13.gif +0 -0
  624. data/vendor/ogrerb/samples/navi/res/throbber/anims14.gif +0 -0
  625. data/vendor/ogrerb/samples/navi/res/throbber/anims15.gif +0 -0
  626. data/vendor/ogrerb/samples/navi/res/throbber/anims16.gif +0 -0
  627. data/vendor/ogrerb/samples/navi/res/throbber/anims17.gif +0 -0
  628. data/vendor/ogrerb/samples/navi/res/throbber/anims18.gif +0 -0
  629. data/vendor/ogrerb/samples/navi/res/throbber/anims19.gif +0 -0
  630. data/vendor/ogrerb/samples/navi/res/throbber/anims20.gif +0 -0
  631. data/vendor/ogrerb/samples/navi/res/throbber/anims21.gif +0 -0
  632. data/vendor/ogrerb/samples/navi/res/throbber/anims22.gif +0 -0
  633. data/vendor/ogrerb/samples/navi/res/throbber/anims23.gif +0 -0
  634. data/vendor/ogrerb/samples/navi/res/throbber/anims24.gif +0 -0
  635. data/vendor/ogrerb/samples/navi/res/throbber/anims25.gif +0 -0
  636. data/vendor/ogrerb/samples/navi/res/throbber/anims26.gif +0 -0
  637. data/vendor/ogrerb/samples/navi/res/throbber/anims27.gif +0 -0
  638. data/vendor/ogrerb/samples/navi/res/throbber/anims28.gif +0 -0
  639. data/vendor/ogrerb/samples/navi/res/throbber/anims29.gif +0 -0
  640. data/vendor/ogrerb/samples/navi/res/ua.css +235 -0
  641. data/vendor/ogrerb/samples/navi/res/viewer.properties +1 -0
  642. data/vendor/ogrerb/samples/navi/res/viewsource.css +118 -0
  643. data/vendor/ogrerb/samples/navi/res/wincharset.properties +55 -0
  644. data/vendor/ogrerb/samples/navi/resources.cfg +14 -0
  645. data/vendor/ogrerb/samples/navi/testNaviMask.png +0 -0
  646. data/vendor/ogrerb/samples/plugins.cfg +11 -0
  647. data/vendor/ogrerb/samples/quake3settings.cfg +2 -0
  648. data/vendor/ogrerb/samples/render_to_texture.rb +159 -0
  649. data/vendor/ogrerb/samples/resources.cfg +14 -0
  650. data/vendor/ogrerb/samples/sky_box.rb +105 -0
  651. data/vendor/ogrerb/samples/sky_dome.rb +84 -0
  652. data/vendor/ogrerb/samples/sky_plane.rb +24 -0
  653. data/vendor/ogrerb/samples/smoke.rb +21 -0
  654. data/vendor/ogrerb/src_headers/ExampleApplication/ExampleApplication.h +266 -0
  655. data/vendor/ogrerb/src_headers/ExampleApplication/ExampleFrameListener.h +408 -0
  656. data/vendor/ogrerb/src_headers/ExampleApplication/ExampleLoadingBar.h +182 -0
  657. data/vendor/ogrerb/src_headers/OGRE/GLX/OgreConfigDialogImp.h +76 -0
  658. data/vendor/ogrerb/src_headers/OGRE/GLX/OgreErrorDialogImp.h +53 -0
  659. data/vendor/ogrerb/src_headers/OGRE/GLX/OgreTimerImp.h +63 -0
  660. data/vendor/ogrerb/src_headers/OGRE/Ogre.h +130 -0
  661. data/vendor/ogrerb/src_headers/OGRE/OgreAlignedAllocator.h +181 -0
  662. data/vendor/ogrerb/src_headers/OGRE/OgreAnimable.h +299 -0
  663. data/vendor/ogrerb/src_headers/OGRE/OgreAnimation.h +406 -0
  664. data/vendor/ogrerb/src_headers/OGRE/OgreAnimationState.h +229 -0
  665. data/vendor/ogrerb/src_headers/OGRE/OgreAnimationTrack.h +547 -0
  666. data/vendor/ogrerb/src_headers/OGRE/OgreAny.h +405 -0
  667. data/vendor/ogrerb/src_headers/OGRE/OgreArchive.h +191 -0
  668. data/vendor/ogrerb/src_headers/OGRE/OgreArchiveFactory.h +62 -0
  669. data/vendor/ogrerb/src_headers/OGRE/OgreArchiveManager.h +130 -0
  670. data/vendor/ogrerb/src_headers/OGRE/OgreAutoParamDataSource.h +225 -0
  671. data/vendor/ogrerb/src_headers/OGRE/OgreAxisAlignedBox.h +790 -0
  672. data/vendor/ogrerb/src_headers/OGRE/OgreBillboard.h +217 -0
  673. data/vendor/ogrerb/src_headers/OGRE/OgreBillboardChain.h +343 -0
  674. data/vendor/ogrerb/src_headers/OGRE/OgreBillboardParticleRenderer.h +250 -0
  675. data/vendor/ogrerb/src_headers/OGRE/OgreBillboardSet.h +841 -0
  676. data/vendor/ogrerb/src_headers/OGRE/OgreBitwise.h +323 -0
  677. data/vendor/ogrerb/src_headers/OGRE/OgreBlendMode.h +245 -0
  678. data/vendor/ogrerb/src_headers/OGRE/OgreBone.h +142 -0
  679. data/vendor/ogrerb/src_headers/OGRE/OgreBorderPanelOverlayElement.h +344 -0
  680. data/vendor/ogrerb/src_headers/OGRE/OgreCamera.h +566 -0
  681. data/vendor/ogrerb/src_headers/OGRE/OgreCodec.h +133 -0
  682. data/vendor/ogrerb/src_headers/OGRE/OgreColourValue.h +319 -0
  683. data/vendor/ogrerb/src_headers/OGRE/OgreCommon.h +425 -0
  684. data/vendor/ogrerb/src_headers/OGRE/OgreCompiler2Pass.h +667 -0
  685. data/vendor/ogrerb/src_headers/OGRE/OgreCompositionPass.h +271 -0
  686. data/vendor/ogrerb/src_headers/OGRE/OgreCompositionTargetPass.h +153 -0
  687. data/vendor/ogrerb/src_headers/OGRE/OgreCompositionTechnique.h +146 -0
  688. data/vendor/ogrerb/src_headers/OGRE/OgreCompositor.h +179 -0
  689. data/vendor/ogrerb/src_headers/OGRE/OgreCompositorChain.h +208 -0
  690. data/vendor/ogrerb/src_headers/OGRE/OgreCompositorInstance.h +262 -0
  691. data/vendor/ogrerb/src_headers/OGRE/OgreCompositorManager.h +170 -0
  692. data/vendor/ogrerb/src_headers/OGRE/OgreCompositorScriptCompiler.h +186 -0
  693. data/vendor/ogrerb/src_headers/OGRE/OgreCompositorSerializer.h +59 -0
  694. data/vendor/ogrerb/src_headers/OGRE/OgreConfig.h +120 -0
  695. data/vendor/ogrerb/src_headers/OGRE/OgreConfigDialog.h +50 -0
  696. data/vendor/ogrerb/src_headers/OGRE/OgreConfigFile.h +102 -0
  697. data/vendor/ogrerb/src_headers/OGRE/OgreConfigOptionMap.h +56 -0
  698. data/vendor/ogrerb/src_headers/OGRE/OgreController.h +227 -0
  699. data/vendor/ogrerb/src_headers/OGRE/OgreControllerManager.h +287 -0
  700. data/vendor/ogrerb/src_headers/OGRE/OgreConvexBody.h +252 -0
  701. data/vendor/ogrerb/src_headers/OGRE/OgreDDSCodec.h +90 -0
  702. data/vendor/ogrerb/src_headers/OGRE/OgreDataStream.h +442 -0
  703. data/vendor/ogrerb/src_headers/OGRE/OgreDefaultHardwareBufferManager.h +116 -0
  704. data/vendor/ogrerb/src_headers/OGRE/OgreDynLib.h +116 -0
  705. data/vendor/ogrerb/src_headers/OGRE/OgreDynLibManager.h +110 -0
  706. data/vendor/ogrerb/src_headers/OGRE/OgreEdgeListBuilder.h +261 -0
  707. data/vendor/ogrerb/src_headers/OGRE/OgreEntity.h +771 -0
  708. data/vendor/ogrerb/src_headers/OGRE/OgreErrorDialog.h +50 -0
  709. data/vendor/ogrerb/src_headers/OGRE/OgreException.h +341 -0
  710. data/vendor/ogrerb/src_headers/OGRE/OgreExternalTextureSource.h +184 -0
  711. data/vendor/ogrerb/src_headers/OGRE/OgreExternalTextureSourceManager.h +117 -0
  712. data/vendor/ogrerb/src_headers/OGRE/OgreFactoryObj.h +65 -0
  713. data/vendor/ogrerb/src_headers/OGRE/OgreFileSystem.h +111 -0
  714. data/vendor/ogrerb/src_headers/OGRE/OgreFont.h +432 -0
  715. data/vendor/ogrerb/src_headers/OGRE/OgreFontManager.h +93 -0
  716. data/vendor/ogrerb/src_headers/OGRE/OgreFrameListener.h +106 -0
  717. data/vendor/ogrerb/src_headers/OGRE/OgreFreeImageCodec.h +77 -0
  718. data/vendor/ogrerb/src_headers/OGRE/OgreFrustum.h +590 -0
  719. data/vendor/ogrerb/src_headers/OGRE/OgreGpuProgram.h +1632 -0
  720. data/vendor/ogrerb/src_headers/OGRE/OgreGpuProgramManager.h +190 -0
  721. data/vendor/ogrerb/src_headers/OGRE/OgreGpuProgramUsage.h +129 -0
  722. data/vendor/ogrerb/src_headers/OGRE/OgreHardwareBuffer.h +330 -0
  723. data/vendor/ogrerb/src_headers/OGRE/OgreHardwareBufferManager.h +399 -0
  724. data/vendor/ogrerb/src_headers/OGRE/OgreHardwareIndexBuffer.h +78 -0
  725. data/vendor/ogrerb/src_headers/OGRE/OgreHardwareOcclusionQuery.h +125 -0
  726. data/vendor/ogrerb/src_headers/OGRE/OgreHardwarePixelBuffer.h +198 -0
  727. data/vendor/ogrerb/src_headers/OGRE/OgreHardwareVertexBuffer.h +541 -0
  728. data/vendor/ogrerb/src_headers/OGRE/OgreHighLevelGpuProgram.h +185 -0
  729. data/vendor/ogrerb/src_headers/OGRE/OgreHighLevelGpuProgramManager.h +146 -0
  730. data/vendor/ogrerb/src_headers/OGRE/OgreImage.h +428 -0
  731. data/vendor/ogrerb/src_headers/OGRE/OgreImageCodec.h +82 -0
  732. data/vendor/ogrerb/src_headers/OGRE/OgreInstancedGeometry.h +833 -0
  733. data/vendor/ogrerb/src_headers/OGRE/OgreIteratorWrappers.h +359 -0
  734. data/vendor/ogrerb/src_headers/OGRE/OgreKeyFrame.h +248 -0
  735. data/vendor/ogrerb/src_headers/OGRE/OgreLight.h +433 -0
  736. data/vendor/ogrerb/src_headers/OGRE/OgreLog.h +149 -0
  737. data/vendor/ogrerb/src_headers/OGRE/OgreLogManager.h +163 -0
  738. data/vendor/ogrerb/src_headers/OGRE/OgreManualObject.h +513 -0
  739. data/vendor/ogrerb/src_headers/OGRE/OgreMaterial.h +680 -0
  740. data/vendor/ogrerb/src_headers/OGRE/OgreMaterialManager.h +242 -0
  741. data/vendor/ogrerb/src_headers/OGRE/OgreMaterialScriptCompiler.h +330 -0
  742. data/vendor/ogrerb/src_headers/OGRE/OgreMaterialSerializer.h +278 -0
  743. data/vendor/ogrerb/src_headers/OGRE/OgreMath.h +606 -0
  744. data/vendor/ogrerb/src_headers/OGRE/OgreMatrix3.h +306 -0
  745. data/vendor/ogrerb/src_headers/OGRE/OgreMatrix4.h +603 -0
  746. data/vendor/ogrerb/src_headers/OGRE/OgreMemoryMacros.h +69 -0
  747. data/vendor/ogrerb/src_headers/OGRE/OgreMemoryManager.h +422 -0
  748. data/vendor/ogrerb/src_headers/OGRE/OgreMesh.h +875 -0
  749. data/vendor/ogrerb/src_headers/OGRE/OgreMeshFileFormat.h +277 -0
  750. data/vendor/ogrerb/src_headers/OGRE/OgreMeshManager.h +431 -0
  751. data/vendor/ogrerb/src_headers/OGRE/OgreMeshSerializer.h +99 -0
  752. data/vendor/ogrerb/src_headers/OGRE/OgreMeshSerializerImpl.h +218 -0
  753. data/vendor/ogrerb/src_headers/OGRE/OgreMovableObject.h +530 -0
  754. data/vendor/ogrerb/src_headers/OGRE/OgreMovablePlane.h +87 -0
  755. data/vendor/ogrerb/src_headers/OGRE/OgreNoMemoryMacros.h +42 -0
  756. data/vendor/ogrerb/src_headers/OGRE/OgreNode.h +727 -0
  757. data/vendor/ogrerb/src_headers/OGRE/OgreNumerics.h +55 -0
  758. data/vendor/ogrerb/src_headers/OGRE/OgreOverlay.h +285 -0
  759. data/vendor/ogrerb/src_headers/OGRE/OgreOverlayContainer.h +145 -0
  760. data/vendor/ogrerb/src_headers/OGRE/OgreOverlayElement.h +490 -0
  761. data/vendor/ogrerb/src_headers/OGRE/OgreOverlayElementCommands.h +115 -0
  762. data/vendor/ogrerb/src_headers/OGRE/OgreOverlayElementFactory.h +121 -0
  763. data/vendor/ogrerb/src_headers/OGRE/OgreOverlayManager.h +235 -0
  764. data/vendor/ogrerb/src_headers/OGRE/OgrePanelOverlayElement.h +154 -0
  765. data/vendor/ogrerb/src_headers/OGRE/OgreParticle.h +147 -0
  766. data/vendor/ogrerb/src_headers/OGRE/OgreParticleAffector.h +116 -0
  767. data/vendor/ogrerb/src_headers/OGRE/OgreParticleAffectorFactory.h +74 -0
  768. data/vendor/ogrerb/src_headers/OGRE/OgreParticleEmitter.h +506 -0
  769. data/vendor/ogrerb/src_headers/OGRE/OgreParticleEmitterCommands.h +200 -0
  770. data/vendor/ogrerb/src_headers/OGRE/OgreParticleEmitterFactory.h +77 -0
  771. data/vendor/ogrerb/src_headers/OGRE/OgreParticleIterator.h +61 -0
  772. data/vendor/ogrerb/src_headers/OGRE/OgreParticleSystem.h +878 -0
  773. data/vendor/ogrerb/src_headers/OGRE/OgreParticleSystemManager.h +389 -0
  774. data/vendor/ogrerb/src_headers/OGRE/OgreParticleSystemRenderer.h +124 -0
  775. data/vendor/ogrerb/src_headers/OGRE/OgrePass.h +1321 -0
  776. data/vendor/ogrerb/src_headers/OGRE/OgrePatchMesh.h +152 -0
  777. data/vendor/ogrerb/src_headers/OGRE/OgrePatchSurface.h +233 -0
  778. data/vendor/ogrerb/src_headers/OGRE/OgrePixelFormat.h +473 -0
  779. data/vendor/ogrerb/src_headers/OGRE/OgrePlane.h +154 -0
  780. data/vendor/ogrerb/src_headers/OGRE/OgrePlaneBoundedVolume.h +128 -0
  781. data/vendor/ogrerb/src_headers/OGRE/OgrePlatform.h +224 -0
  782. data/vendor/ogrerb/src_headers/OGRE/OgrePlugin.h +132 -0
  783. data/vendor/ogrerb/src_headers/OGRE/OgrePolygon.h +130 -0
  784. data/vendor/ogrerb/src_headers/OGRE/OgrePose.h +111 -0
  785. data/vendor/ogrerb/src_headers/OGRE/OgrePredefinedControllers.h +285 -0
  786. data/vendor/ogrerb/src_headers/OGRE/OgrePrefabFactory.h +66 -0
  787. data/vendor/ogrerb/src_headers/OGRE/OgrePrerequisites.h +390 -0
  788. data/vendor/ogrerb/src_headers/OGRE/OgreProfiler.h +415 -0
  789. data/vendor/ogrerb/src_headers/OGRE/OgreProgressiveMesh.h +248 -0
  790. data/vendor/ogrerb/src_headers/OGRE/OgreQuaternion.h +277 -0
  791. data/vendor/ogrerb/src_headers/OGRE/OgreRadixSort.h +322 -0
  792. data/vendor/ogrerb/src_headers/OGRE/OgreRay.h +115 -0
  793. data/vendor/ogrerb/src_headers/OGRE/OgreRectangle.h +69 -0
  794. data/vendor/ogrerb/src_headers/OGRE/OgreRectangle2D.h +79 -0
  795. data/vendor/ogrerb/src_headers/OGRE/OgreRenderOperation.h +84 -0
  796. data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueue.h +256 -0
  797. data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueueInvocation.h +218 -0
  798. data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueueListener.h +89 -0
  799. data/vendor/ogrerb/src_headers/OGRE/OgreRenderQueueSortingGrouping.h +653 -0
  800. data/vendor/ogrerb/src_headers/OGRE/OgreRenderSystem.h +1255 -0
  801. data/vendor/ogrerb/src_headers/OGRE/OgreRenderSystemCapabilities.h +380 -0
  802. data/vendor/ogrerb/src_headers/OGRE/OgreRenderTarget.h +359 -0
  803. data/vendor/ogrerb/src_headers/OGRE/OgreRenderTargetListener.h +132 -0
  804. data/vendor/ogrerb/src_headers/OGRE/OgreRenderTexture.h +101 -0
  805. data/vendor/ogrerb/src_headers/OGRE/OgreRenderWindow.h +204 -0
  806. data/vendor/ogrerb/src_headers/OGRE/OgreRenderable.h +296 -0
  807. data/vendor/ogrerb/src_headers/OGRE/OgreResource.h +415 -0
  808. data/vendor/ogrerb/src_headers/OGRE/OgreResourceBackgroundQueue.h +453 -0
  809. data/vendor/ogrerb/src_headers/OGRE/OgreResourceGroupManager.h +858 -0
  810. data/vendor/ogrerb/src_headers/OGRE/OgreResourceManager.h +446 -0
  811. data/vendor/ogrerb/src_headers/OGRE/OgreRibbonTrail.h +224 -0
  812. data/vendor/ogrerb/src_headers/OGRE/OgreRoot.h +844 -0
  813. data/vendor/ogrerb/src_headers/OGRE/OgreRotationalSpline.h +129 -0
  814. data/vendor/ogrerb/src_headers/OGRE/OgreSceneManager.h +2871 -0
  815. data/vendor/ogrerb/src_headers/OGRE/OgreSceneManagerEnumerator.h +221 -0
  816. data/vendor/ogrerb/src_headers/OGRE/OgreSceneNode.h +448 -0
  817. data/vendor/ogrerb/src_headers/OGRE/OgreSceneQuery.h +557 -0
  818. data/vendor/ogrerb/src_headers/OGRE/OgreScriptLoader.h +89 -0
  819. data/vendor/ogrerb/src_headers/OGRE/OgreSearchOps.h +65 -0
  820. data/vendor/ogrerb/src_headers/OGRE/OgreSerializer.h +113 -0
  821. data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetup.h +100 -0
  822. data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetupFocused.h +281 -0
  823. data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetupLiSPSM.h +226 -0
  824. data/vendor/ogrerb/src_headers/OGRE/OgreShadowCameraSetupPlaneOptimal.h +81 -0
  825. data/vendor/ogrerb/src_headers/OGRE/OgreShadowCaster.h +215 -0
  826. data/vendor/ogrerb/src_headers/OGRE/OgreShadowTextureManager.h +145 -0
  827. data/vendor/ogrerb/src_headers/OGRE/OgreShadowVolumeExtrudeProgram.h +233 -0
  828. data/vendor/ogrerb/src_headers/OGRE/OgreSharedPtr.h +244 -0
  829. data/vendor/ogrerb/src_headers/OGRE/OgreSimpleRenderable.h +98 -0
  830. data/vendor/ogrerb/src_headers/OGRE/OgreSimpleSpline.h +130 -0
  831. data/vendor/ogrerb/src_headers/OGRE/OgreSingleton.h +79 -0
  832. data/vendor/ogrerb/src_headers/OGRE/OgreSkeleton.h +519 -0
  833. data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonFileFormat.h +102 -0
  834. data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonInstance.h +156 -0
  835. data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonManager.h +98 -0
  836. data/vendor/ogrerb/src_headers/OGRE/OgreSkeletonSerializer.h +117 -0
  837. data/vendor/ogrerb/src_headers/OGRE/OgreSphere.h +101 -0
  838. data/vendor/ogrerb/src_headers/OGRE/OgreSpotShadowFadePng.h +648 -0
  839. data/vendor/ogrerb/src_headers/OGRE/OgreStableHeaders.h +80 -0
  840. data/vendor/ogrerb/src_headers/OGRE/OgreStaticFaceGroup.h +134 -0
  841. data/vendor/ogrerb/src_headers/OGRE/OgreStaticGeometry.h +748 -0
  842. data/vendor/ogrerb/src_headers/OGRE/OgreStdHeaders.h +102 -0
  843. data/vendor/ogrerb/src_headers/OGRE/OgreString.h +149 -0
  844. data/vendor/ogrerb/src_headers/OGRE/OgreStringConverter.h +246 -0
  845. data/vendor/ogrerb/src_headers/OGRE/OgreStringInterface.h +332 -0
  846. data/vendor/ogrerb/src_headers/OGRE/OgreStringVector.h +45 -0
  847. data/vendor/ogrerb/src_headers/OGRE/OgreSubEntity.h +230 -0
  848. data/vendor/ogrerb/src_headers/OGRE/OgreSubMesh.h +267 -0
  849. data/vendor/ogrerb/src_headers/OGRE/OgreTagPoint.h +116 -0
  850. data/vendor/ogrerb/src_headers/OGRE/OgreTechnique.h +488 -0
  851. data/vendor/ogrerb/src_headers/OGRE/OgreTextAreaOverlayElement.h +247 -0
  852. data/vendor/ogrerb/src_headers/OGRE/OgreTexture.h +414 -0
  853. data/vendor/ogrerb/src_headers/OGRE/OgreTextureManager.h +398 -0
  854. data/vendor/ogrerb/src_headers/OGRE/OgreTextureUnitState.h +1169 -0
  855. data/vendor/ogrerb/src_headers/OGRE/OgreTimer.h +44 -0
  856. data/vendor/ogrerb/src_headers/OGRE/OgreUTFString.h +2406 -0
  857. data/vendor/ogrerb/src_headers/OGRE/OgreUnifiedHighLevelGpuProgram.h +168 -0
  858. data/vendor/ogrerb/src_headers/OGRE/OgreUserDefinedObject.h +93 -0
  859. data/vendor/ogrerb/src_headers/OGRE/OgreVector2.h +532 -0
  860. data/vendor/ogrerb/src_headers/OGRE/OgreVector3.h +768 -0
  861. data/vendor/ogrerb/src_headers/OGRE/OgreVector4.h +396 -0
  862. data/vendor/ogrerb/src_headers/OGRE/OgreVertexBoneAssignment.h +56 -0
  863. data/vendor/ogrerb/src_headers/OGRE/OgreVertexIndexData.h +286 -0
  864. data/vendor/ogrerb/src_headers/OGRE/OgreViewport.h +331 -0
  865. data/vendor/ogrerb/src_headers/OGRE/OgreWindowEventUtilities.h +151 -0
  866. data/vendor/ogrerb/src_headers/OGRE/OgreWireBoundingBox.h +81 -0
  867. data/vendor/ogrerb/src_headers/OGRE/OgreZip.h +136 -0
  868. data/vendor/ogrerb/src_headers/OGRE/asm_math.h +367 -0
  869. data/vendor/ogrerb/src_headers/OIS/OIS.h +38 -0
  870. data/vendor/ogrerb/src_headers/OIS/OISConfig.h +49 -0
  871. data/vendor/ogrerb/src_headers/OIS/OISEffect.h +254 -0
  872. data/vendor/ogrerb/src_headers/OIS/OISEvents.h +43 -0
  873. data/vendor/ogrerb/src_headers/OIS/OISException.h +70 -0
  874. data/vendor/ogrerb/src_headers/OIS/OISForceFeedback.h +102 -0
  875. data/vendor/ogrerb/src_headers/OIS/OISInputManager.h +127 -0
  876. data/vendor/ogrerb/src_headers/OIS/OISInterface.h +47 -0
  877. data/vendor/ogrerb/src_headers/OIS/OISJoyStick.h +179 -0
  878. data/vendor/ogrerb/src_headers/OIS/OISKeyboard.h +310 -0
  879. data/vendor/ogrerb/src_headers/OIS/OISMouse.h +135 -0
  880. data/vendor/ogrerb/src_headers/OIS/OISObject.h +89 -0
  881. data/vendor/ogrerb/src_headers/OIS/OISPrereqs.h +170 -0
  882. data/vendor/ogrerb/src_headers/navi/Navi.h +121 -0
  883. data/vendor/ogrerb/src_headers/navi/NaviData.h +145 -0
  884. data/vendor/ogrerb/src_headers/navi/NaviEventListener.h +56 -0
  885. data/vendor/ogrerb/src_headers/navi/NaviManager.h +439 -0
  886. data/vendor/ogrerb/src_headers/navi/llmozlib.h +222 -0
  887. data/vendor/ogrerb/src_headers/wrappers/Application.h +61 -0
  888. data/vendor/ogrerb/src_headers/wrappers/ApplicationFrameListener.h +43 -0
  889. data/vendor/ogrerb/src_headers/wrappers/NaviProxies.h +15 -0
  890. data/vendor/ogrerb/src_headers/wrappers/OISProxies.h +58 -0
  891. data/vendor/ogrerb/src_headers/wrappers/OgreProxies.h +98 -0
  892. data/vendor/ogrerb/website/contact.html +43 -0
  893. data/vendor/ogrerb/website/docs.html +92 -0
  894. data/vendor/ogrerb/website/get.html +60 -0
  895. data/vendor/ogrerb/website/images/Thumbs.db +0 -0
  896. data/vendor/ogrerb/website/images/header.png +0 -0
  897. data/vendor/ogrerb/website/images/header.xcf +0 -0
  898. data/vendor/ogrerb/website/images/ogre3d.gif +0 -0
  899. data/vendor/ogrerb/website/images/redogrehead.png +0 -0
  900. data/vendor/ogrerb/website/images/ruby.png +0 -0
  901. data/vendor/ogrerb/website/images/sample.png +0 -0
  902. data/vendor/ogrerb/website/index.html +80 -0
  903. data/vendor/ogrerb/website/javascripts/prototype.js +3271 -0
  904. data/vendor/ogrerb/website/stylesheets/main.css +96 -0
  905. 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
+