Loom Engine - v3.1.1
GitHub
TheWorldTable.ai
Preparing search index...
TextureAtlas
Class TextureAtlas
Index
Constructors
constructor
Properties
texture
width
height
uv
Rects
frame
Sizes
frame
Count
name
released
Methods
upload
bind
handle
Context
Loss
dispose
lookup
UV
Rect
lookup
Frame
Size
Constructors
constructor
new
TextureAtlas
(
gl
:
WebGL2RenderingContext
|
null
,
desc
:
AtlasDescriptor
,
)
:
TextureAtlas
Parameters
gl
:
WebGL2RenderingContext
|
null
desc
:
AtlasDescriptor
Returns
TextureAtlas
Properties
texture
texture
:
WebGLTexture
|
null
= null
Readonly
width
width
:
number
Readonly
height
height
:
number
Readonly
uv
Rects
uvRects
:
Float32Array
Readonly
frame
Sizes
frameSizes
:
Float32Array
Readonly
frame
Count
frameCount
:
number
Readonly
name
name
:
string
released
released
:
boolean
= false
Methods
upload
upload
(
gl
:
WebGL2RenderingContext
)
:
void
Parameters
gl
:
WebGL2RenderingContext
Returns
void
bind
bind
(
gl
:
WebGL2RenderingContext
)
:
void
Parameters
gl
:
WebGL2RenderingContext
Returns
void
handle
Context
Loss
handleContextLoss
()
:
void
Returns
void
dispose
dispose
(
gl
:
WebGL2RenderingContext
|
null
)
:
void
Parameters
gl
:
WebGL2RenderingContext
|
null
Returns
void
lookup
UV
Rect
lookupUVRect
(
frame
:
number
,
out
:
Float32Array
,
offset
:
number
)
:
boolean
Parameters
frame
:
number
out
:
Float32Array
offset
:
number
Returns
boolean
lookup
Frame
Size
lookupFrameSize
(
frame
:
number
,
out
:
{
w
:
number
;
h
:
number
}
)
:
boolean
Parameters
frame
:
number
out
:
{
w
:
number
;
h
:
number
}
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
texture
width
height
uv
Rects
frame
Sizes
frame
Count
name
released
Methods
upload
bind
handle
Context
Loss
dispose
lookup
UV
Rect
lookup
Frame
Size
GitHub
TheWorldTable.ai
Loom Engine - v3.1.1
Loading...