|
draw_surface_general(id,left,top,w,h,x,y,xscale,yscale,rot,c1,c2,c3,c4,alpha) |
|
id = name of the variable which holds the ID of the surface (see surface_create). left = This is the position on the x axis that the surface will start to be drawn in. So everything that is located before left (has an x value less than left) will not be drawn. top = this is the position on the y axis that the surface will stat to be drawn in. So everything tat is located before top (has a y value less tan top) will not be drawn. w = Width of surface to be drawn. h = Height of surface to be drawn. x = Left position of surface to be drawn. y = Top position of surface to be drawn. xscale = Horizontal scaling of surface. yscale = Vertical scaling of surface. rot = Rotated angle (in degrees) of surface. c1 = Top left color of surface. c2 = Top right color of surface. c3 = Bottom right color of surface. c4 = Bottom left color of surface. color = Colour blending color. alpha = Transparency of surface.
Example
This function is the most general draw surface function. It draws a part of the surface with the given ID on the screen in the position x,y. It is taken starting from the position left,top and with the width value of width and height value of height. Its width is drawn to the scale of xscale (where 1=no change) and its height is drawn to the scale of yscale (where 1=no change). The sprite is rotated to the angle rot, and has the colors c1, c2, c3, c4 where c1 colors the top left, c2 colors the top right, c3 colors the bottom right, and c4 colors the bottom left.
esh_corp11 - Revision #2 |