- Timestamp:
- 01/27/10 14:32:38 (2 years ago)
- Location:
- trunk/avango-osg
- Files:
-
- 2 edited
-
include/avango/osg/Image.h (modified) (2 diffs)
-
src/avango/osg/Image.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-osg/include/avango/osg/Image.h
r283 r340 78 78 79 79 /** 80 * Internal (i.e. GPU) pixel format if used as a texture 81 */ 82 SFInt InternalTextureFormat; 83 84 /** 80 85 * Get the wrapped ::osg::Image. 81 86 */ … … 88 93 virtual void getHeightCB(const SFUInt::GetValueEvent& event); 89 94 virtual void setHeightCB(const SFUInt::SetValueEvent& event); 95 virtual void getInternalTextureFormatCB(const SFInt::GetValueEvent& event); 96 virtual void setInternalTextureFormatCB(const SFInt::SetValueEvent& event); 90 97 91 98 private: -
trunk/avango-osg/src/avango/osg/Image.cpp
r283 r340 42 42 boost::bind(&Image::getHeightCB, this, _1), 43 43 boost::bind(&Image::setHeightCB, this, _1)); 44 AV_FC_ADD_ADAPTOR_FIELD(InternalTextureFormat, 45 boost::bind(&Image::getInternalTextureFormatCB, this, _1), 46 boost::bind(&Image::setInternalTextureFormatCB, this, _1)); 44 47 } 45 48 … … 90 93 // NOOP 91 94 } 95 96 /* virtual */ void 97 av::osg::Image::getInternalTextureFormatCB(const SFInt::GetValueEvent& event) 98 { 99 *(event.getValuePtr()) = mOsgImage->getInternalTextureFormat(); 100 } 101 102 /* virtual */ void 103 av::osg::Image::setInternalTextureFormatCB(const SFInt::SetValueEvent& event) 104 { 105 mOsgImage->setInternalTextureFormat(event.getValue()); 106 }
Note: See TracChangeset
for help on using the changeset viewer.
