On 12/1/10 11:27 AM, Jonathan Hartley wrote:
>> I have a Tkinter/Togl/PyOpenGL app and am interested in my options for
>> drawing 2d text in the OpenGL window. Text for heads-up text or labels
>> of entities, maybe tooltip-like prompts. I don't care about supporting
>> arbitrarily fonts, as long as I have one good readable font.
I'm looking at using the wxHTML widget to draw text to an offscreen
bitmap, then making a texture out of that and rendering it with
pyOpenGL. That has the advantage of doing basic layout for you:
linewrapping, simple formatting, etc.
Can you use the TK text widget to render to an off-screen bitmap?
Sorry, I don't have a working sample at this point.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
|