Not logged in
Register | Login

Menu:

Game Maker Extensions Menu:

av. 2/10 | Who rated

Credit to Kyle_Solo

Downloads: 1066

Tags:

Get a refer button for this extension!

BBcode

html [example]
download
[download]

ds_point

Posted by Kyle_Solo on December 29, 2007

A new data structure that stores points. Now includes a version for 3d as well as 2d!


» Add a Screenshot


Functions:

ds_point_create()

Creates the structure

Returns id

ds_point_add(id,x,y)

Adds a point to the structure

ds_point_clear(id)

Clears all points from the structure

ds_point_destroy(id)

Destroys the structure, freeing the memory used.

ds_point_delete(id,pos)

Deletes the point at pos from the structure.

ds_point_size(id)

Returns the number of points in structure

Returns # of Points

ds_point_empty(id)

Returns whether the structure is empty

Returns Bool

ds_point_insert(id,pos,x,y)

Inserts the point at pos

ds_point_replace(id,pos,x,y)

Replaces the point at pos

ds_point_delete(id,pos)

Deletes the point at pos

ds_point_find_x(id,pos)

Returns the x value of the point at pos

ds_point_find_y(id,pos)

Returns the y value of the point at pos

ds_point_write_x(id)

Writes the x coordinates to a string which can be loaded with ds_point_read_x

Returns String

ds_point_write_y(id)

Writes the y coordinates to a string which can be loaded with ds_point_read_y

Returns String

ds_point_read_x(id,str)

Loads the string into the structure

ds_point_read_y(id,str)

Loads the string into the structure





You not logged on! It is recommended you logon before commenting so we can tell who you are!

Comments:

11:11am, 20 Jan 2008
Guest

Truly a great extension =)