DrawSpriteRect

Previous topic - Next topic

FutureCow

The reason I wasn't able to draw offscreen was that unlike the tiled map solution, my "tiled map" didn't go right to the edges of the screen. To use this sort of solution I'd have to draw my "map tiles" then draw over them with a mask to hide the bits that would normally be hidden by the edges of the screen. With the way my program was built, it was getting overcompilcated and messy, I ended up redesigning my interface to simplify things.

Moru

Use Viewport for this

FutureCow

Ahh, so drawing outside the viewport will not resort in anything being displayed? I didn't realise that, I thought it's only advantage was to give you a scaled version of the main display where you could set where you wanted it's (0,0) coordinate to be. I didn't realise it would crop as well.

Moru

Yes, it crops too, it also scales 3D so you can have your own little 3D view in the 2D view if you want :-)