root/OpenSceneGraph/trunk/src/osgPlugins/ive/IveVersion.h @ 10934

Revision 10934, 1.6 kB (checked in by robert, 4 years ago)

From Rob Radtke, "I recently ran into some issues trying to save/load a scene graph as a .ive file. The problems came about because the scene graph contained depth textures in it. I have attached a patch (against the current revision: 10919) that fixes the issues that I encountered. Both attachments contain the same patch--one is a .zip file that contains the modified files and the other is a text patch file. Here is a summary of the changes I made:

1) Add getShadowComparison() accessor function to osg::Texture class
2) Modify ReaderWriterTiff::writeTifStream() and _readColor() (in Image.cpp) to handle pixelFormat==GL_DEPTH_COMPONENT as if it were GL_LUMINANCE
3) Modify the Texture classes of the ive and osg plug-ins so that they save/load the following Texture members: _use_shadow_comparison, _shadow_compare_func and _shadow_texture_mode
"

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2#ifndef IVE_VERSION
3#define IVE_VERSION 1
4
5
6/* The VERSION tag should be updated any time the
7   IVE format changes in order to support backward
8   compatibility (if implemented).  VERSION is
9   stored in the 2nd 4 bytes of the file */
10
11#define VERSION_0001 1
12#define VERSION_0002 2
13#define VERSION_0003 3
14#define VERSION_0004 4
15#define VERSION_0005 5
16#define VERSION_0006 6
17#define VERSION_0007 7
18
19#define VERSION_0008 8
20#define VERSION_0009 9
21#define VERSION_0010 10
22#define VERSION_0011 11
23#define VERSION_0012 12
24#define VERSION_0013 13
25#define VERSION_0014 14
26#define VERSION_0015 15
27#define VERSION_0016 16
28#define VERSION_0017 17
29#define VERSION_0018 18
30#define VERSION_0019 19
31#define VERSION_0020 20
32#define VERSION_0021 21
33#define VERSION_0022 22
34#define VERSION_0023 23
35#define VERSION_0024 24
36#define VERSION_0025 25
37#define VERSION_0026 26
38#define VERSION_0027 27
39#define VERSION_0028 28
40#define VERSION_0029 29
41#define VERSION_0030 30
42#define VERSION_0031 31
43#define VERSION_0032 32
44#define VERSION_0033 33
45#define VERSION_0034 34
46#define VERSION_0035 35
47#define VERSION_0036 36
48#define VERSION_0037 37
49#define VERSION_0038 38
50#define VERSION_0039 39
51#define VERSION_0040 40
52#define VERSION_0041 41
53#define VERSION_0042 42
54#define VERSION_0043 43
55
56#define VERSION VERSION_0043
57
58/* The BYTE_SEX tag is used to check the endian
59   of the IVE file being read in.  The IVE format
60   is always written in the native endian of the
61   machine to provide optimum reading of the file.
62   BYTE_SEX is stored in the first 4 bytes of the
63   file */
64#define ENDIAN_TYPE 0x01020304
65#define OPPOSITE_ENDIAN_TYPE 0x04030201
66
67
68#endif
Note: See TracBrowser for help on using the browser.