On Wed, 2008-08-27 at 11:10 -0400, Michael Boccara wrote: > What is the simplest way to render a bitmap
Fonts aren't actually stored as 1-bit bitmaps in Clutter. They are rendered from the system's scalable vector format using pango/cairo/freetype. Then they are uploaded to OpenGL as 8-bit alpha channel images. The fonts are actually grayscale because they can be anti-aliased. The closest you can get to a 1-bit bitmap with your own textures is to create a cogl texture with the format set to COGL_PIXEL_FORMAT_A_8 and then upload your image as 8 bits per pixel grayscale (so you could be using 8 bits instead of 32 bits per pixel), but there is no guarantee the graphics card will store it this way and might just expand it to 32 bits anyway. Therefore it's probably best just not to worry about the memory loss and upload a 32-or-24-bit texture. - Neil -- To unsubscribe send a mail to [EMAIL PROTECTED]
