Show
Ignore:
Timestamp:
04/22/09 17:46:24 (5 years ago)
Author:
robert
Message:

From Neil Hughes, converted across to use istream for reading data from file to enable reading .3ds files over http (use OSG's libcurl plugin).

From Robert Osfield, ammendments of the above to better support reading of files from local directories.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/3ds/mesh.h

    r6461 r10076  
    2828#endif 
    2929 
     30#include <iostream> 
     31using namespace std; 
     32 
    3033#ifdef __cplusplus 
    3134extern "C" { 
    3235#endif 
     36 
     37 
    3338 
    3439/*! 
     
    126131extern LIB3DSAPI void lib3ds_mesh_calculate_normals(Lib3dsMesh *mesh, Lib3dsVector *normalL); 
    127132extern LIB3DSAPI void lib3ds_mesh_dump(Lib3dsMesh *mesh); 
    128 extern LIB3DSAPI Lib3dsBool lib3ds_mesh_read(Lib3dsMesh *mesh, FILE *f); 
    129 extern LIB3DSAPI Lib3dsBool lib3ds_mesh_write(Lib3dsMesh *mesh, FILE *f); 
     133extern LIB3DSAPI Lib3dsBool lib3ds_mesh_read(Lib3dsMesh *mesh, iostream *strm); 
     134extern LIB3DSAPI Lib3dsBool lib3ds_mesh_write(Lib3dsMesh *mesh, iostream *strm); 
    130135 
    131136#ifdef __cplusplus