Added comment clarifying how Image::getColor(..) out of 0..1 range texcoords are handled - now clamped to edge.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14520 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-11-21 20:15:30 +00:00
parent e51fd3d4fa
commit a97f104ab6

View File

@ -376,10 +376,10 @@ class OSG_EXPORT Image : public BufferData
/** Set the color value for specified texcoord.*/ /** Set the color value for specified texcoord.*/
void setColor(const osg::Vec4& color, unsigned int s, unsigned int t=0, unsigned int r=0); void setColor(const osg::Vec4& color, unsigned int s, unsigned int t=0, unsigned int r=0);
/** Set the color value for specified texcoord.*/ /** Set the color value for specified texcoord. Note texcoord is clamped to edge.*/
void setColor(const osg::Vec4& color, const osg::Vec2& texcoord ) { setColor(color, osg::Vec3(texcoord, 0.0f)); } void setColor(const osg::Vec4& color, const osg::Vec2& texcoord ) { setColor(color, osg::Vec3(texcoord, 0.0f)); }
/** Set the color value for specified texcoord.*/ /** Set the color value for specified texcoord. Note texcoord is clamped to edge.*/
void setColor(const osg::Vec4& color, const osg::Vec3& texcoord ); void setColor(const osg::Vec4& color, const osg::Vec3& texcoord );
/** Flip the image horizontally, around s dimension. */ /** Flip the image horizontally, around s dimension. */