Ignore:
Timestamp:
02/01/10 17:37:44 (2 years ago)
Author:
ddangelo
Message:

osg 1D texture wrapped. Added function to create an av::osg::Image node by loading an image file. TexturedQuad? now supports 1D and 2D texturing. Old functionality should not be affected. The textured quad node should definitively be refactored into multiple nodes (or a script.container node).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/python/avango/osg/OSGImage.cpp

    r334 r341  
    2828#include <avango/osg/Image.h> 
    2929#include <osgDB/WriteFile> 
     30#include <osgDB/ReadFile> 
    3031#include "OSGImage.h" 
    3132 
     
    4950} 
    5051 
     52av::Link< av::osg::Image> read_image_file(const std::string& name) 
     53{ 
     54  return av::Link< av::osg::Image>(new av::osg::Image( ::osgDB::readImageFile(name) ) ); 
     55} 
     56 
    5157void init_OSGImage(void) 
    5258{ 
     
    5763    .def("write_file", write_image_file) 
    5864    ; 
     65  def("read_image_file", read_image_file); 
    5966} 
Note: See TracChangeset for help on using the changeset viewer.