27 #ifndef __LIBFREEWRL_IO_FILES_H__
28 #define __LIBFREEWRL_IO_FILES_H__
30 void fwg_frontEndReturningData(
char* fileData,
int length,
int width,
int height,
bool hasAlpha);
31 void fwg_frontEndReturningLocalFile(
char *localfile,
int iret);
35 char* concat_path(
const char *a,
const char *b);
36 char* remove_filename_from_path(
const char *path);
40 char *get_current_dir();
41 bool do_file_exists(
const char *filename);
42 bool do_file_readable(
const char *filename);
43 bool do_dir_exists(
const char *dir);
44 int fw_mkdir(
const char* path);
47 const char *fileFileName;
65 #define IS_TYPE_UNKNOWN 200
66 #define IS_TYPE_XML_X3D 100
67 #define IS_TYPE_VRML 101
68 #define IS_TYPE_VRML1 102
70 #if defined (INCLUDE_NON_WEB3D_FORMATS)
71 #define IS_TYPE_SKETCHUP 103
72 #define IS_TYPE_KML 104
73 #define IS_TYPE_COLLADA 105
74 #endif //INCLUDE_NON_WEB3D_FORMATS
76 #if defined (INCLUDE_STL_FILES)
77 #define IS_TYPE_ASCII_STL 300
78 #define IS_TYPE_BINARY_STL 301
79 #endif //INCLUDE_STL_FILES
82 extern int inputFileType;
83 extern int inputFileVersion[];
85 int determineFileType(
const char *buffer,
const int len);
94 #define ZEROBINDABLES 8
95 #define FROMCREATENODE 13
96 #define FROMCREATEPROTO 14
97 #define UPDATEPROTOD 16
107 #define SSIZE_MAX 100000000L