static
new
(
string
asset_name
)
__gc
(
)
__eq
(
am.asset
rhs
)
->
(
boolean
)
name
(
)
->
(
string
)
texture
(
integer
index
= 0
)
->
(
am.texture
)
texture
(
am.texture
texture
,
integer
index
= 0
)
->
(
am.asset
,
am.code
)
texture
(
string
filename
,
integer
index
= 0
)
->
(
am.asset
,
am.code
)
add_texture
(
am.texture
texture
)
->
(
am.asset
,
am.code
)
add_texture
(
string
filename
)
->
(
am.asset
,
am.code
)
remove_texture
(
string
filename
)
->
(
am.asset
)
remove_texture
(
am.texture
texture
)
->
(
am.asset
)
has_texture
(
string
filename
)
->
(
boolean
)
has_texture
(
am.texture
texture
)
->
(
boolean
)
remove_all_textures
(
)
->
(
am.asset
)
total_textures
(
)
->
(
integer
)
total_texture_windows
(
)
->
(
integer
)
total_texture_windows
(
integer
total_texture_windows
)
->
(
am.asset
)
texture_window
(
)
->
(
table
)
texture_window
(
table
values
)
->
(
am.asset
)
texture_window_pixel
(
)
->
(
table
)
texture_window_pixel
(
table
values
)
->
(
am.asset
)
num_frames
(
)
->
(
integer
,
integer
)
num_frames
(
integer
frame_x
,
integer
frame_y
,
boolean
calc_total_frames
= true
)
->
(
am.asset
)
frame_rate
(
)
->
(
number
)
frame_rate
(
number
frame_rate
)
->
(
am.asset
)
width
(
)
->
(
number
)
height
(
)
->
(
number
)
repeat_xy
(
)
->
(
boolean
,
boolean
)
repeat_xy
(
boolean
repeat_x
,
boolean
repeat_y
)
->
(
am.asset
)
scale_nine
(
)
->
(
table
)
scale_nine
(
table
values
,
boolean
calc_state
= false
)
->
(
am.asset
)
scale_nine
(
table
values
,
string
state
)
->
(
am.asset
)
scale_nine_state
(
)
->
(
string
)
scale_nine_state
(
string
state
)
->
(
am.asset
)
texture_window_animation
(
)
->
(
boolean
)
texture_window_animation
(
boolean
texture_window_animation
)
->
(
am.asset
)
static
new
(
string
asset_name
)
__gc
(
)
__eq
(
am.asset
rhs
)
->
(
boolean
)
name
(
)
->
(
string
)
texture
(
integer
index
= 0
)
->
(
am.texture
)
texture
(
am.texture
texture
,
integer
index
= 0
)
->
(
am.asset
,
am.code
)
texture
(
string
filename
,
integer
index
= 0
)
->
(
am.asset
,
am.code
)
success | The texture loaded the new file successfully. |
file_not_found | Texture didn't load because the file could not be found. |
texture_load_failed | Texture didn't load because there was an issue with the file. |
add_texture
(
am.texture
texture
)
->
(
am.asset
,
am.code
)
add_texture
(
string
filename
)
->
(
am.asset
,
am.code
)
success | The texture loaded the new file successfully. |
file_not_found | Texture didn't load because the file could not be found. |
texture_load_failed | Texture didn't load because there was an issue with the file. |
remove_texture
(
string
filename
)
->
(
am.asset
)
remove_texture
(
am.texture
texture
)
->
(
am.asset
)
has_texture
(
string
filename
)
->
(
boolean
)
has_texture
(
am.texture
texture
)
->
(
boolean
)
remove_all_textures
(
)
->
(
am.asset
)
total_textures
(
)
->
(
integer
)
total_texture_windows
(
)
->
(
integer
)
total_texture_windows
(
integer
total_texture_windows
)
->
(
am.asset
)
texture_window
(
)
->
(
table
)
texture_window
(
table
values
)
->
(
am.asset
)
texture_window_pixel
(
)
->
(
table
)
texture_window_pixel
(
table
values
)
->
(
am.asset
)
num_frames
(
)
->
(
integer
,
integer
)
num_frames
(
integer
frame_x
,
integer
frame_y
,
boolean
calc_total_frames
= true
)
->
(
am.asset
)
frame_rate
(
)
->
(
number
)
frame_rate
(
number
frame_rate
)
->
(
am.asset
)
width
(
)
->
(
number
)
height
(
)
->
(
number
)
repeat_xy
(
)
->
(
boolean
,
boolean
)
repeat_xy
(
boolean
repeat_x
,
boolean
repeat_y
)
->
(
am.asset
)
scale_nine
(
)
->
(
table
)
scale_nine
(
table
values
,
boolean
calc_state
= false
)
->
(
am.asset
)
scale_nine
(
table
values
,
string
state
)
->
(
am.asset
)
scale_nine_state
(
)
->
(
string
)
scale_nine_state
(
string
state
)
->
(
am.asset
)
none | Scale nine is turned off. |
horizontal | Only the left_x and right_x values are used and the asset is stretched horizontally. |
vertical | Only the top_y and bottom_y values are used and the asset is stretched vertically. |
both | All 4 values are used and the asset can be stretched both horizontally and vertically. |
texture_window_animation
(
)
->
(
boolean
)
texture_window_animation
(
boolean
texture_window_animation
)
->
(
am.asset
)