ris-framework 0.1.0-dev.6 → 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 (640) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE +202 -21
  3. package/LICENSES/Apache-2.0.txt +202 -0
  4. package/NOTICE +2 -0
  5. package/README.md +46 -47
  6. package/THIRD_PARTY_NOTICES.md +27 -0
  7. package/dist/Framework.d.ts +81 -0
  8. package/dist/Framework.d.ts.map +1 -0
  9. package/dist/api/FrameworkConfiguration.d.ts +23 -0
  10. package/dist/api/FrameworkConfiguration.d.ts.map +1 -0
  11. package/dist/api/IFramework.d.ts +125 -0
  12. package/dist/api/IFramework.d.ts.map +1 -0
  13. package/dist/api/IFrameworkConfiguration.d.ts +25 -0
  14. package/dist/api/IFrameworkConfiguration.d.ts.map +1 -0
  15. package/dist/api/_export.d.ts +27 -0
  16. package/dist/api/_export.d.ts.map +1 -0
  17. package/dist/api/camera/CameraFactory.d.ts +25 -0
  18. package/dist/api/camera/CameraFactory.d.ts.map +1 -0
  19. package/dist/api/camera/ICamera.d.ts +43 -0
  20. package/dist/api/camera/ICamera.d.ts.map +1 -0
  21. package/dist/api/camera/ICameraFactory.d.ts +46 -0
  22. package/dist/api/camera/ICameraFactory.d.ts.map +1 -0
  23. package/dist/api/camera/IOrthographicCamera.d.ts +31 -0
  24. package/dist/api/camera/IOrthographicCamera.d.ts.map +1 -0
  25. package/dist/api/camera/OrbitCamera.d.ts +120 -0
  26. package/dist/api/camera/OrbitCamera.d.ts.map +1 -0
  27. package/dist/api/camera/OrthographicCamera.d.ts +96 -0
  28. package/dist/api/camera/OrthographicCamera.d.ts.map +1 -0
  29. package/dist/api/camera/PerspectiveCamera.d.ts +108 -0
  30. package/dist/api/camera/PerspectiveCamera.d.ts.map +1 -0
  31. package/dist/api/camera/_export.d.ts +8 -0
  32. package/dist/api/camera/_export.d.ts.map +1 -0
  33. package/dist/api/content/ContentConfig.d.ts +11 -0
  34. package/dist/api/content/ContentConfig.d.ts.map +1 -0
  35. package/dist/api/content/ContentManager.d.ts +27 -0
  36. package/dist/api/content/ContentManager.d.ts.map +1 -0
  37. package/dist/api/content/IContent.d.ts +8 -0
  38. package/dist/api/content/IContent.d.ts.map +1 -0
  39. package/dist/api/content/IContentManager.d.ts +37 -0
  40. package/dist/api/content/IContentManager.d.ts.map +1 -0
  41. package/dist/api/content/IContentModule.d.ts +58 -0
  42. package/dist/api/content/IContentModule.d.ts.map +1 -0
  43. package/dist/api/content/ShaderModuleContent.d.ts +14 -0
  44. package/dist/api/content/ShaderModuleContent.d.ts.map +1 -0
  45. package/dist/api/content/_export-content.d.ts +5 -0
  46. package/dist/api/content/_export-content.d.ts.map +1 -0
  47. package/dist/api/core/IDisposable.d.ts +10 -0
  48. package/dist/api/core/IDisposable.d.ts.map +1 -0
  49. package/dist/api/core/_export-core.d.ts +2 -0
  50. package/dist/api/core/_export-core.d.ts.map +1 -0
  51. package/dist/api/data/Color.d.ts +119 -0
  52. package/dist/api/data/Color.d.ts.map +1 -0
  53. package/dist/api/data/Rect.d.ts +61 -0
  54. package/dist/api/data/Rect.d.ts.map +1 -0
  55. package/dist/api/data/State.d.ts +11 -0
  56. package/dist/api/data/State.d.ts.map +1 -0
  57. package/dist/api/data/_export.d.ts +4 -0
  58. package/dist/api/data/_export.d.ts.map +1 -0
  59. package/dist/api/geometry/BaseGeometry.d.ts +44 -0
  60. package/dist/api/geometry/BaseGeometry.d.ts.map +1 -0
  61. package/dist/api/geometry/GeometryBuilder.d.ts +11 -0
  62. package/dist/api/geometry/GeometryBuilder.d.ts.map +1 -0
  63. package/dist/api/geometry/GeometryFormat.d.ts +34 -0
  64. package/dist/api/geometry/GeometryFormat.d.ts.map +1 -0
  65. package/dist/api/geometry/IGeometry.d.ts +54 -0
  66. package/dist/api/geometry/IGeometry.d.ts.map +1 -0
  67. package/dist/api/geometry/IGeometryBuilder.d.ts +15 -0
  68. package/dist/api/geometry/IGeometryBuilder.d.ts.map +1 -0
  69. package/dist/api/geometry/VertexFormat.d.ts +14 -0
  70. package/dist/api/geometry/VertexFormat.d.ts.map +1 -0
  71. package/dist/api/geometry/_export-geometry.d.ts +5 -0
  72. package/dist/api/geometry/_export-geometry.d.ts.map +1 -0
  73. package/dist/api/image/CpuImageProcessor.d.ts +16 -0
  74. package/dist/api/image/CpuImageProcessor.d.ts.map +1 -0
  75. package/dist/api/image/IImageProcessor.d.ts +26 -0
  76. package/dist/api/image/IImageProcessor.d.ts.map +1 -0
  77. package/dist/api/image/RawImageData.d.ts +34 -0
  78. package/dist/api/image/RawImageData.d.ts.map +1 -0
  79. package/dist/api/image/_export.d.ts +4 -0
  80. package/dist/api/image/_export.d.ts.map +1 -0
  81. package/dist/api/index.d.ts +2 -0
  82. package/dist/api/index.d.ts.map +1 -0
  83. package/dist/api/input/IInputManager.d.ts +53 -0
  84. package/dist/api/input/IInputManager.d.ts.map +1 -0
  85. package/dist/api/input/InputDeviceType.d.ts +18 -0
  86. package/dist/api/input/InputDeviceType.d.ts.map +1 -0
  87. package/dist/api/input/InputManager.d.ts +73 -0
  88. package/dist/api/input/InputManager.d.ts.map +1 -0
  89. package/dist/api/input/Key.d.ts +36 -0
  90. package/dist/api/input/Key.d.ts.map +1 -0
  91. package/dist/api/input/KeyboardState.d.ts +37 -0
  92. package/dist/api/input/KeyboardState.d.ts.map +1 -0
  93. package/dist/api/input/_export.d.ts +14 -0
  94. package/dist/api/input/_export.d.ts.map +1 -0
  95. package/dist/api/input/gamepad/Button.d.ts +22 -0
  96. package/dist/api/input/gamepad/Button.d.ts.map +1 -0
  97. package/dist/api/input/gamepad/GamePadState.d.ts +48 -0
  98. package/dist/api/input/gamepad/GamePadState.d.ts.map +1 -0
  99. package/dist/api/input/gamepad/GamePadThumbSticks.d.ts +17 -0
  100. package/dist/api/input/gamepad/GamePadThumbSticks.d.ts.map +1 -0
  101. package/dist/api/input/mouse/MouseButton.d.ts +10 -0
  102. package/dist/api/input/mouse/MouseButton.d.ts.map +1 -0
  103. package/dist/api/input/mouse/MouseState.d.ts +52 -0
  104. package/dist/api/input/mouse/MouseState.d.ts.map +1 -0
  105. package/dist/api/input/touch/TouchCollection.d.ts +79 -0
  106. package/dist/api/input/touch/TouchCollection.d.ts.map +1 -0
  107. package/dist/api/input/touch/TouchLocation.d.ts +80 -0
  108. package/dist/api/input/touch/TouchLocation.d.ts.map +1 -0
  109. package/dist/api/input/touch/TouchLocationState.d.ts +16 -0
  110. package/dist/api/input/touch/TouchLocationState.d.ts.map +1 -0
  111. package/dist/api/input/touch/TouchPanelCapabilities.d.ts +24 -0
  112. package/dist/api/input/touch/TouchPanelCapabilities.d.ts.map +1 -0
  113. package/dist/api/loaders/IImageLoader.d.ts +20 -0
  114. package/dist/api/loaders/IImageLoader.d.ts.map +1 -0
  115. package/dist/api/loaders/ImageLoader.d.ts +36 -0
  116. package/dist/api/loaders/ImageLoader.d.ts.map +1 -0
  117. package/dist/api/loaders/_export.d.ts +3 -0
  118. package/dist/api/loaders/_export.d.ts.map +1 -0
  119. package/dist/api/material/IMaterial.d.ts +35 -0
  120. package/dist/api/material/IMaterial.d.ts.map +1 -0
  121. package/dist/api/material/IMaterialFactory.d.ts +19 -0
  122. package/dist/api/material/IMaterialFactory.d.ts.map +1 -0
  123. package/dist/api/material/InspectTextureMipsMaterial.d.ts +58 -0
  124. package/dist/api/material/InspectTextureMipsMaterial.d.ts.map +1 -0
  125. package/dist/api/material/MaterialFactory.d.ts +20 -0
  126. package/dist/api/material/MaterialFactory.d.ts.map +1 -0
  127. package/dist/api/material/UnlitMaterial.d.ts +76 -0
  128. package/dist/api/material/UnlitMaterial.d.ts.map +1 -0
  129. package/dist/api/material/_export.d.ts +6 -0
  130. package/dist/api/material/_export.d.ts.map +1 -0
  131. package/dist/api/meshes/IMesh.d.ts +17 -0
  132. package/dist/api/meshes/IMesh.d.ts.map +1 -0
  133. package/dist/api/meshes/IMeshFactory.d.ts +25 -0
  134. package/dist/api/meshes/IMeshFactory.d.ts.map +1 -0
  135. package/dist/api/meshes/Mesh.d.ts +93 -0
  136. package/dist/api/meshes/Mesh.d.ts.map +1 -0
  137. package/dist/api/meshes/MeshFactory.d.ts +23 -0
  138. package/dist/api/meshes/MeshFactory.d.ts.map +1 -0
  139. package/dist/api/meshes/MeshParameters.d.ts +22 -0
  140. package/dist/api/meshes/MeshParameters.d.ts.map +1 -0
  141. package/dist/api/meshes/QuadMesh.d.ts +33 -0
  142. package/dist/api/meshes/QuadMesh.d.ts.map +1 -0
  143. package/dist/api/meshes/_export.d.ts +7 -0
  144. package/dist/api/meshes/_export.d.ts.map +1 -0
  145. package/dist/api/rendering/IGPUInfo.d.ts +35 -0
  146. package/dist/api/rendering/IGPUInfo.d.ts.map +1 -0
  147. package/dist/api/rendering/IGraphicsDevice.d.ts +88 -0
  148. package/dist/api/rendering/IGraphicsDevice.d.ts.map +1 -0
  149. package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts +27 -0
  150. package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts.map +1 -0
  151. package/dist/api/rendering/IRenderer.d.ts +71 -0
  152. package/dist/api/rendering/IRenderer.d.ts.map +1 -0
  153. package/dist/api/rendering/PowerPreference.d.ts +13 -0
  154. package/dist/api/rendering/PowerPreference.d.ts.map +1 -0
  155. package/dist/api/rendering/RenderingBackend.d.ts +18 -0
  156. package/dist/api/rendering/RenderingBackend.d.ts.map +1 -0
  157. package/dist/api/rendering/_export-rendering.d.ts +7 -0
  158. package/dist/api/rendering/_export-rendering.d.ts.map +1 -0
  159. package/dist/api/rendering/blending/IBlendState.d.ts +16 -0
  160. package/dist/api/rendering/blending/IBlendState.d.ts.map +1 -0
  161. package/dist/api/rendering/blending/_export.d.ts +2 -0
  162. package/dist/api/rendering/blending/_export.d.ts.map +1 -0
  163. package/dist/api/rendering/buffers/BufferUsage.d.ts +57 -0
  164. package/dist/api/rendering/buffers/BufferUsage.d.ts.map +1 -0
  165. package/dist/api/rendering/buffers/IBuffer.d.ts +20 -0
  166. package/dist/api/rendering/buffers/IBuffer.d.ts.map +1 -0
  167. package/dist/api/rendering/buffers/IBufferFactory.d.ts +34 -0
  168. package/dist/api/rendering/buffers/IBufferFactory.d.ts.map +1 -0
  169. package/dist/api/rendering/buffers/IIndexBuffer.d.ts +31 -0
  170. package/dist/api/rendering/buffers/IIndexBuffer.d.ts.map +1 -0
  171. package/dist/api/rendering/buffers/IUniformBuffer.d.ts +18 -0
  172. package/dist/api/rendering/buffers/IUniformBuffer.d.ts.map +1 -0
  173. package/dist/api/rendering/buffers/IVertexBuffer.d.ts +26 -0
  174. package/dist/api/rendering/buffers/IVertexBuffer.d.ts.map +1 -0
  175. package/dist/api/rendering/buffers/IVertexBufferLayout.d.ts +23 -0
  176. package/dist/api/rendering/buffers/IVertexBufferLayout.d.ts.map +1 -0
  177. package/dist/api/rendering/buffers/IndexBufferType.d.ts +14 -0
  178. package/dist/api/rendering/buffers/IndexBufferType.d.ts.map +1 -0
  179. package/dist/api/rendering/buffers/VertexAttribute.d.ts +22 -0
  180. package/dist/api/rendering/buffers/VertexAttribute.d.ts.map +1 -0
  181. package/dist/api/rendering/buffers/VertexStepMode.d.ts +14 -0
  182. package/dist/api/rendering/buffers/VertexStepMode.d.ts.map +1 -0
  183. package/dist/api/rendering/buffers/_export-buffers.d.ts +11 -0
  184. package/dist/api/rendering/buffers/_export-buffers.d.ts.map +1 -0
  185. package/dist/api/rendering/enums.d.ts +18 -0
  186. package/dist/api/rendering/enums.d.ts.map +1 -0
  187. package/dist/api/rendering/primitive/CullMode.d.ts +18 -0
  188. package/dist/api/rendering/primitive/CullMode.d.ts.map +1 -0
  189. package/dist/api/rendering/primitive/FrontFace.d.ts +14 -0
  190. package/dist/api/rendering/primitive/FrontFace.d.ts.map +1 -0
  191. package/dist/api/rendering/primitive/IPrimitiveState.d.ts +22 -0
  192. package/dist/api/rendering/primitive/IPrimitiveState.d.ts.map +1 -0
  193. package/dist/api/rendering/primitive/PrimitiveStateDescriptor.d.ts +24 -0
  194. package/dist/api/rendering/primitive/PrimitiveStateDescriptor.d.ts.map +1 -0
  195. package/dist/api/rendering/primitive/PrimitiveTopology.d.ts +26 -0
  196. package/dist/api/rendering/primitive/PrimitiveTopology.d.ts.map +1 -0
  197. package/dist/api/rendering/primitive/_export.d.ts +6 -0
  198. package/dist/api/rendering/primitive/_export.d.ts.map +1 -0
  199. package/dist/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.d.ts +33 -0
  200. package/dist/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.d.ts.map +1 -0
  201. package/dist/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.d.ts +18 -0
  202. package/dist/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.d.ts.map +1 -0
  203. package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts +39 -0
  204. package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts.map +1 -0
  205. package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts +42 -0
  206. package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts.map +1 -0
  207. package/dist/api/rendering/render-pipelines/ISpriteRenderPipeline.d.ts +22 -0
  208. package/dist/api/rendering/render-pipelines/ISpriteRenderPipeline.d.ts.map +1 -0
  209. package/dist/api/rendering/render-pipelines/IUnlitRenderPipeline.d.ts +33 -0
  210. package/dist/api/rendering/render-pipelines/IUnlitRenderPipeline.d.ts.map +1 -0
  211. package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts +7 -0
  212. package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts.map +1 -0
  213. package/dist/api/rendering/renderer-interface.d.ts +81 -0
  214. package/dist/api/rendering/renderer-interface.d.ts.map +1 -0
  215. package/dist/api/rendering/rendering-limits.d.ts +16 -0
  216. package/dist/api/rendering/rendering-limits.d.ts.map +1 -0
  217. package/dist/api/rendering/renderpass/IRenderPass.d.ts +15 -0
  218. package/dist/api/rendering/renderpass/IRenderPass.d.ts.map +1 -0
  219. package/dist/api/rendering/renderpass/LoadAction.d.ts +33 -0
  220. package/dist/api/rendering/renderpass/LoadAction.d.ts.map +1 -0
  221. package/dist/api/rendering/renderpass/RenderPassColorAttachment.d.ts +53 -0
  222. package/dist/api/rendering/renderpass/RenderPassColorAttachment.d.ts.map +1 -0
  223. package/dist/api/rendering/renderpass/RenderPassDepthStencilAttachment.d.ts +56 -0
  224. package/dist/api/rendering/renderpass/RenderPassDepthStencilAttachment.d.ts.map +1 -0
  225. package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts +22 -0
  226. package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts.map +1 -0
  227. package/dist/api/rendering/renderpass/StoreAction.d.ts +24 -0
  228. package/dist/api/rendering/renderpass/StoreAction.d.ts.map +1 -0
  229. package/dist/api/rendering/renderpass/_export.d.ts +7 -0
  230. package/dist/api/rendering/renderpass/_export.d.ts.map +1 -0
  231. package/dist/api/rendering/sampler/ISampler.d.ts +43 -0
  232. package/dist/api/rendering/sampler/ISampler.d.ts.map +1 -0
  233. package/dist/api/rendering/sampler/MipMapSamplerFilter.d.ts +18 -0
  234. package/dist/api/rendering/sampler/MipMapSamplerFilter.d.ts.map +1 -0
  235. package/dist/api/rendering/sampler/SamplerAddressMode.d.ts +24 -0
  236. package/dist/api/rendering/sampler/SamplerAddressMode.d.ts.map +1 -0
  237. package/dist/api/rendering/sampler/SamplerDescriptor.d.ts +40 -0
  238. package/dist/api/rendering/sampler/SamplerDescriptor.d.ts.map +1 -0
  239. package/dist/api/rendering/sampler/SamplerFilter.d.ts +14 -0
  240. package/dist/api/rendering/sampler/SamplerFilter.d.ts.map +1 -0
  241. package/dist/api/rendering/sampler/_export.d.ts +6 -0
  242. package/dist/api/rendering/sampler/_export.d.ts.map +1 -0
  243. package/dist/api/rendering/sampler/sampler-enums.d.ts +15 -0
  244. package/dist/api/rendering/sampler/sampler-enums.d.ts.map +1 -0
  245. package/dist/api/rendering/swapchain/ISwapChain.d.ts +29 -0
  246. package/dist/api/rendering/swapchain/ISwapChain.d.ts.map +1 -0
  247. package/dist/api/rendering/swapchain/SurfacePresentMode.d.ts +23 -0
  248. package/dist/api/rendering/swapchain/SurfacePresentMode.d.ts.map +1 -0
  249. package/dist/api/rendering/swapchain/SwapChainDescriptor.d.ts +20 -0
  250. package/dist/api/rendering/swapchain/SwapChainDescriptor.d.ts.map +1 -0
  251. package/dist/api/rendering/swapchain/_export.d.ts +4 -0
  252. package/dist/api/rendering/swapchain/_export.d.ts.map +1 -0
  253. package/dist/api/rendering/texture/ITexture2D.d.ts +83 -0
  254. package/dist/api/rendering/texture/ITexture2D.d.ts.map +1 -0
  255. package/dist/api/rendering/texture/ITextureFactory.d.ts +42 -0
  256. package/dist/api/rendering/texture/ITextureFactory.d.ts.map +1 -0
  257. package/dist/api/rendering/texture/ITextureView.d.ts +17 -0
  258. package/dist/api/rendering/texture/ITextureView.d.ts.map +1 -0
  259. package/dist/api/rendering/texture/TextureDescriptor.d.ts +42 -0
  260. package/dist/api/rendering/texture/TextureDescriptor.d.ts.map +1 -0
  261. package/dist/api/rendering/texture/TextureFormat.d.ts +54 -0
  262. package/dist/api/rendering/texture/TextureFormat.d.ts.map +1 -0
  263. package/dist/api/rendering/texture/TextureUsage.d.ts +42 -0
  264. package/dist/api/rendering/texture/TextureUsage.d.ts.map +1 -0
  265. package/dist/api/rendering/texture/TextureUtilities.d.ts +54 -0
  266. package/dist/api/rendering/texture/TextureUtilities.d.ts.map +1 -0
  267. package/dist/api/rendering/texture/TextureViewDescriptor.d.ts +22 -0
  268. package/dist/api/rendering/texture/TextureViewDescriptor.d.ts.map +1 -0
  269. package/dist/api/rendering/texture/TextureViewDimension.d.ts +17 -0
  270. package/dist/api/rendering/texture/TextureViewDimension.d.ts.map +1 -0
  271. package/dist/api/rendering/texture/_export-texture.d.ts +10 -0
  272. package/dist/api/rendering/texture/_export-texture.d.ts.map +1 -0
  273. package/dist/api/shader/IShaderModule.d.ts +21 -0
  274. package/dist/api/shader/IShaderModule.d.ts.map +1 -0
  275. package/dist/api/shader/IShaderModuleLoader.d.ts +13 -0
  276. package/dist/api/shader/IShaderModuleLoader.d.ts.map +1 -0
  277. package/dist/api/shader/ShaderStage.d.ts +10 -0
  278. package/dist/api/shader/ShaderStage.d.ts.map +1 -0
  279. package/dist/api/shader/_export-shader.d.ts +4 -0
  280. package/dist/api/shader/_export-shader.d.ts.map +1 -0
  281. package/dist/api/shader/shader-loader.d.ts +12 -0
  282. package/dist/api/shader/shader-loader.d.ts.map +1 -0
  283. package/dist/api/sprites/ISpriteBatch.d.ts +114 -0
  284. package/dist/api/sprites/ISpriteBatch.d.ts.map +1 -0
  285. package/dist/api/sprites/SpriteBatch.d.ts +50 -0
  286. package/dist/api/sprites/SpriteBatch.d.ts.map +1 -0
  287. package/dist/api/sprites/SpriteBatchDrawable.d.ts +57 -0
  288. package/dist/api/sprites/SpriteBatchDrawable.d.ts.map +1 -0
  289. package/dist/api/sprites/SpriteBatchMesh.d.ts +32 -0
  290. package/dist/api/sprites/SpriteBatchMesh.d.ts.map +1 -0
  291. package/dist/api/sprites/_export_sprites.d.ts +2 -0
  292. package/dist/api/sprites/_export_sprites.d.ts.map +1 -0
  293. package/dist/api/time/GameTime.d.ts +23 -0
  294. package/dist/api/time/GameTime.d.ts.map +1 -0
  295. package/dist/api/time/ITimeManager.d.ts +19 -0
  296. package/dist/api/time/ITimeManager.d.ts.map +1 -0
  297. package/dist/api/time/TimeManager.d.ts +15 -0
  298. package/dist/api/time/TimeManager.d.ts.map +1 -0
  299. package/dist/api/time/_export_time.d.ts +4 -0
  300. package/dist/api/time/_export_time.d.ts.map +1 -0
  301. package/dist/api/utilities/AlignUtilities.d.ts +20 -0
  302. package/dist/api/utilities/AlignUtilities.d.ts.map +1 -0
  303. package/dist/api/utilities/GeometryUtilities.d.ts +13 -0
  304. package/dist/api/utilities/GeometryUtilities.d.ts.map +1 -0
  305. package/dist/api/utilities/MathHelper.d.ts +162 -0
  306. package/dist/api/utilities/MathHelper.d.ts.map +1 -0
  307. package/dist/api/utilities/_export.d.ts +4 -0
  308. package/dist/api/utilities/_export.d.ts.map +1 -0
  309. package/dist/api/window/IWindowManager.d.ts +64 -0
  310. package/dist/api/window/IWindowManager.d.ts.map +1 -0
  311. package/dist/api/window/WindowBounds.d.ts +16 -0
  312. package/dist/api/window/WindowBounds.d.ts.map +1 -0
  313. package/dist/api/window/WindowManager.d.ts +32 -0
  314. package/dist/api/window/WindowManager.d.ts.map +1 -0
  315. package/dist/api/window/_export.d.ts +3 -0
  316. package/dist/api/window/_export.d.ts.map +1 -0
  317. package/dist/core/rendering/AGraphicsDevice.d.ts +73 -0
  318. package/dist/core/rendering/AGraphicsDevice.d.ts.map +1 -0
  319. package/dist/core/rendering/ARenderer.d.ts +74 -0
  320. package/dist/core/rendering/ARenderer.d.ts.map +1 -0
  321. package/dist/core/rendering/blending/blend-component-descriptor.d.ts +25 -0
  322. package/dist/core/rendering/blending/blend-component-descriptor.d.ts.map +1 -0
  323. package/dist/core/rendering/blending/blend-state-descriptor.d.ts +29 -0
  324. package/dist/core/rendering/blending/blend-state-descriptor.d.ts.map +1 -0
  325. package/dist/core/rendering/blending/enums.d.ts +43 -0
  326. package/dist/core/rendering/blending/enums.d.ts.map +1 -0
  327. package/dist/core/rendering/enums.d.ts +20 -0
  328. package/dist/core/rendering/enums.d.ts.map +1 -0
  329. package/dist/core/rendering/sampler/sampler-descriptor.d.ts +28 -0
  330. package/dist/core/rendering/sampler/sampler-descriptor.d.ts.map +1 -0
  331. package/dist/core/rendering/texture/texture.d.ts +69 -0
  332. package/dist/core/rendering/texture/texture.d.ts.map +1 -0
  333. package/dist/core/rendering/vertex-buffer-layout.d.ts +22 -0
  334. package/dist/core/rendering/vertex-buffer-layout.d.ts.map +1 -0
  335. package/dist/index.d.ts +5 -0
  336. package/dist/index.d.ts.map +1 -0
  337. package/dist/index.js +8054 -0
  338. package/dist/libktx-Cjh8w7XG-DhnH9lxr.js +4 -0
  339. package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts +31 -0
  340. package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts.map +1 -0
  341. package/dist/webgl/WebGlGpuInfo.d.ts +25 -0
  342. package/dist/webgl/WebGlGpuInfo.d.ts.map +1 -0
  343. package/dist/webgl/WebGlGraphicsDevice.d.ts +47 -0
  344. package/dist/webgl/WebGlGraphicsDevice.d.ts.map +1 -0
  345. package/dist/webgl/WebGlRenderer.d.ts +18 -0
  346. package/dist/webgl/WebGlRenderer.d.ts.map +1 -0
  347. package/dist/webgl/blending/webgl-blend-state.d.ts +33 -0
  348. package/dist/webgl/blending/webgl-blend-state.d.ts.map +1 -0
  349. package/dist/webgl/buffers/WebGlBuffersFactory.d.ts +16 -0
  350. package/dist/webgl/buffers/WebGlBuffersFactory.d.ts.map +1 -0
  351. package/dist/webgl/buffers/WebGlUniformBuffer.d.ts +34 -0
  352. package/dist/webgl/buffers/WebGlUniformBuffer.d.ts.map +1 -0
  353. package/dist/webgl/buffers/WebGlVertexBuffer.d.ts +48 -0
  354. package/dist/webgl/buffers/WebGlVertexBuffer.d.ts.map +1 -0
  355. package/dist/webgl/buffers/webgl-index-buffer.d.ts +43 -0
  356. package/dist/webgl/buffers/webgl-index-buffer.d.ts.map +1 -0
  357. package/dist/webgl/cast/cast.d.ts +52 -0
  358. package/dist/webgl/cast/cast.d.ts.map +1 -0
  359. package/dist/webgl/primitive/WebGlPrimitiveState.d.ts +29 -0
  360. package/dist/webgl/primitive/WebGlPrimitiveState.d.ts.map +1 -0
  361. package/dist/webgl/render-pass/WebGlRenderPass.d.ts +34 -0
  362. package/dist/webgl/render-pass/WebGlRenderPass.d.ts.map +1 -0
  363. package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts +53 -0
  364. package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts.map +1 -0
  365. package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts +30 -0
  366. package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts.map +1 -0
  367. package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts +24 -0
  368. package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts.map +1 -0
  369. package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts +57 -0
  370. package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts.map +1 -0
  371. package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts +57 -0
  372. package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts.map +1 -0
  373. package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts +40 -0
  374. package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts.map +1 -0
  375. package/dist/webgl/rendering/webgl-vertex-attribute.d.ts +10 -0
  376. package/dist/webgl/rendering/webgl-vertex-attribute.d.ts.map +1 -0
  377. package/dist/webgl/rendering/webgl-vertex-buffer-layout.d.ts +27 -0
  378. package/dist/webgl/rendering/webgl-vertex-buffer-layout.d.ts.map +1 -0
  379. package/dist/webgl/sampler/webgl-sampler.d.ts +48 -0
  380. package/dist/webgl/sampler/webgl-sampler.d.ts.map +1 -0
  381. package/dist/webgl/shader/WebGlShaderModule.d.ts +34 -0
  382. package/dist/webgl/shader/WebGlShaderModule.d.ts.map +1 -0
  383. package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts +19 -0
  384. package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts.map +1 -0
  385. package/dist/webgl/swap-chain/WebGlSwapChain.d.ts +27 -0
  386. package/dist/webgl/swap-chain/WebGlSwapChain.d.ts.map +1 -0
  387. package/dist/webgl/texture/WebGlTexture2D.d.ts +37 -0
  388. package/dist/webgl/texture/WebGlTexture2D.d.ts.map +1 -0
  389. package/dist/webgl/texture/WebGlTextureFactory.d.ts +17 -0
  390. package/dist/webgl/texture/WebGlTextureFactory.d.ts.map +1 -0
  391. package/dist/webgl/utilities/WebGlBufferUtilities.d.ts +45 -0
  392. package/dist/webgl/utilities/WebGlBufferUtilities.d.ts.map +1 -0
  393. package/dist/webgl/utilities/WebGlConverter.d.ts +108 -0
  394. package/dist/webgl/utilities/WebGlConverter.d.ts.map +1 -0
  395. package/dist/webgl/utilities/WebGlFrameBufferUtilities.d.ts +54 -0
  396. package/dist/webgl/utilities/WebGlFrameBufferUtilities.d.ts.map +1 -0
  397. package/dist/webgl/utilities/WebGlSamplerUtilities.d.ts +23 -0
  398. package/dist/webgl/utilities/WebGlSamplerUtilities.d.ts.map +1 -0
  399. package/dist/webgl/utilities/WebGlShaderUtilities.d.ts +28 -0
  400. package/dist/webgl/utilities/WebGlShaderUtilities.d.ts.map +1 -0
  401. package/dist/webgl/utilities/WebGlTextureUtilities.d.ts +33 -0
  402. package/dist/webgl/utilities/WebGlTextureUtilities.d.ts.map +1 -0
  403. package/dist/webgl/utilities/WebGlUtilities.d.ts +60 -0
  404. package/dist/webgl/utilities/WebGlUtilities.d.ts.map +1 -0
  405. package/dist/webgl/utilities/spector-js-utilities.d.ts +9 -0
  406. package/dist/webgl/utilities/spector-js-utilities.d.ts.map +1 -0
  407. package/dist/webgl/utilities/webgl-blending-utilities.d.ts +17 -0
  408. package/dist/webgl/utilities/webgl-blending-utilities.d.ts.map +1 -0
  409. package/dist/webgl/utilities/webgl-culling-utilities.d.ts +13 -0
  410. package/dist/webgl/utilities/webgl-culling-utilities.d.ts.map +1 -0
  411. package/dist/webgl/utilities/webgl-filter-anisotropic-utilities.d.ts +24 -0
  412. package/dist/webgl/utilities/webgl-filter-anisotropic-utilities.d.ts.map +1 -0
  413. package/dist/webgl/utilities/webgl-program-utilities.d.ts +14 -0
  414. package/dist/webgl/utilities/webgl-program-utilities.d.ts.map +1 -0
  415. package/dist/webgl/utilities/webgl-renderbuffer-utilities.d.ts +17 -0
  416. package/dist/webgl/utilities/webgl-renderbuffer-utilities.d.ts.map +1 -0
  417. package/package.json +19 -12
  418. package/shaders/glsl/sprite_fs.glsl +1 -1
  419. package/src/{core/Framework.ts → Framework.ts} +78 -38
  420. package/src/api/FrameworkConfiguration.ts +29 -0
  421. package/src/api/IFramework.ts +153 -0
  422. package/src/api/IFrameworkConfiguration.ts +30 -0
  423. package/src/api/_export.ts +26 -0
  424. package/src/api/camera/CameraFactory.ts +56 -0
  425. package/src/api/camera/ICamera.ts +52 -0
  426. package/src/api/camera/ICameraFactory.ts +69 -0
  427. package/src/api/camera/IOrthographicCamera.ts +38 -0
  428. package/src/api/camera/OrbitCamera.ts +402 -0
  429. package/src/api/camera/OrthographicCamera.ts +257 -0
  430. package/src/api/camera/PerspectiveCamera.ts +206 -0
  431. package/src/api/camera/_export.ts +7 -0
  432. package/src/api/content/ContentConfig.ts +11 -0
  433. package/src/{core → api}/content/ContentManager.ts +4 -3
  434. package/src/api/content/IContent.ts +9 -0
  435. package/src/api/content/IContentManager.ts +41 -0
  436. package/src/api/content/IContentModule.ts +67 -0
  437. package/src/{content → api/content}/ShaderModuleContent.ts +8 -8
  438. package/src/api/content/_export-content.ts +4 -0
  439. package/src/api/core/IDisposable.ts +10 -0
  440. package/src/api/core/_export-core.ts +1 -0
  441. package/src/api/data/Color.ts +228 -0
  442. package/src/api/data/Rect.ts +92 -0
  443. package/src/api/data/State.ts +10 -0
  444. package/src/api/data/_export.ts +3 -0
  445. package/src/{geometry → api/geometry}/BaseGeometry.ts +15 -2
  446. package/src/{geometry → api/geometry}/GeometryBuilder.ts +1 -1
  447. package/src/api/geometry/GeometryFormat.ts +33 -0
  448. package/src/api/geometry/IGeometry.ts +66 -0
  449. package/src/api/geometry/IGeometryBuilder.ts +17 -0
  450. package/src/{VertexFormat.ts → api/geometry/VertexFormat.ts} +3 -7
  451. package/src/api/geometry/_export-geometry.ts +4 -0
  452. package/src/api/image/CpuImageProcessor.ts +125 -0
  453. package/src/api/image/IImageProcessor.ts +28 -0
  454. package/src/api/image/RawImageData.ts +47 -0
  455. package/src/api/image/_export.ts +3 -0
  456. package/src/api/index.ts +1 -0
  457. package/src/api/input/IInputManager.ts +62 -0
  458. package/src/api/input/InputDeviceType.ts +20 -0
  459. package/src/api/input/InputManager.ts +513 -0
  460. package/src/api/input/Key.ts +35 -0
  461. package/src/api/input/KeyboardState.ts +44 -0
  462. package/src/api/input/_export.ts +13 -0
  463. package/src/api/input/gamepad/Button.ts +21 -0
  464. package/src/api/input/gamepad/GamePadState.ts +65 -0
  465. package/src/api/input/gamepad/GamePadThumbSticks.ts +18 -0
  466. package/src/api/input/mouse/MouseButton.ts +9 -0
  467. package/src/api/input/mouse/MouseState.ts +70 -0
  468. package/src/api/input/touch/TouchCollection.ts +164 -0
  469. package/src/api/input/touch/TouchLocation.ts +159 -0
  470. package/src/api/input/touch/TouchLocationState.ts +15 -0
  471. package/src/api/input/touch/TouchPanelCapabilities.ts +31 -0
  472. package/src/api/loaders/IImageLoader.ts +22 -0
  473. package/src/api/loaders/ImageLoader.ts +93 -0
  474. package/src/api/loaders/_export.ts +2 -0
  475. package/src/api/material/IMaterial.ts +41 -0
  476. package/src/api/material/IMaterialFactory.ts +21 -0
  477. package/src/api/material/InspectTextureMipsMaterial.ts +113 -0
  478. package/src/api/material/MaterialFactory.ts +27 -0
  479. package/src/api/material/UnlitMaterial.ts +143 -0
  480. package/src/api/material/_export.ts +5 -0
  481. package/src/api/meshes/IMesh.ts +20 -0
  482. package/src/api/meshes/IMeshFactory.ts +28 -0
  483. package/src/api/meshes/Mesh.ts +256 -0
  484. package/src/api/meshes/MeshFactory.ts +36 -0
  485. package/src/api/meshes/MeshParameters.ts +25 -0
  486. package/src/api/meshes/QuadMesh.ts +104 -0
  487. package/src/api/meshes/_export.ts +6 -0
  488. package/src/api/rendering/IGPUInfo.ts +42 -0
  489. package/src/api/rendering/IGraphicsDevice.ts +103 -0
  490. package/src/api/rendering/IGraphicsDeviceFeatures.ts +32 -0
  491. package/src/api/rendering/IRenderer.ts +84 -0
  492. package/src/api/rendering/PowerPreference.ts +15 -0
  493. package/src/api/rendering/RenderingBackend.ts +20 -0
  494. package/src/api/rendering/_export-rendering.ts +6 -0
  495. package/src/api/rendering/blending/IBlendState.ts +17 -0
  496. package/src/api/rendering/blending/_export.ts +1 -0
  497. package/src/api/rendering/buffers/BufferUsage.ts +56 -0
  498. package/src/api/rendering/buffers/IBuffer.ts +24 -0
  499. package/src/api/rendering/buffers/IBufferFactory.ts +38 -0
  500. package/src/api/rendering/buffers/IIndexBuffer.ts +37 -0
  501. package/src/api/rendering/buffers/IUniformBuffer.ts +21 -0
  502. package/src/api/rendering/buffers/IVertexBuffer.ts +32 -0
  503. package/src/api/rendering/buffers/IVertexBufferLayout.ts +27 -0
  504. package/src/api/rendering/buffers/IndexBufferType.ts +13 -0
  505. package/src/api/rendering/buffers/VertexAttribute.ts +26 -0
  506. package/src/api/rendering/buffers/VertexStepMode.ts +13 -0
  507. package/src/api/rendering/buffers/_export-buffers.ts +11 -0
  508. package/src/api/rendering/primitive/CullMode.ts +17 -0
  509. package/src/api/rendering/primitive/FrontFace.ts +13 -0
  510. package/src/api/rendering/primitive/IPrimitiveState.ts +25 -0
  511. package/src/api/rendering/primitive/PrimitiveStateDescriptor.ts +27 -0
  512. package/src/api/rendering/primitive/PrimitiveTopology.ts +25 -0
  513. package/src/api/rendering/primitive/_export.ts +5 -0
  514. package/src/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.ts +38 -0
  515. package/src/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.ts +21 -0
  516. package/src/api/rendering/render-pipelines/IRenderPipeline.ts +47 -0
  517. package/src/api/rendering/render-pipelines/IRenderPipelineFactory.ts +52 -0
  518. package/src/api/rendering/render-pipelines/ISpriteRenderPipeline.ts +25 -0
  519. package/src/api/rendering/render-pipelines/IUnlitRenderPipeline.ts +38 -0
  520. package/src/api/rendering/render-pipelines/_export-render-pipelines.ts +6 -0
  521. package/src/{core/renderer → api/rendering}/renderer-interface.ts +15 -9
  522. package/src/api/rendering/renderpass/IRenderPass.ts +18 -0
  523. package/src/api/rendering/renderpass/LoadAction.ts +32 -0
  524. package/src/api/rendering/renderpass/RenderPassColorAttachment.ts +61 -0
  525. package/src/api/rendering/renderpass/RenderPassDepthStencilAttachment.ts +76 -0
  526. package/src/api/rendering/renderpass/RenderPassDescriptor.ts +26 -0
  527. package/src/api/rendering/renderpass/StoreAction.ts +23 -0
  528. package/src/api/rendering/renderpass/_export.ts +6 -0
  529. package/src/api/rendering/sampler/ISampler.ts +52 -0
  530. package/src/api/rendering/sampler/MipMapSamplerFilter.ts +17 -0
  531. package/src/api/rendering/sampler/SamplerAddressMode.ts +23 -0
  532. package/src/api/rendering/sampler/SamplerDescriptor.ts +46 -0
  533. package/src/api/rendering/sampler/SamplerFilter.ts +13 -0
  534. package/src/api/rendering/sampler/_export.ts +5 -0
  535. package/src/api/rendering/sampler/sampler-enums.ts +20 -0
  536. package/src/api/rendering/swapchain/ISwapChain.ts +33 -0
  537. package/src/api/rendering/swapchain/SurfacePresentMode.ts +22 -0
  538. package/src/api/rendering/swapchain/SwapChainDescriptor.ts +23 -0
  539. package/src/api/rendering/swapchain/_export.ts +3 -0
  540. package/src/api/rendering/texture/ITexture2D.ts +100 -0
  541. package/src/api/rendering/texture/ITextureFactory.ts +56 -0
  542. package/src/api/rendering/texture/ITextureView.ts +20 -0
  543. package/src/api/rendering/texture/TextureDescriptor.ts +52 -0
  544. package/src/api/rendering/texture/TextureFormat.ts +58 -0
  545. package/src/api/rendering/texture/TextureUsage.ts +41 -0
  546. package/src/api/rendering/texture/TextureUtilities.ts +149 -0
  547. package/src/api/rendering/texture/TextureViewDescriptor.ts +25 -0
  548. package/src/api/rendering/texture/TextureViewDimension.ts +16 -0
  549. package/src/api/rendering/texture/_export-texture.ts +9 -0
  550. package/src/api/shader/IShaderModule.ts +23 -0
  551. package/src/api/shader/IShaderModuleLoader.ts +15 -0
  552. package/src/api/shader/ShaderStage.ts +9 -0
  553. package/src/api/shader/_export-shader.ts +3 -0
  554. package/src/{core → api}/shader/shader-loader.ts +1 -1
  555. package/src/api/sprites/ISpriteBatch.ts +144 -0
  556. package/src/{core/sprite-batch → api/sprites}/SpriteBatch.ts +8 -5
  557. package/src/{core/sprite-batch → api/sprites}/SpriteBatchDrawable.ts +6 -6
  558. package/src/{core/sprite-batch → api/sprites}/SpriteBatchMesh.ts +8 -4
  559. package/src/api/sprites/_export_sprites.ts +1 -0
  560. package/src/api/time/GameTime.ts +30 -0
  561. package/src/api/time/ITimeManager.ts +22 -0
  562. package/src/api/time/TimeManager.ts +33 -0
  563. package/src/api/time/_export_time.ts +3 -0
  564. package/src/api/utilities/AlignUtilities.ts +39 -0
  565. package/src/api/utilities/GeometryUtilities.ts +20 -0
  566. package/src/api/utilities/MathHelper.ts +256 -0
  567. package/src/api/utilities/_export.ts +3 -0
  568. package/src/api/window/IWindowManager.ts +78 -0
  569. package/src/api/window/WindowBounds.ts +17 -0
  570. package/src/{core/window/window-manager.ts → api/window/WindowManager.ts} +2 -2
  571. package/src/api/window/_export.ts +2 -0
  572. package/src/core/rendering/AGraphicsDevice.ts +15 -9
  573. package/src/core/rendering/ARenderer.ts +7 -7
  574. package/src/core/rendering/blending/enums.ts +5 -5
  575. package/src/core/rendering/sampler/sampler-descriptor.ts +1 -1
  576. package/src/core/rendering/texture/texture.ts +4 -3
  577. package/src/core/rendering/vertex-buffer-layout.ts +3 -4
  578. package/src/glsl-raw.d.ts +4 -0
  579. package/src/index.ts +3 -2
  580. package/src/main.ts +5 -10
  581. package/src/webgl/WebGLGraphicsDeviceFeatures.ts +1 -1
  582. package/src/webgl/WebGlGpuInfo.ts +1 -1
  583. package/src/webgl/WebGlGraphicsDevice.ts +19 -15
  584. package/src/webgl/WebGlRenderer.ts +7 -5
  585. package/src/webgl/blending/webgl-blend-state.ts +1 -1
  586. package/src/webgl/buffers/WebGlBuffersFactory.ts +1 -1
  587. package/src/webgl/buffers/WebGlUniformBuffer.ts +1 -1
  588. package/src/webgl/buffers/WebGlVertexBuffer.ts +8 -7
  589. package/src/webgl/buffers/webgl-index-buffer.ts +2 -2
  590. package/src/webgl/cast/cast.ts +2 -2
  591. package/src/webgl/primitive/WebGlPrimitiveState.ts +7 -3
  592. package/src/webgl/render-pass/WebGlRenderPass.ts +17 -8
  593. package/src/webgl/render-pipelines/AWebGlRenderPipeline.ts +1 -1
  594. package/src/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.ts +10 -2
  595. package/src/webgl/render-pipelines/WebGlRenderPipelineFactory.ts +1 -1
  596. package/src/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.ts +3 -3
  597. package/src/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.ts +2 -2
  598. package/src/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.ts +2 -2
  599. package/src/webgl/sampler/webgl-sampler.ts +2 -2
  600. package/src/webgl/shader/WebGlShaderModule.ts +2 -2
  601. package/src/webgl/shader/WebGlShaderModuleLoader.ts +1 -1
  602. package/src/webgl/swap-chain/WebGlSwapChain.ts +1 -1
  603. package/src/webgl/texture/WebGlTexture2D.ts +6 -4
  604. package/src/webgl/texture/WebGlTextureFactory.ts +7 -7
  605. package/src/webgl/utilities/WebGlBufferUtilities.ts +1 -1
  606. package/src/webgl/utilities/WebGlConverter.ts +19 -62
  607. package/src/webgl/utilities/WebGlFrameBufferUtilities.ts +1 -1
  608. package/src/webgl/utilities/WebGlSamplerUtilities.ts +4 -4
  609. package/src/webgl/utilities/WebGlTextureUtilities.ts +29 -20
  610. package/src/webgl/utilities/webgl-culling-utilities.ts +1 -1
  611. package/src/webgl/utilities/webgl-filter-anisotropic-utilities.ts +1 -1
  612. package/src/webgl/utilities/webgl-renderbuffer-utilities.ts +1 -1
  613. package/dist/assets/_ris-ktx2-node-module-stub-DwDS30PT.js +0 -1
  614. package/dist/assets/cat.jpg +0 -0
  615. package/dist/assets/index-BmeGit54.css +0 -1
  616. package/dist/assets/index-qyn4pzGw.js +0 -151
  617. package/dist/assets/libktx-Cjh8w7XG-Ci1Fm_MH.js +0 -1
  618. package/dist/assets/test.png +0 -0
  619. package/dist/index.html +0 -16
  620. package/dist/vite.svg +0 -1
  621. package/src/TextureFormat.ts +0 -0
  622. package/src/common/sampler-enums.ts +0 -21
  623. package/src/common/vertex-step-mode.ts +0 -12
  624. package/src/core/FrameworkConfig.ts +0 -31
  625. package/src/core/buffers/buffers-factory-interface.ts +0 -0
  626. package/src/core/buffers/vertex-buffer-interface.ts +0 -0
  627. package/src/core/dependency-injection/register-services-interface.ts +0 -15
  628. package/src/core/framework-interface.ts +0 -0
  629. package/src/core/input/InputManager.ts +0 -115
  630. package/src/core/rendering/primitive/PrimitiveStateDescriptor.ts +0 -32
  631. package/src/core/rendering/primitive/enums.ts +0 -68
  632. package/src/core/rendering/render-pass/render-pass-descriptor.ts +0 -0
  633. package/src/core/rendering/render-pass/render-pass-interface.ts +0 -17
  634. package/src/core/rendering/vertex-attribute.ts +0 -20
  635. package/src/core/shader/shader-module-interface.ts +0 -1
  636. package/src/counter.ts +0 -9
  637. package/src/geometry/GeometryFormat.ts +0 -37
  638. package/src/webgl/utilities/webgl-render-buffer-utilities.ts +0 -23
  639. /package/src/{core/renderer → api/rendering}/enums.ts +0 -0
  640. /package/src/{core/renderer → api/rendering}/rendering-limits.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -3,3 +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`, `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.
@@ -0,0 +1,202 @@
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 [yyyy] [name of copyright owner]
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
@@ -1,8 +1,8 @@
1
1
  # ris-framework
2
2
 
3
- `ris-framework` is a Vite TypeScript application that renders with WebGL2 in the browser. Version 0.1.0.
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 is the application that 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`, `gl-matrix`, `tsyringe`, and `reflect-metadata`. TypeScript and Vite are dev dependencies.
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
 
@@ -26,83 +28,80 @@ Runtime dependencies are `ris-framework-api`, `ris-ktx2`, `gl-matrix`, `tsyringe
26
28
 
27
29
  ## Install
28
30
 
29
- From the repository root:
31
+ Install the package in an application:
32
+
33
+ ```sh
34
+ npm install ris-framework
35
+ ```
36
+
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:
38
+
39
+ ```ts
40
+ import { Framework, FrameworkConfiguration, TextureSamplerFilteringPreset } from "ris-framework";
41
+ ```
42
+
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.
50
+
51
+ To work in this repository:
30
52
 
31
53
  ```sh
32
54
  npm ci
33
55
  ```
34
56
 
35
- `src/main.ts` imports `reflect-metadata` before it constructs the framework. Keep that import first in the entry file. `Framework` registers itself on a tsyringe child container, and tsyringe expects `reflect-metadata` to be loaded.
57
+ Import `reflect-metadata` before constructing the framework. `src/main.ts` keeps that import first. `Framework` registers itself on a tsyringe child container, and tsyringe expects `reflect-metadata` to be loaded.
36
58
 
37
59
  ## Create a framework instance
38
60
 
39
- 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.
40
62
 
41
- 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"`.
42
64
 
43
65
  No config field is required. Each field has a default.
44
66
 
45
67
  | Field | Default | What the code does with it |
46
68
  | --- | --- | --- |
47
- | `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`. |
48
- | `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. |
49
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`. |
50
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. |
51
75
 
52
- `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.
53
77
 
54
78
  ```ts
55
79
  import "reflect-metadata";
56
80
 
57
- import { Framework } from "./core/Framework.ts";
58
- import { FrameworkConfig } from "./core/FrameworkConfig.ts";
59
- import { TextureSamplerFilteringPreset } from "./core/rendering/enums.ts";
81
+ import { Framework, FrameworkConfiguration, TextureSamplerFilteringPreset } from "ris-framework";
60
82
 
61
- const config = new FrameworkConfig();
83
+ const config = new FrameworkConfiguration();
62
84
  config.canvas = document.getElementById("game-canvas") as HTMLCanvasElement;
63
85
  config.textureFiltering = TextureSamplerFilteringPreset.BILINEAR;
64
86
 
65
87
  const framework = new Framework(config);
66
88
  ```
67
89
 
68
- `framework.renderingBackend` is `RenderingBackend.WEB_GL`. After `initialize()`, `framework.graphicsDevice` is the renderer's WebGL2 device.
69
-
70
- ## Run, build, and preview
71
-
72
- ```sh
73
- npm run dev
74
- ```
75
-
76
- `dev` runs Vite. The served page is `index.html`.
77
-
78
- ```sh
79
- npm run build
80
- ```
81
-
82
- `build` runs `tsc && vite build`. Typecheck failures stop the production bundle. Vite writes the bundle to `dist/`. The Vite config replaces `ris-ktx2`'s Node loader with a browser stub so the client bundle does not import Node built-ins.
90
+ `src/main.ts` constructs the sample the same way, but it imports those three symbols from the source files under `src/` instead of from the package name.
83
91
 
84
- ```sh
85
- npm run preview
86
- ```
87
-
88
- `preview` runs `vite preview` and serves the `dist/` build.
89
-
90
- ```sh
91
- npm test
92
- ```
92
+ `framework.renderingBackend` is `RenderingBackend.WEB_GL`. After `initialize()`, `framework.graphicsDevice` is the renderer's WebGL2 device.
93
93
 
94
- `test` runs `tsc --noEmit`. It typechecks `src`.
95
94
 
96
95
  ## From startup to the first frame
97
96
 
98
- `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`.
99
98
 
100
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:
101
100
 
102
101
  1. Starts KTX2 initialization when `useKtx2` is set, without awaiting it.
103
102
  2. Creates the WebGL2 context, swap chain, and default sampler, blend state, and primitive state.
104
103
  3. Initializes the sprite batch (a default orthographic camera and a 1×1 white texture).
105
- 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.
106
105
  5. Prepares the time manager.
107
106
  6. Calls every `addOnLoadContentListener` callback. Async callbacks are not awaited.
108
107
  7. Calls every `addOnInitializedListener` callback.
@@ -123,7 +122,7 @@ import {
123
122
  TextureFormat,
124
123
  type ISampler,
125
124
  type ITexture2D,
126
- } from "ris-framework-api";
125
+ } from "ris-framework";
127
126
 
128
127
  const rect = new Rect(200, 200, 200, 200);
129
128
  const texRect = new Rect(500, 200, 200, 200);
@@ -182,7 +181,7 @@ These throw, or they accept a call and do not do the work the name suggests:
182
181
  - `SpriteBatch.draw` and `drawRect` accept rotation arguments and do not use them. `layerDepth` is written as the sprite's z position.
183
182
  - Keyboard and gamepad queries return empty state. `getKeyboardState()` is an empty `KeyboardState`. `getGamePadState()` is a disconnected `GamePadState`. `thumbstickDeadZone` is stored and not applied.
184
183
  - A render pass that enables stencil without depth throws `Not implemented`.
185
- - 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.
186
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.
187
186
 
188
187
  ## Version
@@ -0,0 +1,27 @@
1
+ # Third-party notices
2
+
3
+ `ris-framework` is distributed under the Apache License 2.0 (see `LICENSE` and `NOTICE`). Copyright 2026 Luka Erkapic.
4
+
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
+
7
+ That browser build includes the Khronos libktx WebAssembly module (`libktx.js` and the wasm binary embedded in it), produced from [KTX-Software](https://github.com/KhronosGroup/KTX-Software). The Apache License 2.0 text is in `LICENSES/Apache-2.0.txt`.
8
+
9
+ ## Khronos KTX-Software / libktx
10
+
11
+ Copyright 2010-2024 The Khronos Group Inc. and contributors.
12
+
13
+ SPDX-License-Identifier: Apache-2.0
14
+
15
+ https://github.com/KhronosGroup/KTX-Software
16
+
17
+ Upstream license overview (v4.3.2): https://github.com/KhronosGroup/KTX-Software/blob/v4.3.2/LICENSE.md
18
+
19
+ KTX-Software bundles other projects, including basis_universal. Those C/C++ sources are not redistributed as source here; they are compiled into the WebAssembly binary that `ris-ktx2` ships and this package bundles.
20
+
21
+ ## Basis Universal
22
+
23
+ Copyright Binomial LLC.
24
+
25
+ SPDX-License-Identifier: Apache-2.0
26
+
27
+ https://github.com/BinomialLLC/basis_universal