|
From: Vincent C. <v....@ze...> - 2003-06-12 15:46:27
|
>> For the dependencies on other libs dependencies, it will require some >> work, mainly on FreeType (the image codecs have a well separated >> internal interface). C++ can quickly become ugly when we have to use >> tricks to hide internal things, and I only stuffed this info in >> 'private:' for now. If you have any suggestion to make this move not >> too painful, I'm interested. > > The "pimpl" C++ idiom seems apropos. > http://www.gotw.ca/gotw/024.htm OK, this is the only thing that came to my mind, seems it's a fair solution. This work will have to be done in : - nglFont/nglFontBase (USE_FREETYPE) : okay, text editing skills - nglStringConv (USE_ICONV, USE_MLANG) : maybe I can cope with some simple opaque types - nglVideoMode (USE_XF86VIDMODE) : same trick as nglFont - nglMath (USE_FAST_FLOAT_CONVERSION) : actually only affects header inline code, so is okay here |