PocketMatrix forums

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

On Symbian, how can I use CGraphicsContext::DrawText()?

davidboydca · 09 Feb 2006, 04:26 UTC
I know all you GapiDraw experts are very busy creating awesome games but I am hoping someone can spare a few seconds and tell me the best approach to drawing text from the Symbian API onto a CGapiSurface?

In the Windows model, I can use GetDC() and start drawing directly to a CGapiSurface.

In Symbian, I neither see a call to get a compatible CGraphicsContext, nor a Blit function that will take a Symbian backbuffer (CFbsBitmap?).

Is my best bet to use GetBuffer() and copy the pixels over by hand?

I'm brand new to GapiDraw and Symbian, so forgive my ignorance.

Thanks,
David Boyd
davidboydca · 12 Feb 2006, 21:06 UTC
Can I suggest that you guys add an API like the Edge Mobile Game Engine has?

CFbsBitmap * GetSysApiSurface(void)

You could call overload it for Symbian and call it GetDC() and ReleaseDC(), just have it return a CFbsBitmap *.

It should be trivial since looking in your headers reveals that you're using CFbsBitmap as the base implementation of your CGapiSurface.
Hi David,

Thanks for your suggestion, I'll put it to our list of future features.

Sincerely
Johan