I have submitted the patch.
I guess one could add a macro in one of the OpenFlight headers to group all the
USE_FLTRECORD macros, something like:
#define REGISTER_FLT_RECORDS USE_FLTRECORD(Comment, COMMENT_OP); \
USE_FLTRECORD(LongID, LONG_ID_OP); \
USE_FLTRECORD(Matrix, MATRIX_OP); \
..
OK, I found a way to solve this issue:
in src/osgPlugins/OpenFlight/Registry.h add the following lines before the
closing namespace bracket:
Code:
extern C
{
typedef void (* CRecordFunction) (void);
}
struct RecordFunctionProxy
{
RecordFunctionProxy(CRecordFunction function) {
Gregory Jaegy wrote:
Finally, in your own project, include the OpenFlight plugin record.h file,
and after the USE_PLUGIN macros add the following ones (one per record
type):
Code:
USE_FLTRECORD(Comment, COMMENT_OP);
...
USE_FLTRECORD(NormalVertex, OLD_NORMAL_VERTEX_OP);
This you'd
Hi,
I am trying to use the OSG OpenFlight plugin. I have build and linked
everything statically.
Like in the osgstaticviewer example, I have added the
Code:
USE_OSGPLUGIN(OpenFlight);
line, in order to for the symbols to be included.
However, when I try to import a .flt file, I get a lot
Gregory Jaegy wrote:
Hi,
I am trying to use the OSG OpenFlight plugin. I have build and linked
everything statically.
Like in the osgstaticviewer example, I have added the
Code:
USE_OSGPLUGIN(OpenFlight);
line, in order to for the symbols to be included.
However, when I try to import a
5 matches
Mail list logo