Search found 2 matches

by TheAlmightyGuru
Thu Aug 12, 2021 2:23 pm
Forum: Support and Development
Topic: Cropping a sprite batch
Replies: 3
Views: 4552

Re: Cropping a sprite batch

grump: setScissors is what I was looking for! Scrolling might come later, for now, I just needed to know how to crop.

togFox: I'm not drawing along the edge of the window, but thanks for the advice still.
by TheAlmightyGuru
Tue Aug 10, 2021 9:09 pm
Forum: Support and Development
Topic: Cropping a sprite batch
Replies: 3
Views: 4552

Cropping a sprite batch

Currently, I'm drawing a tiled background. I do this by loading an image with all my tiles, creating quads for each tile in the image. To draw my tile map, I create a sprite batch, draw all the tiles into the batch, then draw the batch to the screen. Here is what it looks like: http://www.thealmight...