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:
parent
e51fd3d4fa
commit
a97f104ab6
@ -376,10 +376,10 @@ class OSG_EXPORT Image : public BufferData
|
||||
/** Set the color value for specified texcoord.*/
|
||||
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)); }
|
||||
|
||||
/** 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 );
|
||||
|
||||
/** Flip the image horizontally, around s dimension. */
|
||||
|
Loading…
Reference in New Issue
Block a user