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.
- package/CHANGELOG.md +4 -0
- package/LICENSE +202 -21
- package/LICENSES/Apache-2.0.txt +202 -0
- package/NOTICE +2 -0
- package/README.md +46 -47
- package/THIRD_PARTY_NOTICES.md +27 -0
- package/dist/Framework.d.ts +81 -0
- package/dist/Framework.d.ts.map +1 -0
- package/dist/api/FrameworkConfiguration.d.ts +23 -0
- package/dist/api/FrameworkConfiguration.d.ts.map +1 -0
- package/dist/api/IFramework.d.ts +125 -0
- package/dist/api/IFramework.d.ts.map +1 -0
- package/dist/api/IFrameworkConfiguration.d.ts +25 -0
- package/dist/api/IFrameworkConfiguration.d.ts.map +1 -0
- package/dist/api/_export.d.ts +27 -0
- package/dist/api/_export.d.ts.map +1 -0
- package/dist/api/camera/CameraFactory.d.ts +25 -0
- package/dist/api/camera/CameraFactory.d.ts.map +1 -0
- package/dist/api/camera/ICamera.d.ts +43 -0
- package/dist/api/camera/ICamera.d.ts.map +1 -0
- package/dist/api/camera/ICameraFactory.d.ts +46 -0
- package/dist/api/camera/ICameraFactory.d.ts.map +1 -0
- package/dist/api/camera/IOrthographicCamera.d.ts +31 -0
- package/dist/api/camera/IOrthographicCamera.d.ts.map +1 -0
- package/dist/api/camera/OrbitCamera.d.ts +120 -0
- package/dist/api/camera/OrbitCamera.d.ts.map +1 -0
- package/dist/api/camera/OrthographicCamera.d.ts +96 -0
- package/dist/api/camera/OrthographicCamera.d.ts.map +1 -0
- package/dist/api/camera/PerspectiveCamera.d.ts +108 -0
- package/dist/api/camera/PerspectiveCamera.d.ts.map +1 -0
- package/dist/api/camera/_export.d.ts +8 -0
- package/dist/api/camera/_export.d.ts.map +1 -0
- package/dist/api/content/ContentConfig.d.ts +11 -0
- package/dist/api/content/ContentConfig.d.ts.map +1 -0
- package/dist/api/content/ContentManager.d.ts +27 -0
- package/dist/api/content/ContentManager.d.ts.map +1 -0
- package/dist/api/content/IContent.d.ts +8 -0
- package/dist/api/content/IContent.d.ts.map +1 -0
- package/dist/api/content/IContentManager.d.ts +37 -0
- package/dist/api/content/IContentManager.d.ts.map +1 -0
- package/dist/api/content/IContentModule.d.ts +58 -0
- package/dist/api/content/IContentModule.d.ts.map +1 -0
- package/dist/api/content/ShaderModuleContent.d.ts +14 -0
- package/dist/api/content/ShaderModuleContent.d.ts.map +1 -0
- package/dist/api/content/_export-content.d.ts +5 -0
- package/dist/api/content/_export-content.d.ts.map +1 -0
- package/dist/api/core/IDisposable.d.ts +10 -0
- package/dist/api/core/IDisposable.d.ts.map +1 -0
- package/dist/api/core/_export-core.d.ts +2 -0
- package/dist/api/core/_export-core.d.ts.map +1 -0
- package/dist/api/data/Color.d.ts +119 -0
- package/dist/api/data/Color.d.ts.map +1 -0
- package/dist/api/data/Rect.d.ts +61 -0
- package/dist/api/data/Rect.d.ts.map +1 -0
- package/dist/api/data/State.d.ts +11 -0
- package/dist/api/data/State.d.ts.map +1 -0
- package/dist/api/data/_export.d.ts +4 -0
- package/dist/api/data/_export.d.ts.map +1 -0
- package/dist/api/geometry/BaseGeometry.d.ts +44 -0
- package/dist/api/geometry/BaseGeometry.d.ts.map +1 -0
- package/dist/api/geometry/GeometryBuilder.d.ts +11 -0
- package/dist/api/geometry/GeometryBuilder.d.ts.map +1 -0
- package/dist/api/geometry/GeometryFormat.d.ts +34 -0
- package/dist/api/geometry/GeometryFormat.d.ts.map +1 -0
- package/dist/api/geometry/IGeometry.d.ts +54 -0
- package/dist/api/geometry/IGeometry.d.ts.map +1 -0
- package/dist/api/geometry/IGeometryBuilder.d.ts +15 -0
- package/dist/api/geometry/IGeometryBuilder.d.ts.map +1 -0
- package/dist/api/geometry/VertexFormat.d.ts +14 -0
- package/dist/api/geometry/VertexFormat.d.ts.map +1 -0
- package/dist/api/geometry/_export-geometry.d.ts +5 -0
- package/dist/api/geometry/_export-geometry.d.ts.map +1 -0
- package/dist/api/image/CpuImageProcessor.d.ts +16 -0
- package/dist/api/image/CpuImageProcessor.d.ts.map +1 -0
- package/dist/api/image/IImageProcessor.d.ts +26 -0
- package/dist/api/image/IImageProcessor.d.ts.map +1 -0
- package/dist/api/image/RawImageData.d.ts +34 -0
- package/dist/api/image/RawImageData.d.ts.map +1 -0
- package/dist/api/image/_export.d.ts +4 -0
- package/dist/api/image/_export.d.ts.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/input/IInputManager.d.ts +53 -0
- package/dist/api/input/IInputManager.d.ts.map +1 -0
- package/dist/api/input/InputDeviceType.d.ts +18 -0
- package/dist/api/input/InputDeviceType.d.ts.map +1 -0
- package/dist/api/input/InputManager.d.ts +73 -0
- package/dist/api/input/InputManager.d.ts.map +1 -0
- package/dist/api/input/Key.d.ts +36 -0
- package/dist/api/input/Key.d.ts.map +1 -0
- package/dist/api/input/KeyboardState.d.ts +37 -0
- package/dist/api/input/KeyboardState.d.ts.map +1 -0
- package/dist/api/input/_export.d.ts +14 -0
- package/dist/api/input/_export.d.ts.map +1 -0
- package/dist/api/input/gamepad/Button.d.ts +22 -0
- package/dist/api/input/gamepad/Button.d.ts.map +1 -0
- package/dist/api/input/gamepad/GamePadState.d.ts +48 -0
- package/dist/api/input/gamepad/GamePadState.d.ts.map +1 -0
- package/dist/api/input/gamepad/GamePadThumbSticks.d.ts +17 -0
- package/dist/api/input/gamepad/GamePadThumbSticks.d.ts.map +1 -0
- package/dist/api/input/mouse/MouseButton.d.ts +10 -0
- package/dist/api/input/mouse/MouseButton.d.ts.map +1 -0
- package/dist/api/input/mouse/MouseState.d.ts +52 -0
- package/dist/api/input/mouse/MouseState.d.ts.map +1 -0
- package/dist/api/input/touch/TouchCollection.d.ts +79 -0
- package/dist/api/input/touch/TouchCollection.d.ts.map +1 -0
- package/dist/api/input/touch/TouchLocation.d.ts +80 -0
- package/dist/api/input/touch/TouchLocation.d.ts.map +1 -0
- package/dist/api/input/touch/TouchLocationState.d.ts +16 -0
- package/dist/api/input/touch/TouchLocationState.d.ts.map +1 -0
- package/dist/api/input/touch/TouchPanelCapabilities.d.ts +24 -0
- package/dist/api/input/touch/TouchPanelCapabilities.d.ts.map +1 -0
- package/dist/api/loaders/IImageLoader.d.ts +20 -0
- package/dist/api/loaders/IImageLoader.d.ts.map +1 -0
- package/dist/api/loaders/ImageLoader.d.ts +36 -0
- package/dist/api/loaders/ImageLoader.d.ts.map +1 -0
- package/dist/api/loaders/_export.d.ts +3 -0
- package/dist/api/loaders/_export.d.ts.map +1 -0
- package/dist/api/material/IMaterial.d.ts +35 -0
- package/dist/api/material/IMaterial.d.ts.map +1 -0
- package/dist/api/material/IMaterialFactory.d.ts +19 -0
- package/dist/api/material/IMaterialFactory.d.ts.map +1 -0
- package/dist/api/material/InspectTextureMipsMaterial.d.ts +58 -0
- package/dist/api/material/InspectTextureMipsMaterial.d.ts.map +1 -0
- package/dist/api/material/MaterialFactory.d.ts +20 -0
- package/dist/api/material/MaterialFactory.d.ts.map +1 -0
- package/dist/api/material/UnlitMaterial.d.ts +76 -0
- package/dist/api/material/UnlitMaterial.d.ts.map +1 -0
- package/dist/api/material/_export.d.ts +6 -0
- package/dist/api/material/_export.d.ts.map +1 -0
- package/dist/api/meshes/IMesh.d.ts +17 -0
- package/dist/api/meshes/IMesh.d.ts.map +1 -0
- package/dist/api/meshes/IMeshFactory.d.ts +25 -0
- package/dist/api/meshes/IMeshFactory.d.ts.map +1 -0
- package/dist/api/meshes/Mesh.d.ts +93 -0
- package/dist/api/meshes/Mesh.d.ts.map +1 -0
- package/dist/api/meshes/MeshFactory.d.ts +23 -0
- package/dist/api/meshes/MeshFactory.d.ts.map +1 -0
- package/dist/api/meshes/MeshParameters.d.ts +22 -0
- package/dist/api/meshes/MeshParameters.d.ts.map +1 -0
- package/dist/api/meshes/QuadMesh.d.ts +33 -0
- package/dist/api/meshes/QuadMesh.d.ts.map +1 -0
- package/dist/api/meshes/_export.d.ts +7 -0
- package/dist/api/meshes/_export.d.ts.map +1 -0
- package/dist/api/rendering/IGPUInfo.d.ts +35 -0
- package/dist/api/rendering/IGPUInfo.d.ts.map +1 -0
- package/dist/api/rendering/IGraphicsDevice.d.ts +88 -0
- package/dist/api/rendering/IGraphicsDevice.d.ts.map +1 -0
- package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts +27 -0
- package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts.map +1 -0
- package/dist/api/rendering/IRenderer.d.ts +71 -0
- package/dist/api/rendering/IRenderer.d.ts.map +1 -0
- package/dist/api/rendering/PowerPreference.d.ts +13 -0
- package/dist/api/rendering/PowerPreference.d.ts.map +1 -0
- package/dist/api/rendering/RenderingBackend.d.ts +18 -0
- package/dist/api/rendering/RenderingBackend.d.ts.map +1 -0
- package/dist/api/rendering/_export-rendering.d.ts +7 -0
- package/dist/api/rendering/_export-rendering.d.ts.map +1 -0
- package/dist/api/rendering/blending/IBlendState.d.ts +16 -0
- package/dist/api/rendering/blending/IBlendState.d.ts.map +1 -0
- package/dist/api/rendering/blending/_export.d.ts +2 -0
- package/dist/api/rendering/blending/_export.d.ts.map +1 -0
- package/dist/api/rendering/buffers/BufferUsage.d.ts +57 -0
- package/dist/api/rendering/buffers/BufferUsage.d.ts.map +1 -0
- package/dist/api/rendering/buffers/IBuffer.d.ts +20 -0
- package/dist/api/rendering/buffers/IBuffer.d.ts.map +1 -0
- package/dist/api/rendering/buffers/IBufferFactory.d.ts +34 -0
- package/dist/api/rendering/buffers/IBufferFactory.d.ts.map +1 -0
- package/dist/api/rendering/buffers/IIndexBuffer.d.ts +31 -0
- package/dist/api/rendering/buffers/IIndexBuffer.d.ts.map +1 -0
- package/dist/api/rendering/buffers/IUniformBuffer.d.ts +18 -0
- package/dist/api/rendering/buffers/IUniformBuffer.d.ts.map +1 -0
- package/dist/api/rendering/buffers/IVertexBuffer.d.ts +26 -0
- package/dist/api/rendering/buffers/IVertexBuffer.d.ts.map +1 -0
- package/dist/api/rendering/buffers/IVertexBufferLayout.d.ts +23 -0
- package/dist/api/rendering/buffers/IVertexBufferLayout.d.ts.map +1 -0
- package/dist/api/rendering/buffers/IndexBufferType.d.ts +14 -0
- package/dist/api/rendering/buffers/IndexBufferType.d.ts.map +1 -0
- package/dist/api/rendering/buffers/VertexAttribute.d.ts +22 -0
- package/dist/api/rendering/buffers/VertexAttribute.d.ts.map +1 -0
- package/dist/api/rendering/buffers/VertexStepMode.d.ts +14 -0
- package/dist/api/rendering/buffers/VertexStepMode.d.ts.map +1 -0
- package/dist/api/rendering/buffers/_export-buffers.d.ts +11 -0
- package/dist/api/rendering/buffers/_export-buffers.d.ts.map +1 -0
- package/dist/api/rendering/enums.d.ts +18 -0
- package/dist/api/rendering/enums.d.ts.map +1 -0
- package/dist/api/rendering/primitive/CullMode.d.ts +18 -0
- package/dist/api/rendering/primitive/CullMode.d.ts.map +1 -0
- package/dist/api/rendering/primitive/FrontFace.d.ts +14 -0
- package/dist/api/rendering/primitive/FrontFace.d.ts.map +1 -0
- package/dist/api/rendering/primitive/IPrimitiveState.d.ts +22 -0
- package/dist/api/rendering/primitive/IPrimitiveState.d.ts.map +1 -0
- package/dist/api/rendering/primitive/PrimitiveStateDescriptor.d.ts +24 -0
- package/dist/api/rendering/primitive/PrimitiveStateDescriptor.d.ts.map +1 -0
- package/dist/api/rendering/primitive/PrimitiveTopology.d.ts +26 -0
- package/dist/api/rendering/primitive/PrimitiveTopology.d.ts.map +1 -0
- package/dist/api/rendering/primitive/_export.d.ts +6 -0
- package/dist/api/rendering/primitive/_export.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.d.ts +33 -0
- package/dist/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.d.ts +18 -0
- package/dist/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts +39 -0
- package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts +42 -0
- package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/ISpriteRenderPipeline.d.ts +22 -0
- package/dist/api/rendering/render-pipelines/ISpriteRenderPipeline.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/IUnlitRenderPipeline.d.ts +33 -0
- package/dist/api/rendering/render-pipelines/IUnlitRenderPipeline.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts +7 -0
- package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts.map +1 -0
- package/dist/api/rendering/renderer-interface.d.ts +81 -0
- package/dist/api/rendering/renderer-interface.d.ts.map +1 -0
- package/dist/api/rendering/rendering-limits.d.ts +16 -0
- package/dist/api/rendering/rendering-limits.d.ts.map +1 -0
- package/dist/api/rendering/renderpass/IRenderPass.d.ts +15 -0
- package/dist/api/rendering/renderpass/IRenderPass.d.ts.map +1 -0
- package/dist/api/rendering/renderpass/LoadAction.d.ts +33 -0
- package/dist/api/rendering/renderpass/LoadAction.d.ts.map +1 -0
- package/dist/api/rendering/renderpass/RenderPassColorAttachment.d.ts +53 -0
- package/dist/api/rendering/renderpass/RenderPassColorAttachment.d.ts.map +1 -0
- package/dist/api/rendering/renderpass/RenderPassDepthStencilAttachment.d.ts +56 -0
- package/dist/api/rendering/renderpass/RenderPassDepthStencilAttachment.d.ts.map +1 -0
- package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts +22 -0
- package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts.map +1 -0
- package/dist/api/rendering/renderpass/StoreAction.d.ts +24 -0
- package/dist/api/rendering/renderpass/StoreAction.d.ts.map +1 -0
- package/dist/api/rendering/renderpass/_export.d.ts +7 -0
- package/dist/api/rendering/renderpass/_export.d.ts.map +1 -0
- package/dist/api/rendering/sampler/ISampler.d.ts +43 -0
- package/dist/api/rendering/sampler/ISampler.d.ts.map +1 -0
- package/dist/api/rendering/sampler/MipMapSamplerFilter.d.ts +18 -0
- package/dist/api/rendering/sampler/MipMapSamplerFilter.d.ts.map +1 -0
- package/dist/api/rendering/sampler/SamplerAddressMode.d.ts +24 -0
- package/dist/api/rendering/sampler/SamplerAddressMode.d.ts.map +1 -0
- package/dist/api/rendering/sampler/SamplerDescriptor.d.ts +40 -0
- package/dist/api/rendering/sampler/SamplerDescriptor.d.ts.map +1 -0
- package/dist/api/rendering/sampler/SamplerFilter.d.ts +14 -0
- package/dist/api/rendering/sampler/SamplerFilter.d.ts.map +1 -0
- package/dist/api/rendering/sampler/_export.d.ts +6 -0
- package/dist/api/rendering/sampler/_export.d.ts.map +1 -0
- package/dist/api/rendering/sampler/sampler-enums.d.ts +15 -0
- package/dist/api/rendering/sampler/sampler-enums.d.ts.map +1 -0
- package/dist/api/rendering/swapchain/ISwapChain.d.ts +29 -0
- package/dist/api/rendering/swapchain/ISwapChain.d.ts.map +1 -0
- package/dist/api/rendering/swapchain/SurfacePresentMode.d.ts +23 -0
- package/dist/api/rendering/swapchain/SurfacePresentMode.d.ts.map +1 -0
- package/dist/api/rendering/swapchain/SwapChainDescriptor.d.ts +20 -0
- package/dist/api/rendering/swapchain/SwapChainDescriptor.d.ts.map +1 -0
- package/dist/api/rendering/swapchain/_export.d.ts +4 -0
- package/dist/api/rendering/swapchain/_export.d.ts.map +1 -0
- package/dist/api/rendering/texture/ITexture2D.d.ts +83 -0
- package/dist/api/rendering/texture/ITexture2D.d.ts.map +1 -0
- package/dist/api/rendering/texture/ITextureFactory.d.ts +42 -0
- package/dist/api/rendering/texture/ITextureFactory.d.ts.map +1 -0
- package/dist/api/rendering/texture/ITextureView.d.ts +17 -0
- package/dist/api/rendering/texture/ITextureView.d.ts.map +1 -0
- package/dist/api/rendering/texture/TextureDescriptor.d.ts +42 -0
- package/dist/api/rendering/texture/TextureDescriptor.d.ts.map +1 -0
- package/dist/api/rendering/texture/TextureFormat.d.ts +54 -0
- package/dist/api/rendering/texture/TextureFormat.d.ts.map +1 -0
- package/dist/api/rendering/texture/TextureUsage.d.ts +42 -0
- package/dist/api/rendering/texture/TextureUsage.d.ts.map +1 -0
- package/dist/api/rendering/texture/TextureUtilities.d.ts +54 -0
- package/dist/api/rendering/texture/TextureUtilities.d.ts.map +1 -0
- package/dist/api/rendering/texture/TextureViewDescriptor.d.ts +22 -0
- package/dist/api/rendering/texture/TextureViewDescriptor.d.ts.map +1 -0
- package/dist/api/rendering/texture/TextureViewDimension.d.ts +17 -0
- package/dist/api/rendering/texture/TextureViewDimension.d.ts.map +1 -0
- package/dist/api/rendering/texture/_export-texture.d.ts +10 -0
- package/dist/api/rendering/texture/_export-texture.d.ts.map +1 -0
- package/dist/api/shader/IShaderModule.d.ts +21 -0
- package/dist/api/shader/IShaderModule.d.ts.map +1 -0
- package/dist/api/shader/IShaderModuleLoader.d.ts +13 -0
- package/dist/api/shader/IShaderModuleLoader.d.ts.map +1 -0
- package/dist/api/shader/ShaderStage.d.ts +10 -0
- package/dist/api/shader/ShaderStage.d.ts.map +1 -0
- package/dist/api/shader/_export-shader.d.ts +4 -0
- package/dist/api/shader/_export-shader.d.ts.map +1 -0
- package/dist/api/shader/shader-loader.d.ts +12 -0
- package/dist/api/shader/shader-loader.d.ts.map +1 -0
- package/dist/api/sprites/ISpriteBatch.d.ts +114 -0
- package/dist/api/sprites/ISpriteBatch.d.ts.map +1 -0
- package/dist/api/sprites/SpriteBatch.d.ts +50 -0
- package/dist/api/sprites/SpriteBatch.d.ts.map +1 -0
- package/dist/api/sprites/SpriteBatchDrawable.d.ts +57 -0
- package/dist/api/sprites/SpriteBatchDrawable.d.ts.map +1 -0
- package/dist/api/sprites/SpriteBatchMesh.d.ts +32 -0
- package/dist/api/sprites/SpriteBatchMesh.d.ts.map +1 -0
- package/dist/api/sprites/_export_sprites.d.ts +2 -0
- package/dist/api/sprites/_export_sprites.d.ts.map +1 -0
- package/dist/api/time/GameTime.d.ts +23 -0
- package/dist/api/time/GameTime.d.ts.map +1 -0
- package/dist/api/time/ITimeManager.d.ts +19 -0
- package/dist/api/time/ITimeManager.d.ts.map +1 -0
- package/dist/api/time/TimeManager.d.ts +15 -0
- package/dist/api/time/TimeManager.d.ts.map +1 -0
- package/dist/api/time/_export_time.d.ts +4 -0
- package/dist/api/time/_export_time.d.ts.map +1 -0
- package/dist/api/utilities/AlignUtilities.d.ts +20 -0
- package/dist/api/utilities/AlignUtilities.d.ts.map +1 -0
- package/dist/api/utilities/GeometryUtilities.d.ts +13 -0
- package/dist/api/utilities/GeometryUtilities.d.ts.map +1 -0
- package/dist/api/utilities/MathHelper.d.ts +162 -0
- package/dist/api/utilities/MathHelper.d.ts.map +1 -0
- package/dist/api/utilities/_export.d.ts +4 -0
- package/dist/api/utilities/_export.d.ts.map +1 -0
- package/dist/api/window/IWindowManager.d.ts +64 -0
- package/dist/api/window/IWindowManager.d.ts.map +1 -0
- package/dist/api/window/WindowBounds.d.ts +16 -0
- package/dist/api/window/WindowBounds.d.ts.map +1 -0
- package/dist/api/window/WindowManager.d.ts +32 -0
- package/dist/api/window/WindowManager.d.ts.map +1 -0
- package/dist/api/window/_export.d.ts +3 -0
- package/dist/api/window/_export.d.ts.map +1 -0
- package/dist/core/rendering/AGraphicsDevice.d.ts +73 -0
- package/dist/core/rendering/AGraphicsDevice.d.ts.map +1 -0
- package/dist/core/rendering/ARenderer.d.ts +74 -0
- package/dist/core/rendering/ARenderer.d.ts.map +1 -0
- package/dist/core/rendering/blending/blend-component-descriptor.d.ts +25 -0
- package/dist/core/rendering/blending/blend-component-descriptor.d.ts.map +1 -0
- package/dist/core/rendering/blending/blend-state-descriptor.d.ts +29 -0
- package/dist/core/rendering/blending/blend-state-descriptor.d.ts.map +1 -0
- package/dist/core/rendering/blending/enums.d.ts +43 -0
- package/dist/core/rendering/blending/enums.d.ts.map +1 -0
- package/dist/core/rendering/enums.d.ts +20 -0
- package/dist/core/rendering/enums.d.ts.map +1 -0
- package/dist/core/rendering/sampler/sampler-descriptor.d.ts +28 -0
- package/dist/core/rendering/sampler/sampler-descriptor.d.ts.map +1 -0
- package/dist/core/rendering/texture/texture.d.ts +69 -0
- package/dist/core/rendering/texture/texture.d.ts.map +1 -0
- package/dist/core/rendering/vertex-buffer-layout.d.ts +22 -0
- package/dist/core/rendering/vertex-buffer-layout.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8054 -0
- package/dist/libktx-Cjh8w7XG-DhnH9lxr.js +4 -0
- package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts +31 -0
- package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts.map +1 -0
- package/dist/webgl/WebGlGpuInfo.d.ts +25 -0
- package/dist/webgl/WebGlGpuInfo.d.ts.map +1 -0
- package/dist/webgl/WebGlGraphicsDevice.d.ts +47 -0
- package/dist/webgl/WebGlGraphicsDevice.d.ts.map +1 -0
- package/dist/webgl/WebGlRenderer.d.ts +18 -0
- package/dist/webgl/WebGlRenderer.d.ts.map +1 -0
- package/dist/webgl/blending/webgl-blend-state.d.ts +33 -0
- package/dist/webgl/blending/webgl-blend-state.d.ts.map +1 -0
- package/dist/webgl/buffers/WebGlBuffersFactory.d.ts +16 -0
- package/dist/webgl/buffers/WebGlBuffersFactory.d.ts.map +1 -0
- package/dist/webgl/buffers/WebGlUniformBuffer.d.ts +34 -0
- package/dist/webgl/buffers/WebGlUniformBuffer.d.ts.map +1 -0
- package/dist/webgl/buffers/WebGlVertexBuffer.d.ts +48 -0
- package/dist/webgl/buffers/WebGlVertexBuffer.d.ts.map +1 -0
- package/dist/webgl/buffers/webgl-index-buffer.d.ts +43 -0
- package/dist/webgl/buffers/webgl-index-buffer.d.ts.map +1 -0
- package/dist/webgl/cast/cast.d.ts +52 -0
- package/dist/webgl/cast/cast.d.ts.map +1 -0
- package/dist/webgl/primitive/WebGlPrimitiveState.d.ts +29 -0
- package/dist/webgl/primitive/WebGlPrimitiveState.d.ts.map +1 -0
- package/dist/webgl/render-pass/WebGlRenderPass.d.ts +34 -0
- package/dist/webgl/render-pass/WebGlRenderPass.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts +53 -0
- package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts +30 -0
- package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts +24 -0
- package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts +57 -0
- package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts +57 -0
- package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts +40 -0
- package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts.map +1 -0
- package/dist/webgl/rendering/webgl-vertex-attribute.d.ts +10 -0
- package/dist/webgl/rendering/webgl-vertex-attribute.d.ts.map +1 -0
- package/dist/webgl/rendering/webgl-vertex-buffer-layout.d.ts +27 -0
- package/dist/webgl/rendering/webgl-vertex-buffer-layout.d.ts.map +1 -0
- package/dist/webgl/sampler/webgl-sampler.d.ts +48 -0
- package/dist/webgl/sampler/webgl-sampler.d.ts.map +1 -0
- package/dist/webgl/shader/WebGlShaderModule.d.ts +34 -0
- package/dist/webgl/shader/WebGlShaderModule.d.ts.map +1 -0
- package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts +19 -0
- package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts.map +1 -0
- package/dist/webgl/swap-chain/WebGlSwapChain.d.ts +27 -0
- package/dist/webgl/swap-chain/WebGlSwapChain.d.ts.map +1 -0
- package/dist/webgl/texture/WebGlTexture2D.d.ts +37 -0
- package/dist/webgl/texture/WebGlTexture2D.d.ts.map +1 -0
- package/dist/webgl/texture/WebGlTextureFactory.d.ts +17 -0
- package/dist/webgl/texture/WebGlTextureFactory.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlBufferUtilities.d.ts +45 -0
- package/dist/webgl/utilities/WebGlBufferUtilities.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlConverter.d.ts +108 -0
- package/dist/webgl/utilities/WebGlConverter.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlFrameBufferUtilities.d.ts +54 -0
- package/dist/webgl/utilities/WebGlFrameBufferUtilities.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlSamplerUtilities.d.ts +23 -0
- package/dist/webgl/utilities/WebGlSamplerUtilities.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlShaderUtilities.d.ts +28 -0
- package/dist/webgl/utilities/WebGlShaderUtilities.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlTextureUtilities.d.ts +33 -0
- package/dist/webgl/utilities/WebGlTextureUtilities.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlUtilities.d.ts +60 -0
- package/dist/webgl/utilities/WebGlUtilities.d.ts.map +1 -0
- package/dist/webgl/utilities/spector-js-utilities.d.ts +9 -0
- package/dist/webgl/utilities/spector-js-utilities.d.ts.map +1 -0
- package/dist/webgl/utilities/webgl-blending-utilities.d.ts +17 -0
- package/dist/webgl/utilities/webgl-blending-utilities.d.ts.map +1 -0
- package/dist/webgl/utilities/webgl-culling-utilities.d.ts +13 -0
- package/dist/webgl/utilities/webgl-culling-utilities.d.ts.map +1 -0
- package/dist/webgl/utilities/webgl-filter-anisotropic-utilities.d.ts +24 -0
- package/dist/webgl/utilities/webgl-filter-anisotropic-utilities.d.ts.map +1 -0
- package/dist/webgl/utilities/webgl-program-utilities.d.ts +14 -0
- package/dist/webgl/utilities/webgl-program-utilities.d.ts.map +1 -0
- package/dist/webgl/utilities/webgl-renderbuffer-utilities.d.ts +17 -0
- package/dist/webgl/utilities/webgl-renderbuffer-utilities.d.ts.map +1 -0
- package/package.json +19 -12
- package/shaders/glsl/sprite_fs.glsl +1 -1
- package/src/{core/Framework.ts → Framework.ts} +78 -38
- package/src/api/FrameworkConfiguration.ts +29 -0
- package/src/api/IFramework.ts +153 -0
- package/src/api/IFrameworkConfiguration.ts +30 -0
- package/src/api/_export.ts +26 -0
- package/src/api/camera/CameraFactory.ts +56 -0
- package/src/api/camera/ICamera.ts +52 -0
- package/src/api/camera/ICameraFactory.ts +69 -0
- package/src/api/camera/IOrthographicCamera.ts +38 -0
- package/src/api/camera/OrbitCamera.ts +402 -0
- package/src/api/camera/OrthographicCamera.ts +257 -0
- package/src/api/camera/PerspectiveCamera.ts +206 -0
- package/src/api/camera/_export.ts +7 -0
- package/src/api/content/ContentConfig.ts +11 -0
- package/src/{core → api}/content/ContentManager.ts +4 -3
- package/src/api/content/IContent.ts +9 -0
- package/src/api/content/IContentManager.ts +41 -0
- package/src/api/content/IContentModule.ts +67 -0
- package/src/{content → api/content}/ShaderModuleContent.ts +8 -8
- package/src/api/content/_export-content.ts +4 -0
- package/src/api/core/IDisposable.ts +10 -0
- package/src/api/core/_export-core.ts +1 -0
- package/src/api/data/Color.ts +228 -0
- package/src/api/data/Rect.ts +92 -0
- package/src/api/data/State.ts +10 -0
- package/src/api/data/_export.ts +3 -0
- package/src/{geometry → api/geometry}/BaseGeometry.ts +15 -2
- package/src/{geometry → api/geometry}/GeometryBuilder.ts +1 -1
- package/src/api/geometry/GeometryFormat.ts +33 -0
- package/src/api/geometry/IGeometry.ts +66 -0
- package/src/api/geometry/IGeometryBuilder.ts +17 -0
- package/src/{VertexFormat.ts → api/geometry/VertexFormat.ts} +3 -7
- package/src/api/geometry/_export-geometry.ts +4 -0
- package/src/api/image/CpuImageProcessor.ts +125 -0
- package/src/api/image/IImageProcessor.ts +28 -0
- package/src/api/image/RawImageData.ts +47 -0
- package/src/api/image/_export.ts +3 -0
- package/src/api/index.ts +1 -0
- package/src/api/input/IInputManager.ts +62 -0
- package/src/api/input/InputDeviceType.ts +20 -0
- package/src/api/input/InputManager.ts +513 -0
- package/src/api/input/Key.ts +35 -0
- package/src/api/input/KeyboardState.ts +44 -0
- package/src/api/input/_export.ts +13 -0
- package/src/api/input/gamepad/Button.ts +21 -0
- package/src/api/input/gamepad/GamePadState.ts +65 -0
- package/src/api/input/gamepad/GamePadThumbSticks.ts +18 -0
- package/src/api/input/mouse/MouseButton.ts +9 -0
- package/src/api/input/mouse/MouseState.ts +70 -0
- package/src/api/input/touch/TouchCollection.ts +164 -0
- package/src/api/input/touch/TouchLocation.ts +159 -0
- package/src/api/input/touch/TouchLocationState.ts +15 -0
- package/src/api/input/touch/TouchPanelCapabilities.ts +31 -0
- package/src/api/loaders/IImageLoader.ts +22 -0
- package/src/api/loaders/ImageLoader.ts +93 -0
- package/src/api/loaders/_export.ts +2 -0
- package/src/api/material/IMaterial.ts +41 -0
- package/src/api/material/IMaterialFactory.ts +21 -0
- package/src/api/material/InspectTextureMipsMaterial.ts +113 -0
- package/src/api/material/MaterialFactory.ts +27 -0
- package/src/api/material/UnlitMaterial.ts +143 -0
- package/src/api/material/_export.ts +5 -0
- package/src/api/meshes/IMesh.ts +20 -0
- package/src/api/meshes/IMeshFactory.ts +28 -0
- package/src/api/meshes/Mesh.ts +256 -0
- package/src/api/meshes/MeshFactory.ts +36 -0
- package/src/api/meshes/MeshParameters.ts +25 -0
- package/src/api/meshes/QuadMesh.ts +104 -0
- package/src/api/meshes/_export.ts +6 -0
- package/src/api/rendering/IGPUInfo.ts +42 -0
- package/src/api/rendering/IGraphicsDevice.ts +103 -0
- package/src/api/rendering/IGraphicsDeviceFeatures.ts +32 -0
- package/src/api/rendering/IRenderer.ts +84 -0
- package/src/api/rendering/PowerPreference.ts +15 -0
- package/src/api/rendering/RenderingBackend.ts +20 -0
- package/src/api/rendering/_export-rendering.ts +6 -0
- package/src/api/rendering/blending/IBlendState.ts +17 -0
- package/src/api/rendering/blending/_export.ts +1 -0
- package/src/api/rendering/buffers/BufferUsage.ts +56 -0
- package/src/api/rendering/buffers/IBuffer.ts +24 -0
- package/src/api/rendering/buffers/IBufferFactory.ts +38 -0
- package/src/api/rendering/buffers/IIndexBuffer.ts +37 -0
- package/src/api/rendering/buffers/IUniformBuffer.ts +21 -0
- package/src/api/rendering/buffers/IVertexBuffer.ts +32 -0
- package/src/api/rendering/buffers/IVertexBufferLayout.ts +27 -0
- package/src/api/rendering/buffers/IndexBufferType.ts +13 -0
- package/src/api/rendering/buffers/VertexAttribute.ts +26 -0
- package/src/api/rendering/buffers/VertexStepMode.ts +13 -0
- package/src/api/rendering/buffers/_export-buffers.ts +11 -0
- package/src/api/rendering/primitive/CullMode.ts +17 -0
- package/src/api/rendering/primitive/FrontFace.ts +13 -0
- package/src/api/rendering/primitive/IPrimitiveState.ts +25 -0
- package/src/api/rendering/primitive/PrimitiveStateDescriptor.ts +27 -0
- package/src/api/rendering/primitive/PrimitiveTopology.ts +25 -0
- package/src/api/rendering/primitive/_export.ts +5 -0
- package/src/api/rendering/render-pipelines/IInspectTextureMipsRenderPipeline.ts +38 -0
- package/src/api/rendering/render-pipelines/IMainRenderTargetRenderPipeline.ts +21 -0
- package/src/api/rendering/render-pipelines/IRenderPipeline.ts +47 -0
- package/src/api/rendering/render-pipelines/IRenderPipelineFactory.ts +52 -0
- package/src/api/rendering/render-pipelines/ISpriteRenderPipeline.ts +25 -0
- package/src/api/rendering/render-pipelines/IUnlitRenderPipeline.ts +38 -0
- package/src/api/rendering/render-pipelines/_export-render-pipelines.ts +6 -0
- package/src/{core/renderer → api/rendering}/renderer-interface.ts +15 -9
- package/src/api/rendering/renderpass/IRenderPass.ts +18 -0
- package/src/api/rendering/renderpass/LoadAction.ts +32 -0
- package/src/api/rendering/renderpass/RenderPassColorAttachment.ts +61 -0
- package/src/api/rendering/renderpass/RenderPassDepthStencilAttachment.ts +76 -0
- package/src/api/rendering/renderpass/RenderPassDescriptor.ts +26 -0
- package/src/api/rendering/renderpass/StoreAction.ts +23 -0
- package/src/api/rendering/renderpass/_export.ts +6 -0
- package/src/api/rendering/sampler/ISampler.ts +52 -0
- package/src/api/rendering/sampler/MipMapSamplerFilter.ts +17 -0
- package/src/api/rendering/sampler/SamplerAddressMode.ts +23 -0
- package/src/api/rendering/sampler/SamplerDescriptor.ts +46 -0
- package/src/api/rendering/sampler/SamplerFilter.ts +13 -0
- package/src/api/rendering/sampler/_export.ts +5 -0
- package/src/api/rendering/sampler/sampler-enums.ts +20 -0
- package/src/api/rendering/swapchain/ISwapChain.ts +33 -0
- package/src/api/rendering/swapchain/SurfacePresentMode.ts +22 -0
- package/src/api/rendering/swapchain/SwapChainDescriptor.ts +23 -0
- package/src/api/rendering/swapchain/_export.ts +3 -0
- package/src/api/rendering/texture/ITexture2D.ts +100 -0
- package/src/api/rendering/texture/ITextureFactory.ts +56 -0
- package/src/api/rendering/texture/ITextureView.ts +20 -0
- package/src/api/rendering/texture/TextureDescriptor.ts +52 -0
- package/src/api/rendering/texture/TextureFormat.ts +58 -0
- package/src/api/rendering/texture/TextureUsage.ts +41 -0
- package/src/api/rendering/texture/TextureUtilities.ts +149 -0
- package/src/api/rendering/texture/TextureViewDescriptor.ts +25 -0
- package/src/api/rendering/texture/TextureViewDimension.ts +16 -0
- package/src/api/rendering/texture/_export-texture.ts +9 -0
- package/src/api/shader/IShaderModule.ts +23 -0
- package/src/api/shader/IShaderModuleLoader.ts +15 -0
- package/src/api/shader/ShaderStage.ts +9 -0
- package/src/api/shader/_export-shader.ts +3 -0
- package/src/{core → api}/shader/shader-loader.ts +1 -1
- package/src/api/sprites/ISpriteBatch.ts +144 -0
- package/src/{core/sprite-batch → api/sprites}/SpriteBatch.ts +8 -5
- package/src/{core/sprite-batch → api/sprites}/SpriteBatchDrawable.ts +6 -6
- package/src/{core/sprite-batch → api/sprites}/SpriteBatchMesh.ts +8 -4
- package/src/api/sprites/_export_sprites.ts +1 -0
- package/src/api/time/GameTime.ts +30 -0
- package/src/api/time/ITimeManager.ts +22 -0
- package/src/api/time/TimeManager.ts +33 -0
- package/src/api/time/_export_time.ts +3 -0
- package/src/api/utilities/AlignUtilities.ts +39 -0
- package/src/api/utilities/GeometryUtilities.ts +20 -0
- package/src/api/utilities/MathHelper.ts +256 -0
- package/src/api/utilities/_export.ts +3 -0
- package/src/api/window/IWindowManager.ts +78 -0
- package/src/api/window/WindowBounds.ts +17 -0
- package/src/{core/window/window-manager.ts → api/window/WindowManager.ts} +2 -2
- package/src/api/window/_export.ts +2 -0
- package/src/core/rendering/AGraphicsDevice.ts +15 -9
- package/src/core/rendering/ARenderer.ts +7 -7
- package/src/core/rendering/blending/enums.ts +5 -5
- package/src/core/rendering/sampler/sampler-descriptor.ts +1 -1
- package/src/core/rendering/texture/texture.ts +4 -3
- package/src/core/rendering/vertex-buffer-layout.ts +3 -4
- package/src/glsl-raw.d.ts +4 -0
- package/src/index.ts +3 -2
- package/src/main.ts +5 -10
- package/src/webgl/WebGLGraphicsDeviceFeatures.ts +1 -1
- package/src/webgl/WebGlGpuInfo.ts +1 -1
- package/src/webgl/WebGlGraphicsDevice.ts +19 -15
- package/src/webgl/WebGlRenderer.ts +7 -5
- package/src/webgl/blending/webgl-blend-state.ts +1 -1
- package/src/webgl/buffers/WebGlBuffersFactory.ts +1 -1
- package/src/webgl/buffers/WebGlUniformBuffer.ts +1 -1
- package/src/webgl/buffers/WebGlVertexBuffer.ts +8 -7
- package/src/webgl/buffers/webgl-index-buffer.ts +2 -2
- package/src/webgl/cast/cast.ts +2 -2
- package/src/webgl/primitive/WebGlPrimitiveState.ts +7 -3
- package/src/webgl/render-pass/WebGlRenderPass.ts +17 -8
- package/src/webgl/render-pipelines/AWebGlRenderPipeline.ts +1 -1
- package/src/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.ts +10 -2
- package/src/webgl/render-pipelines/WebGlRenderPipelineFactory.ts +1 -1
- package/src/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.ts +3 -3
- package/src/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.ts +2 -2
- package/src/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.ts +2 -2
- package/src/webgl/sampler/webgl-sampler.ts +2 -2
- package/src/webgl/shader/WebGlShaderModule.ts +2 -2
- package/src/webgl/shader/WebGlShaderModuleLoader.ts +1 -1
- package/src/webgl/swap-chain/WebGlSwapChain.ts +1 -1
- package/src/webgl/texture/WebGlTexture2D.ts +6 -4
- package/src/webgl/texture/WebGlTextureFactory.ts +7 -7
- package/src/webgl/utilities/WebGlBufferUtilities.ts +1 -1
- package/src/webgl/utilities/WebGlConverter.ts +19 -62
- package/src/webgl/utilities/WebGlFrameBufferUtilities.ts +1 -1
- package/src/webgl/utilities/WebGlSamplerUtilities.ts +4 -4
- package/src/webgl/utilities/WebGlTextureUtilities.ts +29 -20
- package/src/webgl/utilities/webgl-culling-utilities.ts +1 -1
- package/src/webgl/utilities/webgl-filter-anisotropic-utilities.ts +1 -1
- package/src/webgl/utilities/webgl-renderbuffer-utilities.ts +1 -1
- package/dist/assets/_ris-ktx2-node-module-stub-DwDS30PT.js +0 -1
- package/dist/assets/cat.jpg +0 -0
- package/dist/assets/index-BmeGit54.css +0 -1
- package/dist/assets/index-qyn4pzGw.js +0 -151
- package/dist/assets/libktx-Cjh8w7XG-Ci1Fm_MH.js +0 -1
- package/dist/assets/test.png +0 -0
- package/dist/index.html +0 -16
- package/dist/vite.svg +0 -1
- package/src/TextureFormat.ts +0 -0
- package/src/common/sampler-enums.ts +0 -21
- package/src/common/vertex-step-mode.ts +0 -12
- package/src/core/FrameworkConfig.ts +0 -31
- package/src/core/buffers/buffers-factory-interface.ts +0 -0
- package/src/core/buffers/vertex-buffer-interface.ts +0 -0
- package/src/core/dependency-injection/register-services-interface.ts +0 -15
- package/src/core/framework-interface.ts +0 -0
- package/src/core/input/InputManager.ts +0 -115
- package/src/core/rendering/primitive/PrimitiveStateDescriptor.ts +0 -32
- package/src/core/rendering/primitive/enums.ts +0 -68
- package/src/core/rendering/render-pass/render-pass-descriptor.ts +0 -0
- package/src/core/rendering/render-pass/render-pass-interface.ts +0 -17
- package/src/core/rendering/vertex-attribute.ts +0 -20
- package/src/core/shader/shader-module-interface.ts +0 -1
- package/src/counter.ts +0 -9
- package/src/geometry/GeometryFormat.ts +0 -37
- package/src/webgl/utilities/webgl-render-buffer-utilities.ts +0 -23
- /package/src/{core/renderer → api/rendering}/enums.ts +0 -0
- /package/src/{core/renderer → api/rendering}/rendering-limits.ts +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { GamePadThumbSticks } from "./GamePadThumbSticks.js";
|
|
2
|
+
import { vec2 } from "gl-matrix";
|
|
3
|
+
import { Button } from "./Button.js";
|
|
4
|
+
/**
|
|
5
|
+
* The state of the gamepad.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GamePadState {
|
|
8
|
+
readonly isConnected: boolean;
|
|
9
|
+
private readonly _downButtons;
|
|
10
|
+
private readonly _releasedButtons;
|
|
11
|
+
private readonly _thumbSticks;
|
|
12
|
+
/**
|
|
13
|
+
* The constructor.
|
|
14
|
+
* @param isConnected - Set to true if gamepad is connected.
|
|
15
|
+
* @param downButtons - The down buttons.
|
|
16
|
+
* @param releasedButtons - The released buttons.
|
|
17
|
+
* @param leftThumbstick - The left thumbstick position.
|
|
18
|
+
* @param rightThumbstick - The right thumbstick position.
|
|
19
|
+
*/
|
|
20
|
+
constructor(isConnected: boolean, _downButtons: {
|
|
21
|
+
[key: number]: boolean;
|
|
22
|
+
}, _releasedButtons: {
|
|
23
|
+
[key: number]: boolean;
|
|
24
|
+
}, leftThumbstick: vec2, rightThumbstick: vec2);
|
|
25
|
+
/**
|
|
26
|
+
* The thumbstick positions.
|
|
27
|
+
*/
|
|
28
|
+
get thumbSticks(): GamePadThumbSticks;
|
|
29
|
+
/**
|
|
30
|
+
* Check if the button is down.
|
|
31
|
+
* @param button - The button to check.
|
|
32
|
+
* @returns true if button is down, false otherwise.
|
|
33
|
+
*/
|
|
34
|
+
isButtonDown(button: Button): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Check if the button is up.
|
|
37
|
+
* @param button - The button to check.
|
|
38
|
+
* @returns true if button is up, false otherwise.
|
|
39
|
+
*/
|
|
40
|
+
isButtonUp(button: Button): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Check if the button is released in current frame.
|
|
43
|
+
* @param button - The button to check.
|
|
44
|
+
* @returns true if button is released.
|
|
45
|
+
*/
|
|
46
|
+
isButtonReleased(button: Button): boolean;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=GamePadState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GamePadState.d.ts","sourceRoot":"","sources":["../../../../src/api/input/gamepad/GamePadState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAEnC;;GAEG;AACH,qBAAa,YAAY;aAYD,WAAW,EAAE,OAAO;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAbrC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAElD;;;;;;;OAOG;gBAEiB,WAAW,EAAE,OAAO,EACnB,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EACxC,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAC7D,cAAc,EAAE,IAAI,EACpB,eAAe,EAAE,IAAI;IAQzB;;OAEG;IACH,IAAW,WAAW,IAAI,kBAAkB,CAE3C;IAED;;;;OAIG;IACI,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAI5C;;;;OAIG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAI1C;;;;OAIG;IACI,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAGnD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { vec2 } from "gl-matrix";
|
|
2
|
+
/**
|
|
3
|
+
* The thumbsticks of the gamepad.
|
|
4
|
+
* @param left - The left thumbstick.
|
|
5
|
+
* @param right - The right thumbstick.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GamePadThumbSticks {
|
|
8
|
+
left: vec2;
|
|
9
|
+
right: vec2;
|
|
10
|
+
/**
|
|
11
|
+
* The thumbsticks of the gamepad.
|
|
12
|
+
* @param left - The left thumbstick.
|
|
13
|
+
* @param right - The right thumbstick.
|
|
14
|
+
*/
|
|
15
|
+
constructor(left: vec2, right: vec2);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=GamePadThumbSticks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GamePadThumbSticks.d.ts","sourceRoot":"","sources":["../../../../src/api/input/gamepad/GamePadThumbSticks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B;;;;GAIG;AACH,qBAAa,kBAAkB;IAOD,IAAI,EAAE,IAAI;IAAS,KAAK,EAAE,IAAI;IALxD;;;;OAIG;gBACuB,IAAI,EAAE,IAAI,EAAS,KAAK,EAAE,IAAI;CAG3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MouseButton.d.ts","sourceRoot":"","sources":["../../../../src/api/input/mouse/MouseButton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,MAAM,IAAI;CACX"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { MouseButton } from "./MouseButton.js";
|
|
2
|
+
import { vec2 } from "gl-matrix";
|
|
3
|
+
/**
|
|
4
|
+
* The mouse state.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MouseState {
|
|
7
|
+
private readonly _downButtons;
|
|
8
|
+
private readonly _releasedButtons;
|
|
9
|
+
position: vec2;
|
|
10
|
+
delta: vec2;
|
|
11
|
+
scrollWheelPosition: vec2;
|
|
12
|
+
/**
|
|
13
|
+
* The constructor. InputManager owns these objects and updates them in place.
|
|
14
|
+
* @param _downButtons - The buttons that are down, keyed by MouseButton.
|
|
15
|
+
* @param _releasedButtons - The buttons released this frame, keyed by MouseButton.
|
|
16
|
+
* @param position - The cursor position in viewport (clientX / clientY) CSS pixels.
|
|
17
|
+
* @param delta - The cursor movement since the previous frame.
|
|
18
|
+
* @param scrollWheelPosition - The wheel direction this frame. Each axis is -1, 0, or 1.
|
|
19
|
+
*/
|
|
20
|
+
constructor(_downButtons: {
|
|
21
|
+
[key: number]: boolean;
|
|
22
|
+
}, _releasedButtons: {
|
|
23
|
+
[key: number]: boolean;
|
|
24
|
+
}, position: vec2, delta: vec2, scrollWheelPosition: vec2);
|
|
25
|
+
/** The x position. */
|
|
26
|
+
get x(): number;
|
|
27
|
+
/** The y position. */
|
|
28
|
+
get y(): number;
|
|
29
|
+
/** The delta x.*/
|
|
30
|
+
get dX(): number;
|
|
31
|
+
/** The delta y. */
|
|
32
|
+
get dY(): number;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if MouseButton is down in current frame.
|
|
35
|
+
* @param button - The button to check.
|
|
36
|
+
* @returns True if button is down.
|
|
37
|
+
*/
|
|
38
|
+
isButtonDown(button: MouseButton): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the button is up in current frame.
|
|
41
|
+
* @param button - The button to check.
|
|
42
|
+
* @returns True if the button is up.
|
|
43
|
+
*/
|
|
44
|
+
isButtonUp(button: MouseButton): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Checks if the button is released in current frame.
|
|
47
|
+
* @param button - The button to check.
|
|
48
|
+
* @returns True if the button is released in current frame.
|
|
49
|
+
*/
|
|
50
|
+
isButtonReleased(button: MouseButton): boolean;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=MouseState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MouseState.d.ts","sourceRoot":"","sources":["../../../../src/api/input/mouse/MouseState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B;;GAEG;AACH,qBAAa,UAAU;IAUA,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAC1B,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,mBAAmB,EAAE,IAAI;IAZnD;;;;;;;OAOG;gBACiC,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EACxC,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EACtD,QAAQ,EAAE,IAAI,EACd,KAAK,EAAE,IAAI,EACX,mBAAmB,EAAE,IAAI;IAGnD,sBAAsB;IACtB,IAAW,CAAC,IAAI,MAAM,CAErB;IAED,sBAAsB;IACtB,IAAW,CAAC,IAAI,MAAM,CAErB;IAED,kBAAkB;IAClB,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,mBAAmB;IACnB,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED;;;;OAIG;IACI,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO;IAIjD;;;;OAIG;IACI,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO;IAI/C;;;;OAIG;IACI,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO;CAGxD"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { TouchLocation } from "./TouchLocation.js";
|
|
2
|
+
import { TouchLocationState } from "./TouchLocationState.js";
|
|
3
|
+
/**
|
|
4
|
+
* The touch locations for one frame.
|
|
5
|
+
* Slots are allocated once. clear and tryAdd reuse them, and reads do not allocate.
|
|
6
|
+
*/
|
|
7
|
+
export declare class TouchCollection {
|
|
8
|
+
/** Default number of simultaneous touches the collection stores. */
|
|
9
|
+
static readonly MAX_TOUCH_COUNT = 8;
|
|
10
|
+
/** The fixed number of slots in this collection. */
|
|
11
|
+
readonly maxTouchCount: number;
|
|
12
|
+
private readonly _locations;
|
|
13
|
+
private _count;
|
|
14
|
+
private _activeCount;
|
|
15
|
+
/**
|
|
16
|
+
* The constructor.
|
|
17
|
+
* @param maxTouchCount The fixed slot count. Values below 1 store no touches. The default is MAX_TOUCH_COUNT.
|
|
18
|
+
*/
|
|
19
|
+
constructor(maxTouchCount?: number);
|
|
20
|
+
/** The number of touch locations written this frame, including releases. */
|
|
21
|
+
get count(): number;
|
|
22
|
+
/**
|
|
23
|
+
* The number of touches that were down when they were written.
|
|
24
|
+
* Pressed and moved contacts count. Released, cancelled, and invalid contacts do not.
|
|
25
|
+
* This is stored while contacts are written, not counted again on read.
|
|
26
|
+
*/
|
|
27
|
+
get activeCount(): number;
|
|
28
|
+
/**
|
|
29
|
+
* Drops the frame's contacts.
|
|
30
|
+
* Slots stay allocated. The next tryAdd reuses them from the start.
|
|
31
|
+
*/
|
|
32
|
+
clear(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Writes the next contact into the next free slot.
|
|
35
|
+
* @param id The touch id.
|
|
36
|
+
* @param state The touch location state.
|
|
37
|
+
* @param x The x position.
|
|
38
|
+
* @param y The y position.
|
|
39
|
+
* @param pressure The pressure.
|
|
40
|
+
* @param previousState The previous state. Omit it when this is the first sample.
|
|
41
|
+
* @param previousX The previous x position.
|
|
42
|
+
* @param previousY The previous y position.
|
|
43
|
+
* @param previousPressure The previous pressure.
|
|
44
|
+
* @returns The slot that was written, or undefined when every slot is already used.
|
|
45
|
+
*/
|
|
46
|
+
tryAdd(id: number, state: TouchLocationState, x: number, y: number, pressure?: number, previousState?: TouchLocationState, previousX?: number, previousY?: number, previousPressure?: number): TouchLocation | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* The touch at an index in this frame.
|
|
49
|
+
* @param index The index, from 0 to count - 1.
|
|
50
|
+
* @returns The stored location, or undefined when the index is outside this frame.
|
|
51
|
+
*/
|
|
52
|
+
get(index: number): TouchLocation | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Finds a touch by id.
|
|
55
|
+
* Scans only the contacts written this frame. The first match wins.
|
|
56
|
+
* @param id The touch id.
|
|
57
|
+
* @returns The stored location, or undefined when this frame has no contact with that id.
|
|
58
|
+
*/
|
|
59
|
+
findById(id: number): TouchLocation | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* True when the contact with this id is down.
|
|
62
|
+
* A missing id is not down.
|
|
63
|
+
* @param id The touch id.
|
|
64
|
+
*/
|
|
65
|
+
isDown(id: number): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* True when the contact with this id was released this frame.
|
|
68
|
+
* A missing id was not released.
|
|
69
|
+
* @param id The touch id.
|
|
70
|
+
*/
|
|
71
|
+
isReleased(id: number): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* True when the contact with this id was cancelled this frame.
|
|
74
|
+
* A missing id was not cancelled. A cancel is not a release.
|
|
75
|
+
* @param id The touch id.
|
|
76
|
+
*/
|
|
77
|
+
isCancelled(id: number): boolean;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=TouchCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TouchCollection.d.ts","sourceRoot":"","sources":["../../../../src/api/input/touch/TouchCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAE3D;;;GAGG;AACH,qBAAa,eAAe;IAExB,oEAAoE;IACpE,gBAAuB,eAAe,KAAK;IAE3C,oDAAoD;IACpD,SAAgB,aAAa,EAAE,MAAM,CAAC;IAEtC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,YAAY,CAAK;IAEzB;;;OAGG;gBACgB,aAAa,SAAkC;IAUlE,4EAA4E;IAC5E,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED;;;;OAIG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;;OAGG;IACI,KAAK,IAAI,IAAI;IAKpB;;;;;;;;;;;;OAYG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,kBAAkB,EACzB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,QAAQ,SAAI,EACZ,aAAa,CAAC,EAAE,kBAAkB,EAClC,SAAS,SAAI,EACb,SAAS,SAAI,EACb,gBAAgB,SAAI,GAAG,aAAa,GAAG,SAAS;IAkB9D;;;;OAIG;IACI,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAOpD;;;;;OAKG;IACI,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAYtD;;;;OAIG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAQlC;;;;OAIG;IACI,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAQtC;;;;OAIG;IACI,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAO1C"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { vec2 } from "gl-matrix";
|
|
2
|
+
import { TouchLocationState } from "./TouchLocationState.js";
|
|
3
|
+
/**
|
|
4
|
+
* A single touch contact.
|
|
5
|
+
* Position, delta, and the previous sample are stored on this object.
|
|
6
|
+
* Reading them again returns those same instances.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TouchLocation {
|
|
9
|
+
/** The touch id. Stable for the lifetime of the contact. */
|
|
10
|
+
id: number;
|
|
11
|
+
/** The pressure, from 0 to 1. 0 when the device does not report pressure. */
|
|
12
|
+
pressure: number;
|
|
13
|
+
/**
|
|
14
|
+
* The position of the touch.
|
|
15
|
+
* Viewport coordinates in CSS pixels, the same space as MouseState (clientX, clientY).
|
|
16
|
+
*/
|
|
17
|
+
readonly position: vec2;
|
|
18
|
+
/**
|
|
19
|
+
* The delta from the previous sample. Zero when this frame has no previous sample.
|
|
20
|
+
* Viewport coordinates in CSS pixels, the same space as MouseState delta.
|
|
21
|
+
*/
|
|
22
|
+
readonly delta: vec2;
|
|
23
|
+
/**
|
|
24
|
+
* True when the contact is pressed or moved.
|
|
25
|
+
* Updated when state is written.
|
|
26
|
+
*/
|
|
27
|
+
isDown: boolean;
|
|
28
|
+
private _state;
|
|
29
|
+
private _hasPrevious;
|
|
30
|
+
private readonly _previous;
|
|
31
|
+
/**
|
|
32
|
+
* The constructor.
|
|
33
|
+
* @param ownsPrevious True when this location keeps a previous sample. The previous sample does not keep one of its own.
|
|
34
|
+
*/
|
|
35
|
+
constructor(ownsPrevious?: boolean);
|
|
36
|
+
/** The touch location state. */
|
|
37
|
+
get state(): TouchLocationState;
|
|
38
|
+
/** The touch location state. */
|
|
39
|
+
set state(value: TouchLocationState);
|
|
40
|
+
/** The x position. */
|
|
41
|
+
get x(): number;
|
|
42
|
+
/** The y position. */
|
|
43
|
+
get y(): number;
|
|
44
|
+
/** The delta x. */
|
|
45
|
+
get dX(): number;
|
|
46
|
+
/** The delta y. */
|
|
47
|
+
get dY(): number;
|
|
48
|
+
/** True when the contact started this frame. */
|
|
49
|
+
isPressed(): boolean;
|
|
50
|
+
/** True when the contact moved while held. */
|
|
51
|
+
isMoved(): boolean;
|
|
52
|
+
/** True when the contact was released this frame. */
|
|
53
|
+
isReleased(): boolean;
|
|
54
|
+
/** True when the contact was cancelled this frame. A cancel is not a finger lift. */
|
|
55
|
+
isCancelled(): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The previous sample of this contact.
|
|
58
|
+
* Undefined when this is the first sample. The same instance is returned for every call in the frame.
|
|
59
|
+
*/
|
|
60
|
+
tryGetPreviousLocation(): TouchLocation | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Writes this sample.
|
|
63
|
+
* Clears the previous sample and sets delta to zero.
|
|
64
|
+
* @param id The touch id.
|
|
65
|
+
* @param state The touch location state.
|
|
66
|
+
* @param x The x position.
|
|
67
|
+
* @param y The y position.
|
|
68
|
+
* @param pressure The pressure.
|
|
69
|
+
*/
|
|
70
|
+
write(id: number, state: TouchLocationState, x: number, y: number, pressure: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* Writes the previous sample and caches delta as this position minus that position.
|
|
73
|
+
* @param state The previous touch location state.
|
|
74
|
+
* @param x The previous x position.
|
|
75
|
+
* @param y The previous y position.
|
|
76
|
+
* @param pressure The previous pressure.
|
|
77
|
+
*/
|
|
78
|
+
writePrevious(state: TouchLocationState, x: number, y: number, pressure: number): void;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=TouchLocation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TouchLocation.d.ts","sourceRoot":"","sources":["../../../../src/api/input/touch/TouchLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,yBAAyB,CAAC;AAE3D;;;;GAIG;AACH,qBAAa,aAAa;IAEtB,4DAA4D;IACrD,EAAE,SAAK;IAEd,6EAA6E;IACtE,QAAQ,SAAK;IAEpB;;;OAGG;IACH,SAAgB,QAAQ,EAAE,IAAI,CAAiB;IAE/C;;;OAGG;IACH,SAAgB,KAAK,EAAE,IAAI,CAAiB;IAE5C;;;OAGG;IACI,MAAM,UAAS;IAEtB,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA4B;IAEtD;;;OAGG;gBACgB,YAAY,UAAO;IAQtC,gCAAgC;IAChC,IAAW,KAAK,IAAI,kBAAkB,CAErC;IAED,gCAAgC;IAChC,IAAW,KAAK,CAAC,KAAK,EAAE,kBAAkB,EAIzC;IAED,sBAAsB;IACtB,IAAW,CAAC,IAAI,MAAM,CAErB;IAED,sBAAsB;IACtB,IAAW,CAAC,IAAI,MAAM,CAErB;IAED,mBAAmB;IACnB,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,mBAAmB;IACnB,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,gDAAgD;IACzC,SAAS,IAAI,OAAO;IAI3B,8CAA8C;IACvC,OAAO,IAAI,OAAO;IAIzB,qDAAqD;IAC9C,UAAU,IAAI,OAAO;IAI5B,qFAAqF;IAC9E,WAAW,IAAI,OAAO;IAI7B;;;OAGG;IACI,sBAAsB,IAAI,aAAa,GAAG,SAAS;IAO1D;;;;;;;;OAQG;IACI,KAAK,CAAC,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,kBAAkB,EACzB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE,MAAM,GAAG,IAAI;IAWpC;;;;;;OAMG;IACI,aAAa,CAAC,KAAK,EAAE,kBAAkB,EACzB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE,MAAM,GAAG,IAAI;CAW/C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The state of a touch location for the current frame.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum TouchLocationState {
|
|
5
|
+
/** No contact. */
|
|
6
|
+
INVALID = 0,
|
|
7
|
+
/** The contact was released this frame. */
|
|
8
|
+
RELEASED = 1,
|
|
9
|
+
/** The contact started this frame. */
|
|
10
|
+
PRESSED = 2,
|
|
11
|
+
/** The contact moved while held. */
|
|
12
|
+
MOVED = 3,
|
|
13
|
+
/** The contact was cancelled this frame. This is not a finger lift. */
|
|
14
|
+
CANCELLED = 4
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=TouchLocationState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TouchLocationState.d.ts","sourceRoot":"","sources":["../../../../src/api/input/touch/TouchLocationState.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,kBAAkB;IAC1B,kBAAkB;IAClB,OAAO,IAAI;IACX,2CAA2C;IAC3C,QAAQ,IAAI;IACZ,sCAAsC;IACtC,OAAO,IAAI;IACX,oCAAoC;IACpC,KAAK,IAAI;IACT,uEAAuE;IACvE,SAAS,IAAI;CAChB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capabilities of the touch panel.
|
|
3
|
+
* Fields stay on this instance. Update them in place when the device changes.
|
|
4
|
+
*/
|
|
5
|
+
export declare class TouchPanelCapabilities {
|
|
6
|
+
isConnected: boolean;
|
|
7
|
+
maximumTouchCount: number;
|
|
8
|
+
hasPressure: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The constructor.
|
|
11
|
+
* @param isConnected True when a touch device is connected.
|
|
12
|
+
* @param maximumTouchCount The maximum number of simultaneous touches. 0 when none are supported.
|
|
13
|
+
* @param hasPressure True when contacts report pressure.
|
|
14
|
+
*/
|
|
15
|
+
constructor(isConnected: boolean, maximumTouchCount: number, hasPressure: boolean);
|
|
16
|
+
/**
|
|
17
|
+
* Writes new capabilities into this instance.
|
|
18
|
+
* @param isConnected True when a touch device is connected.
|
|
19
|
+
* @param maximumTouchCount The maximum number of simultaneous touches. 0 when none are supported.
|
|
20
|
+
* @param hasPressure True when contacts report pressure.
|
|
21
|
+
*/
|
|
22
|
+
set(isConnected: boolean, maximumTouchCount: number, hasPressure: boolean): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=TouchPanelCapabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TouchPanelCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/api/input/touch/TouchPanelCapabilities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,sBAAsB;IAQL,WAAW,EAAE,OAAO;IACpB,iBAAiB,EAAE,MAAM;IACzB,WAAW,EAAE,OAAO;IAR9C;;;;;OAKG;gBACuB,WAAW,EAAE,OAAO,EACpB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,OAAO;IAG9C;;;;;OAKG;IACI,GAAG,CAAC,WAAW,EAAE,OAAO,EACpB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,OAAO,GAAG,IAAI;CAKzC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RawImageData } from "../image/RawImageData.js";
|
|
2
|
+
/**
|
|
3
|
+
* The image loader interface.
|
|
4
|
+
*/
|
|
5
|
+
export interface IImageLoader {
|
|
6
|
+
/**
|
|
7
|
+
* Loads an image from a file.
|
|
8
|
+
* @param path - The file path.
|
|
9
|
+
* @param cache - Whether to cache the image in a persistent cache.
|
|
10
|
+
* @returns The raw image data.
|
|
11
|
+
*/
|
|
12
|
+
loadAsync(path: string, cache?: boolean): Promise<RawImageData>;
|
|
13
|
+
/**
|
|
14
|
+
* Disposes of the temporary cache.
|
|
15
|
+
*
|
|
16
|
+
* Used internally, call only if you know what you are doing.
|
|
17
|
+
*/
|
|
18
|
+
disposeOfTemporaryCache(): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=IImageLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IImageLoader.d.ts","sourceRoot":"","sources":["../../../src/api/loaders/IImageLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,YAAY;IAEzB;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEhE;;;;OAIG;IACH,uBAAuB,IAAI,IAAI,CAAC;CACnC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IImageLoader } from "./IImageLoader.js";
|
|
2
|
+
import type { IFramework } from "../IFramework.js";
|
|
3
|
+
import { RawImageData } from "../image/RawImageData.js";
|
|
4
|
+
/**
|
|
5
|
+
* The image loader.
|
|
6
|
+
*
|
|
7
|
+
* Loads images through the browser Fetch API and converts them
|
|
8
|
+
* into raw pixel data suitable for the rendering backend.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ImageLoader implements IImageLoader {
|
|
11
|
+
private readonly _framework;
|
|
12
|
+
/**
|
|
13
|
+
* A temporary cache is released when the engine clears it.
|
|
14
|
+
* It exists only for the duration of a loading/initialization operation.
|
|
15
|
+
*/
|
|
16
|
+
private readonly _tempCache;
|
|
17
|
+
/**
|
|
18
|
+
* Persistent cache is released only when the application
|
|
19
|
+
* is closed or the cache is manually cleared.
|
|
20
|
+
*/
|
|
21
|
+
private readonly _permanentCache;
|
|
22
|
+
/**
|
|
23
|
+
* The constructor.
|
|
24
|
+
* @param _framework The framework.
|
|
25
|
+
*/
|
|
26
|
+
constructor(_framework: IFramework);
|
|
27
|
+
/**
|
|
28
|
+
* Loads a PNG/JPEG/etc. image using fetch.
|
|
29
|
+
*/
|
|
30
|
+
private _loadImage;
|
|
31
|
+
/** @inheritDoc */
|
|
32
|
+
loadAsync(path: string, cache?: boolean): Promise<RawImageData>;
|
|
33
|
+
/** @inheritDoc */
|
|
34
|
+
disposeOfTemporaryCache(): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=ImageLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageLoader.d.ts","sourceRoot":"","sources":["../../../src/api/loaders/ImageLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAEtD;;;;;GAKG;AACH,qBAAa,WAAY,YAAW,YAAY;IAmBxC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAjB/B;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoC;IAE/D;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAoC;IAEpE;;;OAGG;gBAEkB,UAAU,EAAE,UAAU;IAI3C;;OAEG;YACW,UAAU;IAmBxB,kBAAkB;IACL,SAAS,CAClB,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,OAAe,GACvB,OAAO,CAAC,YAAY,CAAC;IAsBxB,kBAAkB;IACX,uBAAuB,IAAI,IAAI;CASzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_export.d.ts","sourceRoot":"","sources":["../../../src/api/loaders/_export.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { mat4 } from "gl-matrix";
|
|
2
|
+
import type { IDisposable } from "../core/IDisposable.js";
|
|
3
|
+
import { GeometryFormat } from "../geometry/GeometryFormat.js";
|
|
4
|
+
import type { IMesh } from "../meshes/IMesh.js";
|
|
5
|
+
import type { IVertexBuffer } from "../rendering/buffers/IVertexBuffer.js";
|
|
6
|
+
import type { IIndexBuffer } from "../rendering/buffers/IIndexBuffer.js";
|
|
7
|
+
/**
|
|
8
|
+
* The material interface.
|
|
9
|
+
*/
|
|
10
|
+
export interface IMaterial extends IDisposable {
|
|
11
|
+
/**
|
|
12
|
+
* The model matrix.
|
|
13
|
+
*/
|
|
14
|
+
modelMatrix: mat4;
|
|
15
|
+
/**
|
|
16
|
+
* The geometry format required by the material.
|
|
17
|
+
*/
|
|
18
|
+
readonly geometryFormat: GeometryFormat;
|
|
19
|
+
/**
|
|
20
|
+
* Called before rendering.
|
|
21
|
+
*/
|
|
22
|
+
beforeRender(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Renders the material.
|
|
25
|
+
* @param mesh - The mesh.
|
|
26
|
+
*/
|
|
27
|
+
renderMesh(mesh: IMesh): void;
|
|
28
|
+
/**
|
|
29
|
+
* Renders the material.
|
|
30
|
+
* @param vertexBuffer - The vertex buffer.
|
|
31
|
+
* @param indexBuffer - The index buffer.
|
|
32
|
+
*/
|
|
33
|
+
render(vertexBuffer: IVertexBuffer, indexBuffer: IIndexBuffer): void;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=IMaterial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMaterial.d.ts","sourceRoot":"","sources":["../../../src/api/material/IMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,WAAW;IAE1C;;OAEG;IACH,WAAW,EAAE,IAAI,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAExC;;OAEG;IACH,YAAY,IAAI,IAAI,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IAE9B;;;;OAIG;IACH,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,GAAG,IAAI,CAAC;CAExE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InspectTextureMipsMaterial } from "./InspectTextureMipsMaterial.js";
|
|
2
|
+
import { UnlitMaterial, UnlitMaterialDescriptor } from "./UnlitMaterial.js";
|
|
3
|
+
/**
|
|
4
|
+
* The material factory.
|
|
5
|
+
*/
|
|
6
|
+
export interface IMaterialFactory {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a material for inspecting texture mips.
|
|
9
|
+
* @returns The Inspect Texture Mips Material.
|
|
10
|
+
*/
|
|
11
|
+
createInspectTextureMipsMaterial(): InspectTextureMipsMaterial;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an unlit material.
|
|
14
|
+
* @param config The optional additional configuration options for material, such as rendering options.
|
|
15
|
+
* @returns The Unlit Material.
|
|
16
|
+
*/
|
|
17
|
+
createUnlitMaterial(config?: UnlitMaterialDescriptor): UnlitMaterial;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=IMaterialFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMaterialFactory.d.ts","sourceRoot":"","sources":["../../../src/api/material/IMaterialFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAC,aAAa,EAAE,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAE7B;;;OAGG;IACH,gCAAgC,IAAI,0BAA0B,CAAC;IAE/D;;;;OAIG;IACH,mBAAmB,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,aAAa,CAAC;CACxE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { IMesh } from "../meshes/IMesh.js";
|
|
2
|
+
import type { ITexture2D } from "../rendering/texture/ITexture2D.js";
|
|
3
|
+
import type { ISampler } from "../rendering/sampler/ISampler.js";
|
|
4
|
+
import { mat4 } from "gl-matrix";
|
|
5
|
+
import { GeometryFormat } from "../geometry/GeometryFormat.js";
|
|
6
|
+
import type { IIndexBuffer } from "../rendering/buffers/IIndexBuffer.js";
|
|
7
|
+
import type { IVertexBuffer } from "../rendering/buffers/IVertexBuffer.js";
|
|
8
|
+
import type { IFramework } from "../IFramework.js";
|
|
9
|
+
/**
|
|
10
|
+
* Material for inspecting texture mips.
|
|
11
|
+
*/
|
|
12
|
+
export declare class InspectTextureMipsMaterial {
|
|
13
|
+
private readonly _framework;
|
|
14
|
+
private _mipLevel;
|
|
15
|
+
private _pipeline;
|
|
16
|
+
private _projectionViewBuffer;
|
|
17
|
+
private _fragmentDataBuffer;
|
|
18
|
+
private _modelBuffer;
|
|
19
|
+
private _previousModelMatrix;
|
|
20
|
+
constructor(framework: IFramework);
|
|
21
|
+
/**
|
|
22
|
+
* The mip level to inspect.
|
|
23
|
+
*/
|
|
24
|
+
mipLevel: number;
|
|
25
|
+
/**
|
|
26
|
+
* The texture to inspect.
|
|
27
|
+
*/
|
|
28
|
+
get texture(): ITexture2D;
|
|
29
|
+
/**
|
|
30
|
+
* The texture to inspect.
|
|
31
|
+
*/
|
|
32
|
+
set texture(value: ITexture2D);
|
|
33
|
+
/**
|
|
34
|
+
* The texture sampler.
|
|
35
|
+
*/
|
|
36
|
+
get textureSampler(): ISampler | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* The texture sampler.
|
|
39
|
+
*/
|
|
40
|
+
set textureSampler(value: ISampler | undefined);
|
|
41
|
+
/**
|
|
42
|
+
* The model matrix.
|
|
43
|
+
*/
|
|
44
|
+
modelMatrix: mat4;
|
|
45
|
+
/**
|
|
46
|
+
* The geometry format.
|
|
47
|
+
*/
|
|
48
|
+
readonly geometryFormat = GeometryFormat.POS3_COLOR4_TEXTURECOORDS2;
|
|
49
|
+
/** @inheritDoc */
|
|
50
|
+
beforeRender(): void;
|
|
51
|
+
/** @inheritDoc */
|
|
52
|
+
renderMesh(mesh: IMesh): void;
|
|
53
|
+
/** @inheritDoc */
|
|
54
|
+
render(vertexBuffer: IVertexBuffer, indexBuffer: IIndexBuffer): void;
|
|
55
|
+
/** @inheritDoc */
|
|
56
|
+
dispose(): void;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=InspectTextureMipsMaterial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InspectTextureMipsMaterial.d.ts","sourceRoot":"","sources":["../../../src/api/material/InspectTextureMipsMaterial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnD;;GAEG;AACH,qBAAa,0BAA0B;IAEnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,SAAS,CAAO;IACxB,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,qBAAqB,CAAiB;IAC9C,OAAO,CAAC,mBAAmB,CAAiB;IAC5C,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,oBAAoB,CAAiB;gBAE1B,SAAS,EAAE,UAAU;IAcxC;;OAEG;IACI,QAAQ,EAAE,MAAM,CAAK;IAE5B;;OAEG;IACH,IAAW,OAAO,IAAI,UAAU,CAE/B;IAED;;OAEG;IACH,IAAW,OAAO,CAAC,KAAK,EAAE,UAAU,EAEnC;IAED;;OAEG;IACH,IAAW,cAAc,IAAI,QAAQ,GAAG,SAAS,CAEhD;IAED;;OAEG;IACH,IAAW,cAAc,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,EAEpD;IAED;;OAEG;IACI,WAAW,EAAE,IAAI,CAAiB;IAEzC;;OAEG;IACH,SAAgB,cAAc,6CAA6C;IAE3E,kBAAkB;IACX,YAAY,IAAI,IAAI;IAY3B,kBAAkB;IACX,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI;IAIpC,kBAAkB;IACX,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,GAAG,IAAI;IAI3E,kBAAkB;IACX,OAAO,IAAI,IAAI;CAMzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InspectTextureMipsMaterial } from "./InspectTextureMipsMaterial.js";
|
|
2
|
+
import type { IFramework } from "../IFramework.js";
|
|
3
|
+
import type { IMaterialFactory } from "./IMaterialFactory.js";
|
|
4
|
+
import { UnlitMaterial, UnlitMaterialDescriptor } from "./UnlitMaterial.js";
|
|
5
|
+
/**
|
|
6
|
+
* The material factory.
|
|
7
|
+
*/
|
|
8
|
+
export declare class MaterialFactory implements IMaterialFactory {
|
|
9
|
+
private readonly _framework;
|
|
10
|
+
/**
|
|
11
|
+
* The constructor.
|
|
12
|
+
* @param _framework The framework.
|
|
13
|
+
*/
|
|
14
|
+
constructor(_framework: IFramework);
|
|
15
|
+
/** @inheritDoc */
|
|
16
|
+
createInspectTextureMipsMaterial(): InspectTextureMipsMaterial;
|
|
17
|
+
/** @inheritDoc */
|
|
18
|
+
createUnlitMaterial(descriptor?: UnlitMaterialDescriptor): UnlitMaterial;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=MaterialFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaterialFactory.d.ts","sourceRoot":"","sources":["../../../src/api/material/MaterialFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAE,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAE1E;;GAEG;AACH,qBAAa,eAAgB,YAAW,gBAAgB;IAMjC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAJ9C;;;OAGG;gBACiC,UAAU,EAAE,UAAU;IAG1D,kBAAkB;IACX,gCAAgC,IAAI,0BAA0B;IAIrE,kBAAkB;IACX,mBAAmB,CAAC,UAAU,CAAC,EAAG,uBAAuB,GAAG,aAAa;CAGnF"}
|