|
Revision 10076, 1.8 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
|
| Rev | Line | |
|---|
| [8] | 1 | |
|---|
| 2 | #ifndef INCLUDED_LIB3DS_CAMERA_H |
|---|
| 3 | #define INCLUDED_LIB3DS_CAMERA_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 |
|---|
| [1563] | 27 | #include "types.h" |
|---|
| [8] | 28 | #endif |
|---|
| 29 | |
|---|
| [10076] | 30 | #include <iostream> |
|---|
| 31 | using namespace std; |
|---|
| 32 | |
|---|
| [8] | 33 | #ifdef __cplusplus |
|---|
| 34 | extern "C" { |
|---|
| 35 | #endif |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | struct _Lib3dsCamera { |
|---|
| 42 | Lib3dsCamera *next; |
|---|
| 43 | char name[64]; |
|---|
| 44 | Lib3dsVector position; |
|---|
| 45 | Lib3dsVector target; |
|---|
| 46 | Lib3dsFloat roll; |
|---|
| 47 | Lib3dsFloat fov; |
|---|
| 48 | Lib3dsBool see_cone; |
|---|
| 49 | Lib3dsFloat near_range; |
|---|
| 50 | Lib3dsFloat far_range; |
|---|
| 51 | }; |
|---|
| 52 | |
|---|
| 53 | extern LIB3DSAPI Lib3dsCamera* lib3ds_camera_new(const char *name); |
|---|
| 54 | extern LIB3DSAPI void lib3ds_camera_free(Lib3dsCamera *mesh); |
|---|
| [151] | 55 | extern LIB3DSAPI void lib3ds_camera_dump(Lib3dsCamera *camera); |
|---|
| [10076] | 56 | extern LIB3DSAPI Lib3dsBool lib3ds_camera_read(Lib3dsCamera *camera, iostream *strm); |
|---|
| 57 | extern LIB3DSAPI Lib3dsBool lib3ds_camera_write(Lib3dsCamera *camera, iostream *strm); |
|---|
| [8] | 58 | |
|---|
| 59 | #ifdef __cplusplus |
|---|
| [6461] | 60 | } |
|---|
| [8] | 61 | #endif |
|---|
| 62 | #endif |
|---|