View Full Version : Saving a Display List out to a text file
02-20-2001, 04:41 PM
Is it possible, and if so, where do I start?
I'm generating a list like so : wglUseFontOutlines(DC, 0, 255, GLF_START_LIST+255, 0.0, 0.15, WGL_FONT_POLYGONS, @agmf);
and since I'm using a font that I doubt many people have, I'd prefer to save the list rather than bundle in the font and install it on other ppl's computers.
So, what can I do?
02-20-2001, 07:11 PM
No. That's not possible. Lists are keeped on the server part of OpenGL. And they are converted to internal format, that is card-specific.
But what a nice idea!
Post this in
"Suggestions for the next release of OpenGL"
BTW AFAIK This wglFont is not optimal(they change a lot of glCommands). So write a font tesselator instead of working with lists.
'3d exporter' is able to save a model in a text file as a display list.
so what u could do is draw the font in a 3dmodeling program save it as eg 3ds file, then open that in 3dexporter
02-21-2001, 05:19 PM
You could always try the feedback mechanism, retrieve only the vertex data that way, save that into a file (header-file perhaps) and build the lists every time for your self.
Its cumbersome, but you'll get the font at least. http://www.opengl.org/discussion_boards/ubb/smile.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.