Bambo Bambolek(deleted)
10/28/2013 7:52 AM
post106306
|
Hi,
I would draw some things in direct mode in QNX 6.4.
I use PdCreateDirectContex -> PdSetTargetDevice -> PdDirectStart -> PgFlush -> PdDirectStop -> PhDCSetCurrent( oldOneDC
). It looks ok, draws really fast on screeen but in QNX help files someone wrote that I should take care about PhEvent.
type = Ph_OFFSCREEN_INVALID -> subtype Pg_EXITED_DIRECT.
For this subtype in callback function I'am recreating direct context ( previously releasing old one ). Right after I
reinitialize context program goes to function thats redraws my PtRaw widget that contains things I draws previously. So
it redraws it again and again and again....
Is somewhere a nice simply examle for using these functions and taking care about moving window/redrawing on timer/
redrawing on event?
Best regards!!!
|
|
|