ruby-ogre 0.0.1-x86-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1607) hide show
  1. data/INSTALL.md +24 -0
  2. data/LICENSE +23 -0
  3. data/README.md +39 -0
  4. data/Rakefile +271 -0
  5. data/bindings/ogre/interface/AnyVALUE.h +21 -0
  6. data/bindings/ogre/interface/GLX/OgreConfigDialogImp.i +8 -0
  7. data/bindings/ogre/interface/GLX/OgreErrorDialogImp.i +8 -0
  8. data/bindings/ogre/interface/GLX/OgreTimerImp.i +8 -0
  9. data/bindings/ogre/interface/Makefile +19 -0
  10. data/bindings/ogre/interface/Ogre.i +8 -0
  11. data/bindings/ogre/interface/OgreAlignedAllocator.i +10 -0
  12. data/bindings/ogre/interface/OgreAnimable.i +6 -0
  13. data/bindings/ogre/interface/OgreAnimation.i +8 -0
  14. data/bindings/ogre/interface/OgreAnimationBlender.i +8 -0
  15. data/bindings/ogre/interface/OgreAnimationState.i +31 -0
  16. data/bindings/ogre/interface/OgreAnimationTrack.i +6 -0
  17. data/bindings/ogre/interface/OgreAny.i +381 -0
  18. data/bindings/ogre/interface/OgreArchive.i +6 -0
  19. data/bindings/ogre/interface/OgreArchiveFactory.i +10 -0
  20. data/bindings/ogre/interface/OgreArchiveManager.i +8 -0
  21. data/bindings/ogre/interface/OgreAtomicWrappers.i +8 -0
  22. data/bindings/ogre/interface/OgreAutoParamDataSource.i +8 -0
  23. data/bindings/ogre/interface/OgreAxisAlignedBox.i +6 -0
  24. data/bindings/ogre/interface/OgreBillboard.i +8 -0
  25. data/bindings/ogre/interface/OgreBillboardChain.i +8 -0
  26. data/bindings/ogre/interface/OgreBillboardParticleRenderer.i +8 -0
  27. data/bindings/ogre/interface/OgreBillboardSet.i +8 -0
  28. data/bindings/ogre/interface/OgreBitwise.i +10 -0
  29. data/bindings/ogre/interface/OgreBlendMode.i +6 -0
  30. data/bindings/ogre/interface/OgreBone.i +8 -0
  31. data/bindings/ogre/interface/OgreBorderPanelOverlayElement.i +14 -0
  32. data/bindings/ogre/interface/OgreBuildSettings.i +8 -0
  33. data/bindings/ogre/interface/OgreCamera.i +6 -0
  34. data/bindings/ogre/interface/OgreCodec.i +8 -0
  35. data/bindings/ogre/interface/OgreColourValue.i +6 -0
  36. data/bindings/ogre/interface/OgreCommon.i +12 -0
  37. data/bindings/ogre/interface/OgreCompositionPass.i +8 -0
  38. data/bindings/ogre/interface/OgreCompositionTargetPass.i +8 -0
  39. data/bindings/ogre/interface/OgreCompositionTechnique.i +13 -0
  40. data/bindings/ogre/interface/OgreCompositor.i +8 -0
  41. data/bindings/ogre/interface/OgreCompositorChain.i +8 -0
  42. data/bindings/ogre/interface/OgreCompositorInstance.i +8 -0
  43. data/bindings/ogre/interface/OgreCompositorLogic.i +8 -0
  44. data/bindings/ogre/interface/OgreCompositorManager.i +8 -0
  45. data/bindings/ogre/interface/OgreConfig.i +8 -0
  46. data/bindings/ogre/interface/OgreConfigDialog.i +8 -0
  47. data/bindings/ogre/interface/OgreConfigFile.i +88 -0
  48. data/bindings/ogre/interface/OgreConfigOptionMap.i +6 -0
  49. data/bindings/ogre/interface/OgreController.i +8 -0
  50. data/bindings/ogre/interface/OgreControllerManager.i +8 -0
  51. data/bindings/ogre/interface/OgreConvexBody.i +8 -0
  52. data/bindings/ogre/interface/OgreCustomCompositionPass.i +8 -0
  53. data/bindings/ogre/interface/OgreDDSCodec.i +8 -0
  54. data/bindings/ogre/interface/OgreDataStream.i +6 -0
  55. data/bindings/ogre/interface/OgreDefaultHardwareBufferManager.i +8 -0
  56. data/bindings/ogre/interface/OgreDeflate.i +8 -0
  57. data/bindings/ogre/interface/OgreDepthBuffer.i +8 -0
  58. data/bindings/ogre/interface/OgreDistanceLodStrategy.i +8 -0
  59. data/bindings/ogre/interface/OgreDualQuaternion.i +8 -0
  60. data/bindings/ogre/interface/OgreDynLib.i +8 -0
  61. data/bindings/ogre/interface/OgreDynLibManager.i +8 -0
  62. data/bindings/ogre/interface/OgreEdgeListBuilder.i +8 -0
  63. data/bindings/ogre/interface/OgreEntity.i +6 -0
  64. data/bindings/ogre/interface/OgreErrorDialog.i +8 -0
  65. data/bindings/ogre/interface/OgreException.i +8 -0
  66. data/bindings/ogre/interface/OgreExternalTextureSource.i +8 -0
  67. data/bindings/ogre/interface/OgreExternalTextureSourceManager.i +8 -0
  68. data/bindings/ogre/interface/OgreFactoryObj.i +8 -0
  69. data/bindings/ogre/interface/OgreFileSystem.i +8 -0
  70. data/bindings/ogre/interface/OgreFont.i +8 -0
  71. data/bindings/ogre/interface/OgreFontManager.i +8 -0
  72. data/bindings/ogre/interface/OgreFrameListener.i +9 -0
  73. data/bindings/ogre/interface/OgreFreeImageCodec.i +8 -0
  74. data/bindings/ogre/interface/OgreFrustum.i +6 -0
  75. data/bindings/ogre/interface/OgreGpuProgram.i +6 -0
  76. data/bindings/ogre/interface/OgreGpuProgramManager.i +8 -0
  77. data/bindings/ogre/interface/OgreGpuProgramParams.i +13 -0
  78. data/bindings/ogre/interface/OgreGpuProgramUsage.i +8 -0
  79. data/bindings/ogre/interface/OgreHardwareBuffer.i +6 -0
  80. data/bindings/ogre/interface/OgreHardwareBufferManager.i +8 -0
  81. data/bindings/ogre/interface/OgreHardwareIndexBuffer.i +6 -0
  82. data/bindings/ogre/interface/OgreHardwareOcclusionQuery.i +8 -0
  83. data/bindings/ogre/interface/OgreHardwarePixelBuffer.i +6 -0
  84. data/bindings/ogre/interface/OgreHardwareVertexBuffer.i +6 -0
  85. data/bindings/ogre/interface/OgreHeaderPrefix.i +8 -0
  86. data/bindings/ogre/interface/OgreHeaderSuffix.i +8 -0
  87. data/bindings/ogre/interface/OgreHighLevelGpuProgram.i +8 -0
  88. data/bindings/ogre/interface/OgreHighLevelGpuProgramManager.i +8 -0
  89. data/bindings/ogre/interface/OgreImage.i +6 -0
  90. data/bindings/ogre/interface/OgreImageCodec.i +8 -0
  91. data/bindings/ogre/interface/OgreInstanceBatch.i +8 -0
  92. data/bindings/ogre/interface/OgreInstanceBatchHW.i +8 -0
  93. data/bindings/ogre/interface/OgreInstanceBatchHW_VTF.i +8 -0
  94. data/bindings/ogre/interface/OgreInstanceBatchShader.i +8 -0
  95. data/bindings/ogre/interface/OgreInstanceBatchVTF.i +8 -0
  96. data/bindings/ogre/interface/OgreInstanceManager.i +8 -0
  97. data/bindings/ogre/interface/OgreInstancedEntity.i +8 -0
  98. data/bindings/ogre/interface/OgreInstancedGeometry.i +9 -0
  99. data/bindings/ogre/interface/OgreIteratorRange.i +8 -0
  100. data/bindings/ogre/interface/OgreIteratorWrapper.i +6 -0
  101. data/bindings/ogre/interface/OgreIteratorWrappers.i +8 -0
  102. data/bindings/ogre/interface/OgreKeyFrame.i +13 -0
  103. data/bindings/ogre/interface/OgreLight.i +6 -0
  104. data/bindings/ogre/interface/OgreLodListener.i +6 -0
  105. data/bindings/ogre/interface/OgreLodStrategy.i +8 -0
  106. data/bindings/ogre/interface/OgreLodStrategyManager.i +10 -0
  107. data/bindings/ogre/interface/OgreLog.i +11 -0
  108. data/bindings/ogre/interface/OgreLogManager.i +8 -0
  109. data/bindings/ogre/interface/OgreManualObject.i +8 -0
  110. data/bindings/ogre/interface/OgreMaterial.i +17 -0
  111. data/bindings/ogre/interface/OgreMaterialManager.i +6 -0
  112. data/bindings/ogre/interface/OgreMaterialSerializer.i +8 -0
  113. data/bindings/ogre/interface/OgreMath.i +5 -0
  114. data/bindings/ogre/interface/OgreMatrix3.i +8 -0
  115. data/bindings/ogre/interface/OgreMatrix4.i +6 -0
  116. data/bindings/ogre/interface/OgreMemoryAllocatedObject.i +8 -0
  117. data/bindings/ogre/interface/OgreMemoryAllocatorConfig.i +7 -0
  118. data/bindings/ogre/interface/OgreMemoryNedAlloc.i +8 -0
  119. data/bindings/ogre/interface/OgreMemoryNedPooling.i +6 -0
  120. data/bindings/ogre/interface/OgreMemorySTLAllocator.i +5 -0
  121. data/bindings/ogre/interface/OgreMemoryStdAlloc.i +8 -0
  122. data/bindings/ogre/interface/OgreMemoryTracker.i +8 -0
  123. data/bindings/ogre/interface/OgreMesh.i +11 -0
  124. data/bindings/ogre/interface/OgreMeshFileFormat.i +8 -0
  125. data/bindings/ogre/interface/OgreMeshManager.i +6 -0
  126. data/bindings/ogre/interface/OgreMeshSerializer.i +8 -0
  127. data/bindings/ogre/interface/OgreMeshSerializerImpl.i +8 -0
  128. data/bindings/ogre/interface/OgreMovableObject.i +12 -0
  129. data/bindings/ogre/interface/OgreMovablePlane.i +8 -0
  130. data/bindings/ogre/interface/OgreNode.i +8 -0
  131. data/bindings/ogre/interface/OgreNumerics.i +8 -0
  132. data/bindings/ogre/interface/OgreOptimisedUtil.i +8 -0
  133. data/bindings/ogre/interface/OgreOverlay.i +6 -0
  134. data/bindings/ogre/interface/OgreOverlayContainer.i +37 -0
  135. data/bindings/ogre/interface/OgreOverlayElement.i +6 -0
  136. data/bindings/ogre/interface/OgreOverlayElementCommands.i +8 -0
  137. data/bindings/ogre/interface/OgreOverlayElementFactory.i +8 -0
  138. data/bindings/ogre/interface/OgreOverlayManager.i +20 -0
  139. data/bindings/ogre/interface/OgrePanelOverlayElement.i +14 -0
  140. data/bindings/ogre/interface/OgreParticle.i +8 -0
  141. data/bindings/ogre/interface/OgreParticleAffector.i +8 -0
  142. data/bindings/ogre/interface/OgreParticleAffectorFactory.i +8 -0
  143. data/bindings/ogre/interface/OgreParticleEmitter.i +8 -0
  144. data/bindings/ogre/interface/OgreParticleEmitterCommands.i +8 -0
  145. data/bindings/ogre/interface/OgreParticleEmitterFactory.i +8 -0
  146. data/bindings/ogre/interface/OgreParticleIterator.i +8 -0
  147. data/bindings/ogre/interface/OgreParticleScriptCompiler.i +8 -0
  148. data/bindings/ogre/interface/OgreParticleSystem.i +8 -0
  149. data/bindings/ogre/interface/OgreParticleSystemManager.i +8 -0
  150. data/bindings/ogre/interface/OgreParticleSystemRenderer.i +10 -0
  151. data/bindings/ogre/interface/OgrePass.i +6 -0
  152. data/bindings/ogre/interface/OgrePatchMesh.i +6 -0
  153. data/bindings/ogre/interface/OgrePatchSurface.i +6 -0
  154. data/bindings/ogre/interface/OgrePixelCountLodStrategy.i +8 -0
  155. data/bindings/ogre/interface/OgrePixelFormat.i +6 -0
  156. data/bindings/ogre/interface/OgrePlane.i +6 -0
  157. data/bindings/ogre/interface/OgrePlaneBoundedVolume.i +6 -0
  158. data/bindings/ogre/interface/OgrePlatform.i +6 -0
  159. data/bindings/ogre/interface/OgrePlatformInformation.i +8 -0
  160. data/bindings/ogre/interface/OgrePlugin.i +8 -0
  161. data/bindings/ogre/interface/OgrePolygon.i +8 -0
  162. data/bindings/ogre/interface/OgrePose.i +6 -0
  163. data/bindings/ogre/interface/OgrePredefinedControllers.i +8 -0
  164. data/bindings/ogre/interface/OgrePrefabFactory.i +8 -0
  165. data/bindings/ogre/interface/OgrePrerequisites.i +11 -0
  166. data/bindings/ogre/interface/OgreProfiler.i +8 -0
  167. data/bindings/ogre/interface/OgreProgressiveMesh.i +8 -0
  168. data/bindings/ogre/interface/OgreQuaternion.i +6 -0
  169. data/bindings/ogre/interface/OgreRadixSort.i +8 -0
  170. data/bindings/ogre/interface/OgreRay.i +8 -0
  171. data/bindings/ogre/interface/OgreRectangle.i +6 -0
  172. data/bindings/ogre/interface/OgreRectangle2D.i +6 -0
  173. data/bindings/ogre/interface/OgreRenderObjectListener.i +8 -0
  174. data/bindings/ogre/interface/OgreRenderOperation.i +8 -0
  175. data/bindings/ogre/interface/OgreRenderQueue.i +6 -0
  176. data/bindings/ogre/interface/OgreRenderQueueInvocation.i +8 -0
  177. data/bindings/ogre/interface/OgreRenderQueueListener.i +8 -0
  178. data/bindings/ogre/interface/OgreRenderQueueSortingGrouping.i +11 -0
  179. data/bindings/ogre/interface/OgreRenderSystem.i +23 -0
  180. data/bindings/ogre/interface/OgreRenderSystemCapabilities.i +6 -0
  181. data/bindings/ogre/interface/OgreRenderSystemCapabilitiesManager.i +8 -0
  182. data/bindings/ogre/interface/OgreRenderSystemCapabilitiesSerializer.i +8 -0
  183. data/bindings/ogre/interface/OgreRenderTarget.i +6 -0
  184. data/bindings/ogre/interface/OgreRenderTargetListener.i +8 -0
  185. data/bindings/ogre/interface/OgreRenderTexture.i +8 -0
  186. data/bindings/ogre/interface/OgreRenderToVertexBuffer.i +8 -0
  187. data/bindings/ogre/interface/OgreRenderWindow.i +6 -0
  188. data/bindings/ogre/interface/OgreRenderable.i +6 -0
  189. data/bindings/ogre/interface/OgreResource.i +9 -0
  190. data/bindings/ogre/interface/OgreResourceBackgroundQueue.i +8 -0
  191. data/bindings/ogre/interface/OgreResourceGroupManager.i +20 -0
  192. data/bindings/ogre/interface/OgreResourceManager.i +30 -0
  193. data/bindings/ogre/interface/OgreRibbonTrail.i +17 -0
  194. data/bindings/ogre/interface/OgreRoot.i +44 -0
  195. data/bindings/ogre/interface/OgreRotationalSpline.i +8 -0
  196. data/bindings/ogre/interface/OgreSceneManager.i +59 -0
  197. data/bindings/ogre/interface/OgreSceneManagerEnumerator.i +11 -0
  198. data/bindings/ogre/interface/OgreSceneNode.i +9 -0
  199. data/bindings/ogre/interface/OgreSceneQuery.i +6 -0
  200. data/bindings/ogre/interface/OgreScriptCompiler.i +11 -0
  201. data/bindings/ogre/interface/OgreScriptLexer.i +8 -0
  202. data/bindings/ogre/interface/OgreScriptLoader.i +8 -0
  203. data/bindings/ogre/interface/OgreScriptParser.i +8 -0
  204. data/bindings/ogre/interface/OgreScriptTranslator.i +8 -0
  205. data/bindings/ogre/interface/OgreSearchOps.i +8 -0
  206. data/bindings/ogre/interface/OgreSerializer.i +6 -0
  207. data/bindings/ogre/interface/OgreShadowCameraSetup.i +6 -0
  208. data/bindings/ogre/interface/OgreShadowCameraSetupFocused.i +8 -0
  209. data/bindings/ogre/interface/OgreShadowCameraSetupLiSPSM.i +8 -0
  210. data/bindings/ogre/interface/OgreShadowCameraSetupPSSM.i +8 -0
  211. data/bindings/ogre/interface/OgreShadowCameraSetupPlaneOptimal.i +8 -0
  212. data/bindings/ogre/interface/OgreShadowCaster.i +8 -0
  213. data/bindings/ogre/interface/OgreShadowTextureManager.i +6 -0
  214. data/bindings/ogre/interface/OgreShadowVolumeExtrudeProgram.i +8 -0
  215. data/bindings/ogre/interface/OgreSharedPtr.i +6 -0
  216. data/bindings/ogre/interface/OgreSimpleRenderable.i +6 -0
  217. data/bindings/ogre/interface/OgreSimpleSpline.i +8 -0
  218. data/bindings/ogre/interface/OgreSingleton.i +8 -0
  219. data/bindings/ogre/interface/OgreSkeleton.i +6 -0
  220. data/bindings/ogre/interface/OgreSkeletonFileFormat.i +8 -0
  221. data/bindings/ogre/interface/OgreSkeletonInstance.i +6 -0
  222. data/bindings/ogre/interface/OgreSkeletonManager.i +8 -0
  223. data/bindings/ogre/interface/OgreSkeletonSerializer.i +8 -0
  224. data/bindings/ogre/interface/OgreSmallVector.i +8 -0
  225. data/bindings/ogre/interface/OgreSphere.i +8 -0
  226. data/bindings/ogre/interface/OgreSpotShadowFadePng.i +8 -0
  227. data/bindings/ogre/interface/OgreStableHeaders.i +8 -0
  228. data/bindings/ogre/interface/OgreStaticFaceGroup.i +8 -0
  229. data/bindings/ogre/interface/OgreStaticGeometry.i +13 -0
  230. data/bindings/ogre/interface/OgreStaticPluginLoader.i +8 -0
  231. data/bindings/ogre/interface/OgreStdHeaders.i +8 -0
  232. data/bindings/ogre/interface/OgreStreamSerialiser.i +8 -0
  233. data/bindings/ogre/interface/OgreString.i +6 -0
  234. data/bindings/ogre/interface/OgreStringConverter.i +8 -0
  235. data/bindings/ogre/interface/OgreStringInterface.i +8 -0
  236. data/bindings/ogre/interface/OgreStringVector.i +22 -0
  237. data/bindings/ogre/interface/OgreSubEntity.i +8 -0
  238. data/bindings/ogre/interface/OgreSubMesh.i +8 -0
  239. data/bindings/ogre/interface/OgreTagPoint.i +8 -0
  240. data/bindings/ogre/interface/OgreTangentSpaceCalc.i +8 -0
  241. data/bindings/ogre/interface/OgreTechnique.i +18 -0
  242. data/bindings/ogre/interface/OgreTextAreaOverlayElement.i +8 -0
  243. data/bindings/ogre/interface/OgreTexture.i +6 -0
  244. data/bindings/ogre/interface/OgreTextureManager.i +6 -0
  245. data/bindings/ogre/interface/OgreTextureUnitState.i +6 -0
  246. data/bindings/ogre/interface/OgreTimer.i +8 -0
  247. data/bindings/ogre/interface/OgreUTFString.i +26 -0
  248. data/bindings/ogre/interface/OgreUnifiedHighLevelGpuProgram.i +10 -0
  249. data/bindings/ogre/interface/OgreUserObjectBindings.i +8 -0
  250. data/bindings/ogre/interface/OgreVector2.i +8 -0
  251. data/bindings/ogre/interface/OgreVector3.i +9 -0
  252. data/bindings/ogre/interface/OgreVector4.i +8 -0
  253. data/bindings/ogre/interface/OgreVertexBoneAssignment.i +6 -0
  254. data/bindings/ogre/interface/OgreVertexIndexData.i +8 -0
  255. data/bindings/ogre/interface/OgreViewport.i +6 -0
  256. data/bindings/ogre/interface/OgreWindowEventUtilities.i +6 -0
  257. data/bindings/ogre/interface/OgreWireBoundingBox.i +8 -0
  258. data/bindings/ogre/interface/OgreWorkQueue.i +8 -0
  259. data/bindings/ogre/interface/OgreZip.i +12 -0
  260. data/bindings/ogre/interface/Paging/OgreGrid2DPageStrategy.i +8 -0
  261. data/bindings/ogre/interface/Paging/OgreGrid3DPageStrategy.i +8 -0
  262. data/bindings/ogre/interface/Paging/OgrePage.i +8 -0
  263. data/bindings/ogre/interface/Paging/OgrePageConnection.i +8 -0
  264. data/bindings/ogre/interface/Paging/OgrePageContent.i +8 -0
  265. data/bindings/ogre/interface/Paging/OgrePageContentCollection.i +8 -0
  266. data/bindings/ogre/interface/Paging/OgrePageContentCollectionFactory.i +8 -0
  267. data/bindings/ogre/interface/Paging/OgrePageContentFactory.i +8 -0
  268. data/bindings/ogre/interface/Paging/OgrePageFileFormats.i +8 -0
  269. data/bindings/ogre/interface/Paging/OgrePageManager.i +8 -0
  270. data/bindings/ogre/interface/Paging/OgrePageStrategy.i +8 -0
  271. data/bindings/ogre/interface/Paging/OgrePagedWorld.i +8 -0
  272. data/bindings/ogre/interface/Paging/OgrePagedWorldSection.i +8 -0
  273. data/bindings/ogre/interface/Paging/OgrePaging.i +8 -0
  274. data/bindings/ogre/interface/Paging/OgrePagingPrerequisites.i +8 -0
  275. data/bindings/ogre/interface/Paging/OgreSimplePageContentCollection.i +8 -0
  276. data/bindings/ogre/interface/RTShaderSystem/OgreRTShaderSystem.i +8 -0
  277. data/bindings/ogre/interface/RTShaderSystem/OgreShaderCGProgramProcessor.i +8 -0
  278. data/bindings/ogre/interface/RTShaderSystem/OgreShaderCGProgramWriter.i +8 -0
  279. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExDualQuaternionSkinning.i +8 -0
  280. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExHardwareSkinning.i +10 -0
  281. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExHardwareSkinningTechnique.i +8 -0
  282. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExIntegratedPSSM3.i +8 -0
  283. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExLayeredBlending.i +11 -0
  284. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExLinearSkinning.i +8 -0
  285. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExNormalMapLighting.i +8 -0
  286. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExPerPixelLighting.i +8 -0
  287. data/bindings/ogre/interface/RTShaderSystem/OgreShaderExTextureAtlasSampler.i +10 -0
  288. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFFPColour.i +8 -0
  289. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFFPFog.i +8 -0
  290. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFFPLighting.i +8 -0
  291. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFFPRenderState.i +8 -0
  292. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFFPRenderStateBuilder.i +11 -0
  293. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFFPTexturing.i +8 -0
  294. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFFPTransform.i +8 -0
  295. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFunction.i +8 -0
  296. data/bindings/ogre/interface/RTShaderSystem/OgreShaderFunctionAtom.i +8 -0
  297. data/bindings/ogre/interface/RTShaderSystem/OgreShaderGLSLESProgramProcessor.i +8 -0
  298. data/bindings/ogre/interface/RTShaderSystem/OgreShaderGLSLESProgramWriter.i +11 -0
  299. data/bindings/ogre/interface/RTShaderSystem/OgreShaderGLSLProgramProcessor.i +8 -0
  300. data/bindings/ogre/interface/RTShaderSystem/OgreShaderGLSLProgramWriter.i +8 -0
  301. data/bindings/ogre/interface/RTShaderSystem/OgreShaderGenerator.i +8 -0
  302. data/bindings/ogre/interface/RTShaderSystem/OgreShaderHLSLProgramProcessor.i +8 -0
  303. data/bindings/ogre/interface/RTShaderSystem/OgreShaderHLSLProgramWriter.i +8 -0
  304. data/bindings/ogre/interface/RTShaderSystem/OgreShaderMaterialSerializerListener.i +8 -0
  305. data/bindings/ogre/interface/RTShaderSystem/OgreShaderParameter.i +8 -0
  306. data/bindings/ogre/interface/RTShaderSystem/OgreShaderPrerequisites.i +8 -0
  307. data/bindings/ogre/interface/RTShaderSystem/OgreShaderProgram.i +8 -0
  308. data/bindings/ogre/interface/RTShaderSystem/OgreShaderProgramManager.i +8 -0
  309. data/bindings/ogre/interface/RTShaderSystem/OgreShaderProgramProcessor.i +8 -0
  310. data/bindings/ogre/interface/RTShaderSystem/OgreShaderProgramSet.i +8 -0
  311. data/bindings/ogre/interface/RTShaderSystem/OgreShaderProgramWriter.i +8 -0
  312. data/bindings/ogre/interface/RTShaderSystem/OgreShaderProgramWriterManager.i +8 -0
  313. data/bindings/ogre/interface/RTShaderSystem/OgreShaderRenderState.i +8 -0
  314. data/bindings/ogre/interface/RTShaderSystem/OgreShaderScriptTranslator.i +8 -0
  315. data/bindings/ogre/interface/RTShaderSystem/OgreShaderSubRenderState.i +8 -0
  316. data/bindings/ogre/interface/Terrain/OgreTerrain.i +14 -0
  317. data/bindings/ogre/interface/Terrain/OgreTerrainGroup.i +79 -0
  318. data/bindings/ogre/interface/Terrain/OgreTerrainLayerBlendMap.i +8 -0
  319. data/bindings/ogre/interface/Terrain/OgreTerrainMaterialGenerator.i +8 -0
  320. data/bindings/ogre/interface/Terrain/OgreTerrainMaterialGeneratorA.i +8 -0
  321. data/bindings/ogre/interface/Terrain/OgreTerrainPagedWorldSection.i +8 -0
  322. data/bindings/ogre/interface/Terrain/OgreTerrainPaging.i +8 -0
  323. data/bindings/ogre/interface/Terrain/OgreTerrainPrerequisites.i +8 -0
  324. data/bindings/ogre/interface/Terrain/OgreTerrainQuadTreeNode.i +8 -0
  325. data/bindings/ogre/interface/Threading/OgreDefaultWorkQueue.i +8 -0
  326. data/bindings/ogre/interface/Threading/OgreDefaultWorkQueueStandard.i +8 -0
  327. data/bindings/ogre/interface/Threading/OgreThreadDefines.i +8 -0
  328. data/bindings/ogre/interface/Threading/OgreThreadDefinesNone.i +8 -0
  329. data/bindings/ogre/interface/Threading/OgreThreadHeaders.i +8 -0
  330. data/bindings/ogre/interface/changeFileName +6 -0
  331. data/bindings/ogre/interface/ogre.i +4 -0
  332. data/bindings/ogre/interface/ogre_all.i +353 -0
  333. data/bindings/ogre/interface/ogre_wrap.cpp +411602 -0
  334. data/bindings/ogre/interface/ogre_wrap.h +30 -0
  335. data/bindings/ogre/interface/ogre_wrap.o +0 -0
  336. data/bindings/ogrebites/interface/Makefile +19 -0
  337. data/bindings/ogrebites/interface/SdkCameraMan.i +6 -0
  338. data/bindings/ogrebites/interface/SdkTrays.i +60 -0
  339. data/bindings/ogrebites/interface/ogrebites.i +26 -0
  340. data/bindings/ogrebites/interface/ogrebites_wrap.cpp +19257 -0
  341. data/bindings/ogrebites/interface/ogrebites_wrap.h +34 -0
  342. data/bindings/ogrebites/interface/ogrebites_wrap.o +0 -0
  343. data/bindings/ois/interface/Makefile +19 -0
  344. data/bindings/ois/interface/OIS_Effect.i +8 -0
  345. data/bindings/ois/interface/OIS_Event.i +8 -0
  346. data/bindings/ois/interface/OIS_Exception.i +8 -0
  347. data/bindings/ois/interface/OIS_FactoryCreator.i +8 -0
  348. data/bindings/ois/interface/OIS_ForceFeedback.i +8 -0
  349. data/bindings/ois/interface/OIS_InputManager.i +20 -0
  350. data/bindings/ois/interface/OIS_Interface.i +8 -0
  351. data/bindings/ois/interface/OIS_JoyStick.i +8 -0
  352. data/bindings/ois/interface/OIS_Keyboard.i +15 -0
  353. data/bindings/ois/interface/OIS_Mouse.i +10 -0
  354. data/bindings/ois/interface/OIS_Object.i +22 -0
  355. data/bindings/ois/interface/OIS_Prereqs.i +20 -0
  356. data/bindings/ois/interface/ois.i +3 -0
  357. data/bindings/ois/interface/ois_all.i +23 -0
  358. data/bindings/ois/interface/ois_wrap.cpp +19311 -0
  359. data/bindings/ois/interface/ois_wrap.h +40 -0
  360. data/bindings/ois/interface/ois_wrap.o +0 -0
  361. data/bindings/procedural/interface/Makefile +19 -0
  362. data/bindings/procedural/interface/ProceduralBoxGenerator.i +12 -0
  363. data/bindings/procedural/interface/ProceduralCapsuleGenerator.i +12 -0
  364. data/bindings/procedural/interface/ProceduralConeGenerator.i +12 -0
  365. data/bindings/procedural/interface/ProceduralCylinderGenerator.i +12 -0
  366. data/bindings/procedural/interface/ProceduralExtruder.i +8 -0
  367. data/bindings/procedural/interface/ProceduralGeometryHelpers.i +15 -0
  368. data/bindings/procedural/interface/ProceduralHeader.i +8 -0
  369. data/bindings/procedural/interface/ProceduralIcoSphereGenerator.i +12 -0
  370. data/bindings/procedural/interface/ProceduralLathe.i +8 -0
  371. data/bindings/procedural/interface/ProceduralMeshGenerator.i +9 -0
  372. data/bindings/procedural/interface/ProceduralMultiShape.i +8 -0
  373. data/bindings/procedural/interface/ProceduralPath.i +8 -0
  374. data/bindings/procedural/interface/ProceduralPathGenerators.i +10 -0
  375. data/bindings/procedural/interface/ProceduralPlaneGenerator.i +12 -0
  376. data/bindings/procedural/interface/ProceduralPlatform.i +8 -0
  377. data/bindings/procedural/interface/ProceduralRoot.i +23 -0
  378. data/bindings/procedural/interface/ProceduralRoundedBoxGenerator.i +12 -0
  379. data/bindings/procedural/interface/ProceduralShape.i +8 -0
  380. data/bindings/procedural/interface/ProceduralShapeGenerators.i +10 -0
  381. data/bindings/procedural/interface/ProceduralSphereGenerator.i +11 -0
  382. data/bindings/procedural/interface/ProceduralSplines.i +8 -0
  383. data/bindings/procedural/interface/ProceduralStableHeaders.i +8 -0
  384. data/bindings/procedural/interface/ProceduralTorusGenerator.i +12 -0
  385. data/bindings/procedural/interface/ProceduralTorusKnotGenerator.i +12 -0
  386. data/bindings/procedural/interface/ProceduralTrack.i +8 -0
  387. data/bindings/procedural/interface/ProceduralTriangleBuffer.i +13 -0
  388. data/bindings/procedural/interface/ProceduralTriangulator.i +8 -0
  389. data/bindings/procedural/interface/ProceduralTubeGenerator.i +12 -0
  390. data/bindings/procedural/interface/ProceduralUtils.i +8 -0
  391. data/bindings/procedural/interface/procedural.i +41 -0
  392. data/bindings/procedural/interface/procedural_wrap.cpp +32082 -0
  393. data/bindings/procedural/interface/procedural_wrap.h +19 -0
  394. data/bindings/procedural/interface/procedural_wrap.o +0 -0
  395. data/deps/include/OGRE/ExampleApplication.h +431 -0
  396. data/deps/include/OGRE/ExampleFrameListener.h +516 -0
  397. data/deps/include/OGRE/ExampleLoadingBar.h +192 -0
  398. data/deps/include/OGRE/FileSystemLayer.h +75 -0
  399. data/deps/include/OGRE/GLX/OgreConfigDialogImp.h +75 -0
  400. data/deps/include/OGRE/GLX/OgreErrorDialogImp.h +52 -0
  401. data/deps/include/OGRE/GLX/OgreTimerImp.h +79 -0
  402. data/deps/include/OGRE/Ogre.h +133 -0
  403. data/deps/include/OGRE/OgreAlignedAllocator.h +107 -0
  404. data/deps/include/OGRE/OgreAnimable.h +335 -0
  405. data/deps/include/OGRE/OgreAnimation.h +544 -0
  406. data/deps/include/OGRE/OgreAnimationState.h +295 -0
  407. data/deps/include/OGRE/OgreAnimationTrack.h +580 -0
  408. data/deps/include/OGRE/OgreAny.h +418 -0
  409. data/deps/include/OGRE/OgreArchive.h +240 -0
  410. data/deps/include/OGRE/OgreArchiveFactory.h +70 -0
  411. data/deps/include/OGRE/OgreArchiveManager.h +139 -0
  412. data/deps/include/OGRE/OgreAtomicWrappers.h +441 -0
  413. data/deps/include/OGRE/OgreAutoParamDataSource.h +265 -0
  414. data/deps/include/OGRE/OgreAxisAlignedBox.h +841 -0
  415. data/deps/include/OGRE/OgreBillboard.h +225 -0
  416. data/deps/include/OGRE/OgreBillboardChain.h +383 -0
  417. data/deps/include/OGRE/OgreBillboardParticleRenderer.h +261 -0
  418. data/deps/include/OGRE/OgreBillboardSet.h +878 -0
  419. data/deps/include/OGRE/OgreBitwise.h +331 -0
  420. data/deps/include/OGRE/OgreBlendMode.h +266 -0
  421. data/deps/include/OGRE/OgreBone.h +154 -0
  422. data/deps/include/OGRE/OgreBorderPanelOverlayElement.h +352 -0
  423. data/deps/include/OGRE/OgreBuildSettings.h +62 -0
  424. data/deps/include/OGRE/OgreCamera.h +680 -0
  425. data/deps/include/OGRE/OgreCodec.h +178 -0
  426. data/deps/include/OGRE/OgreColourValue.h +334 -0
  427. data/deps/include/OGRE/OgreCommon.h +870 -0
  428. data/deps/include/OGRE/OgreCompositionPass.h +356 -0
  429. data/deps/include/OGRE/OgreCompositionTargetPass.h +174 -0
  430. data/deps/include/OGRE/OgreCompositionTechnique.h +188 -0
  431. data/deps/include/OGRE/OgreCompositor.h +235 -0
  432. data/deps/include/OGRE/OgreCompositorChain.h +241 -0
  433. data/deps/include/OGRE/OgreCompositorInstance.h +373 -0
  434. data/deps/include/OGRE/OgreCompositorLogic.h +68 -0
  435. data/deps/include/OGRE/OgreCompositorManager.h +291 -0
  436. data/deps/include/OGRE/OgreConfig.h +189 -0
  437. data/deps/include/OGRE/OgreConfigDialog.h +57 -0
  438. data/deps/include/OGRE/OgreConfigFile.h +110 -0
  439. data/deps/include/OGRE/OgreConfigOptionMap.h +63 -0
  440. data/deps/include/OGRE/OgreController.h +233 -0
  441. data/deps/include/OGRE/OgreControllerManager.h +294 -0
  442. data/deps/include/OGRE/OgreConvexBody.h +260 -0
  443. data/deps/include/OGRE/OgreCustomCompositionPass.h +65 -0
  444. data/deps/include/OGRE/OgreDDSCodec.h +98 -0
  445. data/deps/include/OGRE/OgreDataStream.h +664 -0
  446. data/deps/include/OGRE/OgreDefaultHardwareBufferManager.h +140 -0
  447. data/deps/include/OGRE/OgreDeflate.h +133 -0
  448. data/deps/include/OGRE/OgreDepthBuffer.h +155 -0
  449. data/deps/include/OGRE/OgreDistanceLodStrategy.h +137 -0
  450. data/deps/include/OGRE/OgreDualQuaternion.h +184 -0
  451. data/deps/include/OGRE/OgreDynLib.h +130 -0
  452. data/deps/include/OGRE/OgreDynLibManager.h +117 -0
  453. data/deps/include/OGRE/OgreEdgeListBuilder.h +269 -0
  454. data/deps/include/OGRE/OgreEntity.h +866 -0
  455. data/deps/include/OGRE/OgreErrorDialog.h +57 -0
  456. data/deps/include/OGRE/OgreException.h +351 -0
  457. data/deps/include/OGRE/OgreExternalTextureSource.h +191 -0
  458. data/deps/include/OGRE/OgreExternalTextureSourceManager.h +124 -0
  459. data/deps/include/OGRE/OgreFactoryObj.h +72 -0
  460. data/deps/include/OGRE/OgreFileSystem.h +144 -0
  461. data/deps/include/OGRE/OgreFont.h +478 -0
  462. data/deps/include/OGRE/OgreFontManager.h +102 -0
  463. data/deps/include/OGRE/OgreFrameListener.h +140 -0
  464. data/deps/include/OGRE/OgreFreeImageCodec.h +87 -0
  465. data/deps/include/OGRE/OgreFrustum.h +673 -0
  466. data/deps/include/OGRE/OgreGpuProgram.h +487 -0
  467. data/deps/include/OGRE/OgreGpuProgramManager.h +262 -0
  468. data/deps/include/OGRE/OgreGpuProgramParams.h +1840 -0
  469. data/deps/include/OGRE/OgreGpuProgramUsage.h +149 -0
  470. data/deps/include/OGRE/OgreHardwareBuffer.h +356 -0
  471. data/deps/include/OGRE/OgreHardwareBufferManager.h +539 -0
  472. data/deps/include/OGRE/OgreHardwareIndexBuffer.h +89 -0
  473. data/deps/include/OGRE/OgreHardwareOcclusionQuery.h +132 -0
  474. data/deps/include/OGRE/OgreHardwarePixelBuffer.h +208 -0
  475. data/deps/include/OGRE/OgreHardwareVertexBuffer.h +581 -0
  476. data/deps/include/OGRE/OgreHeaderPrefix.h +82 -0
  477. data/deps/include/OGRE/OgreHeaderSuffix.h +44 -0
  478. data/deps/include/OGRE/OgreHighLevelGpuProgram.h +194 -0
  479. data/deps/include/OGRE/OgreHighLevelGpuProgramManager.h +158 -0
  480. data/deps/include/OGRE/OgreImage.h +510 -0
  481. data/deps/include/OGRE/OgreImageCodec.h +89 -0
  482. data/deps/include/OGRE/OgreInstanceBatch.h +344 -0
  483. data/deps/include/OGRE/OgreInstanceBatchHW.h +110 -0
  484. data/deps/include/OGRE/OgreInstanceBatchHW_VTF.h +113 -0
  485. data/deps/include/OGRE/OgreInstanceBatchShader.h +99 -0
  486. data/deps/include/OGRE/OgreInstanceBatchVTF.h +226 -0
  487. data/deps/include/OGRE/OgreInstanceManager.h +280 -0
  488. data/deps/include/OGRE/OgreInstancedEntity.h +277 -0
  489. data/deps/include/OGRE/OgreInstancedGeometry.h +890 -0
  490. data/deps/include/OGRE/OgreIteratorRange.h +321 -0
  491. data/deps/include/OGRE/OgreIteratorWrapper.h +383 -0
  492. data/deps/include/OGRE/OgreIteratorWrappers.h +35 -0
  493. data/deps/include/OGRE/OgreKeyFrame.h +257 -0
  494. data/deps/include/OGRE/OgreLight.h +597 -0
  495. data/deps/include/OGRE/OgreLodListener.h +207 -0
  496. data/deps/include/OGRE/OgreLodStrategy.h +132 -0
  497. data/deps/include/OGRE/OgreLodStrategyManager.h +133 -0
  498. data/deps/include/OGRE/OgreLog.h +263 -0
  499. data/deps/include/OGRE/OgreLogManager.h +175 -0
  500. data/deps/include/OGRE/OgreManualObject.h +572 -0
  501. data/deps/include/OGRE/OgreMaterial.h +741 -0
  502. data/deps/include/OGRE/OgreMaterialManager.h +304 -0
  503. data/deps/include/OGRE/OgreMaterialSerializer.h +447 -0
  504. data/deps/include/OGRE/OgreMath.h +743 -0
  505. data/deps/include/OGRE/OgreMatrix3.h +286 -0
  506. data/deps/include/OGRE/OgreMatrix4.h +660 -0
  507. data/deps/include/OGRE/OgreMemoryAllocatedObject.h +129 -0
  508. data/deps/include/OGRE/OgreMemoryAllocatorConfig.h +493 -0
  509. data/deps/include/OGRE/OgreMemoryNedAlloc.h +140 -0
  510. data/deps/include/OGRE/OgreMemoryNedPooling.h +143 -0
  511. data/deps/include/OGRE/OgreMemorySTLAllocator.h +225 -0
  512. data/deps/include/OGRE/OgreMemoryStdAlloc.h +155 -0
  513. data/deps/include/OGRE/OgreMemoryTracker.h +197 -0
  514. data/deps/include/OGRE/OgreMesh.h +922 -0
  515. data/deps/include/OGRE/OgreMeshFileFormat.h +295 -0
  516. data/deps/include/OGRE/OgreMeshManager.h +497 -0
  517. data/deps/include/OGRE/OgreMeshSerializer.h +206 -0
  518. data/deps/include/OGRE/OgreMeshSerializerImpl.h +274 -0
  519. data/deps/include/OGRE/OgreMovableObject.h +641 -0
  520. data/deps/include/OGRE/OgreMovablePlane.h +97 -0
  521. data/deps/include/OGRE/OgreNode.h +774 -0
  522. data/deps/include/OGRE/OgreNumerics.h +66 -0
  523. data/deps/include/OGRE/OgreOptimisedUtil.h +232 -0
  524. data/deps/include/OGRE/OgreOverlay.h +280 -0
  525. data/deps/include/OGRE/OgreOverlayContainer.h +152 -0
  526. data/deps/include/OGRE/OgreOverlayElement.h +501 -0
  527. data/deps/include/OGRE/OgreOverlayElementCommands.h +122 -0
  528. data/deps/include/OGRE/OgreOverlayElementFactory.h +116 -0
  529. data/deps/include/OGRE/OgreOverlayManager.h +256 -0
  530. data/deps/include/OGRE/OgrePanelOverlayElement.h +161 -0
  531. data/deps/include/OGRE/OgreParticle.h +154 -0
  532. data/deps/include/OGRE/OgreParticleAffector.h +127 -0
  533. data/deps/include/OGRE/OgreParticleAffectorFactory.h +81 -0
  534. data/deps/include/OGRE/OgreParticleEmitter.h +524 -0
  535. data/deps/include/OGRE/OgreParticleEmitterCommands.h +215 -0
  536. data/deps/include/OGRE/OgreParticleEmitterFactory.h +84 -0
  537. data/deps/include/OGRE/OgreParticleIterator.h +68 -0
  538. data/deps/include/OGRE/OgreParticleScriptCompiler.h +92 -0
  539. data/deps/include/OGRE/OgreParticleSystem.h +911 -0
  540. data/deps/include/OGRE/OgreParticleSystemManager.h +406 -0
  541. data/deps/include/OGRE/OgreParticleSystemRenderer.h +139 -0
  542. data/deps/include/OGRE/OgrePass.h +1775 -0
  543. data/deps/include/OGRE/OgrePatchMesh.h +164 -0
  544. data/deps/include/OGRE/OgrePatchSurface.h +240 -0
  545. data/deps/include/OGRE/OgrePixelCountLodStrategy.h +113 -0
  546. data/deps/include/OGRE/OgrePixelFormat.h +513 -0
  547. data/deps/include/OGRE/OgrePlane.h +166 -0
  548. data/deps/include/OGRE/OgrePlaneBoundedVolume.h +135 -0
  549. data/deps/include/OGRE/OgrePlatform.h +311 -0
  550. data/deps/include/OGRE/OgrePlatformInformation.h +202 -0
  551. data/deps/include/OGRE/OgrePlugin.h +139 -0
  552. data/deps/include/OGRE/OgrePolygon.h +145 -0
  553. data/deps/include/OGRE/OgrePose.h +141 -0
  554. data/deps/include/OGRE/OgrePredefinedControllers.h +292 -0
  555. data/deps/include/OGRE/OgrePrefabFactory.h +73 -0
  556. data/deps/include/OGRE/OgrePrerequisites.h +563 -0
  557. data/deps/include/OGRE/OgreProfiler.h +506 -0
  558. data/deps/include/OGRE/OgreProgressiveMesh.h +416 -0
  559. data/deps/include/OGRE/OgreQuaternion.h +330 -0
  560. data/deps/include/OGRE/OgreRadixSort.h +330 -0
  561. data/deps/include/OGRE/OgreRay.h +122 -0
  562. data/deps/include/OGRE/OgreRectangle.h +77 -0
  563. data/deps/include/OGRE/OgreRectangle2D.h +101 -0
  564. data/deps/include/OGRE/OgreRenderObjectListener.h +64 -0
  565. data/deps/include/OGRE/OgreRenderOperation.h +100 -0
  566. data/deps/include/OGRE/OgreRenderQueue.h +516 -0
  567. data/deps/include/OGRE/OgreRenderQueueInvocation.h +225 -0
  568. data/deps/include/OGRE/OgreRenderQueueListener.h +106 -0
  569. data/deps/include/OGRE/OgreRenderQueueSortingGrouping.h +733 -0
  570. data/deps/include/OGRE/OgreRenderSystem.h +1572 -0
  571. data/deps/include/OGRE/OgreRenderSystemCapabilities.h +727 -0
  572. data/deps/include/OGRE/OgreRenderSystemCapabilitiesManager.h +129 -0
  573. data/deps/include/OGRE/OgreRenderSystemCapabilitiesSerializer.h +248 -0
  574. data/deps/include/OGRE/OgreRenderTarget.h +534 -0
  575. data/deps/include/OGRE/OgreRenderTargetListener.h +146 -0
  576. data/deps/include/OGRE/OgreRenderTexture.h +140 -0
  577. data/deps/include/OGRE/OgreRenderToVertexBuffer.h +151 -0
  578. data/deps/include/OGRE/OgreRenderWindow.h +225 -0
  579. data/deps/include/OGRE/OgreRenderable.h +428 -0
  580. data/deps/include/OGRE/OgreResource.h +536 -0
  581. data/deps/include/OGRE/OgreResourceBackgroundQueue.h +359 -0
  582. data/deps/include/OGRE/OgreResourceGroupManager.h +1092 -0
  583. data/deps/include/OGRE/OgreResourceManager.h +538 -0
  584. data/deps/include/OGRE/OgreRibbonTrail.h +245 -0
  585. data/deps/include/OGRE/OgreRoot.h +1075 -0
  586. data/deps/include/OGRE/OgreRotationalSpline.h +136 -0
  587. data/deps/include/OGRE/OgreSceneManager.h +3670 -0
  588. data/deps/include/OGRE/OgreSceneManagerEnumerator.h +233 -0
  589. data/deps/include/OGRE/OgreSceneNode.h +472 -0
  590. data/deps/include/OGRE/OgreSceneQuery.h +564 -0
  591. data/deps/include/OGRE/OgreScriptCompiler.h +851 -0
  592. data/deps/include/OGRE/OgreScriptLexer.h +96 -0
  593. data/deps/include/OGRE/OgreScriptLoader.h +96 -0
  594. data/deps/include/OGRE/OgreScriptParser.h +63 -0
  595. data/deps/include/OGRE/OgreScriptTranslator.h +286 -0
  596. data/deps/include/OGRE/OgreSearchOps.h +74 -0
  597. data/deps/include/OGRE/OgreSerializer.h +120 -0
  598. data/deps/include/OGRE/OgreShadowCameraSetup.h +107 -0
  599. data/deps/include/OGRE/OgreShadowCameraSetupFocused.h +289 -0
  600. data/deps/include/OGRE/OgreShadowCameraSetupLiSPSM.h +254 -0
  601. data/deps/include/OGRE/OgreShadowCameraSetupPSSM.h +126 -0
  602. data/deps/include/OGRE/OgreShadowCameraSetupPlaneOptimal.h +88 -0
  603. data/deps/include/OGRE/OgreShadowCaster.h +225 -0
  604. data/deps/include/OGRE/OgreShadowTextureManager.h +156 -0
  605. data/deps/include/OGRE/OgreShadowVolumeExtrudeProgram.h +286 -0
  606. data/deps/include/OGRE/OgreSharedPtr.h +278 -0
  607. data/deps/include/OGRE/OgreSimpleRenderable.h +111 -0
  608. data/deps/include/OGRE/OgreSimpleSpline.h +137 -0
  609. data/deps/include/OGRE/OgreSingleton.h +104 -0
  610. data/deps/include/OGRE/OgreSkeleton.h +539 -0
  611. data/deps/include/OGRE/OgreSkeletonFileFormat.h +117 -0
  612. data/deps/include/OGRE/OgreSkeletonInstance.h +163 -0
  613. data/deps/include/OGRE/OgreSkeletonManager.h +105 -0
  614. data/deps/include/OGRE/OgreSkeletonSerializer.h +151 -0
  615. data/deps/include/OGRE/OgreSmallVector.h +814 -0
  616. data/deps/include/OGRE/OgreSphere.h +145 -0
  617. data/deps/include/OGRE/OgreSpotShadowFadePng.h +647 -0
  618. data/deps/include/OGRE/OgreStableHeaders.h +82 -0
  619. data/deps/include/OGRE/OgreStaticFaceGroup.h +141 -0
  620. data/deps/include/OGRE/OgreStaticGeometry.h +781 -0
  621. data/deps/include/OGRE/OgreStaticPluginLoader.h +205 -0
  622. data/deps/include/OGRE/OgreStdHeaders.h +128 -0
  623. data/deps/include/OGRE/OgreStreamSerialiser.h +386 -0
  624. data/deps/include/OGRE/OgreString.h +223 -0
  625. data/deps/include/OGRE/OgreStringConverter.h +270 -0
  626. data/deps/include/OGRE/OgreStringInterface.h +335 -0
  627. data/deps/include/OGRE/OgreStringVector.h +53 -0
  628. data/deps/include/OGRE/OgreSubEntity.h +288 -0
  629. data/deps/include/OGRE/OgreSubMesh.h +294 -0
  630. data/deps/include/OGRE/OgreTagPoint.h +123 -0
  631. data/deps/include/OGRE/OgreTangentSpaceCalc.h +269 -0
  632. data/deps/include/OGRE/OgreTechnique.h +714 -0
  633. data/deps/include/OGRE/OgreTextAreaOverlayElement.h +258 -0
  634. data/deps/include/OGRE/OgreTexture.h +496 -0
  635. data/deps/include/OGRE/OgreTextureManager.h +508 -0
  636. data/deps/include/OGRE/OgreTextureUnitState.h +1265 -0
  637. data/deps/include/OGRE/OgreTimer.h +49 -0
  638. data/deps/include/OGRE/OgreUTFString.h +1115 -0
  639. data/deps/include/OGRE/OgreUnifiedHighLevelGpuProgram.h +177 -0
  640. data/deps/include/OGRE/OgreUserObjectBindings.h +140 -0
  641. data/deps/include/OGRE/OgreVector2.h +609 -0
  642. data/deps/include/OGRE/OgreVector3.h +818 -0
  643. data/deps/include/OGRE/OgreVector4.h +414 -0
  644. data/deps/include/OGRE/OgreVertexBoneAssignment.h +63 -0
  645. data/deps/include/OGRE/OgreVertexIndexData.h +323 -0
  646. data/deps/include/OGRE/OgreViewport.h +433 -0
  647. data/deps/include/OGRE/OgreWindowEventUtilities.h +186 -0
  648. data/deps/include/OGRE/OgreWireBoundingBox.h +87 -0
  649. data/deps/include/OGRE/OgreWorkQueue.h +556 -0
  650. data/deps/include/OGRE/OgreZip.h +196 -0
  651. data/deps/include/OGRE/Paging/OgreGrid2DPageStrategy.h +250 -0
  652. data/deps/include/OGRE/Paging/OgreGrid3DPageStrategy.h +222 -0
  653. data/deps/include/OGRE/Paging/OgrePage.h +205 -0
  654. data/deps/include/OGRE/Paging/OgrePageConnection.h +50 -0
  655. data/deps/include/OGRE/Paging/OgrePageContent.h +90 -0
  656. data/deps/include/OGRE/Paging/OgrePageContentCollection.h +103 -0
  657. data/deps/include/OGRE/Paging/OgrePageContentCollectionFactory.h +62 -0
  658. data/deps/include/OGRE/Paging/OgrePageContentFactory.h +67 -0
  659. data/deps/include/OGRE/Paging/OgrePageFileFormats.h +223 -0
  660. data/deps/include/OGRE/Paging/OgrePageManager.h +481 -0
  661. data/deps/include/OGRE/Paging/OgrePageStrategy.h +138 -0
  662. data/deps/include/OGRE/Paging/OgrePagedWorld.h +252 -0
  663. data/deps/include/OGRE/Paging/OgrePagedWorldSection.h +316 -0
  664. data/deps/include/OGRE/Paging/OgrePaging.h +45 -0
  665. data/deps/include/OGRE/Paging/OgrePagingPrerequisites.h +84 -0
  666. data/deps/include/OGRE/Paging/OgreSimplePageContentCollection.h +137 -0
  667. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreBspLevel.h +278 -0
  668. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreBspNode.h +212 -0
  669. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreBspPrerequisites.h +65 -0
  670. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreBspResourceManager.h +110 -0
  671. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreBspSceneManager.h +280 -0
  672. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreBspSceneManagerPlugin.h +67 -0
  673. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreBspSceneNode.h +79 -0
  674. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreQuake3Level.h +167 -0
  675. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreQuake3Shader.h +119 -0
  676. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreQuake3ShaderManager.h +125 -0
  677. data/deps/include/OGRE/Plugins/BSPSceneManager/OgreQuake3Types.h +250 -0
  678. data/deps/include/OGRE/Plugins/CgProgramManager/OgreCgFxScriptLoader.h +1544 -0
  679. data/deps/include/OGRE/Plugins/CgProgramManager/OgreCgPlugin.h +65 -0
  680. data/deps/include/OGRE/Plugins/CgProgramManager/OgreCgPrerequisites.h +62 -0
  681. data/deps/include/OGRE/Plugins/CgProgramManager/OgreCgProgram.h +149 -0
  682. data/deps/include/OGRE/Plugins/CgProgramManager/OgreCgProgramFactory.h +55 -0
  683. data/deps/include/OGRE/Plugins/OctreeSceneManager/OgreOctree.h +164 -0
  684. data/deps/include/OGRE/Plugins/OctreeSceneManager/OgreOctreeCamera.h +89 -0
  685. data/deps/include/OGRE/Plugins/OctreeSceneManager/OgreOctreeNode.h +148 -0
  686. data/deps/include/OGRE/Plugins/OctreeSceneManager/OgreOctreePlugin.h +64 -0
  687. data/deps/include/OGRE/Plugins/OctreeSceneManager/OgreOctreePrerequisites.h +59 -0
  688. data/deps/include/OGRE/Plugins/OctreeSceneManager/OgreOctreeSceneManager.h +253 -0
  689. data/deps/include/OGRE/Plugins/OctreeSceneManager/OgreOctreeSceneQuery.h +102 -0
  690. data/deps/include/OGRE/Plugins/OctreeZone/OgreOctreeZone.h +264 -0
  691. data/deps/include/OGRE/Plugins/OctreeZone/OgreOctreeZoneOctree.h +203 -0
  692. data/deps/include/OGRE/Plugins/OctreeZone/OgreOctreeZonePlugin.h +72 -0
  693. data/deps/include/OGRE/Plugins/OctreeZone/OgreOctreeZonePrerequisites.h +67 -0
  694. data/deps/include/OGRE/Plugins/PCZSceneManager/OgreAntiPortal.h +75 -0
  695. data/deps/include/OGRE/Plugins/PCZSceneManager/OgreCapsule.h +68 -0
  696. data/deps/include/OGRE/Plugins/PCZSceneManager/OgreDefaultZone.h +154 -0
  697. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCPlane.h +94 -0
  698. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZCamera.h +113 -0
  699. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZFrustum.h +136 -0
  700. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZLight.h +137 -0
  701. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZPlugin.h +77 -0
  702. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZPrerequisites.h +63 -0
  703. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZSceneManager.h +410 -0
  704. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZSceneNode.h +135 -0
  705. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZSceneQuery.h +134 -0
  706. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZone.h +316 -0
  707. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePCZoneFactory.h +126 -0
  708. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePortal.h +106 -0
  709. data/deps/include/OGRE/Plugins/PCZSceneManager/OgrePortalBase.h +303 -0
  710. data/deps/include/OGRE/Plugins/PCZSceneManager/OgreSegment.h +81 -0
  711. data/deps/include/OGRE/Plugins/ParticleFX/OgreAreaEmitter.h +139 -0
  712. data/deps/include/OGRE/Plugins/ParticleFX/OgreBoxEmitter.h +60 -0
  713. data/deps/include/OGRE/Plugins/ParticleFX/OgreBoxEmitterFactory.h +66 -0
  714. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourFaderAffector.h +167 -0
  715. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourFaderAffector2.h +226 -0
  716. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourFaderAffectorFactory.h +56 -0
  717. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourFaderAffectorFactory2.h +56 -0
  718. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourImageAffector.h +80 -0
  719. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourImageAffectorFactory.h +56 -0
  720. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourInterpolatorAffector.h +97 -0
  721. data/deps/include/OGRE/Plugins/ParticleFX/OgreColourInterpolatorAffectorFactory.h +56 -0
  722. data/deps/include/OGRE/Plugins/ParticleFX/OgreCylinderEmitter.h +68 -0
  723. data/deps/include/OGRE/Plugins/ParticleFX/OgreCylinderEmitterFactory.h +67 -0
  724. data/deps/include/OGRE/Plugins/ParticleFX/OgreDeflectorPlaneAffector.h +114 -0
  725. data/deps/include/OGRE/Plugins/ParticleFX/OgreDeflectorPlaneAffectorFactory.h +56 -0
  726. data/deps/include/OGRE/Plugins/ParticleFX/OgreDirectionRandomiserAffector.h +109 -0
  727. data/deps/include/OGRE/Plugins/ParticleFX/OgreDirectionRandomiserAffectorFactory.h +54 -0
  728. data/deps/include/OGRE/Plugins/ParticleFX/OgreEllipsoidEmitter.h +64 -0
  729. data/deps/include/OGRE/Plugins/ParticleFX/OgreEllipsoidEmitterFactory.h +67 -0
  730. data/deps/include/OGRE/Plugins/ParticleFX/OgreHollowEllipsoidEmitter.h +126 -0
  731. data/deps/include/OGRE/Plugins/ParticleFX/OgreHollowEllipsoidEmitterFactory.h +67 -0
  732. data/deps/include/OGRE/Plugins/ParticleFX/OgreLinearForceAffector.h +120 -0
  733. data/deps/include/OGRE/Plugins/ParticleFX/OgreLinearForceAffectorFactory.h +56 -0
  734. data/deps/include/OGRE/Plugins/ParticleFX/OgreParticleFXPlugin.h +66 -0
  735. data/deps/include/OGRE/Plugins/ParticleFX/OgreParticleFXPrerequisites.h +68 -0
  736. data/deps/include/OGRE/Plugins/ParticleFX/OgrePointEmitter.h +62 -0
  737. data/deps/include/OGRE/Plugins/ParticleFX/OgrePointEmitterFactory.h +66 -0
  738. data/deps/include/OGRE/Plugins/ParticleFX/OgreRingEmitter.h +111 -0
  739. data/deps/include/OGRE/Plugins/ParticleFX/OgreRingEmitterFactory.h +67 -0
  740. data/deps/include/OGRE/Plugins/ParticleFX/OgreRotationAffector.h +131 -0
  741. data/deps/include/OGRE/Plugins/ParticleFX/OgreRotationAffectorFactory.h +56 -0
  742. data/deps/include/OGRE/Plugins/ParticleFX/OgreScaleAffector.h +84 -0
  743. data/deps/include/OGRE/Plugins/ParticleFX/OgreScaleAffectorFactory.h +56 -0
  744. data/deps/include/OGRE/RTShaderSystem/OgreRTShaderSystem.h +76 -0
  745. data/deps/include/OGRE/RTShaderSystem/OgreShaderCGProgramProcessor.h +85 -0
  746. data/deps/include/OGRE/RTShaderSystem/OgreShaderCGProgramWriter.h +145 -0
  747. data/deps/include/OGRE/RTShaderSystem/OgreShaderExDualQuaternionSkinning.h +127 -0
  748. data/deps/include/OGRE/RTShaderSystem/OgreShaderExHardwareSkinning.h +357 -0
  749. data/deps/include/OGRE/RTShaderSystem/OgreShaderExHardwareSkinningTechnique.h +156 -0
  750. data/deps/include/OGRE/RTShaderSystem/OgreShaderExIntegratedPSSM3.h +213 -0
  751. data/deps/include/OGRE/RTShaderSystem/OgreShaderExLayeredBlending.h +257 -0
  752. data/deps/include/OGRE/RTShaderSystem/OgreShaderExLinearSkinning.h +97 -0
  753. data/deps/include/OGRE/RTShaderSystem/OgreShaderExNormalMapLighting.h +391 -0
  754. data/deps/include/OGRE/RTShaderSystem/OgreShaderExPerPixelLighting.h +276 -0
  755. data/deps/include/OGRE/RTShaderSystem/OgreShaderExTextureAtlasSampler.h +367 -0
  756. data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPColour.h +180 -0
  757. data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPFog.h +200 -0
  758. data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPLighting.h +241 -0
  759. data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPRenderState.h +134 -0
  760. data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPRenderStateBuilder.h +146 -0
  761. data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPTexturing.h +272 -0
  762. data/deps/include/OGRE/RTShaderSystem/OgreShaderFFPTransform.h +121 -0
  763. data/deps/include/OGRE/RTShaderSystem/OgreShaderFunction.h +227 -0
  764. data/deps/include/OGRE/RTShaderSystem/OgreShaderFunctionAtom.h +250 -0
  765. data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLESProgramProcessor.h +92 -0
  766. data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLESProgramWriter.h +193 -0
  767. data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLProgramProcessor.h +97 -0
  768. data/deps/include/OGRE/RTShaderSystem/OgreShaderGLSLProgramWriter.h +146 -0
  769. data/deps/include/OGRE/RTShaderSystem/OgreShaderGenerator.h +936 -0
  770. data/deps/include/OGRE/RTShaderSystem/OgreShaderHLSLProgramProcessor.h +84 -0
  771. data/deps/include/OGRE/RTShaderSystem/OgreShaderHLSLProgramWriter.h +145 -0
  772. data/deps/include/OGRE/RTShaderSystem/OgreShaderMaterialSerializerListener.h +109 -0
  773. data/deps/include/OGRE/RTShaderSystem/OgreShaderParameter.h +652 -0
  774. data/deps/include/OGRE/RTShaderSystem/OgreShaderPrerequisites.h +120 -0
  775. data/deps/include/OGRE/RTShaderSystem/OgreShaderProgram.h +218 -0
  776. data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramManager.h +236 -0
  777. data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramProcessor.h +266 -0
  778. data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramSet.h +98 -0
  779. data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramWriter.h +110 -0
  780. data/deps/include/OGRE/RTShaderSystem/OgreShaderProgramWriterManager.h +130 -0
  781. data/deps/include/OGRE/RTShaderSystem/OgreShaderRenderState.h +219 -0
  782. data/deps/include/OGRE/RTShaderSystem/OgreShaderScriptTranslator.h +144 -0
  783. data/deps/include/OGRE/RTShaderSystem/OgreShaderSubRenderState.h +321 -0
  784. data/deps/include/OGRE/RenderSystems/GL/GL/gl.h +1918 -0
  785. data/deps/include/OGRE/RenderSystems/GL/GL/glew.h +16131 -0
  786. data/deps/include/OGRE/RenderSystems/GL/GL/glext.h +6030 -0
  787. data/deps/include/OGRE/RenderSystems/GL/GL/glxew.h +1587 -0
  788. data/deps/include/OGRE/RenderSystems/GL/GL/glxext.h +681 -0
  789. data/deps/include/OGRE/RenderSystems/GL/GL/glxtokens.h +231 -0
  790. data/deps/include/OGRE/RenderSystems/GL/GL/wglew.h +1363 -0
  791. data/deps/include/OGRE/RenderSystems/GL/GL/wglext.h +608 -0
  792. data/deps/include/OGRE/RenderSystems/GL/GLX/OgreGLUtil.h +43 -0
  793. data/deps/include/OGRE/RenderSystems/GL/GLX/OgreGLXContext.h +62 -0
  794. data/deps/include/OGRE/RenderSystems/GL/GLX/OgreGLXGLSupport.h +201 -0
  795. data/deps/include/OGRE/RenderSystems/GL/GLX/OgreGLXRenderTexture.h +52 -0
  796. data/deps/include/OGRE/RenderSystems/GL/GLX/OgreGLXUtils.h +102 -0
  797. data/deps/include/OGRE/RenderSystems/GL/GLX/OgreGLXWindow.h +126 -0
  798. data/deps/include/OGRE/RenderSystems/GL/OgreGLATIFSInit.h +41 -0
  799. data/deps/include/OGRE/RenderSystems/GL/OgreGLContext.h +75 -0
  800. data/deps/include/OGRE/RenderSystems/GL/OgreGLDefaultHardwareBufferManager.h +135 -0
  801. data/deps/include/OGRE/RenderSystems/GL/OgreGLDepthBuffer.h +71 -0
  802. data/deps/include/OGRE/RenderSystems/GL/OgreGLFBOMultiRenderTarget.h +59 -0
  803. data/deps/include/OGRE/RenderSystems/GL/OgreGLFBORenderTexture.h +200 -0
  804. data/deps/include/OGRE/RenderSystems/GL/OgreGLFrameBufferObject.h +105 -0
  805. data/deps/include/OGRE/RenderSystems/GL/OgreGLGpuNvparseProgram.h +69 -0
  806. data/deps/include/OGRE/RenderSystems/GL/OgreGLGpuProgram.h +120 -0
  807. data/deps/include/OGRE/RenderSystems/GL/OgreGLGpuProgramManager.h +68 -0
  808. data/deps/include/OGRE/RenderSystems/GL/OgreGLHardwareBufferManager.h +141 -0
  809. data/deps/include/OGRE/RenderSystems/GL/OgreGLHardwareIndexBuffer.h +70 -0
  810. data/deps/include/OGRE/RenderSystems/GL/OgreGLHardwareOcclusionQuery.h +108 -0
  811. data/deps/include/OGRE/RenderSystems/GL/OgreGLHardwarePixelBuffer.h +138 -0
  812. data/deps/include/OGRE/RenderSystems/GL/OgreGLHardwareVertexBuffer.h +69 -0
  813. data/deps/include/OGRE/RenderSystems/GL/OgreGLPBRenderTexture.h +106 -0
  814. data/deps/include/OGRE/RenderSystems/GL/OgreGLPBuffer.h +62 -0
  815. data/deps/include/OGRE/RenderSystems/GL/OgreGLPixelFormat.h +100 -0
  816. data/deps/include/OGRE/RenderSystems/GL/OgreGLPlugin.h +63 -0
  817. data/deps/include/OGRE/RenderSystems/GL/OgreGLPrerequisites.h +105 -0
  818. data/deps/include/OGRE/RenderSystems/GL/OgreGLRenderSystem.h +521 -0
  819. data/deps/include/OGRE/RenderSystems/GL/OgreGLRenderTexture.h +141 -0
  820. data/deps/include/OGRE/RenderSystems/GL/OgreGLRenderToVertexBuffer.h +72 -0
  821. data/deps/include/OGRE/RenderSystems/GL/OgreGLSLExtSupport.h +66 -0
  822. data/deps/include/OGRE/RenderSystems/GL/OgreGLSLGpuProgram.h +104 -0
  823. data/deps/include/OGRE/RenderSystems/GL/OgreGLSLLinkProgram.h +149 -0
  824. data/deps/include/OGRE/RenderSystems/GL/OgreGLSLLinkProgramManager.h +144 -0
  825. data/deps/include/OGRE/RenderSystems/GL/OgreGLSLPreprocessor.h +524 -0
  826. data/deps/include/OGRE/RenderSystems/GL/OgreGLSLProgram.h +200 -0
  827. data/deps/include/OGRE/RenderSystems/GL/OgreGLSLProgramFactory.h +60 -0
  828. data/deps/include/OGRE/RenderSystems/GL/OgreGLSupport.h +137 -0
  829. data/deps/include/OGRE/RenderSystems/GL/OgreGLTexture.h +191 -0
  830. data/deps/include/OGRE/RenderSystems/GL/OgreGLTextureManager.h +67 -0
  831. data/deps/include/OGRE/Sample.h +325 -0
  832. data/deps/include/OGRE/SampleContext.h +864 -0
  833. data/deps/include/OGRE/SamplePlugin.h +99 -0
  834. data/deps/include/OGRE/SdkCameraMan.h +367 -0
  835. data/deps/include/OGRE/SdkSample.h +552 -0
  836. data/deps/include/OGRE/SdkTrays.h +3168 -0
  837. data/deps/include/OGRE/Terrain/OgreTerrain.h +2076 -0
  838. data/deps/include/OGRE/Terrain/OgreTerrainGroup.h +545 -0
  839. data/deps/include/OGRE/Terrain/OgreTerrainLayerBlendMap.h +199 -0
  840. data/deps/include/OGRE/Terrain/OgreTerrainMaterialGenerator.h +404 -0
  841. data/deps/include/OGRE/Terrain/OgreTerrainMaterialGeneratorA.h +279 -0
  842. data/deps/include/OGRE/Terrain/OgreTerrainPagedWorldSection.h +165 -0
  843. data/deps/include/OGRE/Terrain/OgreTerrainPaging.h +135 -0
  844. data/deps/include/OGRE/Terrain/OgreTerrainPrerequisites.h +68 -0
  845. data/deps/include/OGRE/Terrain/OgreTerrainQuadTreeNode.h +413 -0
  846. data/deps/include/OGRE/Threading/OgreDefaultWorkQueue.h +42 -0
  847. data/deps/include/OGRE/Threading/OgreDefaultWorkQueueStandard.h +82 -0
  848. data/deps/include/OGRE/Threading/OgreThreadDefines.h +41 -0
  849. data/deps/include/OGRE/Threading/OgreThreadDefinesNone.h +59 -0
  850. data/deps/include/OGRE/Threading/OgreThreadHeaders.h +39 -0
  851. data/deps/include/OGRE/asm_math.h +376 -0
  852. data/deps/include/OIS/OIS.h +41 -0
  853. data/deps/include/OIS/OISConfig.h +75 -0
  854. data/deps/include/OIS/OISEffect.h +278 -0
  855. data/deps/include/OIS/OISEvents.h +43 -0
  856. data/deps/include/OIS/OISException.h +78 -0
  857. data/deps/include/OIS/OISFactoryCreator.h +81 -0
  858. data/deps/include/OIS/OISForceFeedback.h +120 -0
  859. data/deps/include/OIS/OISInputManager.h +205 -0
  860. data/deps/include/OIS/OISInterface.h +47 -0
  861. data/deps/include/OIS/OISJoyStick.h +228 -0
  862. data/deps/include/OIS/OISKeyboard.h +312 -0
  863. data/deps/include/OIS/OISMouse.h +138 -0
  864. data/deps/include/OIS/OISMultiTouch.h +169 -0
  865. data/deps/include/OIS/OISObject.h +95 -0
  866. data/deps/include/OIS/OISPrereqs.h +226 -0
  867. data/deps/include/OgreProcedural/Procedural.h +54 -0
  868. data/deps/include/OgreProcedural/ProceduralBoxGenerator.h +110 -0
  869. data/deps/include/OgreProcedural/ProceduralCapsuleGenerator.h +103 -0
  870. data/deps/include/OgreProcedural/ProceduralConeGenerator.h +90 -0
  871. data/deps/include/OgreProcedural/ProceduralCylinderGenerator.h +99 -0
  872. data/deps/include/OgreProcedural/ProceduralExtruder.h +131 -0
  873. data/deps/include/OgreProcedural/ProceduralGeometryHelpers.h +171 -0
  874. data/deps/include/OgreProcedural/ProceduralIcoSphereGenerator.h +76 -0
  875. data/deps/include/OgreProcedural/ProceduralLathe.h +129 -0
  876. data/deps/include/OgreProcedural/ProceduralMeshGenerator.h +286 -0
  877. data/deps/include/OgreProcedural/ProceduralMultiShape.h +126 -0
  878. data/deps/include/OgreProcedural/ProceduralPath.h +322 -0
  879. data/deps/include/OgreProcedural/ProceduralPathGenerators.h +281 -0
  880. data/deps/include/OgreProcedural/ProceduralPlaneGenerator.h +93 -0
  881. data/deps/include/OgreProcedural/ProceduralPlatform.h +54 -0
  882. data/deps/include/OgreProcedural/ProceduralRoot.h +65 -0
  883. data/deps/include/OgreProcedural/ProceduralRoundedBoxGenerator.h +118 -0
  884. data/deps/include/OgreProcedural/ProceduralShape.h +532 -0
  885. data/deps/include/OgreProcedural/ProceduralShapeGenerators.h +362 -0
  886. data/deps/include/OgreProcedural/ProceduralSphereGenerator.h +80 -0
  887. data/deps/include/OgreProcedural/ProceduralSplines.h +168 -0
  888. data/deps/include/OgreProcedural/ProceduralStableHeaders.h +28 -0
  889. data/deps/include/OgreProcedural/ProceduralTorusGenerator.h +88 -0
  890. data/deps/include/OgreProcedural/ProceduralTorusKnotGenerator.h +106 -0
  891. data/deps/include/OgreProcedural/ProceduralTrack.h +122 -0
  892. data/deps/include/OgreProcedural/ProceduralTriangleBuffer.h +328 -0
  893. data/deps/include/OgreProcedural/ProceduralTriangulator.h +173 -0
  894. data/deps/include/OgreProcedural/ProceduralTubeGenerator.h +96 -0
  895. data/deps/include/OgreProcedural/ProceduralUtils.h +185 -0
  896. data/deps/lib/OGRE/Plugin_BSPSceneManager.so +0 -0
  897. data/deps/lib/OGRE/Plugin_BSPSceneManager.so.1.8.0 +0 -0
  898. data/deps/lib/OGRE/Plugin_CgProgramManager.so +0 -0
  899. data/deps/lib/OGRE/Plugin_CgProgramManager.so.1.8.0 +0 -0
  900. data/deps/lib/OGRE/Plugin_OctreeSceneManager.so +0 -0
  901. data/deps/lib/OGRE/Plugin_OctreeSceneManager.so.1.8.0 +0 -0
  902. data/deps/lib/OGRE/Plugin_OctreeZone.so +0 -0
  903. data/deps/lib/OGRE/Plugin_OctreeZone.so.1.8.0 +0 -0
  904. data/deps/lib/OGRE/Plugin_PCZSceneManager.so +0 -0
  905. data/deps/lib/OGRE/Plugin_PCZSceneManager.so.1.8.0 +0 -0
  906. data/deps/lib/OGRE/Plugin_ParticleFX.so +0 -0
  907. data/deps/lib/OGRE/Plugin_ParticleFX.so.1.8.0 +0 -0
  908. data/deps/lib/OGRE/RenderSystem_GL.so +0 -0
  909. data/deps/lib/OGRE/RenderSystem_GL.so.1.8.0 +0 -0
  910. data/deps/lib/libOIS-1.3.0.so +0 -0
  911. data/deps/lib/libOIS.so +0 -0
  912. data/deps/lib/libOgreMain.so +0 -0
  913. data/deps/lib/libOgreMain.so.1.8.0 +0 -0
  914. data/deps/lib/libOgrePaging.so +0 -0
  915. data/deps/lib/libOgrePaging.so.1.8.0 +0 -0
  916. data/deps/lib/libOgreProcedural.so +0 -0
  917. data/deps/lib/libOgreRTShaderSystem.so +0 -0
  918. data/deps/lib/libOgreRTShaderSystem.so.1.8.0 +0 -0
  919. data/deps/lib/libOgreTerrain.so +0 -0
  920. data/deps/lib/libOgreTerrain.so.1.8.0 +0 -0
  921. data/deps/share/OGRE/media/DeferredShadingMedia/COPYING +18 -0
  922. data/deps/share/OGRE/media/DeferredShadingMedia/DeferredShading/post/Ambient_ps.cg +68 -0
  923. data/deps/share/OGRE/media/DeferredShadingMedia/DeferredShading/post/LightMaterial_ps.cg +187 -0
  924. data/deps/share/OGRE/media/DeferredShadingMedia/DeferredShading/post/LightMaterial_vs.cg +53 -0
  925. data/deps/share/OGRE/media/DeferredShadingMedia/DeferredShading/post/ShowColour_ps.cg +41 -0
  926. data/deps/share/OGRE/media/DeferredShadingMedia/DeferredShading/post/ShowDS_ps.cg +40 -0
  927. data/deps/share/OGRE/media/DeferredShadingMedia/DeferredShading/post/ShowNormal_ps.cg +39 -0
  928. data/deps/share/OGRE/media/DeferredShadingMedia/DeferredShading/post/vs.cg +54 -0
  929. data/deps/share/OGRE/media/DeferredShadingMedia/ShadowCaster.cg +25 -0
  930. data/deps/share/OGRE/media/DeferredShadingMedia/ShadowCaster.material +15 -0
  931. data/deps/share/OGRE/media/DeferredShadingMedia/ShadowCaster.program +24 -0
  932. data/deps/share/OGRE/media/DeferredShadingMedia/deferred.compositor +147 -0
  933. data/deps/share/OGRE/media/DeferredShadingMedia/deferred_post.material +148 -0
  934. data/deps/share/OGRE/media/DeferredShadingMedia/deferred_post.program +85 -0
  935. data/deps/share/OGRE/media/DeferredShadingMedia/deferred_post_minilight.material +71 -0
  936. data/deps/share/OGRE/media/DeferredShadingMedia/deferreddemo.material +73 -0
  937. data/deps/share/OGRE/media/DeferredShadingMedia/ssao.cg +178 -0
  938. data/deps/share/OGRE/media/DeferredShadingMedia/ssao.compositor +93 -0
  939. data/deps/share/OGRE/media/DeferredShadingMedia/ssao.material +148 -0
  940. data/deps/share/OGRE/media/PCZAppMedia/Carpet_Diamond_Olive.jpg +0 -0
  941. data/deps/share/OGRE/media/PCZAppMedia/Metal_Brass_Ceiling.jpg +0 -0
  942. data/deps/share/OGRE/media/PCZAppMedia/Metal_Embossed.jpg +0 -0
  943. data/deps/share/OGRE/media/PCZAppMedia/Metal_Rusted.jpg +0 -0
  944. data/deps/share/OGRE/media/PCZAppMedia/Metal_Rusted1.jpg +0 -0
  945. data/deps/share/OGRE/media/PCZAppMedia/Metal_Steel_Textured.jpg +0 -0
  946. data/deps/share/OGRE/media/PCZAppMedia/Metal_Steel_Textured_White.jpg +0 -0
  947. data/deps/share/OGRE/media/PCZAppMedia/ROOM.material +149 -0
  948. data/deps/share/OGRE/media/PCZAppMedia/ROOM_NX.mesh +0 -0
  949. data/deps/share/OGRE/media/PCZAppMedia/ROOM_NY.mesh +0 -0
  950. data/deps/share/OGRE/media/PCZAppMedia/ROOM_NZ.mesh +0 -0
  951. data/deps/share/OGRE/media/PCZAppMedia/ROOM_PX.mesh +0 -0
  952. data/deps/share/OGRE/media/PCZAppMedia/ROOM_PY.mesh +0 -0
  953. data/deps/share/OGRE/media/PCZAppMedia/ROOM_PZ.mesh +0 -0
  954. data/deps/share/OGRE/media/PCZAppMedia/Roofing_Tile_Spanish.jpg +0 -0
  955. data/deps/share/OGRE/media/PCZAppMedia/Translucent_Glass_Tinted.jpg +0 -0
  956. data/deps/share/OGRE/media/PCZAppMedia/Translucent_Glass_Tinted1.jpg +0 -0
  957. data/deps/share/OGRE/media/PCZAppMedia/Wood_Floor.jpg +0 -0
  958. data/deps/share/OGRE/media/PCZAppMedia/building_exterior.mesh +0 -0
  959. data/deps/share/OGRE/media/PCZAppMedia/room_nxnynz.mesh +0 -0
  960. data/deps/share/OGRE/media/PCZAppMedia/room_nxpx.mesh +0 -0
  961. data/deps/share/OGRE/media/PCZAppMedia/room_nxpxnypynzpz.mesh +0 -0
  962. data/deps/share/OGRE/media/PCZAppMedia/room_nxpxnz.mesh +0 -0
  963. data/deps/share/OGRE/media/PCZAppMedia/room_nxpxnzpz.mesh +0 -0
  964. data/deps/share/OGRE/media/PCZAppMedia/room_nxpxpz.mesh +0 -0
  965. data/deps/share/OGRE/media/PCZAppMedia/room_nxpynz.mesh +0 -0
  966. data/deps/share/OGRE/media/PCZAppMedia/room_nxpz.mesh +0 -0
  967. data/deps/share/OGRE/media/PCZAppMedia/room_nypy.mesh +0 -0
  968. data/deps/share/OGRE/media/PCZAppMedia/room_nypy_4y.mesh +0 -0
  969. data/deps/share/OGRE/media/PCZAppMedia/room_nzpz.mesh +0 -0
  970. data/deps/share/OGRE/media/PCZAppMedia/room_pxnynz.mesh +0 -0
  971. data/deps/share/OGRE/media/PCZAppMedia/room_pxpynz.mesh +0 -0
  972. data/deps/share/OGRE/media/PCZAppMedia/room_pxpz.mesh +0 -0
  973. data/deps/share/OGRE/media/PCZAppMedia/terrain2.cfg +71 -0
  974. data/deps/share/OGRE/media/PCZAppMedia/terrain2.png +0 -0
  975. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Common.cg +248 -0
  976. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Common.glsl +248 -0
  977. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Common.glsles +231 -0
  978. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Common.hlsl +219 -0
  979. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Fog.cg +138 -0
  980. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Fog.glsl +139 -0
  981. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Fog.glsles +141 -0
  982. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Fog.hlsl +138 -0
  983. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Lighting.cg +225 -0
  984. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Lighting.glsl +226 -0
  985. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Lighting.glsles +227 -0
  986. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Lighting.hlsl +225 -0
  987. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Texturing.cg +319 -0
  988. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Texturing.glsl +334 -0
  989. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Texturing.glsles +355 -0
  990. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Texturing.hlsl +319 -0
  991. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Transform.cg +78 -0
  992. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Transform.glsl +71 -0
  993. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Transform.glsles +65 -0
  994. data/deps/share/OGRE/media/RTShaderLib/FFPLib_Transform.hlsl +71 -0
  995. data/deps/share/OGRE/media/RTShaderLib/SGXLib_DualQuaternion.cg +130 -0
  996. data/deps/share/OGRE/media/RTShaderLib/SGXLib_DualQuaternion.glsl +132 -0
  997. data/deps/share/OGRE/media/RTShaderLib/SGXLib_IntegratedPSSM.cg +81 -0
  998. data/deps/share/OGRE/media/RTShaderLib/SGXLib_IntegratedPSSM.glsl +107 -0
  999. data/deps/share/OGRE/media/RTShaderLib/SGXLib_IntegratedPSSM.glsles +112 -0
  1000. data/deps/share/OGRE/media/RTShaderLib/SGXLib_IntegratedPSSM.hlsl +81 -0
  1001. data/deps/share/OGRE/media/RTShaderLib/SGXLib_LayeredBlending.cg +728 -0
  1002. data/deps/share/OGRE/media/RTShaderLib/SGXLib_LayeredBlending.glsl +825 -0
  1003. data/deps/share/OGRE/media/RTShaderLib/SGXLib_LayeredBlending.glsles +889 -0
  1004. data/deps/share/OGRE/media/RTShaderLib/SGXLib_LayeredBlending.hlsl +730 -0
  1005. data/deps/share/OGRE/media/RTShaderLib/SGXLib_NormalMapLighting.cg +257 -0
  1006. data/deps/share/OGRE/media/RTShaderLib/SGXLib_NormalMapLighting.glsl +269 -0
  1007. data/deps/share/OGRE/media/RTShaderLib/SGXLib_NormalMapLighting.glsles +264 -0
  1008. data/deps/share/OGRE/media/RTShaderLib/SGXLib_NormalMapLighting.hlsl +257 -0
  1009. data/deps/share/OGRE/media/RTShaderLib/SGXLib_PerPixelLighting.cg +226 -0
  1010. data/deps/share/OGRE/media/RTShaderLib/SGXLib_PerPixelLighting.glsl +228 -0
  1011. data/deps/share/OGRE/media/RTShaderLib/SGXLib_PerPixelLighting.glsles +223 -0
  1012. data/deps/share/OGRE/media/RTShaderLib/SGXLib_PerPixelLighting.hlsl +226 -0
  1013. data/deps/share/OGRE/media/RTShaderLib/SGXLib_TextureAtlas.cg +122 -0
  1014. data/deps/share/OGRE/media/RTShaderLib/SGXLib_TextureAtlas.glsl +124 -0
  1015. data/deps/share/OGRE/media/RTShaderLib/SGXLib_TextureAtlas.glsles +122 -0
  1016. data/deps/share/OGRE/media/RTShaderLib/SGXLib_TextureAtlas.hlsl +122 -0
  1017. data/deps/share/OGRE/media/RTShaderLib/SampleLib_InstancedViewports.cg +76 -0
  1018. data/deps/share/OGRE/media/RTShaderLib/SampleLib_InstancedViewports.glsl +93 -0
  1019. data/deps/share/OGRE/media/RTShaderLib/SampleLib_InstancedViewports.hlsl +76 -0
  1020. data/deps/share/OGRE/media/RTShaderLib/SampleLib_ReflectionMap.cg +62 -0
  1021. data/deps/share/OGRE/media/RTShaderLib/SampleLib_ReflectionMap.glsl +65 -0
  1022. data/deps/share/OGRE/media/RTShaderLib/SampleLib_ReflectionMap.glsles +67 -0
  1023. data/deps/share/OGRE/media/RTShaderLib/SampleLib_ReflectionMap.hlsl +62 -0
  1024. data/deps/share/OGRE/media/RTShaderLib/cache/dummy.txt +1 -0
  1025. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_Shadow.cg +292 -0
  1026. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_Shadow.material +384 -0
  1027. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_ShadowFourWeights.glsl +29 -0
  1028. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_ShadowOneWeight.glsl +28 -0
  1029. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_ShadowPassThrough_ps.glsl +9 -0
  1030. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_ShadowPassThrough_vs.glsl +15 -0
  1031. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_ShadowThreeWeights.glsl +29 -0
  1032. data/deps/share/OGRE/media/RTShaderLib/materials/DualQuaternionSkinning_ShadowTwoWeights.glsl +29 -0
  1033. data/deps/share/OGRE/media/RTShaderLib/materials/HardwareSkinningShadow.cg +111 -0
  1034. data/deps/share/OGRE/media/RTShaderLib/materials/HardwareSkinningShadow.material +265 -0
  1035. data/deps/share/OGRE/media/RTShaderLib/materials/HardwareSkinningShadow_Fragment.glsl +6 -0
  1036. data/deps/share/OGRE/media/RTShaderLib/materials/HardwareSkinningShadow_TwoWeights.glsl +18 -0
  1037. data/deps/share/OGRE/media/RTShaderLib/materials/RTShaderSystem.material +221 -0
  1038. data/deps/share/OGRE/media/fonts/bluebold.ttf +0 -0
  1039. data/deps/share/OGRE/media/fonts/bluecond.ttf +0 -0
  1040. data/deps/share/OGRE/media/fonts/bluehigh.ttf +0 -0
  1041. data/deps/share/OGRE/media/fonts/bluehighway-10.font +2 -0
  1042. data/deps/share/OGRE/media/fonts/bluehighway-12.font +2 -0
  1043. data/deps/share/OGRE/media/fonts/bluehighway-8.font +2 -0
  1044. data/deps/share/OGRE/media/fonts/read_me.html +2 -0
  1045. data/deps/share/OGRE/media/fonts/sample.fontdef +11 -0
  1046. data/deps/share/OGRE/media/fonts/solo5.ttf +0 -0
  1047. data/deps/share/OGRE/media/materials/programs/ASCIIFP.cg +32 -0
  1048. data/deps/share/OGRE/media/materials/programs/ASCIIFP.glsles +31 -0
  1049. data/deps/share/OGRE/media/materials/programs/AmbientOneTexture.glsl +13 -0
  1050. data/deps/share/OGRE/media/materials/programs/AmbientOneTexture.glsles +20 -0
  1051. data/deps/share/OGRE/media/materials/programs/AmbientOneTextureWithUV.glsles +23 -0
  1052. data/deps/share/OGRE/media/materials/programs/Bloom2_ps20.glsl +27 -0
  1053. data/deps/share/OGRE/media/materials/programs/Bloom2_ps20.glsles +30 -0
  1054. data/deps/share/OGRE/media/materials/programs/Bloom2_ps20.hlsl +58 -0
  1055. data/deps/share/OGRE/media/materials/programs/Bloom_ps20.hlsl +52 -0
  1056. data/deps/share/OGRE/media/materials/programs/Bloom_vs11.hlsl +21 -0
  1057. data/deps/share/OGRE/media/materials/programs/Blur0_ps20.hlsl +31 -0
  1058. data/deps/share/OGRE/media/materials/programs/Blur0_vs.glsl +15 -0
  1059. data/deps/share/OGRE/media/materials/programs/Blur0_vs.glsles +22 -0
  1060. data/deps/share/OGRE/media/materials/programs/Blur0_vs11.hlsl +22 -0
  1061. data/deps/share/OGRE/media/materials/programs/Blur1_ps20.hlsl +28 -0
  1062. data/deps/share/OGRE/media/materials/programs/Blur1_vs.glsl +15 -0
  1063. data/deps/share/OGRE/media/materials/programs/Blur1_vs.glsles +22 -0
  1064. data/deps/share/OGRE/media/materials/programs/Blur1_vs11.hlsl +19 -0
  1065. data/deps/share/OGRE/media/materials/programs/BlurH_ps20.glsl +56 -0
  1066. data/deps/share/OGRE/media/materials/programs/BlurH_ps20.glsles +58 -0
  1067. data/deps/share/OGRE/media/materials/programs/BlurH_ps20.hlsl +51 -0
  1068. data/deps/share/OGRE/media/materials/programs/BlurV_ps20.glsl +60 -0
  1069. data/deps/share/OGRE/media/materials/programs/BlurV_ps20.glsles +63 -0
  1070. data/deps/share/OGRE/media/materials/programs/BlurV_ps20.hlsl +51 -0
  1071. data/deps/share/OGRE/media/materials/programs/Blur_ps.glsl +14 -0
  1072. data/deps/share/OGRE/media/materials/programs/Blur_ps.glsles +18 -0
  1073. data/deps/share/OGRE/media/materials/programs/Blur_vs.glsl +14 -0
  1074. data/deps/share/OGRE/media/materials/programs/Blur_vs.glsles +24 -0
  1075. data/deps/share/OGRE/media/materials/programs/Blur_vs11.hlsl +19 -0
  1076. data/deps/share/OGRE/media/materials/programs/BrightBloom2_ps20.glsl +29 -0
  1077. data/deps/share/OGRE/media/materials/programs/BrightBloom2_ps20.glsles +32 -0
  1078. data/deps/share/OGRE/media/materials/programs/BrightBloom2_ps20.hlsl +20 -0
  1079. data/deps/share/OGRE/media/materials/programs/ColdCasterFp.glsles +11 -0
  1080. data/deps/share/OGRE/media/materials/programs/ColdCasterVp.glsles +18 -0
  1081. data/deps/share/OGRE/media/materials/programs/Combine_fp.cg +15 -0
  1082. data/deps/share/OGRE/media/materials/programs/Combine_fp.glsles +17 -0
  1083. data/deps/share/OGRE/media/materials/programs/Common.cg +81 -0
  1084. data/deps/share/OGRE/media/materials/programs/DOF_ps.cg +47 -0
  1085. data/deps/share/OGRE/media/materials/programs/DOF_ps.glsles +94 -0
  1086. data/deps/share/OGRE/media/materials/programs/DepthShadowmap.hlsl +309 -0
  1087. data/deps/share/OGRE/media/materials/programs/DepthShadowmapCasterFp.glsl +16 -0
  1088. data/deps/share/OGRE/media/materials/programs/DepthShadowmapCasterFp.glsles +19 -0
  1089. data/deps/share/OGRE/media/materials/programs/DepthShadowmapCasterVp.glsl +24 -0
  1090. data/deps/share/OGRE/media/materials/programs/DepthShadowmapCasterVp.glsles +27 -0
  1091. data/deps/share/OGRE/media/materials/programs/DepthShadowmapNormalMapReceiverFp.glsl +84 -0
  1092. data/deps/share/OGRE/media/materials/programs/DepthShadowmapNormalMapReceiverFp.glsles +86 -0
  1093. data/deps/share/OGRE/media/materials/programs/DepthShadowmapNormalMapReceiverVp.glsl +42 -0
  1094. data/deps/share/OGRE/media/materials/programs/DepthShadowmapNormalMapReceiverVp.glsles +51 -0
  1095. data/deps/share/OGRE/media/materials/programs/DepthShadowmapReceiverFp.glsl +66 -0
  1096. data/deps/share/OGRE/media/materials/programs/DepthShadowmapReceiverFp.glsles +67 -0
  1097. data/deps/share/OGRE/media/materials/programs/DepthShadowmapReceiverVp.glsl +32 -0
  1098. data/deps/share/OGRE/media/materials/programs/DepthShadowmapReceiverVp.glsles +42 -0
  1099. data/deps/share/OGRE/media/materials/programs/DitherFP.cg +18 -0
  1100. data/deps/share/OGRE/media/materials/programs/DitherFP.glsles +25 -0
  1101. data/deps/share/OGRE/media/materials/programs/DualQuaternion.cg +159 -0
  1102. data/deps/share/OGRE/media/materials/programs/DualQuaternion.glsl +42 -0
  1103. data/deps/share/OGRE/media/materials/programs/DualQuaternion_Common.cg +85 -0
  1104. data/deps/share/OGRE/media/materials/programs/DualQuaternion_Common.glsl +70 -0
  1105. data/deps/share/OGRE/media/materials/programs/DualQuaternion_ShadowCaster.glsl +29 -0
  1106. data/deps/share/OGRE/media/materials/programs/DualQuaternion_TwoPhase.glsl +77 -0
  1107. data/deps/share/OGRE/media/materials/programs/DualQuaternion_TwoPhaseShadowCaster.glsl +41 -0
  1108. data/deps/share/OGRE/media/materials/programs/EmbossedFp.glsles +18 -0
  1109. data/deps/share/OGRE/media/materials/programs/Example_Basic.cg +400 -0
  1110. data/deps/share/OGRE/media/materials/programs/Example_Basic.hlsl +273 -0
  1111. data/deps/share/OGRE/media/materials/programs/Example_BasicFp.glsles +620 -0
  1112. data/deps/share/OGRE/media/materials/programs/Example_BasicVp.glsles +620 -0
  1113. data/deps/share/OGRE/media/materials/programs/Example_BumpMapping.cg +235 -0
  1114. data/deps/share/OGRE/media/materials/programs/Example_BumpMappingFp.glsles +29 -0
  1115. data/deps/share/OGRE/media/materials/programs/Example_BumpMappingShadowRcvFp.glsles +34 -0
  1116. data/deps/share/OGRE/media/materials/programs/Example_BumpMappingShadowRcvVp.glsles +55 -0
  1117. data/deps/share/OGRE/media/materials/programs/Example_BumpMappingSpecularFp.glsles +41 -0
  1118. data/deps/share/OGRE/media/materials/programs/Example_BumpMappingSpecularVp.glsles +50 -0
  1119. data/deps/share/OGRE/media/materials/programs/Example_BumpMappingVp.glsles +50 -0
  1120. data/deps/share/OGRE/media/materials/programs/Example_CelShading.cg +64 -0
  1121. data/deps/share/OGRE/media/materials/programs/Example_CelShadingFp.glsles +25 -0
  1122. data/deps/share/OGRE/media/materials/programs/Example_CelShadingVp.glsles +50 -0
  1123. data/deps/share/OGRE/media/materials/programs/Example_Fresnel.cg +116 -0
  1124. data/deps/share/OGRE/media/materials/programs/Example_FresnelFp.glsles +40 -0
  1125. data/deps/share/OGRE/media/materials/programs/Example_FresnelPS.asm +72 -0
  1126. data/deps/share/OGRE/media/materials/programs/Example_FresnelVp.glsles +39 -0
  1127. data/deps/share/OGRE/media/materials/programs/Example_Projection.cg +28 -0
  1128. data/deps/share/OGRE/media/materials/programs/Example_ProjectionFp.glsles +56 -0
  1129. data/deps/share/OGRE/media/materials/programs/Example_ProjectionVp.glsles +26 -0
  1130. data/deps/share/OGRE/media/materials/programs/Example_TextureArrayPS.asm +10 -0
  1131. data/deps/share/OGRE/media/materials/programs/Example_TextureArrayPS.glsl +17 -0
  1132. data/deps/share/OGRE/media/materials/programs/Example_TextureArrayPS.hlsl4 +33 -0
  1133. data/deps/share/OGRE/media/materials/programs/Example_TextureArrayVS.cg +14 -0
  1134. data/deps/share/OGRE/media/materials/programs/Example_TextureArrayVS.glsl +11 -0
  1135. data/deps/share/OGRE/media/materials/programs/GlassFP.cg +9 -0
  1136. data/deps/share/OGRE/media/materials/programs/GlassFP.glsles +15 -0
  1137. data/deps/share/OGRE/media/materials/programs/Grass.cg +283 -0
  1138. data/deps/share/OGRE/media/materials/programs/GrassAmbientFp.glsles +22 -0
  1139. data/deps/share/OGRE/media/materials/programs/GrassAmbientVp.glsles +41 -0
  1140. data/deps/share/OGRE/media/materials/programs/GrassCasterFp.glsles +33 -0
  1141. data/deps/share/OGRE/media/materials/programs/GrassCasterVp.glsles +32 -0
  1142. data/deps/share/OGRE/media/materials/programs/GrassFp.glsles +25 -0
  1143. data/deps/share/OGRE/media/materials/programs/GrassReceiverFp.glsles +47 -0
  1144. data/deps/share/OGRE/media/materials/programs/GrassReceiverVp.glsles +57 -0
  1145. data/deps/share/OGRE/media/materials/programs/GrassTexVp.glsles +26 -0
  1146. data/deps/share/OGRE/media/materials/programs/GrassVp.glsles +38 -0
  1147. data/deps/share/OGRE/media/materials/programs/GrayScale.cg +20 -0
  1148. data/deps/share/OGRE/media/materials/programs/GrayScale.glsles +13 -0
  1149. data/deps/share/OGRE/media/materials/programs/HWBasicInstancing.cg +69 -0
  1150. data/deps/share/OGRE/media/materials/programs/HWBasicInstancing.vert +69 -0
  1151. data/deps/share/OGRE/media/materials/programs/HW_VTFInstancing.cg +124 -0
  1152. data/deps/share/OGRE/media/materials/programs/HW_VTFInstancing.vert +131 -0
  1153. data/deps/share/OGRE/media/materials/programs/HalftoneFP.cg +19 -0
  1154. data/deps/share/OGRE/media/materials/programs/HalftoneFP.glsles +24 -0
  1155. data/deps/share/OGRE/media/materials/programs/HeatBlurFp.glsles +63 -0
  1156. data/deps/share/OGRE/media/materials/programs/HeatBlurVp.glsles +16 -0
  1157. data/deps/share/OGRE/media/materials/programs/HeatCasterFp.glsles +11 -0
  1158. data/deps/share/OGRE/media/materials/programs/HeatCasterVp.glsles +18 -0
  1159. data/deps/share/OGRE/media/materials/programs/HeatVision.cg +230 -0
  1160. data/deps/share/OGRE/media/materials/programs/Instancing.frag +66 -0
  1161. data/deps/share/OGRE/media/materials/programs/Instancing.program +84 -0
  1162. data/deps/share/OGRE/media/materials/programs/InstancingMisc.cg +63 -0
  1163. data/deps/share/OGRE/media/materials/programs/InstancingMisc.vert +62 -0
  1164. data/deps/share/OGRE/media/materials/programs/InstancingVertexInterpolators.cg +34 -0
  1165. data/deps/share/OGRE/media/materials/programs/Instancing_ps.cg +57 -0
  1166. data/deps/share/OGRE/media/materials/programs/InvertFP.cg +6 -0
  1167. data/deps/share/OGRE/media/materials/programs/InvertFP.glsles +13 -0
  1168. data/deps/share/OGRE/media/materials/programs/LaplaceFP.cg +37 -0
  1169. data/deps/share/OGRE/media/materials/programs/LaplaceFP.glsles +40 -0
  1170. data/deps/share/OGRE/media/materials/programs/LightToHeatFp.glsles +39 -0
  1171. data/deps/share/OGRE/media/materials/programs/LightToHeatVp.glsles +17 -0
  1172. data/deps/share/OGRE/media/materials/programs/NightVisionFP.cg +27 -0
  1173. data/deps/share/OGRE/media/materials/programs/NightVisionFP.glsles +26 -0
  1174. data/deps/share/OGRE/media/materials/programs/Ocean2GLSL.frag +71 -0
  1175. data/deps/share/OGRE/media/materials/programs/Ocean2GLSL.vert +91 -0
  1176. data/deps/share/OGRE/media/materials/programs/Ocean2GLSLES.frag +76 -0
  1177. data/deps/share/OGRE/media/materials/programs/Ocean2GLSLES.vert +101 -0
  1178. data/deps/share/OGRE/media/materials/programs/Ocean2HLSL_Cg.frag +85 -0
  1179. data/deps/share/OGRE/media/materials/programs/Ocean2HLSL_Cg.vert +108 -0
  1180. data/deps/share/OGRE/media/materials/programs/OffsetMapping.cg +84 -0
  1181. data/deps/share/OGRE/media/materials/programs/OffsetMapping.hlsl +135 -0
  1182. data/deps/share/OGRE/media/materials/programs/OffsetMappingFp.glsl +69 -0
  1183. data/deps/share/OGRE/media/materials/programs/OffsetMappingFp.glsles +43 -0
  1184. data/deps/share/OGRE/media/materials/programs/OffsetMappingShadowsFp.glsles +70 -0
  1185. data/deps/share/OGRE/media/materials/programs/OffsetMappingShadowsVp.glsles +63 -0
  1186. data/deps/share/OGRE/media/materials/programs/OffsetMappingVp.glsl +54 -0
  1187. data/deps/share/OGRE/media/materials/programs/OffsetMappingVp.glsles +50 -0
  1188. data/deps/share/OGRE/media/materials/programs/OffsetMapping_specular.asm +44 -0
  1189. data/deps/share/OGRE/media/materials/programs/OffsetMapping_specular.glsles +49 -0
  1190. data/deps/share/OGRE/media/materials/programs/OldMovieFP.cg +55 -0
  1191. data/deps/share/OGRE/media/materials/programs/OldMovieFP.glsles +58 -0
  1192. data/deps/share/OGRE/media/materials/programs/OldTV.cg +42 -0
  1193. data/deps/share/OGRE/media/materials/programs/ParticleGS.cg +324 -0
  1194. data/deps/share/OGRE/media/materials/programs/ParticleGS.hlsl +316 -0
  1195. data/deps/share/OGRE/media/materials/programs/PassthroughFP.cg +14 -0
  1196. data/deps/share/OGRE/media/materials/programs/PassthroughFP.glsl +9 -0
  1197. data/deps/share/OGRE/media/materials/programs/PassthroughFP.glsles +14 -0
  1198. data/deps/share/OGRE/media/materials/programs/PassthroughVP.glsl +5 -0
  1199. data/deps/share/OGRE/media/materials/programs/PassthroughVP.glsles +13 -0
  1200. data/deps/share/OGRE/media/materials/programs/PosterizeFP.cg +17 -0
  1201. data/deps/share/OGRE/media/materials/programs/PosterizeFP.glsles +22 -0
  1202. data/deps/share/OGRE/media/materials/programs/Radial_Blur_FP.cg +58 -0
  1203. data/deps/share/OGRE/media/materials/programs/Radial_Blur_FP.glsles +62 -0
  1204. data/deps/share/OGRE/media/materials/programs/Radial_Blur_FP.hlsl +58 -0
  1205. data/deps/share/OGRE/media/materials/programs/ShaderInstancing.cg +101 -0
  1206. data/deps/share/OGRE/media/materials/programs/ShaderInstancing.vert +117 -0
  1207. data/deps/share/OGRE/media/materials/programs/SharpenEdgesFP.cg +23 -0
  1208. data/deps/share/OGRE/media/materials/programs/SharpenEdgesFP.glsles +31 -0
  1209. data/deps/share/OGRE/media/materials/programs/ShowNormals.glsles +16 -0
  1210. data/deps/share/OGRE/media/materials/programs/ShowTangents.glsles +16 -0
  1211. data/deps/share/OGRE/media/materials/programs/ShowUV.glsles +12 -0
  1212. data/deps/share/OGRE/media/materials/programs/ShowUVdir3D.glsles +14 -0
  1213. data/deps/share/OGRE/media/materials/programs/StdQuad_Tex2_vp.glsles +23 -0
  1214. data/deps/share/OGRE/media/materials/programs/StdQuad_Tex2a_vp.glsles +23 -0
  1215. data/deps/share/OGRE/media/materials/programs/StdQuad_Tex3_vp.glsles +25 -0
  1216. data/deps/share/OGRE/media/materials/programs/StdQuad_Tex4_vp.glsles +27 -0
  1217. data/deps/share/OGRE/media/materials/programs/StdQuad_vp.cg +113 -0
  1218. data/deps/share/OGRE/media/materials/programs/StdQuad_vp.glsl +11 -0
  1219. data/deps/share/OGRE/media/materials/programs/StdQuad_vp.glsles +17 -0
  1220. data/deps/share/OGRE/media/materials/programs/StdQuad_vp.hlsl +20 -0
  1221. data/deps/share/OGRE/media/materials/programs/Swizzle.gp +39 -0
  1222. data/deps/share/OGRE/media/materials/programs/SwizzleGP.cg +14 -0
  1223. data/deps/share/OGRE/media/materials/programs/SwizzleGP.glsl +40 -0
  1224. data/deps/share/OGRE/media/materials/programs/SwizzleGP.glsles +80 -0
  1225. data/deps/share/OGRE/media/materials/programs/TilingFP.cg +33 -0
  1226. data/deps/share/OGRE/media/materials/programs/TilingFP.glsles +36 -0
  1227. data/deps/share/OGRE/media/materials/programs/VTFInstancing.cg +107 -0
  1228. data/deps/share/OGRE/media/materials/programs/VTFInstancing.vert +113 -0
  1229. data/deps/share/OGRE/media/materials/programs/crowdVp.glsl +62 -0
  1230. data/deps/share/OGRE/media/materials/programs/crowdVp.glsles +68 -0
  1231. data/deps/share/OGRE/media/materials/programs/depthshadowobject.cg +185 -0
  1232. data/deps/share/OGRE/media/materials/programs/depthshadowobjectFp.glsles +183 -0
  1233. data/deps/share/OGRE/media/materials/programs/depthshadowobjectVp.glsles +183 -0
  1234. data/deps/share/OGRE/media/materials/programs/hdr.cg +25 -0
  1235. data/deps/share/OGRE/media/materials/programs/hdr.hlsl +165 -0
  1236. data/deps/share/OGRE/media/materials/programs/hdrFp.glsles +15 -0
  1237. data/deps/share/OGRE/media/materials/programs/hdr_bloom.glsl +22 -0
  1238. data/deps/share/OGRE/media/materials/programs/hdr_bloom.glsles +25 -0
  1239. data/deps/share/OGRE/media/materials/programs/hdr_downscale2x2luminence.glsl +24 -0
  1240. data/deps/share/OGRE/media/materials/programs/hdr_downscale2x2luminence.glsles +26 -0
  1241. data/deps/share/OGRE/media/materials/programs/hdr_downscale3x3.glsl +26 -0
  1242. data/deps/share/OGRE/media/materials/programs/hdr_downscale3x3.glsles +30 -0
  1243. data/deps/share/OGRE/media/materials/programs/hdr_downscale3x3brightpass.glsl +37 -0
  1244. data/deps/share/OGRE/media/materials/programs/hdr_downscale3x3brightpass.glsles +64 -0
  1245. data/deps/share/OGRE/media/materials/programs/hdr_finalToneMapping.glsl +28 -0
  1246. data/deps/share/OGRE/media/materials/programs/hdr_finalToneMapping.glsles +54 -0
  1247. data/deps/share/OGRE/media/materials/programs/hdr_tonemap_util.glsl +29 -0
  1248. data/deps/share/OGRE/media/materials/programs/hdrutils.hlsl +65 -0
  1249. data/deps/share/OGRE/media/materials/programs/instancing.cg +125 -0
  1250. data/deps/share/OGRE/media/materials/programs/instancingVp.glsl +39 -0
  1251. data/deps/share/OGRE/media/materials/programs/instancingVp.glsles +51 -0
  1252. data/deps/share/OGRE/media/materials/programs/isosurf.cg +155 -0
  1253. data/deps/share/OGRE/media/materials/programs/isosurf.hlsl +145 -0
  1254. data/deps/share/OGRE/media/materials/programs/mrttestfp.hlsl +48 -0
  1255. data/deps/share/OGRE/media/materials/programs/mrttestfp_quad.glsl +17 -0
  1256. data/deps/share/OGRE/media/materials/programs/mrttestfp_quad.glsles +20 -0
  1257. data/deps/share/OGRE/media/materials/programs/mrttestfp_scene.glsl +20 -0
  1258. data/deps/share/OGRE/media/materials/programs/mrttestfp_scene.glsles +21 -0
  1259. data/deps/share/OGRE/media/materials/programs/oceanGLSL.frag +45 -0
  1260. data/deps/share/OGRE/media/materials/programs/oceanGLSL.vert +32 -0
  1261. data/deps/share/OGRE/media/materials/programs/oceanHLSL_Cg.frag +45 -0
  1262. data/deps/share/OGRE/media/materials/programs/oceanHLSL_Cg.vert +41 -0
  1263. data/deps/share/OGRE/media/materials/programs/particlesgs.fx +367 -0
  1264. data/deps/share/OGRE/media/materials/programs/pssm.cg +164 -0
  1265. data/deps/share/OGRE/media/materials/programs/pssm.hlsl +167 -0
  1266. data/deps/share/OGRE/media/materials/programs/pssmCasterFp.glsles +13 -0
  1267. data/deps/share/OGRE/media/materials/programs/pssmCasterVp.glsles +21 -0
  1268. data/deps/share/OGRE/media/materials/programs/pssmFp.glsles +0 -0
  1269. data/deps/share/OGRE/media/materials/programs/pssmReceiverFp.glsles +92 -0
  1270. data/deps/share/OGRE/media/materials/programs/pssmReceiverVp.glsles +63 -0
  1271. data/deps/share/OGRE/media/materials/programs/pssmVp.glsles +0 -0
  1272. data/deps/share/OGRE/media/materials/programs/shadows.cg +144 -0
  1273. data/deps/share/OGRE/media/materials/programs/shadows.glsl +146 -0
  1274. data/deps/share/OGRE/media/materials/programs/skinningTwoWeightsShadowCasterVp.glsl +42 -0
  1275. data/deps/share/OGRE/media/materials/programs/skinningTwoWeightsShadowCasterVp.glsles +46 -0
  1276. data/deps/share/OGRE/media/materials/programs/skinningTwoWeightsVp.glsl +61 -0
  1277. data/deps/share/OGRE/media/materials/programs/skinningTwoWeightsVp.glsles +63 -0
  1278. data/deps/share/OGRE/media/materials/programs/varianceshadowcasterfp.cg +65 -0
  1279. data/deps/share/OGRE/media/materials/programs/varianceshadowcasterfp.glsles +132 -0
  1280. data/deps/share/OGRE/media/materials/programs/varianceshadowcastervp.cg +44 -0
  1281. data/deps/share/OGRE/media/materials/programs/varianceshadowcastervp.glsles +88 -0
  1282. data/deps/share/OGRE/media/materials/programs/varianceshadowreceiverfp.cg +107 -0
  1283. data/deps/share/OGRE/media/materials/programs/varianceshadowreceiverfp.glsles +214 -0
  1284. data/deps/share/OGRE/media/materials/programs/varianceshadowreceivervp.cg +47 -0
  1285. data/deps/share/OGRE/media/materials/programs/varianceshadowreceivervp.glsles +94 -0
  1286. data/deps/share/OGRE/media/materials/scripts/ASCII.material +55 -0
  1287. data/deps/share/OGRE/media/materials/scripts/ASMSwizzle.material +19 -0
  1288. data/deps/share/OGRE/media/materials/scripts/BlackAndWhite.material +45 -0
  1289. data/deps/share/OGRE/media/materials/scripts/Bloom.material +217 -0
  1290. data/deps/share/OGRE/media/materials/scripts/Bloom2.material +360 -0
  1291. data/deps/share/OGRE/media/materials/scripts/CGSwizzle.material +20 -0
  1292. data/deps/share/OGRE/media/materials/scripts/CompositorDemo.material +18 -0
  1293. data/deps/share/OGRE/media/materials/scripts/DOF.material +94 -0
  1294. data/deps/share/OGRE/media/materials/scripts/DepthShadowmap.material +747 -0
  1295. data/deps/share/OGRE/media/materials/scripts/Dither.material +57 -0
  1296. data/deps/share/OGRE/media/materials/scripts/DualQuaternion.material +112 -0
  1297. data/deps/share/OGRE/media/materials/scripts/DualQuaternion.program +154 -0
  1298. data/deps/share/OGRE/media/materials/scripts/Embossed.material +44 -0
  1299. data/deps/share/OGRE/media/materials/scripts/Example-Water.material +183 -0
  1300. data/deps/share/OGRE/media/materials/scripts/Examples-Advanced.material +842 -0
  1301. data/deps/share/OGRE/media/materials/scripts/Examples-DynTex.material +38 -0
  1302. data/deps/share/OGRE/media/materials/scripts/Examples-Water.material +183 -0
  1303. data/deps/share/OGRE/media/materials/scripts/Examples.compositor +788 -0
  1304. data/deps/share/OGRE/media/materials/scripts/Examples.material +2035 -0
  1305. data/deps/share/OGRE/media/materials/scripts/Examples.program +340 -0
  1306. data/deps/share/OGRE/media/materials/scripts/GLSLSwizzle.material +37 -0
  1307. data/deps/share/OGRE/media/materials/scripts/Glass.material +56 -0
  1308. data/deps/share/OGRE/media/materials/scripts/HWInstancing.material +131 -0
  1309. data/deps/share/OGRE/media/materials/scripts/HW_VTFInstancing.material +445 -0
  1310. data/deps/share/OGRE/media/materials/scripts/HW_VTF_LUTInstancing.material +438 -0
  1311. data/deps/share/OGRE/media/materials/scripts/Halftone.material +56 -0
  1312. data/deps/share/OGRE/media/materials/scripts/HeatVision.material +317 -0
  1313. data/deps/share/OGRE/media/materials/scripts/Hurt.material +18 -0
  1314. data/deps/share/OGRE/media/materials/scripts/InstancingMisc.material +81 -0
  1315. data/deps/share/OGRE/media/materials/scripts/Invert.material +47 -0
  1316. data/deps/share/OGRE/media/materials/scripts/IsoSurf.material +127 -0
  1317. data/deps/share/OGRE/media/materials/scripts/Laplace.material +49 -0
  1318. data/deps/share/OGRE/media/materials/scripts/MRTtest.material +133 -0
  1319. data/deps/share/OGRE/media/materials/scripts/MotionBlur.material +101 -0
  1320. data/deps/share/OGRE/media/materials/scripts/NightVision.material +49 -0
  1321. data/deps/share/OGRE/media/materials/scripts/Ocean.controls +90 -0
  1322. data/deps/share/OGRE/media/materials/scripts/Ocean.material +618 -0
  1323. data/deps/share/OGRE/media/materials/scripts/OffsetMapping.material +447 -0
  1324. data/deps/share/OGRE/media/materials/scripts/Ogre.material +66 -0
  1325. data/deps/share/OGRE/media/materials/scripts/OldMovie.material +85 -0
  1326. data/deps/share/OGRE/media/materials/scripts/OldTV.material +59 -0
  1327. data/deps/share/OGRE/media/materials/scripts/ParticleGS.material +200 -0
  1328. data/deps/share/OGRE/media/materials/scripts/Penguin.material +13 -0
  1329. data/deps/share/OGRE/media/materials/scripts/Posterize.material +46 -0
  1330. data/deps/share/OGRE/media/materials/scripts/RZR-002.material +15 -0
  1331. data/deps/share/OGRE/media/materials/scripts/RadialBlur.material +49 -0
  1332. data/deps/share/OGRE/media/materials/scripts/SSAO/CreaseShading.cg +65 -0
  1333. data/deps/share/OGRE/media/materials/scripts/SSAO/CreaseShading.material +57 -0
  1334. data/deps/share/OGRE/media/materials/scripts/SSAO/Crytek.cg +88 -0
  1335. data/deps/share/OGRE/media/materials/scripts/SSAO/Crytek.material +57 -0
  1336. data/deps/share/OGRE/media/materials/scripts/SSAO/GBuffer.cg +40 -0
  1337. data/deps/share/OGRE/media/materials/scripts/SSAO/GBuffer.material +61 -0
  1338. data/deps/share/OGRE/media/materials/scripts/SSAO/HemisphereMC.cg +86 -0
  1339. data/deps/share/OGRE/media/materials/scripts/SSAO/HemisphereMC.material +60 -0
  1340. data/deps/share/OGRE/media/materials/scripts/SSAO/HorizonBased.cg +95 -0
  1341. data/deps/share/OGRE/media/materials/scripts/SSAO/HorizonBased.material +58 -0
  1342. data/deps/share/OGRE/media/materials/scripts/SSAO/SSAO.compositor +224 -0
  1343. data/deps/share/OGRE/media/materials/scripts/SSAO/SSAOPost.cg +153 -0
  1344. data/deps/share/OGRE/media/materials/scripts/SSAO/SSAOPost.compositor +77 -0
  1345. data/deps/share/OGRE/media/materials/scripts/SSAO/SSAOPost.material +239 -0
  1346. data/deps/share/OGRE/media/materials/scripts/SSAO/ShowDepth.cg +13 -0
  1347. data/deps/share/OGRE/media/materials/scripts/SSAO/ShowDepth.material +47 -0
  1348. data/deps/share/OGRE/media/materials/scripts/SSAO/ShowNormals.cg +11 -0
  1349. data/deps/share/OGRE/media/materials/scripts/SSAO/ShowNormals.material +40 -0
  1350. data/deps/share/OGRE/media/materials/scripts/SSAO/ShowViewPos.cg +11 -0
  1351. data/deps/share/OGRE/media/materials/scripts/SSAO/ShowViewPos.material +40 -0
  1352. data/deps/share/OGRE/media/materials/scripts/SSAO/UnsharpMask.cg +79 -0
  1353. data/deps/share/OGRE/media/materials/scripts/SSAO/UnsharpMask.material +141 -0
  1354. data/deps/share/OGRE/media/materials/scripts/SSAO/Volumetric.cg +82 -0
  1355. data/deps/share/OGRE/media/materials/scripts/SSAO/Volumetric.material +59 -0
  1356. data/deps/share/OGRE/media/materials/scripts/ShaderInstancing.material +380 -0
  1357. data/deps/share/OGRE/media/materials/scripts/ShaderSystem.material +20 -0
  1358. data/deps/share/OGRE/media/materials/scripts/SharpenEdges.material +66 -0
  1359. data/deps/share/OGRE/media/materials/scripts/StdQuad_vp.program +162 -0
  1360. data/deps/share/OGRE/media/materials/scripts/TextureAtlasSampleOrg.tai +36 -0
  1361. data/deps/share/OGRE/media/materials/scripts/TextureAtlasSampleWrap.tai +36 -0
  1362. data/deps/share/OGRE/media/materials/scripts/Tiling.material +50 -0
  1363. data/deps/share/OGRE/media/materials/scripts/VTFInstancing.material +438 -0
  1364. data/deps/share/OGRE/media/materials/scripts/VarianceShadowmap.material +103 -0
  1365. data/deps/share/OGRE/media/materials/scripts/facial.material +98 -0
  1366. data/deps/share/OGRE/media/materials/scripts/hdr.material +332 -0
  1367. data/deps/share/OGRE/media/materials/scripts/instancing.material +185 -0
  1368. data/deps/share/OGRE/media/materials/scripts/pssm.material +226 -0
  1369. data/deps/share/OGRE/media/materials/scripts/shadows.material +130 -0
  1370. data/deps/share/OGRE/media/materials/scripts/sibenik.material +305 -0
  1371. data/deps/share/OGRE/media/materials/scripts/smoke.material +19 -0
  1372. data/deps/share/OGRE/media/materials/textures/10points.png +0 -0
  1373. data/deps/share/OGRE/media/materials/textures/1D_Noise.png +0 -0
  1374. data/deps/share/OGRE/media/materials/textures/1D_Noise2.png +0 -0
  1375. data/deps/share/OGRE/media/materials/textures/1d_SPIRAL.png +0 -0
  1376. data/deps/share/OGRE/media/materials/textures/1d_debug.png +0 -0
  1377. data/deps/share/OGRE/media/materials/textures/8x8PagesSplotches2.png +0 -0
  1378. data/deps/share/OGRE/media/materials/textures/ASCII.dds +0 -0
  1379. data/deps/share/OGRE/media/materials/textures/BeachStones.jpg +0 -0
  1380. data/deps/share/OGRE/media/materials/textures/BumpyMetal.jpg +0 -0
  1381. data/deps/share/OGRE/media/materials/textures/Chrome.jpg +0 -0
  1382. data/deps/share/OGRE/media/materials/textures/Dirt.jpg +0 -0
  1383. data/deps/share/OGRE/media/materials/textures/Dr_Bunsen_Head.jpg +0 -0
  1384. data/deps/share/OGRE/media/materials/textures/GLX_icon.png +0 -0
  1385. data/deps/share/OGRE/media/materials/textures/GreenSkin.jpg +0 -0
  1386. data/deps/share/OGRE/media/materials/textures/HeatLookup.tga +0 -0
  1387. data/deps/share/OGRE/media/materials/textures/HeatNoise.tga +0 -0
  1388. data/deps/share/OGRE/media/materials/textures/KAMEN-stup.jpg +0 -0
  1389. data/deps/share/OGRE/media/materials/textures/KAMEN320x240-bump.jpg +0 -0
  1390. data/deps/share/OGRE/media/materials/textures/KAMEN320x240.jpg +0 -0
  1391. data/deps/share/OGRE/media/materials/textures/LowRes.png +0 -0
  1392. data/deps/share/OGRE/media/materials/textures/MRAMOR-bump.jpg +0 -0
  1393. data/deps/share/OGRE/media/materials/textures/MRAMOR6X6.jpg +0 -0
  1394. data/deps/share/OGRE/media/materials/textures/MtlPlat2.jpg +0 -0
  1395. data/deps/share/OGRE/media/materials/textures/NMBalls.png +0 -0
  1396. data/deps/share/OGRE/media/materials/textures/NMBumpsOut.png +0 -0
  1397. data/deps/share/OGRE/media/materials/textures/NMHollyBumps.png +0 -0
  1398. data/deps/share/OGRE/media/materials/textures/NMStripes.png +0 -0
  1399. data/deps/share/OGRE/media/materials/textures/NPRMetallic.tga +0 -0
  1400. data/deps/share/OGRE/media/materials/textures/NoiseVolume.dds +0 -0
  1401. data/deps/share/OGRE/media/materials/textures/Panels_Diffuse.png +0 -0
  1402. data/deps/share/OGRE/media/materials/textures/Panels_Normal_Obj.png +0 -0
  1403. data/deps/share/OGRE/media/materials/textures/Panels_Normal_Tangent.png +0 -0
  1404. data/deps/share/OGRE/media/materials/textures/Panels_reflection.png +0 -0
  1405. data/deps/share/OGRE/media/materials/textures/Panels_refmask.png +0 -0
  1406. data/deps/share/OGRE/media/materials/textures/RZR-002.png +0 -0
  1407. data/deps/share/OGRE/media/materials/textures/Random3D.dds +0 -0
  1408. data/deps/share/OGRE/media/materials/textures/RustedMetal.jpg +0 -0
  1409. data/deps/share/OGRE/media/materials/textures/RustyBarrel.png +0 -0
  1410. data/deps/share/OGRE/media/materials/textures/RustySteel.jpg +0 -0
  1411. data/deps/share/OGRE/media/materials/textures/SSAO/4InterleavedKMeansDisk8x4.png +0 -0
  1412. data/deps/share/OGRE/media/materials/textures/SSAO/gray256.png +0 -0
  1413. data/deps/share/OGRE/media/materials/textures/SSAO/importance4InterleavedSphereHemisphere8x4.png +0 -0
  1414. data/deps/share/OGRE/media/materials/textures/SSAO/rand1x32.png +0 -0
  1415. data/deps/share/OGRE/media/materials/textures/SSAO/randCosSinJitter4x4.png +0 -0
  1416. data/deps/share/OGRE/media/materials/textures/SSAO/regularSphereJittered4.png +0 -0
  1417. data/deps/share/OGRE/media/materials/textures/Sepia1D.tga +0 -0
  1418. data/deps/share/OGRE/media/materials/textures/SmallLeaf_BP.png +0 -0
  1419. data/deps/share/OGRE/media/materials/textures/TextureAtlasSampleOrg0.png +0 -0
  1420. data/deps/share/OGRE/media/materials/textures/TextureAtlasSampleWrap0.png +0 -0
  1421. data/deps/share/OGRE/media/materials/textures/Water01.jpg +0 -0
  1422. data/deps/share/OGRE/media/materials/textures/Water02.jpg +0 -0
  1423. data/deps/share/OGRE/media/materials/textures/WaterNormal1.tga +0 -0
  1424. data/deps/share/OGRE/media/materials/textures/WaterNormal2.tga +0 -0
  1425. data/deps/share/OGRE/media/materials/textures/WoodPallet.png +0 -0
  1426. data/deps/share/OGRE/media/materials/textures/atheneNormalMap.png +0 -0
  1427. data/deps/share/OGRE/media/materials/textures/aureola.png +0 -0
  1428. data/deps/share/OGRE/media/materials/textures/basic_droplet.png +0 -0
  1429. data/deps/share/OGRE/media/materials/textures/blue_jaiqua.jpg +0 -0
  1430. data/deps/share/OGRE/media/materials/textures/cel_shading_diffuse.png +0 -0
  1431. data/deps/share/OGRE/media/materials/textures/cel_shading_edge.png +0 -0
  1432. data/deps/share/OGRE/media/materials/textures/cel_shading_specular.png +0 -0
  1433. data/deps/share/OGRE/media/materials/textures/checker.png +0 -0
  1434. data/deps/share/OGRE/media/materials/textures/circuit.dds +0 -0
  1435. data/deps/share/OGRE/media/materials/textures/clouds.jpg +0 -0
  1436. data/deps/share/OGRE/media/materials/textures/cursor.png +0 -0
  1437. data/deps/share/OGRE/media/materials/textures/dark_grid.png +0 -0
  1438. data/deps/share/OGRE/media/materials/textures/dirt01.jpg +0 -0
  1439. data/deps/share/OGRE/media/materials/textures/dkyellow.png +0 -0
  1440. data/deps/share/OGRE/media/materials/textures/droplet.png +0 -0
  1441. data/deps/share/OGRE/media/materials/textures/egyptrockyfull.jpg +0 -0
  1442. data/deps/share/OGRE/media/materials/textures/flare.png +0 -0
  1443. data/deps/share/OGRE/media/materials/textures/flare_alpha.dds +0 -0
  1444. data/deps/share/OGRE/media/materials/textures/flaretrail.png +0 -0
  1445. data/deps/share/OGRE/media/materials/textures/frost.png +0 -0
  1446. data/deps/share/OGRE/media/materials/textures/fw12b.jpg +0 -0
  1447. data/deps/share/OGRE/media/materials/textures/gras_02.png +0 -0
  1448. data/deps/share/OGRE/media/materials/textures/grassWalpha.tga +0 -0
  1449. data/deps/share/OGRE/media/materials/textures/grass_1024.jpg +0 -0
  1450. data/deps/share/OGRE/media/materials/textures/img1.png +0 -0
  1451. data/deps/share/OGRE/media/materials/textures/img2.png +0 -0
  1452. data/deps/share/OGRE/media/materials/textures/leaf.png +0 -0
  1453. data/deps/share/OGRE/media/materials/textures/nm_bk.png +0 -0
  1454. data/deps/share/OGRE/media/materials/textures/nm_dn.png +0 -0
  1455. data/deps/share/OGRE/media/materials/textures/nm_fr.png +0 -0
  1456. data/deps/share/OGRE/media/materials/textures/nm_lf.png +0 -0
  1457. data/deps/share/OGRE/media/materials/textures/nm_rt.png +0 -0
  1458. data/deps/share/OGRE/media/materials/textures/nm_up.png +0 -0
  1459. data/deps/share/OGRE/media/materials/textures/normalNoiseColor.png +0 -0
  1460. data/deps/share/OGRE/media/materials/textures/nskingr.jpg +0 -0
  1461. data/deps/share/OGRE/media/materials/textures/nvidia/TextureUsageAgreement.txt +26 -0
  1462. data/deps/share/OGRE/media/materials/textures/nvidia/dirt_grayrocky_diffusespecular.dds +0 -0
  1463. data/deps/share/OGRE/media/materials/textures/nvidia/dirt_grayrocky_normalheight.dds +0 -0
  1464. data/deps/share/OGRE/media/materials/textures/nvidia/grass_green-01_diffusespecular.dds +0 -0
  1465. data/deps/share/OGRE/media/materials/textures/nvidia/grass_green-01_normalheight.dds +0 -0
  1466. data/deps/share/OGRE/media/materials/textures/nvidia/growth_weirdfungus-03_diffusespecular.dds +0 -0
  1467. data/deps/share/OGRE/media/materials/textures/nvidia/growth_weirdfungus-03_normalheight.dds +0 -0
  1468. data/deps/share/OGRE/media/materials/textures/ogreborder.png +0 -0
  1469. data/deps/share/OGRE/media/materials/textures/ogreborderUp.png +0 -0
  1470. data/deps/share/OGRE/media/materials/textures/ogrebordercenter.png +0 -0
  1471. data/deps/share/OGRE/media/materials/textures/ogregui.tga +0 -0
  1472. data/deps/share/OGRE/media/materials/textures/ogrelogo-small.jpg +0 -0
  1473. data/deps/share/OGRE/media/materials/textures/ogrelogo.png +0 -0
  1474. data/deps/share/OGRE/media/materials/textures/particle.dds +0 -0
  1475. data/deps/share/OGRE/media/materials/textures/penguin.jpg +0 -0
  1476. data/deps/share/OGRE/media/materials/textures/perlinvolume.dds +0 -0
  1477. data/deps/share/OGRE/media/materials/textures/r2skin.jpg +0 -0
  1478. data/deps/share/OGRE/media/materials/textures/radial.png +0 -0
  1479. data/deps/share/OGRE/media/materials/textures/random.png +0 -0
  1480. data/deps/share/OGRE/media/materials/textures/ribbonband.png +0 -0
  1481. data/deps/share/OGRE/media/materials/textures/rockwall.tga +0 -0
  1482. data/deps/share/OGRE/media/materials/textures/rockwall_NH.tga +0 -0
  1483. data/deps/share/OGRE/media/materials/textures/scr-back.png +0 -0
  1484. data/deps/share/OGRE/media/materials/textures/scr-down-p.png +0 -0
  1485. data/deps/share/OGRE/media/materials/textures/scr-down.png +0 -0
  1486. data/deps/share/OGRE/media/materials/textures/scr-thumb.png +0 -0
  1487. data/deps/share/OGRE/media/materials/textures/scr-up-p.png +0 -0
  1488. data/deps/share/OGRE/media/materials/textures/scr-up.png +0 -0
  1489. data/deps/share/OGRE/media/materials/textures/smoke.png +0 -0
  1490. data/deps/share/OGRE/media/materials/textures/smokecolors.png +0 -0
  1491. data/deps/share/OGRE/media/materials/textures/snow_1024.jpg +0 -0
  1492. data/deps/share/OGRE/media/materials/textures/spacesky.jpg +0 -0
  1493. data/deps/share/OGRE/media/materials/textures/spheremap.png +0 -0
  1494. data/deps/share/OGRE/media/materials/textures/spine_strips.dds +0 -0
  1495. data/deps/share/OGRE/media/materials/textures/spotlight_image.png +0 -0
  1496. data/deps/share/OGRE/media/materials/textures/steelhead.png +0 -0
  1497. data/deps/share/OGRE/media/materials/textures/strugotine.jpg +0 -0
  1498. data/deps/share/OGRE/media/materials/textures/terr_dirt-grass.jpg +0 -0
  1499. data/deps/share/OGRE/media/materials/textures/terr_rock-dirt.jpg +0 -0
  1500. data/deps/share/OGRE/media/materials/textures/terr_rock6.jpg +0 -0
  1501. data/deps/share/OGRE/media/materials/textures/terrain.png +0 -0
  1502. data/deps/share/OGRE/media/materials/textures/terrain_detail.jpg +0 -0
  1503. data/deps/share/OGRE/media/materials/textures/terrain_texture.jpg +0 -0
  1504. data/deps/share/OGRE/media/materials/textures/texmap2.jpg +0 -0
  1505. data/deps/share/OGRE/media/materials/textures/tusk.jpg +0 -0
  1506. data/deps/share/OGRE/media/materials/textures/waveNM.png +0 -0
  1507. data/deps/share/OGRE/media/materials/textures/waves2.dds +0 -0
  1508. data/deps/share/OGRE/media/materials/textures/white.bmp +0 -0
  1509. data/deps/share/OGRE/media/models/Barrel.mesh +0 -0
  1510. data/deps/share/OGRE/media/models/RZR-002.mesh +0 -0
  1511. data/deps/share/OGRE/media/models/ShaderSystem.mesh +0 -0
  1512. data/deps/share/OGRE/media/models/WoodPallet.mesh +0 -0
  1513. data/deps/share/OGRE/media/models/athene.mesh +0 -0
  1514. data/deps/share/OGRE/media/models/column.mesh +0 -0
  1515. data/deps/share/OGRE/media/models/cornell.mesh +0 -0
  1516. data/deps/share/OGRE/media/models/cube.mesh +0 -0
  1517. data/deps/share/OGRE/media/models/facial.mesh +0 -0
  1518. data/deps/share/OGRE/media/models/fish.mesh +0 -0
  1519. data/deps/share/OGRE/media/models/fish.skeleton +0 -0
  1520. data/deps/share/OGRE/media/models/geosphere4500.mesh +0 -0
  1521. data/deps/share/OGRE/media/models/geosphere8000.mesh +0 -0
  1522. data/deps/share/OGRE/media/models/jaiqua.mesh +0 -0
  1523. data/deps/share/OGRE/media/models/jaiqua.skeleton +0 -0
  1524. data/deps/share/OGRE/media/models/knot.mesh +0 -0
  1525. data/deps/share/OGRE/media/models/ninja.mesh +0 -0
  1526. data/deps/share/OGRE/media/models/ninja.skeleton +0 -0
  1527. data/deps/share/OGRE/media/models/ogrehead.mesh +0 -0
  1528. data/deps/share/OGRE/media/models/penguin.mesh +0 -0
  1529. data/deps/share/OGRE/media/models/penguin.skeleton +0 -0
  1530. data/deps/share/OGRE/media/models/razor.mesh +0 -0
  1531. data/deps/share/OGRE/media/models/robot.mesh +0 -0
  1532. data/deps/share/OGRE/media/models/robot.skeleton +0 -0
  1533. data/deps/share/OGRE/media/models/sibenik.mesh +0 -0
  1534. data/deps/share/OGRE/media/models/sphere.mesh +0 -0
  1535. data/deps/share/OGRE/media/models/spine.mesh +0 -0
  1536. data/deps/share/OGRE/media/models/spine.mesh.skeleton +0 -0
  1537. data/deps/share/OGRE/media/models/tudorhouse.mesh +0 -0
  1538. data/deps/share/OGRE/media/packs/SdkTrays.zip +0 -0
  1539. data/deps/share/OGRE/media/packs/Sinbad.zip +0 -0
  1540. data/deps/share/OGRE/media/packs/chiropteraDM.pk3 +0 -0
  1541. data/deps/share/OGRE/media/packs/chiropteraDM.txt +99 -0
  1542. data/deps/share/OGRE/media/packs/cubemap.zip +0 -0
  1543. data/deps/share/OGRE/media/packs/cubemapsJS.zip +0 -0
  1544. data/deps/share/OGRE/media/packs/dragon.zip +0 -0
  1545. data/deps/share/OGRE/media/packs/fresneldemo.zip +0 -0
  1546. data/deps/share/OGRE/media/packs/ogredance.zip +0 -0
  1547. data/deps/share/OGRE/media/packs/ogretestmap.zip +0 -0
  1548. data/deps/share/OGRE/media/packs/skybox.zip +0 -0
  1549. data/deps/share/OGRE/media/particle/Examples-Water.particle +35 -0
  1550. data/deps/share/OGRE/media/particle/Examples.particle +381 -0
  1551. data/deps/share/OGRE/media/particle/emitted_emitter.particle +56 -0
  1552. data/deps/share/OGRE/media/particle/smoke.particle +44 -0
  1553. data/deps/share/OGRE/media/terrain.cfg +71 -0
  1554. data/deps/share/OGRE/media/thumbnails/thumb_bezier.png +0 -0
  1555. data/deps/share/OGRE/media/thumbnails/thumb_bsp.png +0 -0
  1556. data/deps/share/OGRE/media/thumbnails/thumb_bump.png +0 -0
  1557. data/deps/share/OGRE/media/thumbnails/thumb_camtrack.png +0 -0
  1558. data/deps/share/OGRE/media/thumbnails/thumb_cel.png +0 -0
  1559. data/deps/share/OGRE/media/thumbnails/thumb_char.png +0 -0
  1560. data/deps/share/OGRE/media/thumbnails/thumb_comp.png +0 -0
  1561. data/deps/share/OGRE/media/thumbnails/thumb_cubemap.png +0 -0
  1562. data/deps/share/OGRE/media/thumbnails/thumb_deferred.png +0 -0
  1563. data/deps/share/OGRE/media/thumbnails/thumb_dualquaternionskinning.png +0 -0
  1564. data/deps/share/OGRE/media/thumbnails/thumb_dyntex.png +0 -0
  1565. data/deps/share/OGRE/media/thumbnails/thumb_error.png +0 -0
  1566. data/deps/share/OGRE/media/thumbnails/thumb_facial.png +0 -0
  1567. data/deps/share/OGRE/media/thumbnails/thumb_fresnel.png +0 -0
  1568. data/deps/share/OGRE/media/thumbnails/thumb_grass.png +0 -0
  1569. data/deps/share/OGRE/media/thumbnails/thumb_instancing.png +0 -0
  1570. data/deps/share/OGRE/media/thumbnails/thumb_isosurf.png +0 -0
  1571. data/deps/share/OGRE/media/thumbnails/thumb_lighting.png +0 -0
  1572. data/deps/share/OGRE/media/thumbnails/thumb_newinstancing.png +0 -0
  1573. data/deps/share/OGRE/media/thumbnails/thumb_ocean.png +0 -0
  1574. data/deps/share/OGRE/media/thumbnails/thumb_particlegs.png +0 -0
  1575. data/deps/share/OGRE/media/thumbnails/thumb_particles.png +0 -0
  1576. data/deps/share/OGRE/media/thumbnails/thumb_playpen.png +0 -0
  1577. data/deps/share/OGRE/media/thumbnails/thumb_shadersystem.png +0 -0
  1578. data/deps/share/OGRE/media/thumbnails/thumb_shadows.png +0 -0
  1579. data/deps/share/OGRE/media/thumbnails/thumb_skelanim.png +0 -0
  1580. data/deps/share/OGRE/media/thumbnails/thumb_skybox.png +0 -0
  1581. data/deps/share/OGRE/media/thumbnails/thumb_skydome.png +0 -0
  1582. data/deps/share/OGRE/media/thumbnails/thumb_skyplane.png +0 -0
  1583. data/deps/share/OGRE/media/thumbnails/thumb_smoke.png +0 -0
  1584. data/deps/share/OGRE/media/thumbnails/thumb_spheremap.png +0 -0
  1585. data/deps/share/OGRE/media/thumbnails/thumb_ssao.png +0 -0
  1586. data/deps/share/OGRE/media/thumbnails/thumb_terrain.png +0 -0
  1587. data/deps/share/OGRE/media/thumbnails/thumb_texarray.png +0 -0
  1588. data/deps/share/OGRE/media/thumbnails/thumb_texfx.png +0 -0
  1589. data/deps/share/OGRE/media/thumbnails/thumb_trans.png +0 -0
  1590. data/deps/share/OGRE/media/thumbnails/thumb_visual_tests.png +0 -0
  1591. data/deps/share/OGRE/media/thumbnails/thumb_voltex.png +0 -0
  1592. data/deps/share/OGRE/media/thumbnails/thumb_water.png +0 -0
  1593. data/lib/OIS.so +0 -0
  1594. data/lib/Ogre.so +0 -0
  1595. data/lib/OgreBites.so +0 -0
  1596. data/lib/OgreConfig.rb +37 -0
  1597. data/lib/Procedural.so +0 -0
  1598. data/lib/Version.rb +5 -0
  1599. data/sample/Charactor/CameraMover.rb +184 -0
  1600. data/sample/Charactor/Sinbad.rb +246 -0
  1601. data/sample/Charactor/SinbadCharacter.rb +379 -0
  1602. data/sample/Charactor/UiListener.rb +65 -0
  1603. data/sample/Charactor/plugins.cfg +17 -0
  1604. data/sample/Charactor/resources.cfg +22 -0
  1605. data/sample/Charactor/sinbad +5 -0
  1606. data/sample/Charactor/sinbad.win +5 -0
  1607. metadata +1651 -0
@@ -0,0 +1,2076 @@
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-2012 Torus Knot Software Ltd
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ THE SOFTWARE.
26
+ -----------------------------------------------------------------------------
27
+ */
28
+
29
+ #ifndef __Ogre_Terrain_H__
30
+ #define __Ogre_Terrain_H__
31
+
32
+ #include "OgreTerrainPrerequisites.h"
33
+ #include "OgreCommon.h"
34
+ #include "OgreVector3.h"
35
+ #include "OgreAxisAlignedBox.h"
36
+ #include "OgreSceneManager.h"
37
+ #include "OgreTerrainMaterialGenerator.h"
38
+ #include "OgreTerrainLayerBlendMap.h"
39
+ #include "OgreWorkQueue.h"
40
+
41
+ namespace Ogre
42
+ {
43
+ /** \addtogroup Optional Components
44
+ * @{
45
+ */
46
+ /** \addtogroup Terrain
47
+ * Some details on the terrain component
48
+ * @{
49
+ */
50
+
51
+ /** The main containing class for a chunk of terrain.
52
+ @par
53
+ Terrain can be edited and stored.
54
+ The data format for this in a file is:<br/>
55
+ <b>TerrainData (Identifier 'TERR')</b>\n
56
+ [Version 1]
57
+ <table>
58
+ <tr>
59
+ <td><b>Name</b></td>
60
+ <td><b>Type</b></td>
61
+ <td><b>Description</b></td>
62
+ </tr>
63
+ <tr>
64
+ <td>Terrain orientation</td>
65
+ <td>uint8</td>
66
+ <td>The orientation of the terrain; XZ = 0, XY = 1, YZ = 2</td>
67
+ </tr>
68
+ <tr>
69
+ <td>Terrain size</td>
70
+ <td>uint16</td>
71
+ <td>The number of vertices along one side of the terrain</td>
72
+ </tr>
73
+ <tr>
74
+ <td>Terrain world size</td>
75
+ <td>Real</td>
76
+ <td>The world size of one side of the terrain</td>
77
+ </tr>
78
+ <tr>
79
+ <td>Max batch size</td>
80
+ <td>uint16</td>
81
+ <td>The maximum batch size in vertices along one side</td>
82
+ </tr>
83
+ <tr>
84
+ <td>Min batch size</td>
85
+ <td>uint16</td>
86
+ <td>The minimum batch size in vertices along one side</td>
87
+ </tr>
88
+ <tr>
89
+ <td>Position</td>
90
+ <td>Vector3</td>
91
+ <td>The location of the centre of the terrain</td>
92
+ </tr>
93
+ <tr>
94
+ <td>Height data</td>
95
+ <td>float[size*size]</td>
96
+ <td>List of floating point heights</td>
97
+ </tr>
98
+ <tr>
99
+ <td>LayerDeclaration</td>
100
+ <td>LayerDeclaration*</td>
101
+ <td>The layer declaration for this terrain (see below)</td>
102
+ </tr>
103
+ <tr>
104
+ <td>Layer count</td>
105
+ <td>uint8</td>
106
+ <td>The number of layers in this terrain</td>
107
+ </tr>
108
+ <tr>
109
+ <td>LayerInstance list</td>
110
+ <td>LayerInstance*</td>
111
+ <td>A number of LayerInstance definitions based on layer count (see below)</td>
112
+ </tr>
113
+ <tr>
114
+ <td>Layer blend map size</td>
115
+ <td>uint16</td>
116
+ <td>The size of the layer blend maps as stored in this file</td>
117
+ </tr>
118
+ <tr>
119
+ <td>Packed blend texture data</td>
120
+ <td>uint8*</td>
121
+ <td>layerCount-1 sets of blend texture data interleaved as either RGB or RGBA
122
+ depending on layer count</td>
123
+ </tr>
124
+ <tr>
125
+ <td>Optional derived map data</td>
126
+ <td>TerrainDerivedMap list</td>
127
+ <td>0 or more sets of map data derived from the original terrain</td>
128
+ </tr>
129
+ <tr>
130
+ <td>Delta data</td>
131
+ <td>float[size*size]</td>
132
+ <td>At each vertex, delta information for the LOD at which this vertex disappears</td>
133
+ </tr>
134
+ <tr>
135
+ <td>Quadtree delta data</td>
136
+ <td>float[quadtrees*lods]</td>
137
+ <td>At each quadtree node, for each lod a record of the max delta value in the region</td>
138
+ </tr>
139
+ </table>
140
+ <b>TerrainLayerDeclaration (Identifier 'TDCL')</b>\n
141
+ [Version 1]
142
+ <table>
143
+ <tr>
144
+ <td><b>Name</b></td>
145
+ <td><b>Type</b></td>
146
+ <td><b>Description</b></td>
147
+ </tr>
148
+ <tr>
149
+ <td>TerrainLayerSampler Count</td>
150
+ <td>uint8</td>
151
+ <td>Number of samplers in this declaration</td>
152
+ </tr>
153
+ <tr>
154
+ <td>TerrainLayerSampler List</td>
155
+ <td>TerrainLayerSampler*</td>
156
+ <td>List of TerrainLayerSampler structures</td>
157
+ </tr>
158
+ <tr>
159
+ <td>Sampler Element Count</td>
160
+ <td>uint8</td>
161
+ <td>Number of sampler elements in this declaration</td>
162
+ </tr>
163
+ <tr>
164
+ <td>TerrainLayerSamplerElement List</td>
165
+ <td>TerrainLayerSamplerElement*</td>
166
+ <td>List of TerrainLayerSamplerElement structures</td>
167
+ </tr>
168
+ </table>
169
+ <b>TerrainLayerSampler (Identifier 'TSAM')</b>\n
170
+ [Version 1]
171
+ <table>
172
+ <tr>
173
+ <td><b>Name</b></td>
174
+ <td><b>Type</b></td>
175
+ <td><b>Description</b></td>
176
+ </tr>
177
+ <tr>
178
+ <td>Alias</td>
179
+ <td>String</td>
180
+ <td>Alias name of this sampler</td>
181
+ </tr>
182
+ <tr>
183
+ <td>Format</td>
184
+ <td>uint8</td>
185
+ <td>Desired pixel format</td>
186
+ </tr>
187
+ </table>
188
+ <b>TerrainLayerSamplerElement (Identifier 'TSEL')</b>\n
189
+ [Version 1]
190
+ <table>
191
+ <tr>
192
+ <td><b>Name</b></td>
193
+ <td><b>Type</b></td>
194
+ <td><b>Description</b></td>
195
+ </tr>
196
+ <tr>
197
+ <td>Source</td>
198
+ <td>uint8</td>
199
+ <td>Sampler source index</td>
200
+ </tr>
201
+ <tr>
202
+ <td>Semantic</td>
203
+ <td>uint8</td>
204
+ <td>Semantic interpretation of this element</td>
205
+ </tr>
206
+ <tr>
207
+ <td>Element start</td>
208
+ <td>uint8</td>
209
+ <td>Start of this element in the sampler</td>
210
+ </tr>
211
+ <tr>
212
+ <td>Element count</td>
213
+ <td>uint8</td>
214
+ <td>Number of elements in the sampler used by this entry</td>
215
+ </tr>
216
+ </table>
217
+ <b>LayerInstance (Identifier 'TLIN')</b>\n
218
+ [Version 1]
219
+ <table>
220
+ <tr>
221
+ <td><b>Name</b></td>
222
+ <td><b>Type</b></td>
223
+ <td><b>Description</b></td>
224
+ </tr>
225
+ <tr>
226
+ <td>World size</td>
227
+ <td>Real</td>
228
+ <td>The world size of this layer (determines UV scaling)</td>
229
+ </tr>
230
+ <tr>
231
+ <td>Texture list</td>
232
+ <td>String*</td>
233
+ <td>List of texture names corresponding to the number of samplers in the layer declaration</td>
234
+ </tr>
235
+ </table>
236
+ <b>TerrainDerivedData (Identifier 'TDDA')</b>\n
237
+ [Version 1]
238
+ <table>
239
+ <tr>
240
+ <td><b>Name</b></td>
241
+ <td><b>Type</b></td>
242
+ <td><b>Description</b></td>
243
+ </tr>
244
+ <tr>
245
+ <td>Derived data type name</td>
246
+ <td>String</td>
247
+ <td>Name of the derived data type ('normalmap', 'lightmap', 'colourmap', 'compositemap')</td>
248
+ </tr>
249
+ <tr>
250
+ <td>Size</td>
251
+ <td>uint16</td>
252
+ <td>Size of the data along one edge</td>
253
+ </tr>
254
+ <tr>
255
+ <td>Data</td>
256
+ <td>varies based on type</td>
257
+ <td>The data</td>
258
+ </tr>
259
+ </table>
260
+ */
261
+ class _OgreTerrainExport Terrain : public SceneManager::Listener,
262
+ public WorkQueue::RequestHandler, public WorkQueue::ResponseHandler, public TerrainAlloc
263
+ {
264
+ public:
265
+ /** Constructor.
266
+ @param sm The SceneManager to use.
267
+ */
268
+ Terrain(SceneManager* sm);
269
+ virtual ~Terrain();
270
+
271
+ static const uint32 TERRAIN_CHUNK_ID;
272
+ static const uint16 TERRAIN_CHUNK_VERSION;
273
+ static const uint16 TERRAIN_MAX_BATCH_SIZE;
274
+
275
+ static const uint32 TERRAINLAYERDECLARATION_CHUNK_ID;
276
+ static const uint16 TERRAINLAYERDECLARATION_CHUNK_VERSION;
277
+ static const uint32 TERRAINLAYERSAMPLER_CHUNK_ID;
278
+ static const uint16 TERRAINLAYERSAMPLER_CHUNK_VERSION;
279
+ static const uint32 TERRAINLAYERSAMPLERELEMENT_CHUNK_ID;
280
+ static const uint16 TERRAINLAYERSAMPLERELEMENT_CHUNK_VERSION;
281
+ static const uint32 TERRAINLAYERINSTANCE_CHUNK_ID;
282
+ static const uint16 TERRAINLAYERINSTANCE_CHUNK_VERSION;
283
+ static const uint32 TERRAINDERIVEDDATA_CHUNK_ID;
284
+ static const uint16 TERRAINDERIVEDDATA_CHUNK_VERSION;
285
+
286
+ static const size_t LOD_MORPH_CUSTOM_PARAM;
287
+
288
+ typedef vector<Real>::type RealVector;
289
+
290
+ /** An instance of a layer, with specific texture names
291
+ */
292
+ struct _OgreTerrainExport LayerInstance
293
+ {
294
+ /// The world size of the texture to be applied in this layer
295
+ Real worldSize;
296
+ /// List of texture names to import; must match with TerrainLayerDeclaration
297
+ StringVector textureNames;
298
+
299
+ LayerInstance()
300
+ : worldSize(100) {}
301
+ };
302
+ typedef vector<LayerInstance>::type LayerInstanceList;
303
+
304
+ /// The alignment of the terrain
305
+ enum Alignment
306
+ {
307
+ /// Terrain is in the X/Z plane
308
+ ALIGN_X_Z = 0,
309
+ /// Terrain is in the X/Y plane
310
+ ALIGN_X_Y = 1,
311
+ /// Terrain is in the Y/Z plane
312
+ ALIGN_Y_Z = 2
313
+ };
314
+
315
+ /** Structure encapsulating import data that you may use to bootstrap
316
+ the terrain without loading from a native data stream.
317
+ */
318
+ struct ImportData
319
+ {
320
+ /// The alignment of the terrain
321
+ Alignment terrainAlign;
322
+ /// Terrain size (along one edge) in vertices; must be 2^n+1
323
+ uint16 terrainSize;
324
+ /** Maximum batch size (along one edge) in vertices; must be 2^n+1 and <= 65
325
+ @remarks
326
+ The terrain will be divided into hierarchical tiles, and this is the maximum
327
+ size of one tile in vertices (at any LOD).
328
+ */
329
+ uint16 maxBatchSize;
330
+ /** Minimum batch size (along one edge) in vertices; must be 2^n+1.
331
+ @remarks
332
+ The terrain will be divided into tiles, and this is the minimum
333
+ size of one tile in vertices (at any LOD). Adjacent tiles will be
334
+ collected together into one batch to drop LOD levels once they are individually at this minimum,
335
+ so setting this value higher means greater batching at the expense
336
+ of making adjacent tiles use a common LOD.
337
+ Once the entire terrain is collected together into one batch this
338
+ effectively sets the minimum LOD.
339
+ */
340
+ uint16 minBatchSize;
341
+
342
+ /** Position of the terrain.
343
+ @remarks
344
+ Represents the position of the centre of the terrain.
345
+ */
346
+ Vector3 pos;
347
+
348
+ /** The world size of the terrain. */
349
+ Real worldSize;
350
+
351
+ /** Optional heightmap providing the initial heights for the terrain.
352
+ @remarks
353
+ If supplied, should ideally be terrainSize * terrainSize, but if
354
+ it isn't it will be resized.
355
+ */
356
+ Image* inputImage;
357
+
358
+ /** Optional list of terrainSize * terrainSize floats defining the terrain.
359
+ The list of floats wil be interpreted such that the first row
360
+ in the array equates to the bottom row of vertices.
361
+ */
362
+ float* inputFloat;
363
+
364
+ /** If neither inputImage or inputFloat are supplied, the constant
365
+ height at which the initial terrain should be created (flat).
366
+ */
367
+ float constantHeight;
368
+
369
+ /** Whether this structure should 'own' the input data (inputImage and
370
+ inputFloat), and therefore delete it on destruction.
371
+ The default is false so you have to manage your own memory. If you
372
+ set it to true, then you must have allocated the memory through
373
+ OGRE_NEW (for Image) and OGRE_ALLOC_T (for inputFloat), the latter
374
+ with the category MEMCATEGORY_GEOMETRY.
375
+ */
376
+ bool deleteInputData;
377
+
378
+ /// How to scale the input values provided (if any)
379
+ Real inputScale;
380
+ /// How to bias the input values provided (if any)
381
+ Real inputBias;
382
+
383
+ /** Definition of the contents of each layer (required).
384
+ Most likely, you will pull a declaration from a TerrainMaterialGenerator
385
+ of your choice.
386
+ */
387
+ TerrainLayerDeclaration layerDeclaration;
388
+ /** List of layer structures, one for each layer required.
389
+ Can be empty or underfilled if required, list will be padded with
390
+ blank textures.
391
+ */
392
+ LayerInstanceList layerList;
393
+
394
+ ImportData()
395
+ : terrainAlign(ALIGN_X_Z)
396
+ , terrainSize(1025)
397
+ , maxBatchSize(65)
398
+ , minBatchSize(17)
399
+ , pos(Vector3::ZERO)
400
+ , worldSize(1000)
401
+ , inputImage(0)
402
+ , inputFloat(0)
403
+ , constantHeight(0)
404
+ , deleteInputData(false)
405
+ , inputScale(1.0)
406
+ , inputBias(0.0)
407
+ {
408
+
409
+ }
410
+
411
+ ImportData(const ImportData& rhs)
412
+ : terrainAlign(ALIGN_X_Z)
413
+ , terrainSize(1025)
414
+ , maxBatchSize(65)
415
+ , minBatchSize(17)
416
+ , pos(Vector3::ZERO)
417
+ , worldSize(1000)
418
+ , inputImage(0)
419
+ , inputFloat(0)
420
+ , constantHeight(0)
421
+ , deleteInputData(false)
422
+ , inputScale(1.0)
423
+ , inputBias(0.0)
424
+ {
425
+ *this = rhs;
426
+ }
427
+
428
+ ImportData& operator=(const ImportData& rhs)
429
+ {
430
+ // basic copy
431
+ terrainAlign = rhs.terrainAlign;
432
+ terrainSize = rhs.terrainSize;
433
+ maxBatchSize = rhs.maxBatchSize;
434
+ minBatchSize = rhs.minBatchSize;
435
+ pos = rhs.pos;
436
+ worldSize = rhs.worldSize;
437
+ constantHeight = rhs.constantHeight;
438
+ deleteInputData = rhs.deleteInputData;
439
+ inputScale = rhs.inputScale;
440
+ inputBias = rhs.inputBias;
441
+ layerDeclaration = rhs.layerDeclaration;
442
+ layerList = rhs.layerList;
443
+
444
+ // By-value copies in ownership cases
445
+ if (rhs.deleteInputData)
446
+ {
447
+ if (rhs.inputImage)
448
+ inputImage = OGRE_NEW Image(*rhs.inputImage);
449
+ else
450
+ inputImage = 0;
451
+
452
+ if (rhs.inputFloat)
453
+ {
454
+ inputFloat = OGRE_ALLOC_T(float, terrainSize*terrainSize, MEMCATEGORY_GEOMETRY);
455
+ memcpy(inputFloat, rhs.inputFloat, sizeof(float) * terrainSize*terrainSize);
456
+ }
457
+ else
458
+ inputFloat = 0;
459
+ }
460
+ else
461
+ {
462
+ // re-use pointers
463
+ inputImage = rhs.inputImage;
464
+ inputFloat = rhs.inputFloat;
465
+ }
466
+ return *this;
467
+ }
468
+
469
+ /// Delete any input data if this struct is set to do so
470
+ void destroy()
471
+ {
472
+ if (deleteInputData)
473
+ {
474
+ OGRE_DELETE inputImage;
475
+ OGRE_FREE(inputFloat, MEMCATEGORY_GEOMETRY);
476
+ inputImage = 0;
477
+ inputFloat = 0;
478
+ }
479
+
480
+ }
481
+
482
+ ~ImportData()
483
+ {
484
+ destroy();
485
+ }
486
+
487
+ };
488
+
489
+ /// Neighbour index enumeration - indexed anticlockwise from East like angles
490
+ enum NeighbourIndex
491
+ {
492
+ NEIGHBOUR_EAST = 0,
493
+ NEIGHBOUR_NORTHEAST = 1,
494
+ NEIGHBOUR_NORTH = 2,
495
+ NEIGHBOUR_NORTHWEST = 3,
496
+ NEIGHBOUR_WEST = 4,
497
+ NEIGHBOUR_SOUTHWEST = 5,
498
+ NEIGHBOUR_SOUTH = 6,
499
+ NEIGHBOUR_SOUTHEAST = 7,
500
+
501
+ NEIGHBOUR_COUNT = 8
502
+ };
503
+
504
+ SceneManager* getSceneManager() const { return mSceneMgr; }
505
+
506
+ /// Enumeration of relative spaces that you might want to use to address the terrain
507
+ enum Space
508
+ {
509
+ /// Simple global world space, axes and positions are all in world space
510
+ WORLD_SPACE = 0,
511
+ /// As world space, but positions are relative to the terrain world position
512
+ LOCAL_SPACE = 1,
513
+ /** x & y are parametric values on the terrain from 0 to 1, with the
514
+ origin at the bottom left. z is the world space height at that point.
515
+ */
516
+ TERRAIN_SPACE = 2,
517
+ /** x & y are integer points on the terrain from 0 to size-1, with the
518
+ origin at the bottom left. z is the world space height at that point.
519
+ */
520
+ POINT_SPACE = 3
521
+ };
522
+
523
+ /** Interface used to by the Terrain instance to allocate GPU buffers.
524
+ @remarks This class exists to make it easier to re-use buffers between
525
+ multiple instances of terrain.
526
+ */
527
+ class _OgreTerrainExport GpuBufferAllocator : public TerrainAlloc
528
+ {
529
+ public:
530
+ GpuBufferAllocator() {}
531
+ virtual ~GpuBufferAllocator() {}
532
+
533
+ /** Allocate (or reuse) vertex buffers for a terrain LOD.
534
+ @param numVertices The total number of vertices
535
+ @param destPos Pointer to a vertex buffer for positions, to be bound
536
+ @param destDelta Pointer to a vertex buffer for deltas, to be bound
537
+ */
538
+ virtual void allocateVertexBuffers(Terrain* forTerrain, size_t numVertices, HardwareVertexBufferSharedPtr& destPos, HardwareVertexBufferSharedPtr& destDelta) = 0;
539
+ /** Free (or return to the pool) vertex buffers for terrain.
540
+ */
541
+ virtual void freeVertexBuffers(const HardwareVertexBufferSharedPtr& posbuf, const HardwareVertexBufferSharedPtr& deltabuf) = 0;
542
+
543
+ /** Get a shared index buffer for a given number of settings.
544
+ @remarks
545
+ Since all index structures are the same at the same LOD level and
546
+ relative position, we can share index buffers. Therefore the
547
+ buffer returned from this method does not need to be 'freed' like
548
+ the vertex buffers since it is never owned.
549
+ @param batchSize The batch size along one edge
550
+ @param vdatasize The size of the referenced vertex data along one edge
551
+ @param vertexIncrement The number of vertices to increment for each new indexed row / column
552
+ @param xoffset The x offset from the start of vdatasize, at that resolution
553
+ @param yoffset The y offset from the start of vdatasize, at that resolution
554
+ @param numSkirtRowsCols Number of rows and columns of skirts
555
+ @param skirtRowColSkip The number of rows / cols to skip in between skirts
556
+ */
557
+ virtual HardwareIndexBufferSharedPtr getSharedIndexBuffer(uint16 batchSize,
558
+ uint16 vdatasize, size_t vertexIncrement, uint16 xoffset, uint16 yoffset, uint16 numSkirtRowsCols,
559
+ uint16 skirtRowColSkip) = 0;
560
+
561
+ /// Free any buffers we're holding
562
+ virtual void freeAllBuffers() = 0;
563
+
564
+ };
565
+ /// Standard implementation of a buffer allocator which re-uses buffers
566
+ class _OgreTerrainExport DefaultGpuBufferAllocator : public GpuBufferAllocator
567
+ {
568
+ public:
569
+ DefaultGpuBufferAllocator();
570
+ ~DefaultGpuBufferAllocator();
571
+ void allocateVertexBuffers(Terrain* forTerrain, size_t numVertices, HardwareVertexBufferSharedPtr& destPos, HardwareVertexBufferSharedPtr& destDelta);
572
+ void freeVertexBuffers(const HardwareVertexBufferSharedPtr& posbuf, const HardwareVertexBufferSharedPtr& deltabuf);
573
+ HardwareIndexBufferSharedPtr getSharedIndexBuffer(uint16 batchSize,
574
+ uint16 vdatasize, size_t vertexIncrement, uint16 xoffset, uint16 yoffset, uint16 numSkirtRowsCols,
575
+ uint16 skirtRowColSkip);
576
+ void freeAllBuffers();
577
+
578
+ /** 'Warm start' the allocator based on needing x instances of
579
+ terrain with the given configuration.
580
+ */
581
+ void warmStart(size_t numInstances, uint16 terrainSize, uint16 maxBatchSize,
582
+ uint16 minBatchSize);
583
+
584
+ protected:
585
+ typedef list<HardwareVertexBufferSharedPtr>::type VBufList;
586
+ VBufList mFreePosBufList;
587
+ VBufList mFreeDeltaBufList;
588
+ typedef map<uint32, HardwareIndexBufferSharedPtr>::type IBufMap;
589
+ IBufMap mSharedIBufMap;
590
+
591
+ uint32 hashIndexBuffer(uint16 batchSize,
592
+ uint16 vdatasize, size_t vertexIncrement, uint16 xoffset, uint16 yoffset, uint16 numSkirtRowsCols,
593
+ uint16 skirtRowColSkip);
594
+ HardwareVertexBufferSharedPtr getVertexBuffer(VBufList& list, size_t vertexSize, size_t numVertices);
595
+
596
+ };
597
+
598
+ /** Tell this instance to use the given GpuBufferAllocator.
599
+ @remarks
600
+ May only be called when the terrain is not loaded.
601
+ */
602
+ void setGpuBufferAllocator(GpuBufferAllocator* alloc);
603
+
604
+ /// Get the current buffer allocator
605
+ GpuBufferAllocator* getGpuBufferAllocator();
606
+
607
+ /// Utility method to get the number of indexes required to render a given batch
608
+ static size_t _getNumIndexesForBatchSize(uint16 batchSize);
609
+ /** Utility method to populate a (locked) index buffer.
610
+ @param pIndexes Pointer to an index buffer to populate
611
+ @param batchSize The number of vertices down one side of the batch
612
+ @param vdatasize The number of vertices down one side of the vertex data being referenced
613
+ @param vertexIncrement The number of vertices to increment for each new indexed row / column
614
+ @param xoffset The x offset from the start of the vertex data being referenced
615
+ @param yoffset The y offset from the start of the vertex data being referenced
616
+ @param numSkirtRowsCols Number of rows and columns of skirts
617
+ @param skirtRowColSkip The number of rows / cols to skip in between skirts
618
+
619
+ */
620
+ static void _populateIndexBuffer(uint16* pIndexes, uint16 batchSize,
621
+ uint16 vdatasize, size_t vertexIncrement, uint16 xoffset, uint16 yoffset, uint16 numSkirtRowsCols,
622
+ uint16 skirtRowColSkip);
623
+
624
+ /** Utility method to calculate the skirt index for a given original vertex index. */
625
+ static uint16 _calcSkirtVertexIndex(uint16 mainIndex, uint16 vdatasize, bool isCol,
626
+ uint16 numSkirtRowsCols, uint16 skirtRowColSkip);
627
+
628
+ /** Convert a position from one space to another with respect to this terrain.
629
+ @param inSpace The space that inPos is expressed as
630
+ @param inPos The incoming position
631
+ @param outSpace The space which outPos should be expressed as
632
+ @param outPos The output position to be populated
633
+ */
634
+ void convertPosition(Space inSpace, const Vector3& inPos, Space outSpace, Vector3& outPos) const;
635
+ /** Convert a position from one space to another with respect to this terrain.
636
+ @param inSpace The space that inPos is expressed as
637
+ @param inPos The incoming position
638
+ @param outSpace The space which outPos should be expressed as
639
+ @return The output position
640
+ */
641
+ Vector3 convertPosition(Space inSpace, const Vector3& inPos, Space outSpace) const;
642
+ /** Convert a direction from one space to another with respect to this terrain.
643
+ @param inSpace The space that inDir is expressed as
644
+ @param inDir The incoming direction
645
+ @param outSpace The space which outDir should be expressed as
646
+ @param outDir The output direction to be populated
647
+ */
648
+ void convertDirection(Space inSpace, const Vector3& inDir, Space outSpace, Vector3& outDir) const;
649
+ /** Convert a direction from one space to another with respect to this terrain.
650
+ @param inSpace The space that inDir is expressed as
651
+ @param inDir The incoming direction
652
+ @param outSpace The space which outDir should be expressed as
653
+ @return The output direction
654
+ */
655
+ Vector3 convertDirection(Space inSpace, const Vector3& inDir, Space outSpace) const;
656
+
657
+ /** Set the resource group to use when loading / saving.
658
+ @param resGroup Resource group name - you can set this to blank to use
659
+ the default in TerrainGlobalOptions.
660
+ */
661
+ void setResourceGroup(const String& resGroup) { mResourceGroup = resGroup; }
662
+
663
+ /** Get the resource group to use when loading / saving.
664
+ If this is blank, the default in TerrainGlobalOptions will be used.
665
+ */
666
+ const String& getResourceGroup() const { return mResourceGroup; }
667
+
668
+ /** Get the final resource group to use when loading / saving.
669
+ */
670
+ const String& _getDerivedResourceGroup() const;
671
+
672
+ /** Save terrain data in native form to a standalone file
673
+ @param filename The name of the file to save to. If this is a filename with
674
+ no path elements, then it is saved in the first writeable location
675
+ available in the resource group you have chosen to use for this
676
+ terrain. If the filename includes path specifiers then it is saved
677
+ directly instead (but note that it may not be reloadable via the
678
+ resource system if the location is not on the path).
679
+ */
680
+ void save(const String& filename);
681
+ /** Save terrain data in native form to a serializing stream.
682
+ @remarks
683
+ If you want complete control over where the terrain data goes, use
684
+ this form.
685
+ */
686
+ void save(StreamSerialiser& stream);
687
+
688
+ /** Prepare the terrain from a standalone file.
689
+ @note
690
+ This is safe to do in a background thread as it creates no GPU resources.
691
+ It reads data from a native terrain data chunk. For more advanced uses,
692
+ such as loading from a shared file, use the StreamSerialiser form.
693
+ */
694
+ bool prepare(const String& filename);
695
+ /** Prepare terrain data from saved data.
696
+ @remarks
697
+ This is safe to do in a background thread as it creates no GPU resources.
698
+ It reads data from a native terrain data chunk.
699
+ @return true if the preparation was successful
700
+ */
701
+ bool prepare(StreamSerialiser& stream);
702
+
703
+ /** Prepare the terrain from some import data rather than loading from
704
+ native data.
705
+ @remarks
706
+ This method may be called in a background thread.
707
+ */
708
+ bool prepare(const ImportData& importData);
709
+
710
+ /** Prepare and load the terrain in one simple call from a standalone file.
711
+ @note
712
+ This method must be called from the primary render thread. To load data
713
+ in a background thread, use the prepare() method.
714
+ */
715
+ void load(const String& filename);
716
+
717
+ /** Prepare and load the terrain in one simple call from a stream.
718
+ @note
719
+ This method must be called from the primary render thread. To load data
720
+ in a background thread, use the prepare() method.
721
+ */
722
+ void load(StreamSerialiser& stream);
723
+
724
+ /** Load the terrain based on the data already populated via prepare methods.
725
+ @remarks
726
+ This method must be called in the main render thread.
727
+ */
728
+ void load();
729
+
730
+ /** Return whether the terrain is loaded.
731
+ @remarks
732
+ Should only be called from the render thread really, since this is
733
+ where the loaded state changes.
734
+ */
735
+ bool isLoaded() const { return mIsLoaded; }
736
+
737
+ /** Returns whether this terrain has been modified since it was first loaded / defined.
738
+ @remarks
739
+ This flag is reset on save().
740
+ */
741
+ bool isModified() const { return mModified; }
742
+
743
+
744
+ /** Returns whether terrain heights have been modified since the terrain was first loaded / defined.
745
+ @remarks
746
+ This flag is reset on save().
747
+ */
748
+ bool isHeightDataModified() const { return mHeightDataModified; }
749
+
750
+
751
+ /** Unload the terrain and free GPU resources.
752
+ @remarks
753
+ This method must be called in the main render thread.
754
+ */
755
+ void unload();
756
+
757
+ /** Free CPU resources created during prepare methods.
758
+ @remarks
759
+ This is safe to do in a background thread after calling unload().
760
+ */
761
+ void unprepare();
762
+
763
+
764
+ /** Get a pointer to all the height data for this terrain.
765
+ @remarks
766
+ The height data is in world coordinates, relative to the position
767
+ of the terrain.
768
+ @par
769
+ This pointer is not const, so you can update the height data if you
770
+ wish. However, changes will not be propagated until you call
771
+ Terrain::dirty or Terrain::dirtyRect.
772
+ */
773
+ float* getHeightData() const;
774
+
775
+ /** Get a pointer to the height data for a given point.
776
+ */
777
+ float* getHeightData(long x, long y) const;
778
+
779
+ /** Get the height data for a given terrain point.
780
+ @param x, y Discrete coordinates in terrain vertices, values from 0 to size-1,
781
+ left/right bottom/top
782
+ */
783
+ float getHeightAtPoint(long x, long y) const;
784
+
785
+ /** Set the height data for a given terrain point.
786
+ @note this doesn't take effect until you call update()
787
+ @param x, y Discrete coordinates in terrain vertices, values from 0 to size-1,
788
+ left/right bottom/top
789
+ @param h The new height
790
+ */
791
+ void setHeightAtPoint(long x, long y, float h);
792
+
793
+ /** Get the height data for a given terrain position.
794
+ @param x, y Position in terrain space, values from 0 to 1 left/right bottom/top
795
+ */
796
+ float getHeightAtTerrainPosition(Real x, Real y);
797
+
798
+ /** Get the height data for a given world position (projecting the point
799
+ down on to the terrain).
800
+ @param x, y,z Position in world space. Positions will be clamped to the edge
801
+ of the terrain
802
+ */
803
+ float getHeightAtWorldPosition(Real x, Real y, Real z);
804
+
805
+ /** Get the height data for a given world position (projecting the point
806
+ down on to the terrain).
807
+ @param pos Position in world space. Positions will be clamped to the edge
808
+ of the terrain
809
+ */
810
+ float getHeightAtWorldPosition(const Vector3& pos);
811
+
812
+ /** Get a pointer to all the delta data for this terrain.
813
+ @remarks
814
+ The delta data is a measure at a given vertex of by how much vertically
815
+ a vertex will have to move to reach the point at which it will be
816
+ removed in the next lower LOD.
817
+ */
818
+ const float* getDeltaData();
819
+
820
+ /** Get a pointer to the delta data for a given point.
821
+ */
822
+ const float* getDeltaData(long x, long y);
823
+
824
+ /** Get a Vector3 of the world-space point on the terrain, aligned as per
825
+ options.
826
+ @note This point is relative to Terrain::getPosition
827
+ */
828
+ void getPoint(long x, long y, Vector3* outpos);
829
+
830
+ /** Get a Vector3 of the world-space point on the terrain, aligned as per
831
+ options. Cascades into neighbours if out of bounds.
832
+ @note This point is relative to Terrain::getPosition - neighbours are
833
+ adjusted to be relative to this tile
834
+ */
835
+ void getPointFromSelfOrNeighbour(long x, long y, Vector3* outpos);
836
+
837
+ /** Get a Vector3 of the world-space point on the terrain, supplying the
838
+ height data manually (can be more optimal).
839
+ @note This point is relative to Terrain::getPosition
840
+ */
841
+ void getPoint(long x, long y, float height, Vector3* outpos);
842
+ /** Get a transform which converts Vector4(xindex, yindex, height, 1) into
843
+ an object-space position including scalings and alignment.
844
+ */
845
+ void getPointTransform(Matrix4* outXform) const;
846
+ /** Translate a vector from world space to local terrain space based on the alignment options.
847
+ @param inVec The vector in basis space, where x/y represents the
848
+ terrain plane and z represents the up vector
849
+ */
850
+ void getTerrainVector(const Vector3& inVec, Vector3* outVec);
851
+ /** Translate a vector from world space to local terrain space based on a specified alignment.
852
+ @param inVec The vector in basis space, where x/y represents the
853
+ terrain plane and z represents the up vector
854
+ */
855
+ void getTerrainVectorAlign(const Vector3& inVec, Alignment align, Vector3* outVec);
856
+
857
+ /** Translate a vector from world space to local terrain space based on the alignment options.
858
+ @param x, y, z The vector in basis space, where x/y represents the
859
+ terrain plane and z represents the up vector
860
+ */
861
+ void getTerrainVector(Real x, Real y, Real z, Vector3* outVec);
862
+ /** Translate a vector from world space to local terrain space based on a specified alignment.
863
+ @param x, y, z The vector in world space, where x/y represents the
864
+ terrain plane and z represents the up vector
865
+ */
866
+ void getTerrainVectorAlign(Real x, Real y, Real z, Alignment align, Vector3* outVec);
867
+
868
+ /** Translate a vector into world space based on the alignment options.
869
+ @param inVec The vector in basis space, where x/y represents the
870
+ terrain plane and z represents the up vector
871
+ */
872
+ void getVector(const Vector3& inVec, Vector3* outVec);
873
+ /** Translate a vector into world space based on a specified alignment.
874
+ @param inVec The vector in basis space, where x/y represents the
875
+ terrain plane and z represents the up vector
876
+ */
877
+ void getVectorAlign(const Vector3& inVec, Alignment align, Vector3* outVec);
878
+
879
+ /** Translate a vector into world space based on the alignment options.
880
+ @param x, y, z The vector in basis space, where x/y represents the
881
+ terrain plane and z represents the up vector
882
+ */
883
+ void getVector(Real x, Real y, Real z, Vector3* outVec);
884
+ /** Translate a vector into world space based on a specified alignment.
885
+ @param x, y, z The vector in basis space, where x/y represents the
886
+ terrain plane and z represents the up vector
887
+ */
888
+ void getVectorAlign(Real x, Real y, Real z, Alignment align, Vector3* outVec);
889
+
890
+
891
+ /** Convert a position from terrain basis space to world space.
892
+ @param TSpos Terrain space position, where (0,0) is the bottom-left of the
893
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
894
+ height units.
895
+ @note This position is relative to Terrain::getPosition
896
+ @param outWSpos World space output position (setup according to current alignment).
897
+ */
898
+ void getPosition(const Vector3& TSpos, Vector3* outWSpos);
899
+ /** Convert a position from terrain basis space to world space.
900
+ @param x,y,z Terrain space position, where (0,0) is the bottom-left of the
901
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
902
+ height units.
903
+ @note This position is relative to Terrain::getPosition
904
+ @param outWSpos World space output position (setup according to current alignment).
905
+ */
906
+ void getPosition(Real x, Real y, Real z, Vector3* outWSpos);
907
+
908
+ /** Convert a position from world space to terrain basis space.
909
+ @param WSpos World space position (setup according to current alignment).
910
+ @param outTSpos Terrain space output position, where (0,0) is the bottom-left of the
911
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
912
+ height units.
913
+ */
914
+ void getTerrainPosition(const Vector3& WSpos, Vector3* outTSpos);
915
+ /** Convert a position from world space to terrain basis space.
916
+ @param x,y,z World space position (setup according to current alignment).
917
+ @param outTSpos Terrain space output position, where (0,0) is the bottom-left of the
918
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
919
+ height units.
920
+ */
921
+ void getTerrainPosition(Real x, Real y, Real z, Vector3* outTSpos);
922
+ /** Convert a position from terrain basis space to world space based on a specified alignment.
923
+ @param TSpos Terrain space position, where (0,0) is the bottom-left of the
924
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
925
+ height units.
926
+ @param outWSpos World space output position (setup according to alignment).
927
+ */
928
+ void getPositionAlign(const Vector3& TSpos, Alignment align, Vector3* outWSpos);
929
+ /** Convert a position from terrain basis space to world space based on a specified alignment.
930
+ @param x,y,z Terrain space position, where (0,0) is the bottom-left of the
931
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
932
+ height units.
933
+ @param outWSpos World space output position (setup according to alignment).
934
+ */
935
+ void getPositionAlign(Real x, Real y, Real z, Alignment align, Vector3* outWSpos);
936
+
937
+ /** Convert a position from world space to terrain basis space based on a specified alignment.
938
+ @param WSpos World space position (setup according to alignment).
939
+ @param outTSpos Terrain space output position, where (0,0) is the bottom-left of the
940
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
941
+ height units.
942
+ */
943
+ void getTerrainPositionAlign(const Vector3& WSpos, Alignment align, Vector3* outTSpos);
944
+ /** Convert a position from world space to terrain basis space based on a specified alignment.
945
+ @param x,y,z World space position (setup according to alignment).
946
+ @param outTSpos Terrain space output position, where (0,0) is the bottom-left of the
947
+ terrain, and (1,1) is the top-right. The Z coordinate is in absolute
948
+ height units.
949
+ */
950
+ void getTerrainPositionAlign(Real x, Real y, Real z, Alignment align, Vector3* outTSpos);
951
+
952
+
953
+ /// Get the alignment of the terrain
954
+ Alignment getAlignment() const;
955
+ /// Get the size of the terrain in vertices along one side
956
+ uint16 getSize() const;
957
+ /** Set the size of terrain in vertices along one side.
958
+ @note The existing height data will be bilinear filtered to fill the new size
959
+ @param newSize the new size of the terrain
960
+ */
961
+ void setSize(uint16 newSize);
962
+ /// Get the maximum size in vertices along one side of a batch
963
+ uint16 getMaxBatchSize() const;
964
+ /// Get the minimum size in vertices along one side of a batch
965
+ uint16 getMinBatchSize() const;
966
+ /// Get the size of the terrain in world units
967
+ Real getWorldSize() const;
968
+ /** Set the world size of terrain.
969
+ @param newWorldSize the new world size of the terrain
970
+ */
971
+ void setWorldSize(Real newWorldSize);
972
+
973
+ /** Get the number of layers in this terrain. */
974
+ uint8 getLayerCount() const { return static_cast<uint8>(mLayers.size()); }
975
+
976
+ /** Get the declaration which describes the layers in this terrain. */
977
+ const TerrainLayerDeclaration& getLayerDeclaration() const { return mLayerDecl; }
978
+
979
+ /** Add a new layer to this terrain.
980
+ @param worldSize The size of the texture in this layer in world units. Default
981
+ to zero to use the default
982
+ @param textureNames A list of textures to assign to the samplers in this
983
+ layer. Leave blank to provide these later.
984
+ */
985
+ void addLayer(Real worldSize = 0, const StringVector* textureNames = 0);
986
+
987
+ /** Add a new layer to this terrain at a specific index.
988
+ @param index The index at which to insert this layer (existing layers are shifted forwards)
989
+ @param worldSize The size of the texture in this layer in world units. Default
990
+ to zero to use the default
991
+ @param textureNames A list of textures to assign to the samplers in this
992
+ layer. Leave blank to provide these later.
993
+ */
994
+ void addLayer(uint8 index, Real worldSize = 0, const StringVector* textureNames = 0);
995
+
996
+ /** Remove a layer from the terrain.
997
+ */
998
+ void removeLayer(uint8 index);
999
+
1000
+ /** Replace an existing terrain layer, optionally preserving all other layer blend maps
1001
+ @param index The 0 based index of the terrain layer to replace
1002
+ @param keepBlends True to keep using the existing blend maps. False to reset the blend map for the layer.
1003
+ Irrelevant if index == 0
1004
+ @param worldSize The size of the texture in this layer in world units. Default
1005
+ to zero to use the default
1006
+ @param textureNames A list of textures to assign to the samplers in this
1007
+ layer. Leave blank to provide these later.
1008
+ */
1009
+ void replaceLayer(uint8 index, bool keepBlends, Real worldSize = 0, const StringVector* textureNames = 0);
1010
+
1011
+ /** Get the maximum number of layers supported with the current options.
1012
+ @note When you change the options requested, this value can change.
1013
+ */
1014
+ uint8 getMaxLayers() const;
1015
+
1016
+ /** How large an area in world space the texture in a terrain layer covers
1017
+ before repeating.
1018
+ @param index The layer index.
1019
+ */
1020
+ Real getLayerWorldSize(uint8 index) const;
1021
+ /** How large an area in world space the texture in a terrain layer covers
1022
+ before repeating.
1023
+ @param index The layer index.
1024
+ @param size The world size of the texture before repeating
1025
+ */
1026
+ void setLayerWorldSize(uint8 index, Real size);
1027
+
1028
+ /** Get the layer UV multiplier.
1029
+ @remarks
1030
+ This is derived from the texture world size. The base UVs in the
1031
+ terrain vary from 0 to 1 and this multiplier is used (in a fixed-function
1032
+ texture coord scaling or a shader parameter) to translate it to the
1033
+ final value.
1034
+ @param index The layer index.
1035
+ */
1036
+ Real getLayerUVMultiplier(uint8 index) const;
1037
+
1038
+ /** Get the name of the texture bound to a given index within a given layer.
1039
+ See the LayerDeclaration for a list of sampelrs within a layer.
1040
+ @param layerIndex The layer index.
1041
+ @param samplerIndex The sampler index within a layer
1042
+ */
1043
+ const String& getLayerTextureName(uint8 layerIndex, uint8 samplerIndex) const;
1044
+ /** Set the name of the texture bound to a given index within a given layer.
1045
+ See the LayerDeclaration for a list of sampelrs within a layer.
1046
+ @param index The layer index.
1047
+ @param size The world size of the texture before repeating
1048
+ @param textureName The name of the texture to use
1049
+ */
1050
+ void setLayerTextureName(uint8 layerIndex, uint8 samplerIndex, const String& textureName);
1051
+
1052
+ /** Get the requested size of the blend maps used to blend between layers
1053
+ for this terrain.
1054
+ Note that where hardware limits this, the actual blend maps may be lower
1055
+ resolution. This option is derived from TerrainGlobalOptions when the
1056
+ terrain is created.
1057
+ */
1058
+ uint16 getLayerBlendMapSize() const { return mLayerBlendMapSize; }
1059
+
1060
+ /** Get the requested size of lightmap for this terrain.
1061
+ Note that where hardware limits this, the actual lightmap may be lower
1062
+ resolution. This option is derived from TerrainGlobalOptions when the
1063
+ terrain is created.
1064
+ */
1065
+ uint16 getLightmapSize() const { return mLightmapSize; }
1066
+
1067
+ /// Get access to the lightmap, if enabled (as requested by the material generator)
1068
+ const TexturePtr& getLightmap() const { return mLightmap; }
1069
+
1070
+ /** Get the requested size of composite map for this terrain.
1071
+ Note that where hardware limits this, the actual texture may be lower
1072
+ resolution. This option is derived from TerrainGlobalOptions when the
1073
+ terrain is created.
1074
+ */
1075
+ uint16 getCompositeMapSize() const { return mCompositeMapSize; }
1076
+
1077
+ /// Get access to the composite map, if enabled (as requested by the material generator)
1078
+ const TexturePtr& getCompositeMap() const { return mCompositeMap; }
1079
+
1080
+ /// Get the world position of the terrain centre
1081
+ const Vector3& getPosition() const { return mPos; }
1082
+ /// Set the position of the terrain centre in world coordinates
1083
+ void setPosition(const Vector3& pos);
1084
+ /// Get the root scene node for the terrain (internal use only)
1085
+ SceneNode* _getRootSceneNode() const;
1086
+ /** Mark the entire terrain as dirty.
1087
+ By marking a section of the terrain as dirty, you are stating that you have
1088
+ changed the height data within this rectangle. This rectangle will be merged with
1089
+ any existing outstanding changes. To finalise the changes, you must
1090
+ call update(), updateGeometry(), or updateDerivedData().
1091
+ */
1092
+ void dirty();
1093
+
1094
+ /** Mark a region of the terrain as dirty.
1095
+ By marking a section of the terrain as dirty, you are stating that you have
1096
+ changed the height data within this rectangle. This rectangle will be merged with
1097
+ any existing outstanding changes. To finalise the changes, you must
1098
+ call update(), updateGeometry(), or updateDerivedData().
1099
+ @param rect A rectangle expressed in vertices describing the dirty region;
1100
+ left < right, top < bottom, left & top are inclusive, right & bottom exclusive
1101
+ */
1102
+ void dirtyRect(const Rect& rect);
1103
+
1104
+ /** Mark a region of the terrain composite map as dirty.
1105
+ @remarks
1106
+ You don't usually need to call this directly, it is inferred from
1107
+ changing the other data on the terrain.
1108
+ */
1109
+ void _dirtyCompositeMapRect(const Rect& rect);
1110
+
1111
+ /** Mark a region of the lightmap as dirty.
1112
+ @remarks
1113
+ You only need to call this if you need to tell the terrain to update
1114
+ the lightmap data for some reason other than the terrain geometry
1115
+ has changed. Changing terrain geometry automatically dirties the
1116
+ correct lightmap areas.
1117
+ @note
1118
+ The lightmap won't actually be updated until update() or updateDerivedData()
1119
+ is called.
1120
+ */
1121
+ void dirtyLightmapRect(const Rect& rect);
1122
+
1123
+ /** Mark a the entire lightmap as dirty.
1124
+ @remarks
1125
+ You only need to call this if you need to tell the terrain to update
1126
+ the lightmap data for some reason other than the terrain geometry
1127
+ has changed. Changing terrain geometry automatically dirties the
1128
+ correct lightmap areas.
1129
+ @note
1130
+ The lightmap won't actually be updated until update() or updateDerivedData()
1131
+ is called.
1132
+ */
1133
+ void dirtyLightmap();
1134
+
1135
+ /** Trigger the update process for the terrain.
1136
+ @remarks
1137
+ Updating the terrain will process any dirty sections of the terrain.
1138
+ This may affect many things:
1139
+ <ol><li>The terrain geometry</li>
1140
+ <li>The terrain error metrics which determine LOD transitions</li>
1141
+ <li>The terrain normal map, if present</li>
1142
+ <li>The terrain lighting map, if present</li>
1143
+ <li>The terrain composite map, if present</li>
1144
+ </ol>
1145
+ If threading is enabled, only item 1 (the geometry) will be updated
1146
+ synchronously, ie will be fully up to date when this method returns.
1147
+ The other elements are more expensive to compute, and will be queued
1148
+ for processing in a background thread, in the order shown above. As these
1149
+ updates complete, the effects will be shown.
1150
+
1151
+ You can also separate the timing of updating the geometry, LOD and the lighting
1152
+ information if you want, by calling updateGeometry() and
1153
+ updateDerivedData() separately.
1154
+ @param synchronous If true, all updates will happen immediately and not
1155
+ in a separate thread.
1156
+ */
1157
+ void update(bool synchronous = false);
1158
+
1159
+ /** Performs an update on the terrain geometry based on the dirty region.
1160
+ @remarks
1161
+ Terrain geometry will be updated when this method returns.
1162
+ */
1163
+ void updateGeometry();
1164
+
1165
+ // Used as a type mask for updateDerivedData
1166
+ static const uint8 DERIVED_DATA_DELTAS;
1167
+ static const uint8 DERIVED_DATA_NORMALS;
1168
+ static const uint8 DERIVED_DATA_LIGHTMAP;
1169
+ static const uint8 DERIVED_DATA_ALL;
1170
+
1171
+ /** Updates derived data for the terrain (LOD, lighting) to reflect changed height data, in a separate
1172
+ thread if threading is enabled (OGRE_THREAD_SUPPORT).
1173
+ If threading is enabled, on return from this method the derived
1174
+ data will not necessarily be updated immediately, the calculation
1175
+ may be done in the background. Only one update will run in the background
1176
+ at once. This derived data can typically survive being out of sync for a
1177
+ few frames which is why it is not done synchronously
1178
+ @param synchronous If true, the update will happen immediately and not
1179
+ in a separate thread.
1180
+ @param typeMask Mask indicating the types of data we should generate
1181
+ */
1182
+ void updateDerivedData(bool synchronous = false, uint8 typeMask = 0xFF);
1183
+
1184
+ /** Performs an update on the terrain composite map based on its dirty region.
1185
+ @remarks
1186
+ Rather than calling this directly, call updateDerivedData, which will
1187
+ also call it after the other derived data has been updated (there is
1188
+ no point updating the composite map until lighting has been updated).
1189
+ However the blend maps may call this directly when only the blending
1190
+ information has been updated.
1191
+ */
1192
+ void updateCompositeMap();
1193
+
1194
+ /** Performs an update on the terrain composite map based on its dirty region,
1195
+ but only at a maximum frequency.
1196
+ @remarks
1197
+ Rather than calling this directly, call updateDerivedData, which will
1198
+ also call it after the other derived data has been updated (there is
1199
+ no point updating the composite map until lighting has been updated).
1200
+ However the blend maps may call this directly when only the blending
1201
+ information has been updated.
1202
+ @note
1203
+ This method will log the request for an update, but won't do it just yet
1204
+ unless there are no further requests in the next 'delay' seconds. This means
1205
+ you can call it all the time but only pick up changes in quiet times.
1206
+ */
1207
+ void updateCompositeMapWithDelay(Real delay = 2);
1208
+
1209
+
1210
+ /** The default size of 'skirts' used to hide terrain cracks
1211
+ (default 10, set for new Terrain using TerrainGlobalOptions)
1212
+ */
1213
+ Real getSkirtSize() const { return mSkirtSize; }
1214
+
1215
+ /// Get the total number of LOD levels in the terrain
1216
+ uint16 getNumLodLevels() const { return mNumLodLevels; }
1217
+
1218
+ /// Get the number of LOD levels in a leaf of the terrain quadtree
1219
+ uint16 getNumLodLevelsPerLeaf() const { return mNumLodLevelsPerLeafNode; }
1220
+
1221
+ /** Calculate (or recalculate) the delta values of heights between a vertex
1222
+ in its recorded position, and the place it will end up in the LOD
1223
+ in which it is removed.
1224
+ @param rect Rectangle describing the area in which heights have altered
1225
+ @return A Rectangle describing the area which was updated (may be wider
1226
+ than the input rectangle)
1227
+ */
1228
+ Rect calculateHeightDeltas(const Rect& rect);
1229
+
1230
+ /** Finalise the height deltas.
1231
+ Calculated height deltas are kept in a separate calculation field to make
1232
+ them safe to perform in a background thread. This call promotes those
1233
+ calculations to the runtime values, and must be called in the main thread.
1234
+ @param rect Rectangle describing the area to finalise
1235
+ @param cpuData When updating vertex data, update the CPU copy (background)
1236
+ */
1237
+ void finaliseHeightDeltas(const Rect& rect, bool cpuData);
1238
+
1239
+ /** Calculate (or recalculate) the normals on the terrain
1240
+ @param rect Rectangle describing the area of heights that were changed
1241
+ @param outFinalRect Output rectangle describing the area updated
1242
+ @return Pointer to a PixelBox full of normals (caller responsible for deletion)
1243
+ */
1244
+ PixelBox* calculateNormals(const Rect& rect, Rect& outFinalRect);
1245
+
1246
+ /** Finalise the normals.
1247
+ Calculated normals are kept in a separate calculation area to make
1248
+ them safe to perform in a background thread. This call promotes those
1249
+ calculations to the runtime values, and must be called in the main thread.
1250
+ @param rect Rectangle describing the area to finalise
1251
+ @param normalsBox Pointer to a PixelBox full of normals
1252
+ */
1253
+ void finaliseNormals(const Rect& rect, PixelBox* normalsBox);
1254
+
1255
+ /** Calculate (or recalculate) the terrain lightmap
1256
+ @param rect Rectangle describing the area of heights that were changed
1257
+ @param extraTargetRect Rectangle describing a target area of the terrain that
1258
+ needs to be calculated additionally (e.g. from a neighbour)
1259
+ @param outFinalRect Output rectangle describing the area updated in the lightmap
1260
+ @return Pointer to a PixelBox full of lighting data (caller responsible for deletion)
1261
+ */
1262
+ PixelBox* calculateLightmap(const Rect& rect, const Rect& extraTargetRect, Rect& outFinalRect);
1263
+
1264
+ /** Finalise the lightmap.
1265
+ Calculating lightmaps is kept in a separate calculation area to make
1266
+ it safe to perform in a background thread. This call promotes those
1267
+ calculations to the runtime values, and must be called in the main thread.
1268
+ @param rect Rectangle describing the area to finalise
1269
+ @param normalsBox Pointer to a PixelBox full of normals
1270
+ */
1271
+ void finaliseLightmap(const Rect& rect, PixelBox* lightmapBox);
1272
+
1273
+ /** Gets the resolution of the entire terrain (down one edge) at a
1274
+ given LOD level.
1275
+ */
1276
+ uint16 getResolutionAtLod(uint16 lodLevel);
1277
+
1278
+ /** Test for intersection of a given ray with the terrain. If the ray hits
1279
+ the terrain, the point of intersection is returned.
1280
+ @param ray The ray to test for intersection
1281
+ @param cascadeToNeighbours Whether the ray will be projected onto neighbours if
1282
+ no intersection is found
1283
+ @param distanceLimit The distance from the ray origin at which we will stop looking,
1284
+ 0 indicates no limit
1285
+ @return A pair which contains whether the ray hit the terrain and, if so, where.
1286
+ @remarks This can be called from any thread as long as no parallel write to
1287
+ the heightmap data occurs.
1288
+ */
1289
+ std::pair<bool, Vector3> rayIntersects(const Ray& ray,
1290
+ bool cascadeToNeighbours = false, Real distanceLimit = 0); //const;
1291
+
1292
+ /// Get the AABB (local coords) of the entire terrain
1293
+ const AxisAlignedBox& getAABB() const;
1294
+ /// Get the AABB (world coords) of the entire terrain
1295
+ AxisAlignedBox getWorldAABB() const;
1296
+ /// Get the minimum height of the terrain
1297
+ Real getMinHeight() const;
1298
+ /// Get the maximum height of the terrain
1299
+ Real getMaxHeight() const;
1300
+ /// Get the bounding radius of the entire terrain
1301
+ Real getBoundingRadius() const;
1302
+
1303
+ /// Get the material being used for the terrain
1304
+ const MaterialPtr& getMaterial() const;
1305
+ /// Internal getting of material
1306
+ const MaterialPtr& _getMaterial() const { return mMaterial; }
1307
+ /// Get the material being used for the terrain composite map
1308
+ const MaterialPtr& getCompositeMapMaterial() const;
1309
+ /// Internal getting of material for the terrain composite map
1310
+ const MaterialPtr& _getCompositeMapMaterial() const { return mCompositeMapMaterial; }
1311
+
1312
+ /// Get the name of the material being used for the terrain
1313
+ const String& getMaterialName() const { return mMaterialName; }
1314
+
1315
+ /// Overridden from SceneManager::Listener
1316
+ void preFindVisibleObjects(SceneManager* source,
1317
+ SceneManager::IlluminationRenderStage irs, Viewport* v);
1318
+ /// Overridden from SceneManager::Listener
1319
+ void sceneManagerDestroyed(SceneManager* source);
1320
+
1321
+ /// Get the render queue group that this terrain will be rendered into
1322
+ uint8 getRenderQueueGroup(void) const { return mRenderQueueGroup; }
1323
+ /** Set the render queue group that this terrain will be rendered into.
1324
+ @remarks The default is specified in TerrainGlobalOptions
1325
+ */
1326
+ void setRenderQueueGroup(uint8 grp) { mRenderQueueGroup = grp; }
1327
+
1328
+ /// Get the visibility flags for this terrain.
1329
+ uint32 getVisibilityFlags(void) const { return mVisibilityFlags; }
1330
+ /** Set the visibility flags for this terrain.
1331
+ @remarks The default is specified in TerrainGlobalOptions
1332
+ */
1333
+ void setVisibilityFlags(uint32 flags) { mVisibilityFlags = flags; }
1334
+
1335
+ /// Get the query flags for this terrain.
1336
+ uint32 getQueryFlags(void) const { return mQueryFlags; }
1337
+ /** Set the query flags for this terrain.
1338
+ @remarks The default is specified in TerrainGlobalOptions
1339
+ */
1340
+ void setQueryFlags(uint32 flags) { mQueryFlags = flags; }
1341
+
1342
+ /** As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. */
1343
+ void addQueryFlags(uint32 flags) { mQueryFlags |= flags; }
1344
+
1345
+ /* As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. */
1346
+ void removeQueryFlags(uint32 flags) { mQueryFlags &= ~flags; }
1347
+
1348
+
1349
+ /** Retrieve the layer blending map for a given layer, which may
1350
+ be used to edit the blending information for that layer.
1351
+ @note
1352
+ You can only do this after the terrain has been loaded. You may
1353
+ edit the content of the blend layer in another thread, but you
1354
+ may only upload it in the main render thread.
1355
+ @param layerIndex The layer index, which should be 1 or higher (since
1356
+ the bottom layer has no blending).
1357
+ @return Pointer to the TerrainLayerBlendMap requested. The caller must
1358
+ not delete this instance, use freeTemporaryResources if you want
1359
+ to save the memory after completing your editing.
1360
+ */
1361
+ TerrainLayerBlendMap* getLayerBlendMap(uint8 layerIndex);
1362
+
1363
+ /** Get the index of the blend texture that a given layer uses.
1364
+ @param layerIndex The layer index, must be >= 1 and less than the number
1365
+ of layers
1366
+ @return The index of the shared blend texture
1367
+ */
1368
+ uint8 getBlendTextureIndex(uint8 layerIndex) const;
1369
+
1370
+ /// Get the number of blend textures in use
1371
+ uint8 getBlendTextureCount() const;
1372
+ /// Get the number of blend textures needed for a given number of layers
1373
+ uint8 getBlendTextureCount(uint8 numLayers) const;
1374
+
1375
+
1376
+ /** Get the name of the packed blend texture at a specific index.
1377
+ @param textureIndex This is the blend texture index, not the layer index
1378
+ (multiple layers will share a blend texture)
1379
+ */
1380
+ const String& getBlendTextureName(uint8 textureIndex) const;
1381
+
1382
+ /** Set whether a global colour map is enabled.
1383
+ @remarks
1384
+ A global colour map can add variation to your terrain and reduce the
1385
+ perceived tiling effect you might get in areas of continuous lighting
1386
+ and the same texture.
1387
+ The global colour map is only used when the material generator chooses
1388
+ to use it.
1389
+ @note You must only call this from the main render thread
1390
+ @param enabled Whether the global colour map is enabled or not
1391
+ @param size The resolution of the colour map. A value of zero means 'no change'
1392
+ and the default is set in TerrainGlobalOptions.
1393
+ */
1394
+ void setGlobalColourMapEnabled(bool enabled, uint16 size = 0);
1395
+ /// Get whether a global colour map is enabled on this terrain
1396
+ bool getGlobalColourMapEnabled() const { return mGlobalColourMapEnabled; }
1397
+ /// Get the size of the global colour map (if used)
1398
+ uint16 getGlobalColourMapSize() const { return mGlobalColourMapSize; }
1399
+ /// Get access to the global colour map, if enabled
1400
+ const TexturePtr& getGlobalColourMap() const { return mColourMap; }
1401
+
1402
+ /** Widen a rectangular area of terrain to take into account an extrusion vector.
1403
+ @param vec A vector in world space
1404
+ @param inRect Input rectangle
1405
+ @param inRect Output rectangle
1406
+ */
1407
+ void widenRectByVector(const Vector3& vec, const Rect& inRect, Rect& outRect);
1408
+
1409
+ /** Widen a rectangular area of terrain to take into account an extrusion vector,
1410
+ but specify the min / max heights to extrude manually.
1411
+ @param vec A vector in world space
1412
+ @param inRect Input rectangle
1413
+ @param minHeight, maxHeight The extents of the height to extrude
1414
+ @param inRect Output rectangle
1415
+ */
1416
+ void widenRectByVector(const Vector3& vec, const Rect& inRect,
1417
+ Real minHeight, Real maxHeight, Rect& outRect);
1418
+
1419
+ /** Free as many resources as possible for optimal run-time memory use.
1420
+ @remarks
1421
+ This class keeps some temporary storage around in order to make
1422
+ certain actions (such as editing) possible more quickly. Calling this
1423
+ method will cause as many of those resources as possible to be
1424
+ freed. You might want to do this for example when you are finished
1425
+ editing a particular terrain and want to have optimal runtime
1426
+ efficiency.
1427
+ */
1428
+ void freeTemporaryResources();
1429
+
1430
+ /** Get a blend texture with a given index.
1431
+ @param index The blend texture index (note: not layer index; derive
1432
+ the texture index from getLayerBlendTextureIndex)
1433
+ */
1434
+ const TexturePtr& getLayerBlendTexture(uint8 index);
1435
+
1436
+ /** Get the texture index and colour channel of the blend information for
1437
+ a given layer.
1438
+ @param layerIndex The index of the layer (1 or higher, layer 0 has no blend data)
1439
+ @return A pair in which the first value is the texture index, and the
1440
+ second value is the colour channel (RGBA)
1441
+ */
1442
+ std::pair<uint8,uint8> getLayerBlendTextureIndex(uint8 layerIndex);
1443
+
1444
+ /** Request internal implementation options for the terrain material to use,
1445
+ in this case vertex morphing information.
1446
+ The TerrainMaterialGenerator should call this method to specify the
1447
+ options it would like to use when creating a material. Not all the data
1448
+ is guaranteed to be up to date on return from this method - for example som
1449
+ maps may be generated in the background. However, on return from this method
1450
+ all the features that are requested will be referenceable by materials, the
1451
+ data may just take a few frames to be fully populated.
1452
+ @param morph Whether LOD morphing information is required to be calculated
1453
+ */
1454
+ void _setMorphRequired(bool morph) { mLodMorphRequired = morph; }
1455
+ /// Get whether LOD morphing is needed
1456
+ bool _getMorphRequired() const { return mLodMorphRequired; }
1457
+
1458
+ /** Request internal implementation options for the terrain material to use,
1459
+ in this case a terrain-wide normal map.
1460
+ The TerrainMaterialGenerator should call this method to specify the
1461
+ options it would like to use when creating a material. Not all the data
1462
+ is guaranteed to be up to date on return from this method - for example some
1463
+ maps may be generated in the background. However, on return from this method
1464
+ all the features that are requested will be referenceable by materials, the
1465
+ data may just take a few frames to be fully populated.
1466
+ @param normalMap Whether a terrain-wide normal map is requested. This is usually
1467
+ mutually exclusive with the lightmap option.
1468
+ */
1469
+ void _setNormalMapRequired(bool normalMap);
1470
+
1471
+ /** Request internal implementation options for the terrain material to use,
1472
+ in this case a terrain-wide normal map.
1473
+ The TerrainMaterialGenerator should call this method to specify the
1474
+ options it would like to use when creating a material. Not all the data
1475
+ is guaranteed to be up to date on return from this method - for example some
1476
+ maps may be generated in the background. However, on return from this method
1477
+ all the features that are requested will be referenceable by materials, the
1478
+ data may just take a few frames to be fully populated.
1479
+ @param lightMap Whether a terrain-wide lightmap including precalculated
1480
+ lighting is required (light direction in TerrainGlobalOptions)
1481
+ @param shadowsOnly If true, the lightmap contains only shadows,
1482
+ no directional lighting intensity
1483
+ */
1484
+ void _setLightMapRequired(bool lightMap, bool shadowsOnly = false);
1485
+
1486
+ /** Request internal implementation options for the terrain material to use,
1487
+ in this case a terrain-wide composite map.
1488
+ The TerrainMaterialGenerator should call this method to specify the
1489
+ options it would like to use when creating a material. Not all the data
1490
+ is guaranteed to be up to date on return from this method - for example some
1491
+ maps may be generated in the background. However, on return from this method
1492
+ all the features that are requested will be referenceable by materials, the
1493
+ data may just take a few frames to be fully populated.
1494
+ @param compositeMap Whether a terrain-wide composite map is needed. A composite
1495
+ map is a texture with all of the blending and lighting baked in, such that
1496
+ at distance this texture can be used as an approximation of the multi-layer
1497
+ blended material. It is actually up to the material generator to render this
1498
+ composite map, because obviously precisely what it looks like depends on what
1499
+ the main material looks like. For this reason, the composite map is one piece
1500
+ of derived terrain data that is always calculated in the render thread, and
1501
+ usually on the GPU. It is expected that if this option is requested,
1502
+ the material generator will use it to construct distant LOD techniques.
1503
+ */
1504
+ void _setCompositeMapRequired(bool compositeMap);
1505
+
1506
+ /// Whether we're using vertex compression or not
1507
+ bool _getUseVertexCompression() const;
1508
+
1509
+ /// WorkQueue::RequestHandler override
1510
+ bool canHandleRequest(const WorkQueue::Request* req, const WorkQueue* srcQ);
1511
+ /// WorkQueue::RequestHandler override
1512
+ WorkQueue::Response* handleRequest(const WorkQueue::Request* req, const WorkQueue* srcQ);
1513
+ /// WorkQueue::ResponseHandler override
1514
+ bool canHandleResponse(const WorkQueue::Response* res, const WorkQueue* srcQ);
1515
+ /// WorkQueue::ResponseHandler override
1516
+ void handleResponse(const WorkQueue::Response* res, const WorkQueue* srcQ);
1517
+
1518
+ static const uint16 WORKQUEUE_DERIVED_DATA_REQUEST;
1519
+
1520
+
1521
+ /// Utility method, get the first LOD Level at which this vertex is no longer included
1522
+ uint16 getLODLevelWhenVertexEliminated(long x, long y);
1523
+ /// Utility method, get the first LOD Level at which this vertex is no longer included
1524
+ uint16 getLODLevelWhenVertexEliminated(long rowOrColulmn);
1525
+
1526
+
1527
+ /// Get the top level of the quad tree which is used to divide up the terrain
1528
+ TerrainQuadTreeNode* getQuadTree() { return mQuadTree; }
1529
+
1530
+ /// Get the (global) normal map texture
1531
+ TexturePtr getTerrainNormalMap() const { return mTerrainNormalMap; }
1532
+
1533
+ /** Retrieve the terrain's neighbour, or null if not present.
1534
+ @remarks
1535
+ Terrains only know about their neighbours if they are notified via
1536
+ setNeighbour. This information is not saved with the terrain since every
1537
+ tile must be able to be independent.
1538
+ @param index The index of the neighbour
1539
+ */
1540
+ Terrain* getNeighbour(NeighbourIndex index);
1541
+
1542
+ /** Set a terrain's neighbour, or null to detach one.
1543
+ @remarks
1544
+ This information is not saved with the terrain since every
1545
+ tile must be able to be independent. However if modifications are
1546
+ made to a tile which can affect its neighbours, while connected the
1547
+ changes will be propagated.
1548
+ @param index The index of the neighbour
1549
+ @param neighbour The terrain instance to become the neighbour, or null to reset.
1550
+ @param recalculate If true, this terrain instance will recalculate elements
1551
+ that could be affected by the connection of this tile (e.g. matching
1552
+ heights, calcaulting normals, calculating shadows crossing the boundary).
1553
+ If false, this terrain's state is assumed to be up to date already
1554
+ (e.g. was calculated with this tile present before and the state saved).
1555
+ @param notifyOther Whether the neighbour should also be notified (recommended
1556
+ to leave this at the default so relationships are up to date before
1557
+ background updates are triggered)
1558
+ */
1559
+ void setNeighbour(NeighbourIndex index, Terrain* neighbour, bool recalculate = false, bool notifyOther = true);
1560
+
1561
+ /** Get the opposite neighbour relationship (useful for finding the
1562
+ neighbour index from the perspective of the tile the other side of the
1563
+ boundary).
1564
+ */
1565
+ static NeighbourIndex getOppositeNeighbour(NeighbourIndex index);
1566
+
1567
+ /** Get the neighbour enum for a given offset in a grid (signed).
1568
+ */
1569
+ static NeighbourIndex getNeighbourIndex(long offsetx, long offsety);
1570
+
1571
+ /** Tell this instance to notify all neighbours that will be affected
1572
+ by a height change that has taken place.
1573
+ @remarks
1574
+ This method will determine which neighbours need notification and call
1575
+ their neighbourModified method. It is called automatically by
1576
+ updateGeometry().
1577
+ */
1578
+ void notifyNeighbours();
1579
+
1580
+ /** Notify that a neighbour has just finished updating and that this
1581
+ change affects this tile.
1582
+ @param index The neighbour index (from this tile's perspective)
1583
+ @param edgerect The area at the edge of this tile that needs height / normal
1584
+ recalculation (may be null)
1585
+ @param shadowrect The area on this tile where shadows need recalculating (may be null)
1586
+ */
1587
+ void neighbourModified(NeighbourIndex index, const Rect& edgerect, const Rect& shadowrect);
1588
+
1589
+ /** Utility method to pick a neighbour based on a ray.
1590
+ @param ray The ray in world space
1591
+ @param distanceLimit Limit beyond which we want to ignore neighbours (0 for infinite)
1592
+ @return The first neighbour along this ray, or null
1593
+ */
1594
+ Terrain* raySelectNeighbour(const Ray& ray, Real distanceLimit = 0);
1595
+
1596
+ /** Dump textures to files.
1597
+ @remarks
1598
+ This is a debugging method.
1599
+ */
1600
+ void _dumpTextures(const String& prefix, const String& suffix);
1601
+
1602
+ /** Query whether a derived data update is in progress or not. */
1603
+ bool isDerivedDataUpdateInProgress() const { return mDerivedDataUpdateInProgress; }
1604
+
1605
+
1606
+ /// Utility method to convert axes from world space to terrain space (xy terrain, z up)
1607
+ static void convertWorldToTerrainAxes(Alignment align, const Vector3& worldVec, Vector3* terrainVec);
1608
+ /// Utility method to convert axes from terrain space (xy terrain, z up) tp world space
1609
+ static void convertTerrainToWorldAxes(Alignment align, const Vector3& terrainVec, Vector3* worldVec);
1610
+
1611
+ /// Utility method to write a layer declaration to a stream
1612
+ static void writeLayerDeclaration(const TerrainLayerDeclaration& decl, StreamSerialiser& ser);
1613
+ /// Utility method to read a layer declaration from a stream
1614
+ static bool readLayerDeclaration(StreamSerialiser& ser, TerrainLayerDeclaration& targetdecl);
1615
+ /// Utility method to write a layer instance list to a stream
1616
+ static void writeLayerInstanceList(const Terrain::LayerInstanceList& lst, StreamSerialiser& ser);
1617
+ /// Utility method to read a layer instance list from a stream
1618
+ static bool readLayerInstanceList(StreamSerialiser& ser, size_t numSamplers, Terrain::LayerInstanceList& targetlst);
1619
+ protected:
1620
+
1621
+ void freeCPUResources();
1622
+ void freeGPUResources();
1623
+ void determineLodLevels();
1624
+ void distributeVertexData();
1625
+ void updateBaseScale();
1626
+ void createGPUBlendTextures();
1627
+ void createLayerBlendMaps();
1628
+ void createOrDestroyGPUNormalMap();
1629
+ void createOrDestroyGPUColourMap();
1630
+ void createOrDestroyGPULightmap();
1631
+ void createOrDestroyGPUCompositeMap();
1632
+ void waitForDerivedProcesses();
1633
+ void convertSpace(Space inSpace, const Vector3& inVec, Space outSpace, Vector3& outVec, bool translation) const;
1634
+ Vector3 convertWorldToTerrainAxes(const Vector3& inVec) const;
1635
+ Vector3 convertTerrainToWorldAxes(const Vector3& inVec) const;
1636
+ /** Get a Vector3 of the world-space point on the terrain, aligned Y-up always.
1637
+ @note This point is relative to Terrain::getPosition
1638
+ */
1639
+ void getPointAlign(long x, long y, Alignment align, Vector3* outpos);
1640
+ /** Get a Vector3 of the world-space point on the terrain, supplying the
1641
+ height data manually (can be more optimal).
1642
+ @note This point is relative to Terrain::getPosition
1643
+ */
1644
+ void getPointAlign(long x, long y, float height, Alignment align, Vector3* outpos);
1645
+ void calculateCurrentLod(Viewport* vp);
1646
+ /// Test a single quad of the terrain for ray intersection.
1647
+ std::pair<bool, Vector3> checkQuadIntersection(int x, int y, const Ray& ray); //const;
1648
+
1649
+ /// Delete blend maps for all layers >= lowIndex
1650
+ void deleteBlendMaps(uint8 lowIndex);
1651
+ /// Shift/slide all GPU blend texture channels > index up one slot. Blend data may shift into the next texture
1652
+ void shiftUpGPUBlendChannels(uint8 index);
1653
+ /// Shift/slide all GPU blend texture channels > index down one slot. Blend data may shift into the previous texture
1654
+ void shiftDownGPUBlendChannels(uint8 index);
1655
+ /// Copy a GPU blend channel from one source to another. Source and Dest are not required to be in the same texture
1656
+ void copyBlendTextureChannel(uint8 srcIndex, uint8 srcChannel, uint8 destIndex, uint8 destChannel );
1657
+ /// Reset a blend channel back to full black
1658
+ void clearGPUBlendChannel(uint8 index, uint channel);
1659
+
1660
+ void copyGlobalOptions();
1661
+ void checkLayers(bool includeGPUResources);
1662
+ void checkDeclaration();
1663
+ void deriveUVMultipliers();
1664
+ PixelFormat getBlendTextureFormat(uint8 textureIndex, uint8 numLayers);
1665
+
1666
+ void updateDerivedDataImpl(const Rect& rect, const Rect& lightmapExtraRect, bool synchronous, uint8 typeMask);
1667
+
1668
+ void getEdgeRect(NeighbourIndex index, long range, Rect* outRect);
1669
+ // get the equivalent of the passed in edge rectangle in neighbour
1670
+ void getNeighbourEdgeRect(NeighbourIndex index, const Rect& inRect, Rect* outRect);
1671
+ // get the equivalent of the passed in edge point in neighbour
1672
+ void getNeighbourPoint(NeighbourIndex index, long x, long y, long *outx, long *outy);
1673
+ // overflow a point into a neighbour index and point
1674
+ void getNeighbourPointOverflow(long x, long y, NeighbourIndex *outindex, long *outx, long *outy);
1675
+
1676
+
1677
+
1678
+ uint16 mWorkQueueChannel;
1679
+ SceneManager* mSceneMgr;
1680
+ SceneNode* mRootNode;
1681
+ String mResourceGroup;
1682
+ bool mIsLoaded;
1683
+ bool mModified;
1684
+ bool mHeightDataModified;
1685
+
1686
+ /// The height data (world coords relative to mPos)
1687
+ float* mHeightData;
1688
+ /// The delta information defining how a vertex moves before it is removed at a lower LOD
1689
+ float* mDeltaData;
1690
+ Alignment mAlign;
1691
+ Real mWorldSize;
1692
+ uint16 mSize;
1693
+ uint16 mMaxBatchSize;
1694
+ uint16 mMinBatchSize;
1695
+ Vector3 mPos;
1696
+ TerrainQuadTreeNode* mQuadTree;
1697
+ uint16 mNumLodLevels;
1698
+ uint16 mNumLodLevelsPerLeafNode;
1699
+ uint16 mTreeDepth;
1700
+ /// Base position in world space, relative to mPos
1701
+ Real mBase;
1702
+ /// Relationship between one point on the terrain and world size
1703
+ Real mScale;
1704
+ TerrainLayerDeclaration mLayerDecl;
1705
+ LayerInstanceList mLayers;
1706
+ RealVector mLayerUVMultiplier;
1707
+
1708
+ Real mSkirtSize;
1709
+ uint8 mRenderQueueGroup;
1710
+ uint32 mVisibilityFlags;
1711
+ uint32 mQueryFlags;
1712
+
1713
+ Rect mDirtyGeometryRect;
1714
+ Rect mDirtyDerivedDataRect;
1715
+ Rect mDirtyGeometryRectForNeighbours;
1716
+ Rect mDirtyLightmapFromNeighboursRect;
1717
+ bool mDerivedDataUpdateInProgress;
1718
+ uint8 mDerivedUpdatePendingMask; // if another update is requested while one is already running
1719
+
1720
+ /// A data holder for communicating with the background derived data update
1721
+ struct DerivedDataRequest
1722
+ {
1723
+ Terrain* terrain;
1724
+ // types requested
1725
+ uint8 typeMask;
1726
+ Rect dirtyRect;
1727
+ Rect lightmapExtraDirtyRect;
1728
+ _OgreTerrainExport friend std::ostream& operator<<(std::ostream& o, const DerivedDataRequest& r)
1729
+ { return o; }
1730
+ };
1731
+
1732
+ /// A data holder for communicating with the background derived data update
1733
+ struct DerivedDataResponse
1734
+ {
1735
+ Terrain* terrain;
1736
+ // remaining types not yet processed
1737
+ uint8 remainingTypeMask;
1738
+ // The area of deltas that was updated
1739
+ Rect deltaUpdateRect;
1740
+ // the area of normals that was updated
1741
+ Rect normalUpdateRect;
1742
+ // the area of lightmap that was updated
1743
+ Rect lightmapUpdateRect;
1744
+ // all CPU-side data, independent of textures; to be blitted in main thread
1745
+ PixelBox* normalMapBox;
1746
+ PixelBox* lightMapBox;
1747
+ _OgreTerrainExport friend std::ostream& operator<<(std::ostream& o, const DerivedDataResponse& r)
1748
+ { return o; }
1749
+ };
1750
+
1751
+ String mMaterialName;
1752
+ mutable MaterialPtr mMaterial;
1753
+ mutable TerrainMaterialGeneratorPtr mMaterialGenerator;
1754
+ mutable unsigned long long int mMaterialGenerationCount;
1755
+ mutable bool mMaterialDirty;
1756
+ mutable bool mMaterialParamsDirty;
1757
+
1758
+ uint16 mLayerBlendMapSize;
1759
+ uint16 mLayerBlendMapSizeActual;
1760
+ typedef vector<uint8*>::type BytePointerList;
1761
+ /// Staging post for blend map data
1762
+ BytePointerList mCpuBlendMapStorage;
1763
+ typedef vector<TexturePtr>::type TexturePtrList;
1764
+ TexturePtrList mBlendTextureList;
1765
+ TerrainLayerBlendMapList mLayerBlendMapList;
1766
+
1767
+ uint16 mGlobalColourMapSize;
1768
+ bool mGlobalColourMapEnabled;
1769
+ TexturePtr mColourMap;
1770
+ uint8* mCpuColourMapStorage;
1771
+
1772
+ uint16 mLightmapSize;
1773
+ uint16 mLightmapSizeActual;
1774
+ TexturePtr mLightmap;
1775
+ uint8* mCpuLightmapStorage;
1776
+
1777
+ uint16 mCompositeMapSize;
1778
+ uint16 mCompositeMapSizeActual;
1779
+ TexturePtr mCompositeMap;
1780
+ uint8* mCpuCompositeMapStorage;
1781
+ Rect mCompositeMapDirtyRect;
1782
+ unsigned long mCompositeMapUpdateCountdown;
1783
+ unsigned long mLastMillis;
1784
+ /// true if the updates included lightmap changes (widen)
1785
+ bool mCompositeMapDirtyRectLightmapUpdate;
1786
+ mutable MaterialPtr mCompositeMapMaterial;
1787
+
1788
+
1789
+ static NameGenerator msBlendTextureGenerator;
1790
+ static NameGenerator msNormalMapNameGenerator;
1791
+ static NameGenerator msLightmapNameGenerator;
1792
+ static NameGenerator msCompositeMapNameGenerator;
1793
+
1794
+ bool mLodMorphRequired;
1795
+ bool mNormalMapRequired;
1796
+ bool mLightMapRequired;
1797
+ bool mLightMapShadowsOnly;
1798
+ bool mCompositeMapRequired;
1799
+ /// Texture storing normals for the whole terrrain
1800
+ TexturePtr mTerrainNormalMap;
1801
+
1802
+ /// Pending data
1803
+ PixelBox* mCpuTerrainNormalMap;
1804
+
1805
+ const Camera* mLastLODCamera;
1806
+ unsigned long mLastLODFrame;
1807
+ int mLastViewportHeight;
1808
+
1809
+ Terrain* mNeighbours[NEIGHBOUR_COUNT];
1810
+
1811
+ GpuBufferAllocator* mCustomGpuBufferAllocator;
1812
+ DefaultGpuBufferAllocator mDefaultGpuBufferAllocator;
1813
+
1814
+ size_t getPositionBufVertexSize() const;
1815
+ size_t getDeltaBufVertexSize() const;
1816
+
1817
+ };
1818
+
1819
+
1820
+ /** Options class which just stores default options for the terrain.
1821
+ @remarks
1822
+ None of these options are stored with the terrain when saved. They are
1823
+ options that you can use to modify the behaviour of the terrain when it
1824
+ is loaded or created.
1825
+ @note
1826
+ You should construct a single instance of this class per application and
1827
+ do so before you start working with any other terrain classes.
1828
+ */
1829
+ class _OgreTerrainExport TerrainGlobalOptions : public TerrainAlloc, public Singleton<TerrainGlobalOptions>
1830
+ {
1831
+ protected:
1832
+
1833
+ Real mSkirtSize;
1834
+ Vector3 mLightMapDir;
1835
+ bool mCastsShadows;
1836
+ Real mMaxPixelError;
1837
+ uint8 mRenderQueueGroup;
1838
+ uint32 mVisibilityFlags;
1839
+ uint32 mQueryFlags;
1840
+ bool mUseRayBoxDistanceCalculation;
1841
+ TerrainMaterialGeneratorPtr mDefaultMaterialGenerator;
1842
+ uint16 mLayerBlendMapSize;
1843
+ Real mDefaultLayerTextureWorldSize;
1844
+ uint16 mDefaultGlobalColourMapSize;
1845
+ uint16 mLightmapSize;
1846
+ uint16 mCompositeMapSize;
1847
+ ColourValue mCompositeMapAmbient;
1848
+ ColourValue mCompositeMapDiffuse;
1849
+ Real mCompositeMapDistance;
1850
+ String mResourceGroup;
1851
+ bool mUseVertexCompressionWhenAvailable;
1852
+
1853
+ public:
1854
+ TerrainGlobalOptions();
1855
+ virtual ~TerrainGlobalOptions() {}
1856
+
1857
+
1858
+ /** The default size of 'skirts' used to hide terrain cracks
1859
+ (default 10)
1860
+ */
1861
+ Real getSkirtSize() { return mSkirtSize; }
1862
+ /** method - the default size of 'skirts' used to hide terrain cracks
1863
+ (default 10)
1864
+ @remarks
1865
+ Changing this value only applies to Terrain instances loaded / reloaded afterwards.
1866
+ */
1867
+ void setSkirtSize(Real skirtSz) { mSkirtSize = skirtSz; }
1868
+ /// Get the shadow map light direction to use (world space)
1869
+ const Vector3& getLightMapDirection() { return mLightMapDir; }
1870
+ /** Set the shadow map light direction to use (world space). */
1871
+ void setLightMapDirection(const Vector3& v) { mLightMapDir = v; }
1872
+ /// Get the composite map ambient light to use
1873
+ const ColourValue& getCompositeMapAmbient() { return mCompositeMapAmbient; }
1874
+ /// Set the composite map ambient light to use
1875
+ void setCompositeMapAmbient(const ColourValue& c) { mCompositeMapAmbient = c; }
1876
+ /// Get the composite map iffuse light to use
1877
+ const ColourValue& getCompositeMapDiffuse() { return mCompositeMapDiffuse; }
1878
+ /// Set the composite map diffuse light to use
1879
+ void setCompositeMapDiffuse(const ColourValue& c) { mCompositeMapDiffuse = c; }
1880
+ /// Get the distance at which to start using a composite map if present
1881
+ Real getCompositeMapDistance() { return mCompositeMapDistance; }
1882
+ /// Set the distance at which to start using a composite map if present
1883
+ void setCompositeMapDistance(Real c) { mCompositeMapDistance = c; }
1884
+
1885
+
1886
+ /** Whether the terrain will be able to cast shadows (texture shadows
1887
+ only are supported, and you must be using depth shadow maps).
1888
+ */
1889
+ bool getCastsDynamicShadows() { return mCastsShadows; }
1890
+
1891
+ /** Whether the terrain will be able to cast shadows (texture shadows
1892
+ only are supported, and you must be using depth shadow maps).
1893
+ This value can be set dynamically, and affects all existing terrains.
1894
+ It defaults to false.
1895
+ */
1896
+ void setCastsDynamicShadows(bool s) { mCastsShadows = s; }
1897
+
1898
+ /** Get the maximum screen pixel error that should be allowed when rendering. */
1899
+ Real getMaxPixelError() { return mMaxPixelError; }
1900
+
1901
+ /** Set the maximum screen pixel error that should be allowed when rendering.
1902
+ @note
1903
+ This value can be varied dynamically and affects all existing terrains.
1904
+ It will be weighted by the LOD bias on viewports.
1905
+ */
1906
+ void setMaxPixelError(Real pixerr) { mMaxPixelError = pixerr; }
1907
+
1908
+ /// Get the render queue group that this terrain will be rendered into
1909
+ uint8 getRenderQueueGroup(void) { return mRenderQueueGroup; }
1910
+ /** Set the render queue group that terrains will be rendered into.
1911
+ @remarks This applies to newly created terrains, after which they will
1912
+ maintain their own queue group settings
1913
+ */
1914
+ void setRenderQueueGroup(uint8 grp) { mRenderQueueGroup = grp; }
1915
+
1916
+ /// Get the visbility flags that terrains will be rendered with
1917
+ uint32 getVisibilityFlags(void) { return mVisibilityFlags; }
1918
+ /** Set the visbility flags that terrains will be rendered with
1919
+ @remarks This applies to newly created terrains, after which they will
1920
+ maintain their own settings
1921
+ */
1922
+ void setVisibilityFlags(uint32 flags) { mVisibilityFlags = flags; }
1923
+
1924
+ /** Set the default query flags for terrains.
1925
+ @remarks This applies to newly created terrains, after which they will
1926
+ maintain their own settings
1927
+ */
1928
+ void setQueryFlags(uint32 flags) { mQueryFlags = flags; }
1929
+ /** Get the default query flags for terrains.
1930
+ */
1931
+ uint32 getQueryFlags(void) { return mQueryFlags; }
1932
+
1933
+ /** As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. */
1934
+ void addQueryFlags(uint32 flags) { mQueryFlags |= flags; }
1935
+
1936
+ /* As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. */
1937
+ void removeQueryFlags(uint32 flags) { mQueryFlags &= ~flags; }
1938
+
1939
+ /** Returns whether or not to use an accurate calculation of camera distance
1940
+ from a terrain tile (ray / AABB intersection) or whether to use the
1941
+ simpler distance from the tile centre.
1942
+ */
1943
+ bool getUseRayBoxDistanceCalculation() { return mUseRayBoxDistanceCalculation; }
1944
+
1945
+ /** Sets whether to use an accurate ray / box intersection to determine
1946
+ distance from a terrain tile, or whether to use the simple distance
1947
+ from the tile centre.
1948
+ Using ray/box intersection will result in higher detail terrain because
1949
+ the LOD calculation is more conservative, assuming the 'worst case scenario'
1950
+ of a large height difference at the edge of a tile. This is guaranteed to give you at least
1951
+ the max pixel error or better, but will often give you more detail than
1952
+ you need. Not using the ray/box method is cheaper but will only use
1953
+ the max pixel error as a guide, the actual error will vary above and
1954
+ below that. The default is not to use the ray/box approach.
1955
+ */
1956
+ void setUseRayBoxDistanceCalculation(bool rb) { mUseRayBoxDistanceCalculation = rb; }
1957
+
1958
+ /** Get the default material generator.
1959
+ */
1960
+ TerrainMaterialGeneratorPtr getDefaultMaterialGenerator();
1961
+
1962
+ /** Set the default material generator.
1963
+ */
1964
+ void setDefaultMaterialGenerator(TerrainMaterialGeneratorPtr gen);
1965
+
1966
+ /** Get the default size of the blend maps for a new terrain.
1967
+ */
1968
+ uint16 getLayerBlendMapSize() { return mLayerBlendMapSize; }
1969
+
1970
+ /** Sets the default size of blend maps for a new terrain.
1971
+ This is the resolution of each blending layer for a new terrain.
1972
+ Once created, this information will be stored with the terrain.
1973
+ */
1974
+ void setLayerBlendMapSize(uint16 sz) { mLayerBlendMapSize = sz;}
1975
+
1976
+ /** Get the default world size for a layer 'splat' texture to cover.
1977
+ */
1978
+ Real getDefaultLayerTextureWorldSize() { return mDefaultLayerTextureWorldSize; }
1979
+
1980
+ /** Set the default world size for a layer 'splat' texture to cover.
1981
+ */
1982
+ void setDefaultLayerTextureWorldSize(Real sz) { mDefaultLayerTextureWorldSize = sz; }
1983
+
1984
+ /** Get the default size of the terrain global colour map for a new terrain.
1985
+ */
1986
+ uint16 getDefaultGlobalColourMapSize() { return mDefaultGlobalColourMapSize; }
1987
+
1988
+ /** Set the default size of the terrain global colour map for a new terrain.
1989
+ Once created, this information will be stored with the terrain.
1990
+ */
1991
+ void setDefaultGlobalColourMapSize(uint16 sz) { mDefaultGlobalColourMapSize = sz;}
1992
+
1993
+
1994
+ /** Get the default size of the lightmaps for a new terrain.
1995
+ */
1996
+ uint16 getLightMapSize() { return mLightmapSize; }
1997
+
1998
+ /** Sets the default size of lightmaps for a new terrain.
1999
+ */
2000
+ void setLightMapSize(uint16 sz) { mLightmapSize = sz;}
2001
+
2002
+ /** Get the default size of the composite maps for a new terrain.
2003
+ */
2004
+ uint16 getCompositeMapSize() { return mCompositeMapSize; }
2005
+
2006
+ /** Sets the default size of composite maps for a new terrain.
2007
+ */
2008
+ void setCompositeMapSize(uint16 sz) { mCompositeMapSize = sz;}
2009
+
2010
+ /** Set the default resource group to use to load / save terrains.
2011
+ */
2012
+ void setDefaultResourceGroup(const String& grp) { mResourceGroup = grp; }
2013
+
2014
+ /** Get the default resource group to use to load / save terrains.
2015
+ */
2016
+ const String& getDefaultResourceGroup() { return mResourceGroup; }
2017
+
2018
+ /** Get whether to allow vertex compression to be used when the material
2019
+ generator states that it supports it.
2020
+ */
2021
+ bool getUseVertexCompressionWhenAvailable() const { return mUseVertexCompressionWhenAvailable; }
2022
+
2023
+ /** Set whether to allow vertex compression to be used when the material
2024
+ generator states that it supports it.
2025
+ @note You should only call this before creating any terrain instances.
2026
+ The default is true, so if a material generator supports compressed vertices,
2027
+ and so does the hardware (this basically means shader support), they will be used).
2028
+ However you can disable this in an emergency if required.
2029
+ */
2030
+ void setUseVertexCompressionWhenAvailable(bool enable) { mUseVertexCompressionWhenAvailable = enable; }
2031
+
2032
+ /** Override standard Singleton retrieval.
2033
+ @remarks
2034
+ Why do we do this? Well, it's because the Singleton
2035
+ implementation is in a .h file, which means it gets compiled
2036
+ into anybody who includes it. This is needed for the
2037
+ Singleton template to work, but we actually only want it
2038
+ compiled into the implementation of the class based on the
2039
+ Singleton, not all of them. If we don't change this, we get
2040
+ link errors when trying to use the Singleton-based class from
2041
+ an outside dll.
2042
+ @par
2043
+ This method just delegates to the template version anyway,
2044
+ but the implementation stays in this single compilation unit,
2045
+ preventing link errors.
2046
+ */
2047
+ static TerrainGlobalOptions& getSingleton(void);
2048
+ /** Override standard Singleton retrieval.
2049
+ @remarks
2050
+ Why do we do this? Well, it's because the Singleton
2051
+ implementation is in a .h file, which means it gets compiled
2052
+ into anybody who includes it. This is needed for the
2053
+ Singleton template to work, but we actually only want it
2054
+ compiled into the implementation of the class based on the
2055
+ Singleton, not all of them. If we don't change this, we get
2056
+ link errors when trying to use the Singleton-based class from
2057
+ an outside dll.
2058
+ @par
2059
+ This method just delegates to the template version anyway,
2060
+ but the implementation stays in this single compilation unit,
2061
+ preventing link errors.
2062
+ */
2063
+ static TerrainGlobalOptions* getSingletonPtr(void);
2064
+
2065
+
2066
+ };
2067
+
2068
+
2069
+ /** @} */
2070
+ /** @} */
2071
+ }
2072
+
2073
+
2074
+
2075
+
2076
+ #endif