瀏覽代碼

Sprites documentation

Jason Sturges 4 年之前
父節點
當前提交
a705676f62
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 3 3
      src/Sprites/spriteManager.ts
  2. 1 1
      src/Sprites/spritePackedManager.ts
  3. 1 1
      src/Sprites/spriteSceneComponent.ts

+ 3 - 3
src/Sprites/spriteManager.ts

@@ -21,7 +21,7 @@ declare type Ray = import("../Culling/ray").Ray;
 declare const Reflect: any;
 declare const Reflect: any;
 
 
 /**
 /**
- * Defines the minimum interface to fullfil in order to be a sprite manager.
+ * Defines the minimum interface to fulfill in order to be a sprite manager.
  */
  */
 export interface ISpriteManager extends IDisposable {
 export interface ISpriteManager extends IDisposable {
 
 
@@ -228,7 +228,7 @@ export class SpriteManager implements ISpriteManager {
      * @param cellSize defines the size of a sprite cell
      * @param cellSize defines the size of a sprite cell
      * @param scene defines the hosting scene
      * @param scene defines the hosting scene
      * @param epsilon defines the epsilon value to align texture (0.01 by default)
      * @param epsilon defines the epsilon value to align texture (0.01 by default)
-     * @param samplingMode defines the smapling mode to use with spritesheet
+     * @param samplingMode defines the sampling mode to use with spritesheet
      * @param fromPacked set to false; do not alter
      * @param fromPacked set to false; do not alter
      * @param spriteJSON null otherwise a JSON object defining sprite sheet data; do not alter
      * @param spriteJSON null otherwise a JSON object defining sprite sheet data; do not alter
      */
      */
@@ -618,7 +618,7 @@ export class SpriteManager implements ISpriteManager {
     /**
     /**
      * Parses a JSON object to create a new sprite manager.
      * Parses a JSON object to create a new sprite manager.
      * @param parsedManager The JSON object to parse
      * @param parsedManager The JSON object to parse
-     * @param scene The scene to create the sprite managerin
+     * @param scene The scene to create the sprite manager
      * @param rootUrl The root url to use to load external dependencies like texture
      * @param rootUrl The root url to use to load external dependencies like texture
      * @returns the new sprite manager
      * @returns the new sprite manager
      */
      */

+ 1 - 1
src/Sprites/spritePackedManager.ts

@@ -17,7 +17,7 @@ export class SpritePackedManager extends SpriteManager{
      * @param scene defines the hosting scene
      * @param scene defines the hosting scene
      * @param spriteJSON null otherwise a JSON object defining sprite sheet data
      * @param spriteJSON null otherwise a JSON object defining sprite sheet data
      * @param epsilon defines the epsilon value to align texture (0.01 by default)
      * @param epsilon defines the epsilon value to align texture (0.01 by default)
-     * @param samplingMode defines the smapling mode to use with spritesheet
+     * @param samplingMode defines the sampling mode to use with spritesheet
      * @param fromPacked set to true; do not alter
      * @param fromPacked set to true; do not alter
      */
      */
 
 

+ 1 - 1
src/Sprites/spriteSceneComponent.ts

@@ -293,7 +293,7 @@ export class SpriteSceneComponent implements ISceneComponent {
     }
     }
 
 
     /**
     /**
-     * Disposes the component and the associated ressources.
+     * Disposes the component and the associated resources.
      */
      */
     public dispose(): void {
     public dispose(): void {
         this.scene.onBeforeSpritesRenderingObservable.clear();
         this.scene.onBeforeSpritesRenderingObservable.clear();