Draws a line one pixel wide.
draw_line(x1, y1, x2, y2);
||The x coordinate of the start of the line.
||The y coordinate of the start of the line.
||The x coordinate of the end of the line.
||The y coordinate of the end of the line.
With this function you can draw a 1 pixel wide line between any
two points in the game room.
NOTE: If you are wanting to draw a shape
using a shader, you should be aware that most shaders expect the
following inputs: vertex, texture, Colour. However, when using this
function, only vertex and colour data are being passed in, and so
the shader may not draw anything (or draw something but not
correctly). If you need to draw shapes in this way then the shader
should be customised with this in mind.
This will draw a light green horizontal line from point (50,50)
to point (150,50).
© Copyright YoYo Games Ltd. 2019 All Rights Reserved