Wednesday, 24 August 2011

GameDevBlog: Text Rendering in Native Client

This "simple_font.cc" under-development example of using fonts is in the Chrome sources. I'm lucky I found it. It was surprisngly easy to take the image data and make it into a gl texture and continue to do everything with the 3d client - I'm guessing a 2d client and 3d client wouldn't play well together, but didn't actually try it. So far it's slow, though - I seem to be spending about ~20 msec on text alone - not sure how much of that is drawing the text and how much is uploading the texture - I'll do some profiling soon - and I haven't tried glMapTexSubImage2D() yet, from these tips.

http://src.chromium.org/viewvc/chrome/trunk/src/ppapi/examples/font/

 

news update blogs test

No comments:

Post a Comment