mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: code split streams
This commit is contained in:
1 parent
510eebd2f4
commit
cb87a3067c
9 files changed
+856
-832
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { readDVPLFile } from '../blitz/readDVPLFile';
|
||||
import { PrimitiveStream } from '../streams/primitive';
|
||||
|
||||
export function readDds(buffer: Buffer) {
|
||||
const stream = new PrimitiveStream(buffer);
|
||||
const name = stream.consumeAscii(4);
|
||||
|
||||
if (name !== 'DDS ') throw new TypeError('Not a DDS file');
|
||||
}
|
||||
|
||||
readDds(
|
||||
await readDVPLFile(
|
||||
'C:/Program Files (x86)/Steam/steamapps/common/World of Tanks Blitz/Data/3d/Tanks/German/images_pbr/E_100_BC.dx11.dds.dvpl',
|
||||
),
|
||||
);
|
||||
Reference in new issue
Block a user