PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

110b2 changes

Quick question, why the change to CreateSurface, the new first parameter?

I can't think of a situation that I would want to clear the surface before I load an image into it. Is there something I am missing?

Or is this just to be consistent?
Umm.. Basically since you now have some extra flags to play with.. :)

GDSURFACE_CLEAR = 0x0001, // The surface is cleared after creation
GDSURFACE_NOCOORDCHECK = 0x0002, // Coordinate verifications are disabled
GDSURFACE_SYSTEMMEMORY = 0x0100, // The surface is stored in system memory
GDSURFACE_VIDEOMEMORY = 0x0200, // The surface is stored in video memory - default
GDSURFACE_LOCALVIDMEM = 0x0400, // The surface is stored in local video memory - default
GDSURFACE_NONLOCALVIDMEM = 0x0800, // The surface is stored in non local video memory