Author Topic: DrawSpriteRect  (Read 7420 times)

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
Re: DrawSpriteRect
« Reply #15 on: 2009-Oct-19 »
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.

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1781
    • View Profile
    • Homepage
Re: DrawSpriteRect
« Reply #16 on: 2009-Oct-19 »
Use Viewport for this

Offline FutureCow

  • HelpEditor
  • Prof. Inline
  • ******
  • Posts: 680
    • View Profile
Re: DrawSpriteRect
« Reply #17 on: 2009-Oct-19 »
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.

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1781
    • View Profile
    • Homepage
Re: DrawSpriteRect
« Reply #18 on: 2009-Oct-19 »
Yes, it crops too, it also scales 3D so you can have your own little 3D view in the 2D view if you want :-)