Skip to content

Commit

Permalink
Added "destroy" method and minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
4eb0da committed Apr 23, 2022
1 parent ad71e98 commit 9ad1545
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 130 deletions.
1 change: 1 addition & 0 deletions docs/interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function getBLPImageData(blp: BLPImage, mipmapLevel: number): ImageData;
class ModelRenderer {
constructor(model: Model);

destroy (): void;
initGL (glContext: WebGLRenderingContext): void;
setTextureImage (path: string, img: HTMLImageElement, flags: TextureFlags): void;
setTextureImageData (path: string, imageData: ImageData[], flags: TextureFlags): void;
Expand Down
2 changes: 1 addition & 1 deletion docs/preview/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function initCameraMove () {
}

function wheel (event) {
updateCameraDistance(cameraDistance * (1 - event.deltaY / 30));
updateCameraDistance(cameraDistance * (1 + event.wheelDelta / 600));
}

let startCameraDistance: number;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "war3-model",
"version": "2.0.0",
"version": "2.1.0",
"description": "Warcraft 3 model parser, generator, convertor and previewer",
"keywords": [
"warcraft3",
Expand Down
Loading

0 comments on commit 9ad1545

Please sign in to comment.