root/OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osg/Image.cpp @ 13041

Revision 13041, 1.0 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#include "osg/Image"
2
3#include "osgDB/Registry"
4#include "osgDB/Input"
5#include "osgDB/Output"
6
7using namespace osg;
8using namespace osgDB;
9
10// forward declare functions to use later.
11bool Image_readLocalData(Object& obj, Input& fr);
12bool Image_writeLocalData(const Object& obj, Output& fw);
13
14// register the read and write functions with the osgDB::Registry.
15REGISTER_DOTOSGWRAPPER(Image)
16(
17    new osg::Image,
18    "Image",
19    "Object Image",
20    &Image_readLocalData,
21    &Image_writeLocalData
22);
23
24bool Image_readLocalData(Object& /*obj*/, Input& /*fr*/)
25{
26    bool iteratorAdvanced = false;
27
28    // Image& image = static_cast<Image&>(obj);
29
30    // no current image reading code
31    // as it is all handled by osg::Registry::readImage() via plugins.
32
33    return iteratorAdvanced;
34}
35
36
37bool Image_writeLocalData(const Object& /*obj*/, Output& /*fw*/)
38{
39    // const Image& image = static_cast<const Image&>(obj);
40
41    // no current image writing code here
42    // as it is all handled by osg::Registry::writeImage() via plugins.
43
44    return true;
45}
Note: See TracBrowser for help on using the browser.