Search
Preparing search index...
The search index is not available
hwoa-rang-gl2
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
hwoa-rang-gl2
TextureAtlas
Class TextureAtlas
Hierarchy
TextureAtlas
Index
Constructors
constructor
Properties
#atlases
#debug
Dom
Container
#textures
Accessors
debug
Mode
gl
texture
Format
texture
Size
Methods
get
Uv2
pack
get
Instance
scale
Down
Drawable
By
Factor
Constructors
constructor
new
Texture
Atlas
(
)
:
TextureAtlas
Returns
TextureAtlas
Properties
Private
#atlases
#atlases
:
Atlas
[]
= []
Private
#debug
Dom
Container
#debug
Dom
Container
:
HTMLDivElement
= ...
Private
#textures
#textures
:
WebGLTexture
[]
= []
Accessors
Static
debug
Mode
set
debugMode
(
newDebugMode
:
boolean
)
:
void
Parameters
newDebugMode:
boolean
Returns
void
Static
gl
set
gl
(
glContext
:
WebGL2RenderingContext
)
:
void
Parameters
glContext:
WebGL2RenderingContext
Returns
void
Static
texture
Format
set
textureFormat
(
newTextureFormat
:
number
)
:
void
Parameters
newTextureFormat:
number
Returns
void
Static
texture
Size
set
textureSize
(
newTexSize
:
vec2
)
:
void
Parameters
newTexSize:
vec2
Returns
void
Methods
get
Uv2
get
Uv2
(
id
:
string
)
:
[
null
|
Float32Array
,
WebGLTexture
]
Parameters
id:
string
Returns
[
null
|
Float32Array
,
WebGLTexture
]
pack
pack
(
id
:
string
, drawable
:
HTMLCanvasElement
|
HTMLImageElement
, downscaleFactor
?:
number
)
:
TextureAtlas
Parameters
id:
string
drawable:
HTMLCanvasElement
|
HTMLImageElement
downscaleFactor:
number
= 1
Returns
TextureAtlas
Static
get
Instance
get
Instance
(
)
:
TextureAtlas
Returns
TextureAtlas
Static
scale
Down
Drawable
By
Factor
scale
Down
Drawable
By
Factor
(
drawable
:
HTMLCanvasElement
|
HTMLImageElement
, downscaleFactor
:
number
)
:
HTMLCanvasElement
Parameters
drawable:
HTMLCanvasElement
|
HTMLImageElement
downscaleFactor:
number
Returns
HTMLCanvasElement
Exports
Texture
Atlas
constructor
#atlases
#debug
Dom
Container
#textures
debug
Mode
gl
texture
Format
texture
Size
get
Uv2
pack
get
Instance
scale
Down
Drawable
By
Factor
Generated using
TypeDoc