From Brede Johansen, "I have made some changes to support light sources in the new

OpenFlight loader."
This commit is contained in:
Robert Osfield
2007-02-05 11:14:23 +00:00
parent 98b0eb889a
commit 3c5c4ae242
8 changed files with 243 additions and 28 deletions

View File

@@ -147,6 +147,19 @@ osg::Vec3f DataInputStream::readVec3f()
}
osg::Vec4f DataInputStream::readVec4f()
{
float32 x = readFloat32();
float32 y = readFloat32();
float32 z = readFloat32();
float32 w = readFloat32();
osg::Vec4f vec(x,y,z,w);
return vec;
}
osg::Vec3d DataInputStream::readVec3d()
{
float64 x = readFloat64();