Page 1 of 1

G_Lock

PostPosted: Jun 2, 2004 @ 3:53pm
by fast_rx
Does setpixel use a different function internally after a call to G_Lock?

The reason I ask is because of my experience with pocketfrog and it's lock function.

With PF, you get a pointer to the buffer so you can do direct access, so what's the point of a G_Lock that doesn't return a pointer?

It also seems like doing a lock on a surface just to plot one pixel (as in simple3.ppl) is a bad thing to do (if it works like the lock in pocketfrog).

The reason is that on devices with a non-native NORTH display orentation, all 320x240 pixels must be rotated before and after the lock. It only makes sense if you are going to be doing a LOT of pixel operations.

PostPosted: Jun 3, 2004 @ 2:32am
by kornalius

PostPosted: Jun 3, 2004 @ 4:24am
by fast_rx

PostPosted: Jun 3, 2004 @ 8:46pm
by kornalius

PostPosted: Jun 7, 2004 @ 4:34am
by fast_rx

PostPosted: Jun 7, 2004 @ 5:48pm
by kornalius

PostPosted: Jun 7, 2004 @ 11:01pm
by fast_rx

PostPosted: Jun 7, 2004 @ 11:04pm
by kornalius

PostPosted: Jun 8, 2004 @ 3:05am
by fast_rx
yes, 0.5a.

PostPosted: Jun 8, 2004 @ 2:13pm
by kornalius