Class BasicTextureManager
🏭 Constructors
constructor
ts
new BasicTextureManager(textures: Record<string, TextureData>= {}, loader: TextureLoader= ...): BasicTextureManager
Parameters
- textures:
Record<string, TextureData>
- loader:
TextureLoader
Return Type
BasicTextureManager
Defined in: packages/model/block.ts:27
🏷️ Properties
loader private
ts
loader: TextureLoader = ...
Defined in: packages/model/block.ts:27
textures private
ts
textures: Record<string, TextureData> = {}
Defined in: packages/model/block.ts:27
🔧 Methods
hasTexture
ts
hasTexture(path: string): boolean
Parameters
- path:
string
Return Type
boolean
Defined in: packages/model/block.ts:29
loadTexture
ts
loadTexture(path: string): Texture
Parameters
- path:
string
Return Type
Texture
Defined in: packages/model/block.ts:33