Function prototype | return type | Description |
DrawLine(x1,y1,x2,y2,r1,g1,b1,a1,r2,g2,b2,a2,thickness) | void | (all parameters floating point) Draws a line from (x1,y1) to (x2,y2) with starting colour (r1,g1,b1,a1) and ending colour (r2,g2,b2,a2) where colour values are from 0 to 1. use alpha <1 (e.g. 0.99) rather than 1 in general. |
DrawTexLine(int id, x1,y1,x2,y2,r1,g1,b1,a1,r2,g2,b2,a2,thickness) | void | As for DrawLine except applies a texture (see below for id indexes) |
DrawSprite(int id, x,y, r,g,b,a, size) | void | Draws sprite of size size and index id at (x,y) in colour (r,g,b,a). |
IsOnScreen(x,y, radius) | bool | returns true if the object at x,y with radius radius would be on the screen at the time of drawing. |
GetLODAlpha(int LOD) | float | returns the alpha of the given LOD (0,1,2). LOD 2 is the most zoomed-in; LOD 0 is the farthest zoomed-out. |
GetCameraScale() | float | returns the current scale of the camera. Divide a value by this to get a size in pixels on-screen to pass to draw functions. |