Show
Ignore:
Timestamp:
04/22/09 17:46:24 (6 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/material.h

    r6461 r10076  
    2727#include "types.h" 
    2828#endif 
     29 
     30#include <iostream> 
     31using namespace std; 
    2932 
    3033#ifdef __cplusplus 
     
    157160extern LIB3DSAPI void lib3ds_material_free(Lib3dsMaterial *material); 
    158161extern LIB3DSAPI void lib3ds_material_dump(Lib3dsMaterial *material); 
    159 extern LIB3DSAPI Lib3dsBool lib3ds_material_read(Lib3dsMaterial *material, FILE *f); 
    160 extern LIB3DSAPI Lib3dsBool lib3ds_material_write(Lib3dsMaterial *material, FILE *f); 
     162extern LIB3DSAPI Lib3dsBool lib3ds_material_read(Lib3dsMaterial *material, iostream *strm); 
     163extern LIB3DSAPI Lib3dsBool lib3ds_material_write(Lib3dsMaterial *material, iostream *strm); 
    161164 
    162165#ifdef __cplusplus