[Plib-devel] commandline conversion program
Brought to you by:
sjbaker
From: <br...@sa...> - 2005-01-09 15:31:26
|
Hi, I'm dusting off my command-line converter tool, which is based on plib's ssg. I chose to load/save ssg files *without* creating an OpenGL context first. This used to work. Now, the loading of a texture fails, because OpenGL calls are made when loading a texture. (The PROXY_TEXTURE load). I see two solutions: - I cave in, and create an OpenGL window, call ssgInit, and then do the fmt conversion. The convertor is no longer a cmdline prog, but a full OpenGL prog. - ssg.cxx's IsValidContext is made available to ssgTexture.cxx which ignores the failure of PROXY_TEXTURE generation if there is no context. (Or better yet: mipmaps are never created without the context). Both approaches seem ugly to me. Any advice from the list? thx, Bram |