![]() Returns the color of the pixel corresponding to position (x,y) in the surface. Resets the drawing target to the normal screen. It resets the projection to simply cover the surface. Sets the indicated surface as the drawing target. This can be used toĭraw textured objects with the image of the surface. Returns the texture corresponding to the surface. Returns whether the surface with the indicated id exists. square), you would be advised to try and keep them to these sizes for maximum compatability. While width and height don't have to be the same (i.e. Please Note: Many older graphics cards require "Power of 2" textures/surfaces for use in 3D. (Set it as a target and call the appropriate clear function.) Of the surface, which must be used in all further calls. The following functions exist to deal with surfacesĬreates a surface of the indicated width and height. There are though a few things you must be aware Many different ways or use it as a texture. You can draw the surface on the screen in Once you are done you reset the drawing targetĪnd further drawing happens on the screen again. ![]() On all drawing functions operate on the surface. Next you indicate that further drawing should happen on this surface. Or you want to use a texture that changes over time. Step), but instead you want to draw it on a separate surface that is copied onto the The paint should notīe drawn on the screen (because it will be removed each next Such a canvas is called a surface.įor example, you want to let the user draw on the screen. In certain situations you might want to paint not directly on the screen but on a canvas thatĬan then later be used to paint things on the screen. Drawing Surfaces This functionality is only available in the Standard Edition of GameMaker.
0 Comments
Leave a Reply. |