Categories Graphics

SETDRAWTARGET


setDrawTarget( image );

Sets image as the target for other draw functions. Passing a value of 0 will reset the target to the screen.


Use example:

setDrawTarget(imgRadar);

//Draw things to the radar surface without needing to know where they'll be on screen

setDrawTarget(0);

drawImage(imgRadar, screenW() - 100, screenH() - 100);

Search results