sparkle-engine
sparkle-engine
TextManager
Class TextManager
Index
Constructors
constructor
Properties
canvas
Methods
draw
Text
Constructors
constructor
new
Text
Manager
(
_engine
)
:
TextManager
Parameters
_engine
:
SparkleEngine
Returns
TextManager
Properties
Private
canvas
canvas
:
CanvasRenderingContext2D
Methods
draw
Text
draw
Text
(
text
,
font
?
,
color
)
:
HTMLCanvasElement
返回 canvas 而不是绘制一个文字,若要绘制文字请使用 Text
Parameters
text
:
string
文字
font
:
string
= '24px monospace'
字体
color
:
Color
颜色
Returns
HTMLCanvasElement
返回 canvas 而不是绘制一个文字
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
返回 canvas 而不是绘制一个文字,若要绘制文字请使用 Text