Ignore:
Timestamp:
08/24/10 14:51:47 (21 months ago)
Author:
ddangelo
Message:

getAbsoluteTransform function now accepts a second parameter which is the node to stop the traversal. This is useful in case you do not want to traverse the scenegraph up to its root node. Also added a function to query the maximal texture size.

File:
1 edited

Legend:

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

    r453 r514  
    113113 } 
    114114 
     115namespace 
     116{ 
     117  GLint GetMaximumTextureSize() 
     118  { 
     119    GLint maxTextureSize; 
     120    glGetIntegerv( GL_MAX_TEXTURE_SIZE, &maxTextureSize); 
     121    return maxTextureSize; 
     122  } 
     123} 
     124 
     125 
    115126BOOST_PYTHON_MODULE(_osg) 
    116127{ 
     
    132143 
    133144  def("line_intersect", av::osg::lineIntersect); 
     145 
     146  def("get_maximum_texture_size",GetMaximumTextureSize); 
     147 
    134148 
    135149  register_field<av::osg::SFDrawable>("SFDrawable"); 
Note: See TracChangeset for help on using the changeset viewer.