|
Revision 3527, 2.6 kB
(checked in by robert, 9 years ago)
|
|
From Fred Mammond, fixes for x86_64 build
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | #ifndef __ATTR_DATA_H |
|---|
| 2 | #define __ATTR_DATA_H |
|---|
| 3 | |
|---|
| 4 | #if defined(_MSC_VER) |
|---|
| 5 | #pragma warning( disable : 4786 ) |
|---|
| 6 | #endif |
|---|
| 7 | |
|---|
| 8 | #include <osg/StateSet> |
|---|
| 9 | #include <osg/Referenced> |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | namespace flt { |
|---|
| 28 | |
|---|
| 29 | typedef signed int int32; |
|---|
| 30 | |
|---|
| 31 | class AttrData : public osg::Object { |
|---|
| 32 | public: |
|---|
| 33 | osg::StateSet *stateset; |
|---|
| 34 | |
|---|
| 35 | int32 useDetail; |
|---|
| 36 | int32 txDetail_j; |
|---|
| 37 | int32 txDetail_k; |
|---|
| 38 | int32 txDetail_m; |
|---|
| 39 | int32 txDetail_n; |
|---|
| 40 | int32 txDetail_s; |
|---|
| 41 | bool modulateDetail; |
|---|
| 42 | |
|---|
| 43 | AttrData() : |
|---|
| 44 | stateset(0), |
|---|
| 45 | useDetail(0), |
|---|
| 46 | txDetail_j(0), |
|---|
| 47 | txDetail_k(0), |
|---|
| 48 | txDetail_m(0), |
|---|
| 49 | txDetail_n(0), |
|---|
| 50 | txDetail_s(0), |
|---|
| 51 | modulateDetail(false) {} |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | AttrData(const AttrData& attr,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): |
|---|
| 55 | osg::Object(attr,copyop), |
|---|
| 56 | stateset(attr.stateset), |
|---|
| 57 | useDetail(attr.useDetail), |
|---|
| 58 | txDetail_j(attr.txDetail_j), |
|---|
| 59 | txDetail_k(attr.txDetail_k), |
|---|
| 60 | txDetail_m(attr.txDetail_m), |
|---|
| 61 | txDetail_n(attr.txDetail_n), |
|---|
| 62 | txDetail_s(attr.txDetail_s), |
|---|
| 63 | modulateDetail(attr.modulateDetail) {} |
|---|
| 64 | |
|---|
| 65 | virtual osg::Object* cloneType() const { return new AttrData(); } |
|---|
| 66 | virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new AttrData(*this,copyop); } |
|---|
| 67 | virtual const char* libraryName() const { return "osg"; } |
|---|
| 68 | virtual const char* className() const { return "AttrData"; } |
|---|
| 69 | }; |
|---|
| 70 | } |
|---|
| 71 | |
|---|
| 72 | #endif // __ATTR_DATA_H |
|---|