PDA

View Full Version : How to use FTGL FTTextureFont



Stuart McDonald
11-18-2010, 01:35 AM
Asked this on the ftgl mailing list, but had nothing back so far so I thought I'd try here.

How do you use a texture with FTTextureFont? I thought if I just enabled and bound a texture before rendering then it might do something, but it makes no difference.

I dug into the code a bit and I see I can assign a texture to a Glyph, but I need a FT_GlyphSlot which I can't see any way from the API of getting. Though I could derive my own class and implement MakeGlyph and it gets passed a FT_GlyphSlot, but I'm sure I'm missing something obvious...

Thanks.