@neutrinoparticles/js-v1.1-pixi8 1.0.0

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.
@@ -0,0 +1,23 @@
1
+ import { MetaTextureManager } from "./MetaTextureManager";
2
+ export declare class DataTextureManagerGL1 {
3
+ readonly textureWidth: number;
4
+ readonly textureHeight: number;
5
+ readonly meta: MetaTextureManager;
6
+ private readonly _gl;
7
+ private readonly _floatView;
8
+ private _dataTextures;
9
+ private _metaTextures;
10
+ private _currentIndex;
11
+ constructor(gl: WebGLRenderingContext, data: Uint32Array, textureWidth: number, textureHeight: number);
12
+ get currentDataTexture(): WebGLTexture;
13
+ get currentMetaTexture(): WebGLTexture;
14
+ /**
15
+ * Upload the rows covering `numParticles` into the current ring textures,
16
+ * leaving them bound to `dataUnit` / `metaUnit`. The caller invalidates
17
+ * PIXI's bound-texture bookkeeping for those units.
18
+ */
19
+ upload(numParticles: number, dataUnit: number, metaUnit: number): void;
20
+ advance(): void;
21
+ destroy(): void;
22
+ private _createTexture;
23
+ }
@@ -0,0 +1,9 @@
1
+ export declare class MetaTextureManager {
2
+ readonly bytes: Uint8Array;
3
+ private readonly _u32;
4
+ constructor(textureWidth: number, textureHeight: number);
5
+ /** Repack the packed-u32 record fields for the first `numParticles` records. */
6
+ build(dataUint32: Uint32Array, numParticles: number): void;
7
+ /** Write the batch texture slot into byte0 of M0 (flags) per particle. */
8
+ patchSlot(startParticle: number, count: number, slot: number): void;
9
+ }
@@ -0,0 +1,22 @@
1
+ import { Context, ContextOptions } from './Context';
2
+ export * from './types';
3
+ export * from './AplicationPlugin';
4
+ export * from './Context';
5
+ export * from './Effect';
6
+ export * from './EffectModel';
7
+ export * from './DataTextureManager';
8
+ export * from './NeutrinoRenderer';
9
+ export * from './EffectPipe';
10
+ export * from './TexturesLoader';
11
+ export * from './PerspectiveProjection';
12
+ export * from './EffectModelLoader';
13
+ export declare function registerPlugins(): void;
14
+ export declare function unregisterPlugins(): void;
15
+ declare module 'pixi.js' {
16
+ interface ApplicationOptions {
17
+ neutrino?: ContextOptions;
18
+ }
19
+ interface Application {
20
+ neutrino?: Context;
21
+ }
22
+ }