|
Revision 10076, 1.5 kB
(checked in by robert, 4 years ago)
|
|
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.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | #ifndef INCLUDED_LIB3DS_SHADOW_H |
|---|
| 3 | #define INCLUDED_LIB3DS_SHADOW_H |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | #ifndef INCLUDED_LIB3DS_TYPES_H |
|---|
| 27 | #include "types.h" |
|---|
| 28 | #endif |
|---|
| 29 | |
|---|
| 30 | #include <iostream> |
|---|
| 31 | using namespace std; |
|---|
| 32 | |
|---|
| 33 | #ifdef __cplusplus |
|---|
| 34 | extern "C" { |
|---|
| 35 | #endif |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | struct _Lib3dsShadow { |
|---|
| 42 | Lib3dsIntw map_size; |
|---|
| 43 | Lib3dsFloat lo_bias; |
|---|
| 44 | Lib3dsFloat hi_bias; |
|---|
| 45 | Lib3dsIntw samples; |
|---|
| 46 | Lib3dsIntd range; |
|---|
| 47 | Lib3dsFloat filter; |
|---|
| 48 | Lib3dsFloat ray_bias; |
|---|
| 49 | }; |
|---|
| 50 | |
|---|
| 51 | extern LIB3DSAPI Lib3dsBool lib3ds_shadow_read(Lib3dsShadow *shadow, iostream *strm); |
|---|
| 52 | extern LIB3DSAPI Lib3dsBool lib3ds_shadow_write(Lib3dsShadow *shadow, iostream *strm); |
|---|
| 53 | |
|---|
| 54 | #ifdef __cplusplus |
|---|
| 55 | } |
|---|
| 56 | #endif |
|---|
| 57 | #endif |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | |
|---|