View Single Post
  #1  
Old 11-28-2011, 09:22 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
GuiDrawingPanel.push()

The ability to push the image would be nice. Think about manually having to scroll an image(because it exceeds the max size of drawingpanels). In order to redraw we'd have to redraw the ENTIRE drawingpanel(in the case of tiles of a level, this is a lot of work). But what if we could push it and then just redraw the newly cleared area?

For example, say we're rendering a 10x10 tile portion of a level. And we want to move two tiles to the right in the level. We'd do GuiDrawingPanel.push(-32,0) and then draw the newly exposed tiles in the now cleared area.
Reply With Quote