From Louis Hamilton, fix to LightPoint's under 64 bit build, changing longs to ints in
colour conversion code.
This commit is contained in:
@@ -40,18 +40,18 @@ class OSGSIM_EXPORT LightPointDrawable : public osg::Drawable
|
||||
virtual const char* className() const { return "LightPointDrawable"; }
|
||||
|
||||
|
||||
//typedef std::pair<unsigned long,osg::Vec3> ColorPosition;
|
||||
//typedef std::pair<unsigned int,osg::Vec3> ColorPosition;
|
||||
struct ColorPosition
|
||||
{
|
||||
unsigned long first;
|
||||
unsigned int first;
|
||||
osg::Vec3 second;
|
||||
ColorPosition() {}
|
||||
ColorPosition(unsigned long f,const osg::Vec3& s):first(f),second(s) {}
|
||||
ColorPosition(unsigned int f,const osg::Vec3& s):first(f),second(s) {}
|
||||
};
|
||||
|
||||
void reset();
|
||||
|
||||
inline unsigned long asRGBA(const osg::Vec4& color) const
|
||||
inline unsigned int asRGBA(const osg::Vec4& color) const
|
||||
{
|
||||
return _endian==osg::BigEndian?color.asABGR():color.asRGBA();
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4d)
|
||||
I_Method0(osg::Vec4d::value_type, g);
|
||||
I_Method0(osg::Vec4d::value_type, b);
|
||||
I_Method0(osg::Vec4d::value_type, a);
|
||||
I_Method0(unsigned long, asABGR);
|
||||
I_Method0(unsigned long, asRGBA);
|
||||
I_Method0(unsigned int, asABGR);
|
||||
I_Method0(unsigned int, asRGBA);
|
||||
I_Method0(bool, valid);
|
||||
I_Method0(bool, isNaN);
|
||||
I_Method0(osg::Vec4d::value_type, length);
|
||||
|
||||
@@ -49,8 +49,8 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4f)
|
||||
I_Method0(osg::Vec4f::value_type, g);
|
||||
I_Method0(osg::Vec4f::value_type, b);
|
||||
I_Method0(osg::Vec4f::value_type, a);
|
||||
I_Method0(unsigned long, asABGR);
|
||||
I_Method0(unsigned long, asRGBA);
|
||||
I_Method0(unsigned int, asABGR);
|
||||
I_Method0(unsigned int, asRGBA);
|
||||
I_Method0(bool, valid);
|
||||
I_Method0(bool, isNaN);
|
||||
I_Method0(osg::Vec4f::value_type, length);
|
||||
|
||||
Reference in New Issue
Block a user