File Type PatternAvailability LightWave 6.0 Component Layout, ModelerHeader lwhost.h This global returns a function that allows plug-ins to retrieve file name pattern strings. These can be used to translate the string in the fileType passed to file request plug-ins into a literal filter string. Global Call LWFileTypeFunc *filetypes; filetypes = global( LWFILETYPEFUNC_GLOBAL, GFUSE_TRANSIENT );The global function returns a pointer to an LWFileTypeFunc. typedef const char * LWFileTypeFunc (const char *type);The type argument identifies the kind of file you want a pattern string for. It can be any of the following.
Example This code fragment obtains the pattern string for image files. #include <lwserver.h> #include <lwhost.h> char *imgpat; LWFileTypeFunc *filetypes; filetypes = global( LWFILETYPEFUNC_GLOBAL, GFUSE_TRANSIENT ); if ( filetypes ) imgpat = filetypes( LWFTYPE_IMAGE ); ... |