Re: [AD] al_update_display_region |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Elias Pschernig wrote:
Something like A4's old X11 driver also would implement it. I think it should be more a hint to the display driver, something like "do an al_flip_display, but really only this rectangle would require updating". If you want to have two code pathes, one with a DRS, one without, you likely want to know this at the start of the program - not later when you actually try to call the function.
Okay, that makes sense. I don't think it should be a flag, but a option. al_get_display_option(ALLEGRO_UPDATE_DISPLAY_REGION) will indicate whether a) al_update_display_region() does nothing b) acts as a hint c) does what the name saysIf it's a hint you'll still want to render the entire frame to the backbuffer, but specify the rectangle that has been updated and hope it helps.
-- Milan Mimica http://sparklet.sf.net
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |