ris-framework 0.1.0-dev.7 → 0.1.0-dev.9

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 (655) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/LICENSE +202 -21
  3. package/NOTICE +2 -0
  4. package/README.md +29 -47
  5. package/THIRD_PARTY_NOTICES.md +1 -1
  6. package/dist/{core/Framework.d.ts → Framework.d.ts} +10 -8
  7. package/dist/Framework.d.ts.map +1 -0
  8. package/dist/api/FrameworkConfiguration.d.ts +23 -0
  9. package/dist/api/FrameworkConfiguration.d.ts.map +1 -0
  10. package/dist/api/IFramework.d.ts +125 -0
  11. package/dist/api/IFramework.d.ts.map +1 -0
  12. package/dist/api/IFrameworkConfiguration.d.ts +25 -0
  13. package/dist/api/IFrameworkConfiguration.d.ts.map +1 -0
  14. package/dist/api/_export.d.ts +27 -0
  15. package/dist/api/_export.d.ts.map +1 -0
  16. package/dist/api/camera/CameraFactory.d.ts +25 -0
  17. package/dist/api/camera/CameraFactory.d.ts.map +1 -0
  18. package/dist/api/camera/ICamera.d.ts +43 -0
  19. package/dist/api/camera/ICamera.d.ts.map +1 -0
  20. package/dist/api/camera/ICameraFactory.d.ts +46 -0
  21. package/dist/api/camera/ICameraFactory.d.ts.map +1 -0
  22. package/dist/api/camera/IOrthographicCamera.d.ts +31 -0
  23. package/dist/api/camera/IOrthographicCamera.d.ts.map +1 -0
  24. package/dist/api/camera/OrbitCamera.d.ts +120 -0
  25. package/dist/api/camera/OrbitCamera.d.ts.map +1 -0
  26. package/dist/api/camera/OrthographicCamera.d.ts +96 -0
  27. package/dist/api/camera/OrthographicCamera.d.ts.map +1 -0
  28. package/dist/api/camera/PerspectiveCamera.d.ts +108 -0
  29. package/dist/api/camera/PerspectiveCamera.d.ts.map +1 -0
  30. package/dist/api/camera/_export.d.ts +8 -0
  31. package/dist/api/camera/_export.d.ts.map +1 -0
  32. package/dist/api/content/ContentConfig.d.ts +11 -0
  33. package/dist/api/content/ContentConfig.d.ts.map +1 -0
  34. package/dist/{core → api}/content/ContentManager.d.ts +3 -2
  35. package/dist/api/content/ContentManager.d.ts.map +1 -0
  36. package/dist/api/content/IContent.d.ts +8 -0
  37. package/dist/api/content/IContent.d.ts.map +1 -0
  38. package/dist/api/content/IContentManager.d.ts +37 -0
  39. package/dist/api/content/IContentManager.d.ts.map +1 -0
  40. package/dist/api/content/IContentModule.d.ts +58 -0
  41. package/dist/api/content/IContentModule.d.ts.map +1 -0
  42. package/dist/api/content/ShaderModuleContent.d.ts.map +1 -0
  43. package/dist/api/content/_export-content.d.ts +5 -0
  44. package/dist/api/content/_export-content.d.ts.map +1 -0
  45. package/dist/api/core/IDisposable.d.ts +10 -0
  46. package/dist/api/core/IDisposable.d.ts.map +1 -0
  47. package/dist/api/core/_export-core.d.ts +2 -0
  48. package/dist/api/core/_export-core.d.ts.map +1 -0
  49. package/dist/api/data/Color.d.ts +119 -0
  50. package/dist/api/data/Color.d.ts.map +1 -0
  51. package/dist/api/data/Rect.d.ts +61 -0
  52. package/dist/api/data/Rect.d.ts.map +1 -0
  53. package/dist/api/data/State.d.ts +11 -0
  54. package/dist/api/data/State.d.ts.map +1 -0
  55. package/dist/api/data/_export.d.ts +4 -0
  56. package/dist/api/data/_export.d.ts.map +1 -0
  57. package/dist/{geometry → api/geometry}/BaseGeometry.d.ts +5 -2
  58. package/dist/api/geometry/BaseGeometry.d.ts.map +1 -0
  59. package/dist/{geometry → api/geometry}/GeometryBuilder.d.ts +1 -1
  60. package/dist/api/geometry/GeometryBuilder.d.ts.map +1 -0
  61. package/dist/api/geometry/GeometryFormat.d.ts +34 -0
  62. package/dist/api/geometry/GeometryFormat.d.ts.map +1 -0
  63. package/dist/api/geometry/IGeometry.d.ts +54 -0
  64. package/dist/api/geometry/IGeometry.d.ts.map +1 -0
  65. package/dist/api/geometry/IGeometryBuilder.d.ts +15 -0
  66. package/dist/api/geometry/IGeometryBuilder.d.ts.map +1 -0
  67. package/dist/api/geometry/VertexFormat.d.ts.map +1 -0
  68. package/dist/api/geometry/_export-geometry.d.ts +5 -0
  69. package/dist/api/geometry/_export-geometry.d.ts.map +1 -0
  70. package/dist/api/image/CpuImageProcessor.d.ts +16 -0
  71. package/dist/api/image/CpuImageProcessor.d.ts.map +1 -0
  72. package/dist/api/image/IImageProcessor.d.ts +26 -0
  73. package/dist/api/image/IImageProcessor.d.ts.map +1 -0
  74. package/dist/api/image/RawImageData.d.ts +34 -0
  75. package/dist/api/image/RawImageData.d.ts.map +1 -0
  76. package/dist/api/image/_export.d.ts +4 -0
  77. package/dist/api/image/_export.d.ts.map +1 -0
  78. package/dist/api/index.d.ts +2 -0
  79. package/dist/api/index.d.ts.map +1 -0
  80. package/dist/api/input/IInputManager.d.ts +53 -0
  81. package/dist/api/input/IInputManager.d.ts.map +1 -0
  82. package/dist/api/input/InputDeviceType.d.ts +18 -0
  83. package/dist/api/input/InputDeviceType.d.ts.map +1 -0
  84. package/dist/api/input/InputManager.d.ts +73 -0
  85. package/dist/api/input/InputManager.d.ts.map +1 -0
  86. package/dist/api/input/Key.d.ts +36 -0
  87. package/dist/api/input/Key.d.ts.map +1 -0
  88. package/dist/api/input/KeyboardState.d.ts +37 -0
  89. package/dist/api/input/KeyboardState.d.ts.map +1 -0
  90. package/dist/api/input/_export.d.ts +14 -0
  91. package/dist/api/input/_export.d.ts.map +1 -0
  92. package/dist/api/input/gamepad/Button.d.ts +22 -0
  93. package/dist/api/input/gamepad/Button.d.ts.map +1 -0
  94. package/dist/api/input/gamepad/GamePadState.d.ts +48 -0
  95. package/dist/api/input/gamepad/GamePadState.d.ts.map +1 -0
  96. package/dist/api/input/gamepad/GamePadThumbSticks.d.ts +17 -0
  97. package/dist/api/input/gamepad/GamePadThumbSticks.d.ts.map +1 -0
  98. package/dist/api/input/mouse/MouseButton.d.ts +10 -0
  99. package/dist/api/input/mouse/MouseButton.d.ts.map +1 -0
  100. package/dist/api/input/mouse/MouseState.d.ts +52 -0
  101. package/dist/api/input/mouse/MouseState.d.ts.map +1 -0
  102. package/dist/api/input/touch/TouchCollection.d.ts +79 -0
  103. package/dist/api/input/touch/TouchCollection.d.ts.map +1 -0
  104. package/dist/api/input/touch/TouchLocation.d.ts +80 -0
  105. package/dist/api/input/touch/TouchLocation.d.ts.map +1 -0
  106. package/dist/api/input/touch/TouchLocationState.d.ts +16 -0
  107. package/dist/api/input/touch/TouchLocationState.d.ts.map +1 -0
  108. package/dist/api/input/touch/TouchPanelCapabilities.d.ts +24 -0
  109. package/dist/api/input/touch/TouchPanelCapabilities.d.ts.map +1 -0
  110. package/dist/api/loaders/IImageLoader.d.ts +20 -0
  111. package/dist/api/loaders/IImageLoader.d.ts.map +1 -0
  112. package/dist/api/loaders/ImageLoader.d.ts +36 -0
  113. package/dist/api/loaders/ImageLoader.d.ts.map +1 -0
  114. package/dist/api/loaders/_export.d.ts +3 -0
  115. package/dist/api/loaders/_export.d.ts.map +1 -0
  116. package/dist/api/material/IMaterial.d.ts +35 -0
  117. package/dist/api/material/IMaterial.d.ts.map +1 -0
  118. package/dist/api/material/IMaterialFactory.d.ts +19 -0
  119. package/dist/api/material/IMaterialFactory.d.ts.map +1 -0
  120. package/dist/api/material/InspectTextureMipsMaterial.d.ts +58 -0
  121. package/dist/api/material/InspectTextureMipsMaterial.d.ts.map +1 -0
  122. package/dist/api/material/MaterialFactory.d.ts +20 -0
  123. package/dist/api/material/MaterialFactory.d.ts.map +1 -0
  124. package/dist/api/material/UnlitMaterial.d.ts +76 -0
  125. package/dist/api/material/UnlitMaterial.d.ts.map +1 -0
  126. package/dist/api/material/_export.d.ts +6 -0
  127. package/dist/api/material/_export.d.ts.map +1 -0
  128. package/dist/api/meshes/IMesh.d.ts +17 -0
  129. package/dist/api/meshes/IMesh.d.ts.map +1 -0
  130. package/dist/api/meshes/IMeshFactory.d.ts +25 -0
  131. package/dist/api/meshes/IMeshFactory.d.ts.map +1 -0
  132. package/dist/api/meshes/Mesh.d.ts +93 -0
  133. package/dist/api/meshes/Mesh.d.ts.map +1 -0
  134. package/dist/api/meshes/MeshFactory.d.ts +23 -0
  135. package/dist/api/meshes/MeshFactory.d.ts.map +1 -0
  136. package/dist/api/meshes/MeshParameters.d.ts +22 -0
  137. package/dist/api/meshes/MeshParameters.d.ts.map +1 -0
  138. package/dist/api/meshes/QuadMesh.d.ts +33 -0
  139. package/dist/api/meshes/QuadMesh.d.ts.map +1 -0
  140. package/dist/api/meshes/_export.d.ts +7 -0
  141. package/dist/api/meshes/_export.d.ts.map +1 -0
  142. package/dist/api/rendering/IGPUInfo.d.ts +35 -0
  143. package/dist/api/rendering/IGPUInfo.d.ts.map +1 -0
  144. package/dist/api/rendering/IGraphicsDevice.d.ts +88 -0
  145. package/dist/api/rendering/IGraphicsDevice.d.ts.map +1 -0
  146. package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts +27 -0
  147. package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts.map +1 -0
  148. package/dist/api/rendering/IRenderer.d.ts +71 -0
  149. package/dist/api/rendering/IRenderer.d.ts.map +1 -0
  150. package/dist/api/rendering/PowerPreference.d.ts +13 -0
  151. package/dist/api/rendering/PowerPreference.d.ts.map +1 -0
  152. package/dist/api/rendering/RenderingBackend.d.ts +18 -0
  153. package/dist/api/rendering/RenderingBackend.d.ts.map +1 -0
  154. package/dist/api/rendering/_export-rendering.d.ts +7 -0
  155. package/dist/api/rendering/_export-rendering.d.ts.map +1 -0
  156. package/dist/api/rendering/blending/IBlendState.d.ts +16 -0
  157. package/dist/api/rendering/blending/IBlendState.d.ts.map +1 -0
  158. package/dist/api/rendering/blending/_export.d.ts +2 -0
  159. package/dist/api/rendering/blending/_export.d.ts.map +1 -0
  160. package/dist/api/rendering/buffers/BufferUsage.d.ts +57 -0
  161. package/dist/api/rendering/buffers/BufferUsage.d.ts.map +1 -0
  162. package/dist/api/rendering/buffers/IBuffer.d.ts +20 -0
  163. package/dist/api/rendering/buffers/IBuffer.d.ts.map +1 -0
  164. package/dist/api/rendering/buffers/IBufferFactory.d.ts +34 -0
  165. package/dist/api/rendering/buffers/IBufferFactory.d.ts.map +1 -0
  166. package/dist/api/rendering/buffers/IIndexBuffer.d.ts +31 -0
  167. package/dist/api/rendering/buffers/IIndexBuffer.d.ts.map +1 -0
  168. package/dist/api/rendering/buffers/IUniformBuffer.d.ts +18 -0
  169. package/dist/api/rendering/buffers/IUniformBuffer.d.ts.map +1 -0
  170. package/dist/api/rendering/buffers/IVertexBuffer.d.ts +26 -0
  171. package/dist/api/rendering/buffers/IVertexBuffer.d.ts.map +1 -0
  172. package/dist/api/rendering/buffers/IVertexBufferLayout.d.ts +23 -0
  173. package/dist/api/rendering/buffers/IVertexBufferLayout.d.ts.map +1 -0
  174. package/dist/api/rendering/buffers/IndexBufferType.d.ts +14 -0
  175. package/dist/api/rendering/buffers/IndexBufferType.d.ts.map +1 -0
  176. package/dist/api/rendering/buffers/VertexAttribute.d.ts +22 -0
  177. package/dist/api/rendering/buffers/VertexAttribute.d.ts.map +1 -0
  178. package/dist/api/rendering/buffers/VertexStepMode.d.ts +14 -0
  179. package/dist/api/rendering/buffers/VertexStepMode.d.ts.map +1 -0
  180. package/dist/api/rendering/buffers/_export-buffers.d.ts +11 -0
  181. package/dist/api/rendering/buffers/_export-buffers.d.ts.map +1 -0
  182. package/dist/{core/renderer → api/rendering}/enums.d.ts.map +1 -1
  183. package/dist/api/rendering/primitive/CullMode.d.ts +18 -0
  184. package/dist/api/rendering/primitive/CullMode.d.ts.map +1 -0
  185. package/dist/api/rendering/primitive/FrontFace.d.ts +14 -0
  186. package/dist/api/rendering/primitive/FrontFace.d.ts.map +1 -0
  187. package/dist/api/rendering/primitive/IPrimitiveState.d.ts +22 -0
  188. package/dist/api/rendering/primitive/IPrimitiveState.d.ts.map +1 -0
  189. package/dist/api/rendering/primitive/PrimitiveStateDescriptor.d.ts +24 -0
  190. package/dist/api/rendering/primitive/PrimitiveStateDescriptor.d.ts.map +1 -0
  191. package/dist/api/rendering/primitive/PrimitiveTopology.d.ts +26 -0
  192. package/dist/api/rendering/primitive/PrimitiveTopology.d.ts.map +1 -0
  193. package/dist/api/rendering/primitive/_export.d.ts +6 -0
  194. package/dist/api/rendering/primitive/_export.d.ts.map +1 -0
  195. package/dist/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.d.ts +33 -0
  196. package/dist/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.d.ts.map +1 -0
  197. package/dist/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.d.ts +18 -0
  198. package/dist/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.d.ts.map +1 -0
  199. package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts +39 -0
  200. package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts.map +1 -0
  201. package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts +42 -0
  202. package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts.map +1 -0
  203. package/dist/api/rendering/render-pipelines/ISpriteRenderPipeline.d.ts +22 -0
  204. package/dist/api/rendering/render-pipelines/ISpriteRenderPipeline.d.ts.map +1 -0
  205. package/dist/api/rendering/render-pipelines/IUnlitRenderPipeline.d.ts +33 -0
  206. package/dist/api/rendering/render-pipelines/IUnlitRenderPipeline.d.ts.map +1 -0
  207. package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts +7 -0
  208. package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts.map +1 -0
  209. package/dist/{core/renderer → api/rendering}/renderer-interface.d.ts +11 -7
  210. package/dist/api/rendering/renderer-interface.d.ts.map +1 -0
  211. package/dist/{core/renderer → api/rendering}/rendering-limits.d.ts.map +1 -1
  212. package/dist/api/rendering/renderpass/IRenderPass.d.ts +15 -0
  213. package/dist/api/rendering/renderpass/IRenderPass.d.ts.map +1 -0
  214. package/dist/api/rendering/renderpass/LoadAction.d.ts +33 -0
  215. package/dist/api/rendering/renderpass/LoadAction.d.ts.map +1 -0
  216. package/dist/api/rendering/renderpass/RenderPassColorAttachment.d.ts +53 -0
  217. package/dist/api/rendering/renderpass/RenderPassColorAttachment.d.ts.map +1 -0
  218. package/dist/api/rendering/renderpass/RenderPassDepthStencilAttachment.d.ts +56 -0
  219. package/dist/api/rendering/renderpass/RenderPassDepthStencilAttachment.d.ts.map +1 -0
  220. package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts +22 -0
  221. package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts.map +1 -0
  222. package/dist/api/rendering/renderpass/StoreAction.d.ts +24 -0
  223. package/dist/api/rendering/renderpass/StoreAction.d.ts.map +1 -0
  224. package/dist/api/rendering/renderpass/_export.d.ts +7 -0
  225. package/dist/api/rendering/renderpass/_export.d.ts.map +1 -0
  226. package/dist/api/rendering/sampler/ISampler.d.ts +43 -0
  227. package/dist/api/rendering/sampler/ISampler.d.ts.map +1 -0
  228. package/dist/api/rendering/sampler/MipMapSamplerFilter.d.ts +18 -0
  229. package/dist/api/rendering/sampler/MipMapSamplerFilter.d.ts.map +1 -0
  230. package/dist/api/rendering/sampler/SamplerAddressMode.d.ts +24 -0
  231. package/dist/api/rendering/sampler/SamplerAddressMode.d.ts.map +1 -0
  232. package/dist/api/rendering/sampler/SamplerDescriptor.d.ts +40 -0
  233. package/dist/api/rendering/sampler/SamplerDescriptor.d.ts.map +1 -0
  234. package/dist/api/rendering/sampler/SamplerFilter.d.ts +14 -0
  235. package/dist/api/rendering/sampler/SamplerFilter.d.ts.map +1 -0
  236. package/dist/api/rendering/sampler/_export.d.ts +6 -0
  237. package/dist/api/rendering/sampler/_export.d.ts.map +1 -0
  238. package/dist/api/rendering/sampler/sampler-enums.d.ts +15 -0
  239. package/dist/api/rendering/sampler/sampler-enums.d.ts.map +1 -0
  240. package/dist/api/rendering/swapchain/ISwapChain.d.ts +29 -0
  241. package/dist/api/rendering/swapchain/ISwapChain.d.ts.map +1 -0
  242. package/dist/api/rendering/swapchain/SurfacePresentMode.d.ts +23 -0
  243. package/dist/api/rendering/swapchain/SurfacePresentMode.d.ts.map +1 -0
  244. package/dist/api/rendering/swapchain/SwapChainDescriptor.d.ts +20 -0
  245. package/dist/api/rendering/swapchain/SwapChainDescriptor.d.ts.map +1 -0
  246. package/dist/api/rendering/swapchain/_export.d.ts +4 -0
  247. package/dist/api/rendering/swapchain/_export.d.ts.map +1 -0
  248. package/dist/api/rendering/texture/ITexture2D.d.ts +83 -0
  249. package/dist/api/rendering/texture/ITexture2D.d.ts.map +1 -0
  250. package/dist/api/rendering/texture/ITextureFactory.d.ts +42 -0
  251. package/dist/api/rendering/texture/ITextureFactory.d.ts.map +1 -0
  252. package/dist/api/rendering/texture/ITextureView.d.ts +17 -0
  253. package/dist/api/rendering/texture/ITextureView.d.ts.map +1 -0
  254. package/dist/api/rendering/texture/TextureDescriptor.d.ts +42 -0
  255. package/dist/api/rendering/texture/TextureDescriptor.d.ts.map +1 -0
  256. package/dist/api/rendering/texture/TextureFormat.d.ts +54 -0
  257. package/dist/api/rendering/texture/TextureFormat.d.ts.map +1 -0
  258. package/dist/api/rendering/texture/TextureUsage.d.ts +42 -0
  259. package/dist/api/rendering/texture/TextureUsage.d.ts.map +1 -0
  260. package/dist/api/rendering/texture/TextureUtilities.d.ts +54 -0
  261. package/dist/api/rendering/texture/TextureUtilities.d.ts.map +1 -0
  262. package/dist/api/rendering/texture/TextureViewDescriptor.d.ts +22 -0
  263. package/dist/api/rendering/texture/TextureViewDescriptor.d.ts.map +1 -0
  264. package/dist/api/rendering/texture/TextureViewDimension.d.ts +17 -0
  265. package/dist/api/rendering/texture/TextureViewDimension.d.ts.map +1 -0
  266. package/dist/api/rendering/texture/_export-texture.d.ts +10 -0
  267. package/dist/api/rendering/texture/_export-texture.d.ts.map +1 -0
  268. package/dist/api/shader/IShaderModule.d.ts +21 -0
  269. package/dist/api/shader/IShaderModule.d.ts.map +1 -0
  270. package/dist/api/shader/IShaderModuleLoader.d.ts +13 -0
  271. package/dist/api/shader/IShaderModuleLoader.d.ts.map +1 -0
  272. package/dist/api/shader/ShaderStage.d.ts +10 -0
  273. package/dist/api/shader/ShaderStage.d.ts.map +1 -0
  274. package/dist/api/shader/_export-shader.d.ts +4 -0
  275. package/dist/api/shader/_export-shader.d.ts.map +1 -0
  276. package/dist/{core → api}/shader/shader-loader.d.ts +1 -1
  277. package/dist/api/shader/shader-loader.d.ts.map +1 -0
  278. package/dist/api/sprites/ISpriteBatch.d.ts +114 -0
  279. package/dist/api/sprites/ISpriteBatch.d.ts.map +1 -0
  280. package/dist/{core/sprite-batch → api/sprites}/SpriteBatch.d.ts +1 -1
  281. package/dist/api/sprites/SpriteBatch.d.ts.map +1 -0
  282. package/dist/{core/sprite-batch → api/sprites}/SpriteBatchDrawable.d.ts +1 -1
  283. package/dist/api/sprites/SpriteBatchDrawable.d.ts.map +1 -0
  284. package/dist/{core/sprite-batch → api/sprites}/SpriteBatchMesh.d.ts +1 -1
  285. package/dist/api/sprites/SpriteBatchMesh.d.ts.map +1 -0
  286. package/dist/api/sprites/_export_sprites.d.ts +2 -0
  287. package/dist/api/sprites/_export_sprites.d.ts.map +1 -0
  288. package/dist/api/time/GameTime.d.ts +23 -0
  289. package/dist/api/time/GameTime.d.ts.map +1 -0
  290. package/dist/api/time/ITimeManager.d.ts +19 -0
  291. package/dist/api/time/ITimeManager.d.ts.map +1 -0
  292. package/dist/api/time/TimeManager.d.ts +15 -0
  293. package/dist/api/time/TimeManager.d.ts.map +1 -0
  294. package/dist/api/time/_export_time.d.ts +4 -0
  295. package/dist/api/time/_export_time.d.ts.map +1 -0
  296. package/dist/api/utilities/AlignUtilities.d.ts +20 -0
  297. package/dist/api/utilities/AlignUtilities.d.ts.map +1 -0
  298. package/dist/api/utilities/GeometryUtilities.d.ts +13 -0
  299. package/dist/api/utilities/GeometryUtilities.d.ts.map +1 -0
  300. package/dist/api/utilities/MathHelper.d.ts +162 -0
  301. package/dist/api/utilities/MathHelper.d.ts.map +1 -0
  302. package/dist/api/utilities/_export.d.ts +4 -0
  303. package/dist/api/utilities/_export.d.ts.map +1 -0
  304. package/dist/api/window/IWindowManager.d.ts +64 -0
  305. package/dist/api/window/IWindowManager.d.ts.map +1 -0
  306. package/dist/api/window/WindowBounds.d.ts +16 -0
  307. package/dist/api/window/WindowBounds.d.ts.map +1 -0
  308. package/dist/{core/window/window-manager.d.ts → api/window/WindowManager.d.ts} +3 -3
  309. package/dist/api/window/WindowManager.d.ts.map +1 -0
  310. package/dist/api/window/_export.d.ts +3 -0
  311. package/dist/api/window/_export.d.ts.map +1 -0
  312. package/dist/core/rendering/AGraphicsDevice.d.ts +10 -6
  313. package/dist/core/rendering/AGraphicsDevice.d.ts.map +1 -1
  314. package/dist/core/rendering/ARenderer.d.ts +4 -5
  315. package/dist/core/rendering/ARenderer.d.ts.map +1 -1
  316. package/dist/core/rendering/blending/enums.d.ts +5 -2
  317. package/dist/core/rendering/blending/enums.d.ts.map +1 -1
  318. package/dist/core/rendering/sampler/sampler-descriptor.d.ts +1 -1
  319. package/dist/core/rendering/sampler/sampler-descriptor.d.ts.map +1 -1
  320. package/dist/core/rendering/texture/texture.d.ts +1 -1
  321. package/dist/core/rendering/texture/texture.d.ts.map +1 -1
  322. package/dist/core/rendering/vertex-buffer-layout.d.ts +2 -3
  323. package/dist/core/rendering/vertex-buffer-layout.d.ts.map +1 -1
  324. package/dist/index.d.ts +3 -2
  325. package/dist/index.d.ts.map +1 -1
  326. package/dist/index.js +4052 -596
  327. package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts +1 -1
  328. package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts.map +1 -1
  329. package/dist/webgl/WebGlGpuInfo.d.ts +1 -1
  330. package/dist/webgl/WebGlGpuInfo.d.ts.map +1 -1
  331. package/dist/webgl/WebGlGraphicsDevice.d.ts +7 -5
  332. package/dist/webgl/WebGlGraphicsDevice.d.ts.map +1 -1
  333. package/dist/webgl/WebGlRenderer.d.ts +3 -3
  334. package/dist/webgl/WebGlRenderer.d.ts.map +1 -1
  335. package/dist/webgl/blending/webgl-blend-state.d.ts +1 -1
  336. package/dist/webgl/blending/webgl-blend-state.d.ts.map +1 -1
  337. package/dist/webgl/buffers/WebGlBuffersFactory.d.ts +1 -1
  338. package/dist/webgl/buffers/WebGlBuffersFactory.d.ts.map +1 -1
  339. package/dist/webgl/buffers/WebGlUniformBuffer.d.ts +1 -1
  340. package/dist/webgl/buffers/WebGlUniformBuffer.d.ts.map +1 -1
  341. package/dist/webgl/buffers/WebGlVertexBuffer.d.ts +6 -6
  342. package/dist/webgl/buffers/WebGlVertexBuffer.d.ts.map +1 -1
  343. package/dist/webgl/buffers/webgl-index-buffer.d.ts +2 -2
  344. package/dist/webgl/buffers/webgl-index-buffer.d.ts.map +1 -1
  345. package/dist/webgl/cast/cast.d.ts +2 -2
  346. package/dist/webgl/cast/cast.d.ts.map +1 -1
  347. package/dist/webgl/primitive/WebGlPrimitiveState.d.ts +1 -3
  348. package/dist/webgl/primitive/WebGlPrimitiveState.d.ts.map +1 -1
  349. package/dist/webgl/render-pass/WebGlRenderPass.d.ts +3 -3
  350. package/dist/webgl/render-pass/WebGlRenderPass.d.ts.map +1 -1
  351. package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts +1 -1
  352. package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts.map +1 -1
  353. package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts +3 -1
  354. package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts.map +1 -1
  355. package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts +1 -1
  356. package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts.map +1 -1
  357. package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts +3 -3
  358. package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts.map +1 -1
  359. package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts +2 -2
  360. package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts.map +1 -1
  361. package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts +2 -2
  362. package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts.map +1 -1
  363. package/dist/webgl/sampler/webgl-sampler.d.ts +1 -1
  364. package/dist/webgl/sampler/webgl-sampler.d.ts.map +1 -1
  365. package/dist/webgl/shader/WebGlShaderModule.d.ts +1 -1
  366. package/dist/webgl/shader/WebGlShaderModule.d.ts.map +1 -1
  367. package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts +1 -1
  368. package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts.map +1 -1
  369. package/dist/webgl/swap-chain/WebGlSwapChain.d.ts +1 -1
  370. package/dist/webgl/swap-chain/WebGlSwapChain.d.ts.map +1 -1
  371. package/dist/webgl/texture/WebGlTexture2D.d.ts +1 -1
  372. package/dist/webgl/texture/WebGlTexture2D.d.ts.map +1 -1
  373. package/dist/webgl/texture/WebGlTextureFactory.d.ts +3 -3
  374. package/dist/webgl/texture/WebGlTextureFactory.d.ts.map +1 -1
  375. package/dist/webgl/utilities/WebGlBufferUtilities.d.ts +1 -1
  376. package/dist/webgl/utilities/WebGlBufferUtilities.d.ts.map +1 -1
  377. package/dist/webgl/utilities/WebGlConverter.d.ts +6 -22
  378. package/dist/webgl/utilities/WebGlConverter.d.ts.map +1 -1
  379. package/dist/webgl/utilities/WebGlFrameBufferUtilities.d.ts +1 -1
  380. package/dist/webgl/utilities/WebGlFrameBufferUtilities.d.ts.map +1 -1
  381. package/dist/webgl/utilities/WebGlSamplerUtilities.d.ts +3 -3
  382. package/dist/webgl/utilities/WebGlSamplerUtilities.d.ts.map +1 -1
  383. package/dist/webgl/utilities/WebGlTextureUtilities.d.ts +5 -5
  384. package/dist/webgl/utilities/WebGlTextureUtilities.d.ts.map +1 -1
  385. package/dist/webgl/utilities/webgl-culling-utilities.d.ts +1 -1
  386. package/dist/webgl/utilities/webgl-culling-utilities.d.ts.map +1 -1
  387. package/dist/webgl/utilities/webgl-filter-anisotropic-utilities.d.ts +1 -1
  388. package/dist/webgl/utilities/webgl-renderbuffer-utilities.d.ts +1 -1
  389. package/dist/webgl/utilities/webgl-renderbuffer-utilities.d.ts.map +1 -1
  390. package/package.json +7 -6
  391. package/shaders/glsl/sprite_fs.glsl +1 -1
  392. package/src/{core/Framework.ts → Framework.ts} +78 -38
  393. package/src/api/FrameworkConfiguration.ts +29 -0
  394. package/src/api/IFramework.ts +153 -0
  395. package/src/api/IFrameworkConfiguration.ts +30 -0
  396. package/src/api/_export.ts +26 -0
  397. package/src/api/camera/CameraFactory.ts +56 -0
  398. package/src/api/camera/ICamera.ts +52 -0
  399. package/src/api/camera/ICameraFactory.ts +69 -0
  400. package/src/api/camera/IOrthographicCamera.ts +38 -0
  401. package/src/api/camera/OrbitCamera.ts +402 -0
  402. package/src/api/camera/OrthographicCamera.ts +257 -0
  403. package/src/api/camera/PerspectiveCamera.ts +206 -0
  404. package/src/api/camera/_export.ts +7 -0
  405. package/src/api/content/ContentConfig.ts +11 -0
  406. package/src/{core → api}/content/ContentManager.ts +4 -3
  407. package/src/api/content/IContent.ts +9 -0
  408. package/src/api/content/IContentManager.ts +41 -0
  409. package/src/api/content/IContentModule.ts +67 -0
  410. package/src/{content → api/content}/ShaderModuleContent.ts +8 -8
  411. package/src/api/content/_export-content.ts +4 -0
  412. package/src/api/core/IDisposable.ts +10 -0
  413. package/src/api/core/_export-core.ts +1 -0
  414. package/src/api/data/Color.ts +228 -0
  415. package/src/api/data/Rect.ts +92 -0
  416. package/src/api/data/State.ts +10 -0
  417. package/src/api/data/_export.ts +3 -0
  418. package/src/{geometry → api/geometry}/BaseGeometry.ts +15 -2
  419. package/src/{geometry → api/geometry}/GeometryBuilder.ts +1 -1
  420. package/src/api/geometry/GeometryFormat.ts +33 -0
  421. package/src/api/geometry/IGeometry.ts +66 -0
  422. package/src/api/geometry/IGeometryBuilder.ts +17 -0
  423. package/src/{VertexFormat.ts → api/geometry/VertexFormat.ts} +3 -7
  424. package/src/api/geometry/_export-geometry.ts +4 -0
  425. package/src/api/image/CpuImageProcessor.ts +125 -0
  426. package/src/api/image/IImageProcessor.ts +28 -0
  427. package/src/api/image/RawImageData.ts +47 -0
  428. package/src/api/image/_export.ts +3 -0
  429. package/src/api/index.ts +1 -0
  430. package/src/api/input/IInputManager.ts +62 -0
  431. package/src/api/input/InputDeviceType.ts +20 -0
  432. package/src/api/input/InputManager.ts +513 -0
  433. package/src/api/input/Key.ts +35 -0
  434. package/src/api/input/KeyboardState.ts +44 -0
  435. package/src/api/input/_export.ts +13 -0
  436. package/src/api/input/gamepad/Button.ts +21 -0
  437. package/src/api/input/gamepad/GamePadState.ts +65 -0
  438. package/src/api/input/gamepad/GamePadThumbSticks.ts +18 -0
  439. package/src/api/input/mouse/MouseButton.ts +9 -0
  440. package/src/api/input/mouse/MouseState.ts +70 -0
  441. package/src/api/input/touch/TouchCollection.ts +164 -0
  442. package/src/api/input/touch/TouchLocation.ts +159 -0
  443. package/src/api/input/touch/TouchLocationState.ts +15 -0
  444. package/src/api/input/touch/TouchPanelCapabilities.ts +31 -0
  445. package/src/api/loaders/IImageLoader.ts +22 -0
  446. package/src/api/loaders/ImageLoader.ts +93 -0
  447. package/src/api/loaders/_export.ts +2 -0
  448. package/src/api/material/IMaterial.ts +41 -0
  449. package/src/api/material/IMaterialFactory.ts +21 -0
  450. package/src/api/material/InspectTextureMipsMaterial.ts +113 -0
  451. package/src/api/material/MaterialFactory.ts +27 -0
  452. package/src/api/material/UnlitMaterial.ts +143 -0
  453. package/src/api/material/_export.ts +5 -0
  454. package/src/api/meshes/IMesh.ts +20 -0
  455. package/src/api/meshes/IMeshFactory.ts +28 -0
  456. package/src/api/meshes/Mesh.ts +256 -0
  457. package/src/api/meshes/MeshFactory.ts +36 -0
  458. package/src/api/meshes/MeshParameters.ts +25 -0
  459. package/src/api/meshes/QuadMesh.ts +104 -0
  460. package/src/api/meshes/_export.ts +6 -0
  461. package/src/api/rendering/IGPUInfo.ts +42 -0
  462. package/src/api/rendering/IGraphicsDevice.ts +103 -0
  463. package/src/api/rendering/IGraphicsDeviceFeatures.ts +32 -0
  464. package/src/api/rendering/IRenderer.ts +84 -0
  465. package/src/api/rendering/PowerPreference.ts +15 -0
  466. package/src/api/rendering/RenderingBackend.ts +20 -0
  467. package/src/api/rendering/_export-rendering.ts +6 -0
  468. package/src/api/rendering/blending/IBlendState.ts +17 -0
  469. package/src/api/rendering/blending/_export.ts +1 -0
  470. package/src/api/rendering/buffers/BufferUsage.ts +56 -0
  471. package/src/api/rendering/buffers/IBuffer.ts +24 -0
  472. package/src/api/rendering/buffers/IBufferFactory.ts +38 -0
  473. package/src/api/rendering/buffers/IIndexBuffer.ts +37 -0
  474. package/src/api/rendering/buffers/IUniformBuffer.ts +21 -0
  475. package/src/api/rendering/buffers/IVertexBuffer.ts +32 -0
  476. package/src/api/rendering/buffers/IVertexBufferLayout.ts +27 -0
  477. package/src/api/rendering/buffers/IndexBufferType.ts +13 -0
  478. package/src/api/rendering/buffers/VertexAttribute.ts +26 -0
  479. package/src/api/rendering/buffers/VertexStepMode.ts +13 -0
  480. package/src/api/rendering/buffers/_export-buffers.ts +11 -0
  481. package/src/api/rendering/primitive/CullMode.ts +17 -0
  482. package/src/api/rendering/primitive/FrontFace.ts +13 -0
  483. package/src/api/rendering/primitive/IPrimitiveState.ts +25 -0
  484. package/src/api/rendering/primitive/PrimitiveStateDescriptor.ts +27 -0
  485. package/src/api/rendering/primitive/PrimitiveTopology.ts +25 -0
  486. package/src/api/rendering/primitive/_export.ts +5 -0
  487. package/src/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.ts +38 -0
  488. package/src/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.ts +21 -0
  489. package/src/api/rendering/render-pipelines/IRenderPipeline.ts +47 -0
  490. package/src/api/rendering/render-pipelines/IRenderPipelineFactory.ts +52 -0
  491. package/src/api/rendering/render-pipelines/ISpriteRenderPipeline.ts +25 -0
  492. package/src/api/rendering/render-pipelines/IUnlitRenderPipeline.ts +38 -0
  493. package/src/api/rendering/render-pipelines/_export-render-pipelines.ts +6 -0
  494. package/src/{core/renderer → api/rendering}/renderer-interface.ts +15 -9
  495. package/src/api/rendering/renderpass/IRenderPass.ts +18 -0
  496. package/src/api/rendering/renderpass/LoadAction.ts +32 -0
  497. package/src/api/rendering/renderpass/RenderPassColorAttachment.ts +61 -0
  498. package/src/api/rendering/renderpass/RenderPassDepthStencilAttachment.ts +76 -0
  499. package/src/api/rendering/renderpass/RenderPassDescriptor.ts +26 -0
  500. package/src/api/rendering/renderpass/StoreAction.ts +23 -0
  501. package/src/api/rendering/renderpass/_export.ts +6 -0
  502. package/src/api/rendering/sampler/ISampler.ts +52 -0
  503. package/src/api/rendering/sampler/MipMapSamplerFilter.ts +17 -0
  504. package/src/api/rendering/sampler/SamplerAddressMode.ts +23 -0
  505. package/src/api/rendering/sampler/SamplerDescriptor.ts +46 -0
  506. package/src/api/rendering/sampler/SamplerFilter.ts +13 -0
  507. package/src/api/rendering/sampler/_export.ts +5 -0
  508. package/src/api/rendering/sampler/sampler-enums.ts +20 -0
  509. package/src/api/rendering/swapchain/ISwapChain.ts +33 -0
  510. package/src/api/rendering/swapchain/SurfacePresentMode.ts +22 -0
  511. package/src/api/rendering/swapchain/SwapChainDescriptor.ts +23 -0
  512. package/src/api/rendering/swapchain/_export.ts +3 -0
  513. package/src/api/rendering/texture/ITexture2D.ts +100 -0
  514. package/src/api/rendering/texture/ITextureFactory.ts +56 -0
  515. package/src/api/rendering/texture/ITextureView.ts +20 -0
  516. package/src/api/rendering/texture/TextureDescriptor.ts +52 -0
  517. package/src/api/rendering/texture/TextureFormat.ts +58 -0
  518. package/src/api/rendering/texture/TextureUsage.ts +41 -0
  519. package/src/api/rendering/texture/TextureUtilities.ts +149 -0
  520. package/src/api/rendering/texture/TextureViewDescriptor.ts +25 -0
  521. package/src/api/rendering/texture/TextureViewDimension.ts +16 -0
  522. package/src/api/rendering/texture/_export-texture.ts +9 -0
  523. package/src/api/shader/IShaderModule.ts +23 -0
  524. package/src/api/shader/IShaderModuleLoader.ts +15 -0
  525. package/src/api/shader/ShaderStage.ts +9 -0
  526. package/src/api/shader/_export-shader.ts +3 -0
  527. package/src/{core → api}/shader/shader-loader.ts +1 -1
  528. package/src/api/sprites/ISpriteBatch.ts +144 -0
  529. package/src/{core/sprite-batch → api/sprites}/SpriteBatch.ts +8 -5
  530. package/src/{core/sprite-batch → api/sprites}/SpriteBatchDrawable.ts +6 -6
  531. package/src/{core/sprite-batch → api/sprites}/SpriteBatchMesh.ts +8 -4
  532. package/src/api/sprites/_export_sprites.ts +1 -0
  533. package/src/api/time/GameTime.ts +30 -0
  534. package/src/api/time/ITimeManager.ts +22 -0
  535. package/src/api/time/TimeManager.ts +33 -0
  536. package/src/api/time/_export_time.ts +3 -0
  537. package/src/api/utilities/AlignUtilities.ts +39 -0
  538. package/src/api/utilities/GeometryUtilities.ts +20 -0
  539. package/src/api/utilities/MathHelper.ts +256 -0
  540. package/src/api/utilities/_export.ts +3 -0
  541. package/src/api/window/IWindowManager.ts +78 -0
  542. package/src/api/window/WindowBounds.ts +17 -0
  543. package/src/{core/window/window-manager.ts → api/window/WindowManager.ts} +2 -2
  544. package/src/api/window/_export.ts +2 -0
  545. package/src/core/rendering/AGraphicsDevice.ts +15 -9
  546. package/src/core/rendering/ARenderer.ts +7 -7
  547. package/src/core/rendering/blending/enums.ts +5 -5
  548. package/src/core/rendering/sampler/sampler-descriptor.ts +1 -1
  549. package/src/core/rendering/texture/texture.ts +4 -3
  550. package/src/core/rendering/vertex-buffer-layout.ts +3 -4
  551. package/src/index.ts +3 -2
  552. package/src/main.ts +5 -10
  553. package/src/webgl/WebGLGraphicsDeviceFeatures.ts +1 -1
  554. package/src/webgl/WebGlGpuInfo.ts +1 -1
  555. package/src/webgl/WebGlGraphicsDevice.ts +19 -15
  556. package/src/webgl/WebGlRenderer.ts +7 -5
  557. package/src/webgl/blending/webgl-blend-state.ts +1 -1
  558. package/src/webgl/buffers/WebGlBuffersFactory.ts +1 -1
  559. package/src/webgl/buffers/WebGlUniformBuffer.ts +1 -1
  560. package/src/webgl/buffers/WebGlVertexBuffer.ts +8 -7
  561. package/src/webgl/buffers/webgl-index-buffer.ts +2 -2
  562. package/src/webgl/cast/cast.ts +2 -2
  563. package/src/webgl/primitive/WebGlPrimitiveState.ts +7 -3
  564. package/src/webgl/render-pass/WebGlRenderPass.ts +17 -8
  565. package/src/webgl/render-pipelines/AWebGlRenderPipeline.ts +1 -1
  566. package/src/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.ts +10 -2
  567. package/src/webgl/render-pipelines/WebGlRenderPipelineFactory.ts +1 -1
  568. package/src/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.ts +3 -3
  569. package/src/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.ts +2 -2
  570. package/src/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.ts +2 -2
  571. package/src/webgl/sampler/webgl-sampler.ts +2 -2
  572. package/src/webgl/shader/WebGlShaderModule.ts +2 -2
  573. package/src/webgl/shader/WebGlShaderModuleLoader.ts +1 -1
  574. package/src/webgl/swap-chain/WebGlSwapChain.ts +1 -1
  575. package/src/webgl/texture/WebGlTexture2D.ts +6 -4
  576. package/src/webgl/texture/WebGlTextureFactory.ts +7 -7
  577. package/src/webgl/utilities/WebGlBufferUtilities.ts +1 -1
  578. package/src/webgl/utilities/WebGlConverter.ts +19 -62
  579. package/src/webgl/utilities/WebGlFrameBufferUtilities.ts +1 -1
  580. package/src/webgl/utilities/WebGlSamplerUtilities.ts +4 -4
  581. package/src/webgl/utilities/WebGlTextureUtilities.ts +29 -20
  582. package/src/webgl/utilities/webgl-culling-utilities.ts +1 -1
  583. package/src/webgl/utilities/webgl-filter-anisotropic-utilities.ts +1 -1
  584. package/src/webgl/utilities/webgl-renderbuffer-utilities.ts +1 -1
  585. package/dist/TextureFormat.d.ts +0 -2
  586. package/dist/TextureFormat.d.ts.map +0 -1
  587. package/dist/VertexFormat.d.ts.map +0 -1
  588. package/dist/_ris-ktx2-node-module-stub-nzBRmiO_.js +0 -10
  589. package/dist/common/sampler-enums.d.ts +0 -16
  590. package/dist/common/sampler-enums.d.ts.map +0 -1
  591. package/dist/common/vertex-step-mode.d.ts +0 -11
  592. package/dist/common/vertex-step-mode.d.ts.map +0 -1
  593. package/dist/content/ShaderModuleContent.d.ts.map +0 -1
  594. package/dist/core/Framework.d.ts.map +0 -1
  595. package/dist/core/FrameworkConfig.d.ts +0 -26
  596. package/dist/core/FrameworkConfig.d.ts.map +0 -1
  597. package/dist/core/buffers/buffers-factory-interface.d.ts +0 -2
  598. package/dist/core/buffers/buffers-factory-interface.d.ts.map +0 -1
  599. package/dist/core/buffers/vertex-buffer-interface.d.ts +0 -2
  600. package/dist/core/buffers/vertex-buffer-interface.d.ts.map +0 -1
  601. package/dist/core/content/ContentManager.d.ts.map +0 -1
  602. package/dist/core/dependency-injection/register-services-interface.d.ts +0 -13
  603. package/dist/core/dependency-injection/register-services-interface.d.ts.map +0 -1
  604. package/dist/core/framework-interface.d.ts +0 -2
  605. package/dist/core/framework-interface.d.ts.map +0 -1
  606. package/dist/core/input/InputManager.d.ts +0 -27
  607. package/dist/core/input/InputManager.d.ts.map +0 -1
  608. package/dist/core/renderer/renderer-interface.d.ts.map +0 -1
  609. package/dist/core/rendering/primitive/PrimitiveStateDescriptor.d.ts +0 -26
  610. package/dist/core/rendering/primitive/PrimitiveStateDescriptor.d.ts.map +0 -1
  611. package/dist/core/rendering/primitive/enums.d.ts +0 -56
  612. package/dist/core/rendering/primitive/enums.d.ts.map +0 -1
  613. package/dist/core/rendering/render-pass/render-pass-descriptor.d.ts +0 -2
  614. package/dist/core/rendering/render-pass/render-pass-descriptor.d.ts.map +0 -1
  615. package/dist/core/rendering/render-pass/render-pass-interface.d.ts +0 -15
  616. package/dist/core/rendering/render-pass/render-pass-interface.d.ts.map +0 -1
  617. package/dist/core/rendering/vertex-attribute.d.ts +0 -17
  618. package/dist/core/rendering/vertex-attribute.d.ts.map +0 -1
  619. package/dist/core/shader/shader-loader.d.ts.map +0 -1
  620. package/dist/core/shader/shader-module-interface.d.ts +0 -2
  621. package/dist/core/shader/shader-module-interface.d.ts.map +0 -1
  622. package/dist/core/sprite-batch/SpriteBatch.d.ts.map +0 -1
  623. package/dist/core/sprite-batch/SpriteBatchDrawable.d.ts.map +0 -1
  624. package/dist/core/sprite-batch/SpriteBatchMesh.d.ts.map +0 -1
  625. package/dist/core/window/window-manager.d.ts.map +0 -1
  626. package/dist/geometry/BaseGeometry.d.ts.map +0 -1
  627. package/dist/geometry/GeometryBuilder.d.ts.map +0 -1
  628. package/dist/geometry/GeometryFormat.d.ts +0 -34
  629. package/dist/geometry/GeometryFormat.d.ts.map +0 -1
  630. package/dist/webgl/utilities/webgl-render-buffer-utilities.d.ts +0 -5
  631. package/dist/webgl/utilities/webgl-render-buffer-utilities.d.ts.map +0 -1
  632. package/src/TextureFormat.ts +0 -0
  633. package/src/common/sampler-enums.ts +0 -21
  634. package/src/common/vertex-step-mode.ts +0 -12
  635. package/src/core/FrameworkConfig.ts +0 -31
  636. package/src/core/buffers/buffers-factory-interface.ts +0 -0
  637. package/src/core/buffers/vertex-buffer-interface.ts +0 -0
  638. package/src/core/dependency-injection/register-services-interface.ts +0 -15
  639. package/src/core/framework-interface.ts +0 -0
  640. package/src/core/input/InputManager.ts +0 -115
  641. package/src/core/rendering/primitive/PrimitiveStateDescriptor.ts +0 -32
  642. package/src/core/rendering/primitive/enums.ts +0 -68
  643. package/src/core/rendering/render-pass/render-pass-descriptor.ts +0 -0
  644. package/src/core/rendering/render-pass/render-pass-interface.ts +0 -17
  645. package/src/core/rendering/vertex-attribute.ts +0 -20
  646. package/src/core/shader/shader-module-interface.ts +0 -1
  647. package/src/counter.ts +0 -9
  648. package/src/geometry/GeometryFormat.ts +0 -37
  649. package/src/webgl/utilities/webgl-render-buffer-utilities.ts +0 -23
  650. /package/dist/{content → api/content}/ShaderModuleContent.d.ts +0 -0
  651. /package/dist/{VertexFormat.d.ts → api/geometry/VertexFormat.d.ts} +0 -0
  652. /package/dist/{core/renderer → api/rendering}/enums.d.ts +0 -0
  653. /package/dist/{core/renderer → api/rendering}/rendering-limits.d.ts +0 -0
  654. /package/src/{core/renderer → api/rendering}/enums.ts +0 -0
  655. /package/src/{core/renderer → api/rendering}/rendering-limits.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -3,4 +3,7 @@
3
3
  ## 0.1.0
4
4
 
5
5
  - Initial release setup. `development` publishes a prerelease on the npm `next` tag. `main` publishes this version on `latest`.
6
- - The package entry is compiled JavaScript and declarations in `dist`. Consumers import `Framework`, `FrameworkConfig`, and `TextureSamplerFilteringPreset` from `ris-framework` without compiling this repository. Built-in shaders and the browser KTX2 loader are included in that JavaScript.
6
+ - The package entry is compiled JavaScript and declarations in `dist`. Consumers import `Framework`, `FrameworkConfiguration`, `TextureSamplerFilteringPreset`, and the types formerly published as `ris-framework-api` from `ris-framework` without compiling this repository. Built-in shaders and the browser KTX2 loader are included in that JavaScript.
7
+ - `ris-framework-api` is merged into this package under `src/api`. `ris-ktx2` is the only KTX dependency and also provides the KTX2 types; `ris-ktx2-api` is no longer used.
8
+ - `FrameworkConfiguration` adds `alpha` and `powerPreference`. `PowerPreferenceType` is exported from the package entry.
9
+ - The package license is Apache License 2.0. Copyright 2026 Luka Erkapic.
package/LICENSE CHANGED
@@ -1,21 +1,202 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Luka Erkapic
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Luka Erkapic
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,2 @@
1
+ ris-framework
2
+ Copyright 2026 Luka Erkapic
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `ris-framework` is a browser WebGL2 framework, published as an ES module. Version 0.1.0. An application imports the compiled package. This repository also contains a sample page that runs the framework.
4
4
 
5
- Open `index.html`. The module script is `src/main.ts`. That file builds the page, constructs a `Framework`, and starts the frame loop. Shared interfaces and value types (`IFramework`, `Color`, `Rect`, `TextureDescriptor`, and the rest) come from the `ris-framework-api` package. This repository implements them.
5
+ Open `index.html`. The module script is `src/main.ts`. That file builds the page, constructs a `Framework`, and starts the frame loop. Shared interfaces and value types (`IFramework`, `Color`, `Rect`, `TextureDescriptor`, and the rest) ship from this package. They used to live in `ris-framework-api`. This repository implements them.
6
6
 
7
7
  ## Layout
8
8
 
@@ -10,13 +10,15 @@ Open `index.html`. The module script is `src/main.ts`. That file builds the page
10
10
  | --- | --- |
11
11
  | `index.html` | The page. It has `#app` and `<canvas id="game-canvas" width="800" height="600">`. |
12
12
  | `src/main.ts` | Application entry. |
13
- | `src/core` | `Framework`, `FrameworkConfig`, the window and input managers, content loading, the renderer base, and the sprite batch. |
13
+ | `src/index.ts` | Package entry. Exports `Framework`, `FrameworkConfiguration`, `TextureSamplerFilteringPreset`, and everything under `src/api`. |
14
+ | `src/Framework.ts` | `Framework`, which wires the renderer, factories, managers, and the frame loop together. |
15
+ | `src/api` | Interfaces and value types formerly published as `ris-framework-api` (input, textures, cameras, `TextureUtilities`, and the rest). It also holds `FrameworkConfiguration` and the backend-independent implementations: `WindowManager`, `InputManager`, `ContentManager`, `SpriteBatch`, `GeometryBuilder`, and `BaseGeometry`. `src/api/content/ShaderModuleContent.ts` maps the built-in shader module ids to GLSL from `shaders/glsl`. |
16
+ | `src/core` | Renderer and graphics-device base classes (`ARenderer`, `AGraphicsDevice`), the texture base class, blend and sampler descriptors, `VertexBufferLayout`, and `TextureSamplerFilteringPreset`. |
14
17
  | `src/webgl` | The WebGL2 graphics device, renderer, textures, buffers, samplers, and render pipelines. |
15
- | `src/geometry` | `GeometryBuilder` and mesh geometry data. |
16
- | `src/content` | Built-in shader modules. GLSL is imported from `shaders/glsl`. |
17
- | `shaders/glsl` | Vertex and fragment shaders used by those built-in modules. |
18
+ | `shaders/glsl` | Vertex and fragment shaders used by the built-in shader modules. |
19
+ | `tests` | Vitest tests for the types under `src/api`. |
18
20
 
19
- Runtime dependencies are `ris-framework-api`, `ris-ktx2-api`, `gl-matrix`, `tsyringe`, and `reflect-metadata`. The library build also includes the browser portion of `ris-ktx2`, with its Node loader replaced by a stub, so the published entry does not import Node built-ins. TypeScript, Vite, and `ris-ktx2` are dev dependencies. Notices for the bundled KTX loader are in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
21
+ Runtime dependencies are `ris-ktx2`, `gl-matrix`, `tsyringe`, and `reflect-metadata`. The KTX2 types (`IKtx2Texture`, `VkFormat`, `KtxTranscodeFormat`, and the rest) are imported from `ris-ktx2`. The library build includes the browser portion of `ris-ktx2`, with its Node loader replaced by a stub, so the published entry does not import Node built-ins. TypeScript, Vite, and Vitest are dev dependencies. Notices for the bundled KTX loader are in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). The package license is Apache License 2.0. Copyright 2026 Luka Erkapic. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
20
22
 
21
23
  ## Prerequisites
22
24
 
@@ -35,10 +37,16 @@ npm install ris-framework
35
37
  The published entry is compiled JavaScript and TypeScript declarations (`dist/index.js` and `dist/index.d.ts`). Import the public surface by package name:
36
38
 
37
39
  ```ts
38
- import { Framework, FrameworkConfig, TextureSamplerFilteringPreset } from "ris-framework";
40
+ import { Framework, FrameworkConfiguration, TextureSamplerFilteringPreset } from "ris-framework";
39
41
  ```
40
42
 
41
- `Framework`, `FrameworkConfig`, and `TextureSamplerFilteringPreset` are that public surface. Built-in GLSL is compiled into `dist/index.js`, so a consumer does not load this repository's `shaders/` directory at runtime. The same file includes the browser KTX2 loader. A consuming Vite app can import the package and build without adding a Node stub of its own.
43
+ The same entry re-exports the former `ris-framework-api` surface, so a consumer can import those names from `ris-framework`:
44
+
45
+ ```ts
46
+ import { Color, Rect, TextureFormat, TextureUtilities, type IInputManager } from "ris-framework";
47
+ ```
48
+
49
+ `Framework`, `FrameworkConfiguration`, `TextureSamplerFilteringPreset`, and that API surface are the public entry. Built-in GLSL is compiled into `dist/index.js`, so a consumer does not load this repository's `shaders/` directory at runtime. The same file includes the browser KTX2 loader. A consuming Vite app can import the package and build without adding a Node stub of its own.
42
50
 
43
51
  To work in this repository:
44
52
 
@@ -50,27 +58,29 @@ Import `reflect-metadata` before constructing the framework. `src/main.ts` keeps
50
58
 
51
59
  ## Create a framework instance
52
60
 
53
- Construct `FrameworkConfig`, then pass it to `Framework`. The constructor is `constructor(options: FrameworkConfig | null = null)`. Omitting the argument, or passing `null`, uses `new FrameworkConfig()`.
61
+ Construct `FrameworkConfiguration`, then pass it to `Framework`. The constructor is `constructor(options?: IFrameworkConfiguration)`. Omitting the argument uses `new FrameworkConfiguration()`. The constructor writes the resolved `backBufferSize` back onto the object you pass.
54
62
 
55
- Another project imports that public entry by package name: `import { Framework, FrameworkConfig, TextureSamplerFilteringPreset } from "ris-framework"`.
63
+ Another project imports that public entry by package name: `import { Framework, FrameworkConfiguration, TextureSamplerFilteringPreset } from "ris-framework"`.
56
64
 
57
65
  No config field is required. Each field has a default.
58
66
 
59
67
  | Field | Default | What the code does with it |
60
68
  | --- | --- | --- |
61
- | `canvas` | `null` | The canvas the WebGL2 context is created from. `null` makes `WindowManager` create a canvas and append it to `document.body`. `src/main.ts` sets this to `#game-canvas`. |
62
- | `backBufferSize` | `vec2.fromValues(800, 600)` | Copied onto an internal `RenderConfiguration`. `WebGlRenderer` leaves that copy unused. The main render target starts at the canvas element's `width` and `height`. The canvas in `index.html` is 800 by 600. |
69
+ | `canvas` | `undefined` | The canvas the WebGL2 context is created from. When unset, `Framework` logs a warning and `WindowManager` creates a canvas and appends it to `document.body`. `src/main.ts` sets this to `#game-canvas`. |
70
+ | `backBufferSize` | `undefined` (the constructor uses `vec2.fromValues(800, 600)`) | Copied onto an internal `IRendererConfiguration`. `WebGlRenderer` leaves that copy unused. The main render target starts at the canvas element's `width` and `height`. The canvas in `index.html` is 800 by 600. |
63
71
  | `textureFiltering` | `TextureSamplerFilteringPreset.BILINEAR` | Preset for the graphics device's default texture sampler. `POINT` is nearest filtering with no mipmaps. `BILINEAR` is linear filtering with no mipmaps. `TRILINEAR` is linear filtering with linear mipmaps. `undefined` is treated as `BILINEAR`. |
64
72
  | `useKtx2` | `false` | When `true`, the constructor sets `framework.ktx2Factory` to a `Ktx2Factory`. `initialize()` then calls `initializeAsync()` on it and does not wait. When `false`, `ktx2Factory` stays unset. |
73
+ | `alpha` | `false` | Passed as the WebGL2 context's `alpha` attribute, so it decides whether the canvas back buffer has an alpha channel. |
74
+ | `powerPreference` | `PowerPreferenceType.DEFAULT` | Passed as the WebGL2 context's `powerPreference` (`"default"`, `"low-power"`, or `"high-performance"`). It only matters on machines with more than one GPU. |
65
75
 
66
- `textureFiltering` is declared optional on `FrameworkConfig`. The other three fields are always present on a new config object.
76
+ Every field is optional on `IFrameworkConfiguration`. A new `FrameworkConfiguration` sets `useKtx2`, `textureFiltering`, `alpha`, and `powerPreference`. `canvas` and `backBufferSize` start unset.
67
77
 
68
78
  ```ts
69
79
  import "reflect-metadata";
70
80
 
71
- import { Framework, FrameworkConfig, TextureSamplerFilteringPreset } from "ris-framework";
81
+ import { Framework, FrameworkConfiguration, TextureSamplerFilteringPreset } from "ris-framework";
72
82
 
73
- const config = new FrameworkConfig();
83
+ const config = new FrameworkConfiguration();
74
84
  config.canvas = document.getElementById("game-canvas") as HTMLCanvasElement;
75
85
  config.textureFiltering = TextureSamplerFilteringPreset.BILINEAR;
76
86
 
@@ -81,45 +91,17 @@ const framework = new Framework(config);
81
91
 
82
92
  `framework.renderingBackend` is `RenderingBackend.WEB_GL`. After `initialize()`, `framework.graphicsDevice` is the renderer's WebGL2 device.
83
93
 
84
- ## Run, build, and preview
85
-
86
- ```sh
87
- npm run dev
88
- ```
89
-
90
- `dev` runs Vite. The served page is `index.html`. The sample imports the framework from `src/`.
91
-
92
- ```sh
93
- npm run build
94
- ```
95
-
96
- `build` typechecks `src`, then writes two outputs:
97
-
98
- - The library, which is what `npm publish` ships. Vite compiles `src/index.ts` to `dist/index.js` and includes the built-in shader sources in that file. It also bundles `ris-ktx2` after replacing that package's Node loader with the browser stub from `vite.config.ts`. `gl-matrix`, `reflect-metadata`, `ris-framework-api`, `ris-ktx2-api`, and `tsyringe` stay as imports. `tsc` writes `dist/index.d.ts` and the declaration files it references. `package.json` `main`, `module`, `types`, and `exports` point at `dist`.
99
- - The sample page. `vite build` writes it to `dist-app/`. The sample Vite config replaces `ris-ktx2`'s Node loader with a browser stub so that bundle does not import Node built-ins.
100
-
101
- ```sh
102
- npm run preview
103
- ```
104
-
105
- `preview` runs `vite preview` and serves the `dist-app/` build.
106
-
107
- ```sh
108
- npm test
109
- ```
110
-
111
- `test` runs `tsc --noEmit`. It typechecks `src`.
112
94
 
113
95
  ## From startup to the first frame
114
96
 
115
- `src/main.ts` is the current startup path. It still fills `#app` with the Vite starter page (logos and a counter) and then starts the framework on `#game-canvas`.
97
+ `src/main.ts` is the current startup path. It still fills `#app` with the Vite starter page (logos and a heading) and then starts the framework on `#game-canvas`.
116
98
 
117
99
  Register listeners before `initialize()`. Load-content and initialized listeners run only inside that call. Update and render listeners stay on the loop, so a listener added later still runs on a following frame. `initialize()` does this:
118
100
 
119
101
  1. Starts KTX2 initialization when `useKtx2` is set, without awaiting it.
120
102
  2. Creates the WebGL2 context, swap chain, and default sampler, blend state, and primitive state.
121
103
  3. Initializes the sprite batch (a default orthographic camera and a 1×1 white texture).
122
- 4. Initializes input. Mouse move, mouse buttons, and wheel events on the canvas update `framework.input.getMouseState()`.
104
+ 4. Initializes input. Mouse move, mouse buttons, and wheel events on the canvas update `framework.input.getMouseState()`. Touch start, move, end, and cancel events on the canvas update `framework.input.getTouchCollection()`, using the same viewport `clientX` / `clientY` coordinates as the mouse. A cancel is `TouchLocationState.CANCELLED`, which is not a finger lift. The canvas `touch-action` is set to `none`, and touch start and move call `preventDefault`, so the browser does not scroll or pinch-zoom that canvas.
123
105
  5. Prepares the time manager.
124
106
  6. Calls every `addOnLoadContentListener` callback. Async callbacks are not awaited.
125
107
  7. Calls every `addOnInitializedListener` callback.
@@ -140,7 +122,7 @@ import {
140
122
  TextureFormat,
141
123
  type ISampler,
142
124
  type ITexture2D,
143
- } from "ris-framework-api";
125
+ } from "ris-framework";
144
126
 
145
127
  const rect = new Rect(200, 200, 200, 200);
146
128
  const texRect = new Rect(500, 200, 200, 200);
@@ -199,7 +181,7 @@ These throw, or they accept a call and do not do the work the name suggests:
199
181
  - `SpriteBatch.draw` and `drawRect` accept rotation arguments and do not use them. `layerDepth` is written as the sprite's z position.
200
182
  - Keyboard and gamepad queries return empty state. `getKeyboardState()` is an empty `KeyboardState`. `getGamePadState()` is a disconnected `GamePadState`. `thumbstickDeadZone` is stored and not applied.
201
183
  - A render pass that enables stencil without depth throws `Not implemented`.
202
- - Paths ending in `.ktx2` go through `content.loadKtx2Async`, which uses its own `Ktx2Factory` and does not call `initializeAsync`. `loadAsync` needs the KTX module that `useKtx2` starts, and `initialize()` does not wait for that call. The `.ktx2` branch of `loadTexture2DAsync` also drops `ContentConfig`. The current entry file does not load a `.ktx2` file.
184
+ - Paths ending in `.ktx2` go through `content.loadKtx2Async`, which uses its own `Ktx2Factory` and does not call `initializeAsync`. The libktx module is shared by every `Ktx2Factory`, so `loadAsync` works only after some factory has finished `initializeAsync()`. `useKtx2` starts that call in `initialize()` but does not wait for it. To load a `.ktx2` file, set `useKtx2`, await `framework.ktx2Factory.initializeAsync()` before `initialize()`, and then call `loadTexture2DAsync` from a load-content listener. `src/main.ts` does not load a `.ktx2` file.
203
185
  - The geometry and unlit-pipeline steps at the bottom of `src/main.ts` are comments. `geometryBuilder.quadGeometry()` can build quad data; the entry file does not upload it or draw it.
204
186
 
205
187
  ## Version
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- `ris-framework` is distributed under the MIT License (see `LICENSE`).
3
+ `ris-framework` is distributed under the Apache License 2.0 (see `LICENSE` and `NOTICE`). Copyright 2026 Luka Erkapic.
4
4
 
5
5
  The published library bundles the browser build of [`ris-ktx2`](https://github.com/luka712/ris-ktx2-ts) so a consuming app does not import that package's Node loader. `ris-ktx2` is MIT licensed. Copyright (c) 2026 Luka Erkapic.
6
6
 
@@ -1,9 +1,6 @@
1
- import { FrameworkConfig } from "./FrameworkConfig.js";
2
- import { GameTime, type IBufferFactory, type IGeometryBuilder, type IGraphicsDevice, type IImageProcessor, type IInputManager, type IMeshFactory, type ISpriteBatch, type ITextureFactory, type ITimeManager, RenderingBackend } from "ris-framework-api";
3
- import type { ICameraFactory, IContentManager, IFramework, IImageLoader, IRenderer, IWindowManager } from "ris-framework-api";
4
- import type { IRenderPipelineFactory } from "ris-framework-api";
5
- import { type IMaterialFactory } from "ris-framework-api";
6
- import type { IKtx2Factory } from "ris-ktx2-api";
1
+ import { type ICameraFactory, type IContentManager, type IFramework, IFrameworkConfiguration, type IImageLoader, type IRenderer, type IRenderPipelineFactory, type IWindowManager } from "./api/index.js";
2
+ import { GameTime, type IBufferFactory, type IGeometryBuilder, type IGraphicsDevice, type IImageProcessor, type IInputManager, type IMaterialFactory, type IMeshFactory, type ISpriteBatch, type ITextureFactory, type ITimeManager, RenderingBackend } from "./api/index.js";
3
+ import type { IKtx2Factory } from "ris-ktx2";
7
4
  export declare class Framework implements IFramework {
8
5
  private readonly _onLoadContentListeners;
9
6
  private readonly _onInitializeListeners;
@@ -17,9 +14,9 @@ export declare class Framework implements IFramework {
17
14
  private readonly _meshFactory;
18
15
  /**
19
16
  * The constructor for the Framework class.
20
- * @param options The optional options for them framework.
17
+ * @param options The optional framework configuration. When omitted, a default `FrameworkConfiguration` is used.
21
18
  */
22
- constructor(options?: FrameworkConfig | null);
19
+ constructor(options?: IFrameworkConfiguration);
23
20
  /** @inheritDoc */
24
21
  readonly imageLoader: IImageLoader;
25
22
  renderingBackend: RenderingBackend;
@@ -49,6 +46,11 @@ export declare class Framework implements IFramework {
49
46
  addOnRenderListener(event: () => void): void;
50
47
  /** @inheritdoc */
51
48
  removeOnRenderListener(event: () => void): void;
49
+ /**
50
+ * Removes a listener if it is registered. An unknown listener is ignored,
51
+ * instead of `splice(-1, 1)` removing the last registered one.
52
+ */
53
+ private static _removeListener;
52
54
  /** @inheritdoc */
53
55
  get graphicsDevice(): IGraphicsDevice;
54
56
  /** @inheritdoc */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Framework.d.ts","sourceRoot":"","sources":["../src/Framework.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,23 @@
1
+ import { TextureSamplerFilteringPreset } from "../core/rendering/enums.js";
2
+ import { vec2 } from "gl-matrix";
3
+ import type { IFrameworkConfiguration } from "./IFrameworkConfiguration.js";
4
+ import { PowerPreferenceType } from "./rendering/PowerPreference.js";
5
+ /**
6
+ * The options for configuring the Framework.
7
+ * @public
8
+ */
9
+ export declare class FrameworkConfiguration implements IFrameworkConfiguration {
10
+ /** @inheritDoc */
11
+ useKtx2: boolean;
12
+ /** @inheritDoc */
13
+ canvas?: HTMLCanvasElement;
14
+ /** @inheritDoc */
15
+ backBufferSize?: vec2;
16
+ /** @inheritDoc */
17
+ textureFiltering?: TextureSamplerFilteringPreset | undefined;
18
+ /** @inheritDoc */
19
+ alpha: boolean;
20
+ /** @inheritDoc */
21
+ powerPreference: PowerPreferenceType;
22
+ }
23
+ //# sourceMappingURL=FrameworkConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameworkConfiguration.d.ts","sourceRoot":"","sources":["../../src/api/FrameworkConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;AAEnE;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,uBAAuB;IAElE,kBAAkB;IAClB,OAAO,UAAS;IAEhB,kBAAkB;IAClB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,kBAAkB;IAClB,cAAc,CAAC,EAAE,IAAI,CAAC;IAEtB,kBAAkB;IAClB,gBAAgB,CAAC,4CAA0C;IAE3D,kBAAkB;IAClB,KAAK,UAAS;IAEd,kBAAkB;IAClB,eAAe,sBAA+B;CACjD"}
@@ -0,0 +1,125 @@
1
+ import { RenderingBackend } from "./rendering/RenderingBackend.js";
2
+ import type { ISpriteBatch } from "./sprites/ISpriteBatch.js";
3
+ import type { IRenderer } from "./rendering/IRenderer.js";
4
+ import type { IGraphicsDevice } from "./rendering/IGraphicsDevice.js";
5
+ import type { IRenderPipelineFactory } from "./rendering/render-pipelines/IRenderPipelineFactory.js";
6
+ import type { IBufferFactory } from "./rendering/buffers/IBufferFactory.js";
7
+ import type { IGeometryBuilder } from "./geometry/IGeometryBuilder.js";
8
+ import type { ICameraFactory } from "./camera/ICameraFactory.js";
9
+ import type { ITextureFactory } from "./rendering/texture/ITextureFactory.js";
10
+ import type { IContentManager } from "./content/IContentManager.js";
11
+ import type { IImageLoader } from "./loaders/IImageLoader.js";
12
+ import type { IMeshFactory } from "./meshes/IMeshFactory.js";
13
+ import type { IMaterialFactory } from "./material/IMaterialFactory.js";
14
+ import type { ITimeManager } from "./time/ITimeManager.js";
15
+ import type { IInputManager } from "./input/IInputManager.js";
16
+ import type { IWindowManager } from "./window/IWindowManager.js";
17
+ import { GameTime } from "./time/GameTime.js";
18
+ import type { IImageProcessor } from "./image/IImageProcessor.js";
19
+ import type { IKtx2Factory } from "ris-ktx2";
20
+ import type { IDisposable } from "./core/IDisposable.js";
21
+ /** The framework interface. */
22
+ export interface IFramework extends IDisposable {
23
+ /**
24
+ * The image loader.
25
+ */
26
+ readonly imageLoader: IImageLoader;
27
+ /**
28
+ * The used rendering backend.
29
+ */
30
+ readonly renderingBackend: RenderingBackend;
31
+ /**
32
+ * The sprite batches.
33
+ */
34
+ readonly spriteBatch: ISpriteBatch;
35
+ /**
36
+ * The renderer used by the framework.
37
+ */
38
+ readonly renderer: IRenderer;
39
+ /**
40
+ * The graphics device used by the framework.
41
+ */
42
+ readonly graphicsDevice: IGraphicsDevice;
43
+ /**
44
+ * The pipeline factory.
45
+ * Responsible for creating low-level rendering pipelines.
46
+ * Pipeline includes everything necessary to render some geometry
47
+ * and can be thought of as a material or renderer.
48
+ */
49
+ readonly renderPipelineFactory: IRenderPipelineFactory;
50
+ /**
51
+ * The buffer factory, responsible for creating GPU memory buffers.
52
+ */
53
+ readonly bufferFactory: IBufferFactory;
54
+ /**
55
+ * The geometry builder.
56
+ */
57
+ readonly geometryBuilder: IGeometryBuilder;
58
+ /** The texture factory. */
59
+ readonly textureFactory: ITextureFactory;
60
+ /** The KTX2 factory. Initialized only if KTX2 is requested or loaded. */
61
+ readonly ktx2Factory?: IKtx2Factory;
62
+ /**
63
+ * The camera factory.
64
+ */
65
+ readonly cameraFactory: ICameraFactory;
66
+ /**
67
+ * The content manager.
68
+ */
69
+ readonly content: IContentManager;
70
+ /**
71
+ * The mesh factory.
72
+ */
73
+ readonly meshFactory: IMeshFactory;
74
+ /**
75
+ * The material factory.
76
+ */
77
+ readonly materialFactory: IMaterialFactory;
78
+ /**
79
+ * The time manager.
80
+ */
81
+ readonly timeManager: ITimeManager;
82
+ /** The input manager. */
83
+ readonly input: IInputManager;
84
+ /** The window manager. */
85
+ readonly windowManager: IWindowManager;
86
+ /** The image processor. */
87
+ readonly imageProcessor: IImageProcessor;
88
+ /**
89
+ * Called right after the framework is initialized and before the render loop starts.
90
+ * Content can be loaded here.
91
+ */
92
+ addOnLoadContentListener(event: () => void): void;
93
+ /**
94
+ * Called right after the framework is initialized and before the render loop starts.
95
+ * Content can be loaded here.
96
+ */
97
+ removeOnLoadContentListener(event: () => void): void;
98
+ /**
99
+ * Called when the framework is initialized.
100
+ */
101
+ addOnInitializedListener(event: () => void): void;
102
+ /**
103
+ * Called when the framework is initialized.
104
+ */
105
+ removeOnInitializedListener(event: () => void): void;
106
+ /**
107
+ * Called when framework is updated.
108
+ */
109
+ addOnUpdateListener(event: (gameTime: GameTime) => void): void;
110
+ /**
111
+ * Called when framework is updated.
112
+ */
113
+ removeOnUpdateListener(event: (gameTime: GameTime) => void): void;
114
+ /**
115
+ * Called when the framework is rendered.
116
+ */
117
+ addOnRenderListener(event: () => void): void;
118
+ /**
119
+ * Called when the framework is rendered.
120
+ */
121
+ removeOnRenderListener(event: () => void): void;
122
+ /** Initializes the framework. */
123
+ initialize(): void;
124
+ }
125
+ //# sourceMappingURL=IFramework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IFramework.d.ts","sourceRoot":"","sources":["../../src/api/IFramework.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ import { PowerPreferenceType } from "./rendering/PowerPreference.js";
2
+ import type { vec2 } from "gl-matrix";
3
+ import type { TextureSamplerFilteringPreset } from "../core/rendering/enums.js";
4
+ /**
5
+ * The configuration for the framework.
6
+ * @public
7
+ **/
8
+ export declare class IFrameworkConfiguration {
9
+ /** If true, creates and makes the KTX2 factory available. */
10
+ useKtx2?: boolean;
11
+ /** The size of back buffer. */
12
+ backBufferSize?: vec2;
13
+ /** The texture filtering to configure */
14
+ textureFiltering?: TextureSamplerFilteringPreset;
15
+ /**
16
+ * The HTMLCanvasElement to use for rendering.
17
+ * If null, a new canvas will be created and added to the document body.
18
+ */
19
+ canvas?: HTMLCanvasElement;
20
+ /** Should back buffer use alpha. */
21
+ alpha?: boolean;
22
+ /** The preference when it comes to selecting GPU device. Only makes sense to set on multi-GPU devices. */
23
+ powerPreference?: PowerPreferenceType;
24
+ }
25
+ //# sourceMappingURL=IFrameworkConfiguration.d.ts.map