Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API to 2024.11 #233

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions bin/resources/app/api/shared/replace-v23.gml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ dbg_checkbox<T:bool>(ref_or_array:debug_reference<T>|debug_reference<T>[],?label
dbg_colour<T:int>(ref_or_array:debug_reference<T>|debug_reference<T>[],?label:string)£->void
dbg_color<T:int>(ref_or_array:debug_reference<T>|debug_reference<T>[],?label:string)$->void
dbg_button<T:function>(label:string,callback_ref:T|debug_reference<T>,?width:number,?height:number)->void
dbg_sprite_button<T:function,R:sprite>(label:string,callback_ref:T|debug_reference<T>,sprite_ref_or_array:debug_reference<R>|debug_reference<R>[],index_ref_or_array:debug_reference<int>|debug_reference<int>[],?width:number,?height:number,?xoffset:number,?yoffset:number,?widthSprite:number,?heightSprite:number)->void
dbg_sprite_button<T:function,R:sprite>(callback_ref:T|debug_reference<T>,sprite_ref_or_array:debug_reference<R>|debug_reference<R>[],index_ref_or_array:debug_reference<int>|debug_reference<int>[],?width:number,?height:number,?xoffset:number,?yoffset:number,?widthSprite:number,?heightSprite:number)->void
dbg_same_line()->void
dbg_add_font_glyphs(filename_ttf:string,?size:number,?font_range:int)->void
ref_create<T>(context:instance|struct|debug_reference<instance>|debug_reference<struct>,name:string|debug_reference<string>,?index:int)->debug_reference<T>
Expand Down Expand Up @@ -332,6 +332,9 @@ window_set_showborder(show:bool)->void
window_get_showborder()->bool
window_enable_borderless_fullscreen(enable:bool)->void
window_get_borderless_fullscreen()->bool
window_minimise()£->void
window_minimize()$->void
window_restore()->void
window_mouse_set_locked(enable:bool)->void
window_mouse_get_locked()->bool
window_mouse_get_delta_x()->number
Expand Down Expand Up @@ -362,6 +365,8 @@ audio_sound_get_loop_end(index:sound|sound_instance)->number

audio_sync_group_is_paused(sync_group_id:sound_sync_group)->bool

audio_throw_on_error(enable:bool)->void

audio_group_get_gain(groupId:audio_group)->number
audio_group_get_assets(groupId:audio_group)->sound[]
audio_sound_get_audio_group(index:sound|sound_instance)->audio_group
Expand Down Expand Up @@ -428,7 +433,7 @@ font_enable_effects(ind:font, enable:bool, ?params:font_effect_params|struct)->v
#region 9.6

script_execute_ext(ind:script,?args:any[],?offset:int=0,?num_args:int=args_length-offset)->any
method_call<T:function>(method:T,args:any[],?offset:int=0,?num_args:int=args_length-offset)->any
method_call<T:function>(method:T,?args:any[],?offset:int=0,?num_args:int=args_length-offset)->any

#endregion

Expand Down Expand Up @@ -586,6 +591,7 @@ ps_mode_burst#:particle_mode
//////////////

matrix_transform_vertex(matrix:number[], x:number, y:number, z:number, ?w:number)->number[]
matrix_inverse(matrix:number[])->number[]

os_ps4#:os_type
os_ps5#:os_type
Expand All @@ -600,6 +606,10 @@ event_data*:ds_map<string,any>

tm_systemtiming#:display_timing_method

draw_enable_svg_aa(enable:bool)!->void
draw_set_svg_aa_level(aa_level:number)!->void
draw_get_svg_aa_level()!->number

stencilop_keep#:gpu_stencilop
stencilop_zero#:gpu_stencilop
stencilop_replace#:gpu_stencilop
Expand Down Expand Up @@ -678,6 +688,7 @@ network_connect_nonblocking#:network_connect_type
network_connect_active#:network_connect_type
network_connect_passive#:network_connect_type

buffer_write(buffer:buffer, type:buffer_type, value:buffer_auto_type)->buffer_write_error
buffer_get_surface(buffer:buffer, source_surface:surface, offset:int)->void
buffer_get_surface_depth(buffer:buffer, source_surface:surface, offset:int)->bool
buffer_set_surface(buffer:buffer, dest_surface:surface, offset:int)->void
Expand All @@ -686,6 +697,9 @@ buffer_set_used_size(buffer:buffer,size:int)->void
buffer_copy_stride(src_buffer:buffer, src_offset:int, src_size:int, src_stride:int, src_count:int, dest_buffer:buffer, dest_offset:int, dest_stride:int)->void

buffer_surface_copy&:any
buffer_error_general#:buffer_write_error
buffer_error_out_of_space#:buffer_write_error
buffer_error_invalid_type#:buffer_write_error

gp_axis_acceleration_x#:gamepad_button
gp_axis_acceleration_y#:gamepad_button
Expand Down
2 changes: 2 additions & 0 deletions bin/resources/app/api/shared/types-v23.gml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ typedef video_format : uncompareable;
feathername: Struct.Zip;
typedef zip_object;

typedef buffer_write_error : int;

typedef physics_hitpoint : struct;

feathername: Constant.SendOption
Expand Down
27 changes: 19 additions & 8 deletions bin/resources/app/api/v23/fnames
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ dbg_checkbox(dbgRefOrArrayOfDbgRef,[label],...)
dbg_colour(dbgRefOrArrayOfDbgRef,[label],...)£
dbg_color(dbgRefOrArrayOfDbgRef,[label],...)$
dbg_button(label,dbgRef,[width],[height]...)
dbg_sprite_button(label,dbgRef,dbgRefSprite,dbgRefSpriteIndex,[width],[height],[xoffset],[yoffset],[widthSprite],[heightSprite]...)
dbg_sprite_button(dbgRef,dbgRefSprite,dbgRefSpriteIndex,[width],[height],[xoffset],[yoffset],[widthSprite],[heightSprite]...)
dbg_same_line()
dbg_add_font_glyphs( filenameTTF,[size],[fontRange]... )
ref_create(dbgrefOrStruct,dbgrefOrName,[index],...)
Expand Down Expand Up @@ -1256,6 +1256,9 @@ window_get_caption()
window_set_cursor(curs)
window_enable_borderless_fullscreen(enable)
window_get_borderless_fullscreen()
window_minimise()£
window_minimize()$
window_restore()
cr_default#
cr_none#
cr_arrow#
Expand Down Expand Up @@ -1409,6 +1412,7 @@ audio_sync_group_debug(sync_group_id)
audio_sync_group_is_playing(sync_group_id)
audio_sync_group_is_paused(sync_group_id)
audio_debug(enable)
audio_throw_on_error(enable)

audio_group_load( groupId )
audio_group_unload( groupId )
Expand Down Expand Up @@ -1680,7 +1684,7 @@ path_shift(ind,xshift,yshift)

script_execute(ind,arg0,arg1,...)
script_execute_ext(ind,[array],[offset=0],[num_args=array_length(array)-offset],...)
method_call(method,array,[offset=0],[num_args=array_length(array)-offset],...)
method_call(method,[array],[offset=0],[num_args=array_length(array)-offset],...)

// section 9.8

Expand Down Expand Up @@ -1828,7 +1832,7 @@ ds_type_priority#
ds_stack_create()
ds_stack_destroy(id)
ds_stack_clear(id)
ds_stack_copy(id,source)
ds_stack_copy(destination,source)
ds_stack_size(id)
ds_stack_empty(id)
ds_stack_push(id,value,...)
Expand All @@ -1842,7 +1846,7 @@ ds_stack_read(id,str,...)
ds_queue_create()
ds_queue_destroy(id)
ds_queue_clear(id)
ds_queue_copy(id,source)
ds_queue_copy(destination,source)
ds_queue_size(id)
ds_queue_empty(id)
ds_queue_enqueue(id,value,...)
Expand All @@ -1857,7 +1861,7 @@ ds_queue_read(id,str,...)
ds_list_create()
ds_list_destroy(id)
ds_list_clear(id)
ds_list_copy(id,source)
ds_list_copy(destination,source)
ds_list_size(id)
ds_list_empty(id)
ds_list_add(id,value,...)
Expand All @@ -1882,7 +1886,7 @@ ds_list_set(id,pos,value)
ds_map_create()
ds_map_destroy(id)
ds_map_clear(id)
ds_map_copy(id,source)
ds_map_copy(destination,source)
ds_map_size(id)
ds_map_empty(id)
ds_map_add(id,key,value)
Expand Down Expand Up @@ -1916,7 +1920,7 @@ ds_map_set(id,key,value)
ds_priority_create()
ds_priority_destroy(id)
ds_priority_clear(id)
ds_priority_copy(id,source)
ds_priority_copy(destination,source)
ds_priority_size(id)
ds_priority_empty(id)
ds_priority_add(id,value,priority)
Expand All @@ -1934,7 +1938,7 @@ ds_priority_read(id,str,...)

ds_grid_create(w,h)
ds_grid_destroy(id)
ds_grid_copy(id,source)
ds_grid_copy(destination,source)
ds_grid_resize(id,w,h)
ds_grid_width(id)
ds_grid_height(id)
Expand Down Expand Up @@ -2132,6 +2136,7 @@ matrix_build_projection_perspective(width,height,znear,zfar)
matrix_build_projection_perspective_fov(fov_y,aspect,znear,zfar)
matrix_multiply(matrix,matrix)
matrix_transform_vertex(matrix, x, y, z, [w])
matrix_inverse(matrix)

matrix_stack_push(...)
matrix_stack_pop()
Expand Down Expand Up @@ -2253,6 +2258,9 @@ draw_enable_drawevent(enable)
draw_enable_swf_aa(enable)!
draw_set_swf_aa_level(aa_level)!
draw_get_swf_aa_level()!
draw_enable_svg_aa(enable)!
draw_set_svg_aa_level(aa_level)!
draw_get_svg_aa_level()!
draw_texture_flush()
draw_flush()

Expand Down Expand Up @@ -3004,6 +3012,9 @@ buffer_surface_copy&
buffer_seek_start#
buffer_seek_relative#
buffer_seek_end#
buffer_error_general#
buffer_error_out_of_space#
buffer_error_invalid_type#



Expand Down