sparkle-engine
sparkle-engine
TextureManager
Class TextureManager
Index
Constructors
constructor
Properties
base
Textures
engine
Methods
altas
From
Texture
create
Base
Texture
texture
From
Image
texture
From
Url
Constructors
constructor
new
Texture
Manager
(
engine
)
:
TextureManager
Parameters
engine
:
SparkleEngine
Returns
TextureManager
Properties
base
Textures
base
Textures
:
Map
<
string
,
BaseTexture
>
= ...
engine
engine
:
SparkleEngine
Methods
altas
From
Texture
altas
From
Texture
(
texture
,
rect
?
)
:
AltasTexture
创建裁剪纹理
Parameters
texture
:
Texture
Optional
rect
:
Rect
Returns
AltasTexture
create
Base
Texture
create
Base
Texture
(
image
)
:
BaseTexture
通常不会用到该方法,用于创建一个基础纹理:
BaseTexture
Parameters
image
:
Images
Returns
BaseTexture
texture
From
Image
texture
From
Image
(
image
)
:
Texture
创建纹理
Parameters
image
:
Images
Returns
Texture
texture
From
Url
texture
From
Url
(
url
)
:
Promise
<
Texture
>
从url加载纹理
Parameters
url
:
string
Returns
Promise
<
Texture
>
Preparing search index...
The search index is not available
sparkle-engine
CONTENTS
Math
Color
MathUtils
Matrix
Path
Rect
Vector2
GameNode
Collision
Container
Drawable
Graphical
Sprite
Text
Timer
Transform2D
Texture
AltasTexture
BaseTexture
Texture
TextureManager
Input
InputManager
MouseManager
Physics
Collision
PhysicsManager
Audio
Audio
AudioManager
Others
DebuggerDrawType
GraphicalType
PRIMITIVE_MODE
ResourcesType
SCALE_MODE
TextAnchor
Animations
DataResources
EventEmitter
GLShader
Loader
ObjectPool
Renderer
Resources
ResourcesManager
Scene
SparkleEngine
TextManager
VertexArrayBuffer
AnimationsStore
AttributeInfo
IAnimationFrames
IAnimationOption
IAudioEvent
IBaseGraphicalOptions
ICircleOptions
ICollisionEvent
ICollisionOptions
ICollisionResult
ICompositorOptions
IContainerEvent
IContainerOptions
ICopyable
IDebuggerDraw
IDestoryable
IDrawLineOptions
IDrawOptions
IDrawPolygonOptions
IDrawableOptions
IEventAble
IInputEvents
IListened
ILoadAnimationOptions
ILoaderEvent
IMouseData
IMouseEvents
IPolygonOptions
IPoolable
IRectOptions
IRenderOptions
IResources
IResourcesManagerEvent
IResourcesStore
ISparkleEngineOption
ISpriteOptions
ITextOptions
ITimerEvents
ITimerOptions
ITransform2DOptions
PoolTypes
AttributesLocation
Constructor
IGraphicalOptions
Images
创建裁剪纹理