A four point image manipulator for GameMaker 2.3+
- No shaders
- No 3D stuff
Call fourpoint_init()
when the game starts
fp = new fourpoint(x1, y1, x2, y2, x3, y3, x4, y4, tex, segments*, perspective*, z*)
fp.update(x1*, y1*, x2*, y2*, x3*, y3*, x4*, y4*, tex*, segments*, perspective*, z*)
fp.draw()
fp.destroy()
- x1, y1 - point 1
- x2, y2 - point 2
- x3, y3 - point 3
- x4, y4 - point 4
- tex - texture, sprite_get_texture(..), surface_get_texture(..) etc.
- segments - the more, the better the quality, [optional, default is 5]
- perspective - faked perspective, [optional, default is true]
- z - depth, [optional, default is object's depth]
All of these arguments are optional in the update()
function