27#ifndef __LIBFREEWRL_IO_FILES_H__
28#define __LIBFREEWRL_IO_FILES_H__
30void fwg_frontEndReturningData(
char* fileData,
int length,
int width,
int height,
bool hasAlpha);
31void fwg_frontEndReturningLocalFile(
char *localfile,
int iret);
35char* concat_path(
const char *a,
const char *b);
36char* remove_filename_from_path(
const char *path);
40char *get_current_dir();
41bool do_file_exists(
const char *filename);
42bool do_file_readable(
const char *filename);
43bool do_dir_exists(
const char *dir);
44int 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
76#if defined (INCLUDE_STL_FILES)
77#define IS_TYPE_ASCII_STL 300
78#define IS_TYPE_BINARY_STL 301
82extern int inputFileType;
83extern int inputFileVersion[];
85int 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