3 #ifndef OPENMW_COMPONENTS_NIF_NIFSTREAM_HPP
4 #define OPENMW_COMPONENTS_NIF_NIFSTREAM_HPP
16 #include <osg/PrimitiveSet>
42 void skip(
size_t size) {
inp->ignore(size); }
65 void getUShorts(osg::VectorGLushort* vec,
size_t size);
66 void getFloats(std::vector<float> &vec,
size_t size);
Definition: niffile.hpp:17
int getInt()
Definition: nifstream.hpp:47
uint16_t read_le16()
Definition: nifstream.cpp:15
osg::Vec4f getVector4()
Definition: nifstream.cpp:51
osg::Quat getQuaternion()
Definition: nifstream.cpp:68
void getVector2s(osg::Vec2Array *vec, size_t size)
Definition: nifstream.cpp:118
NIFFile *const file
Definition: nifstream.hpp:38
void skip(size_t size)
Definition: nifstream.hpp:42
Matrix3 getMatrix3()
Definition: nifstream.cpp:58
std::string getVersionString()
This is special since the version string doesn't start with a number, and ends with "\n"...
Definition: nifstream.cpp:99
unsigned short getUShort()
Definition: nifstream.hpp:46
Transformation getTrafo()
Definition: nifstream.cpp:77
void getVector4s(osg::Vec4Array *vec, size_t size)
Definition: nifstream.cpp:130
void getQuaternions(std::vector< osg::Quat > &quat, size_t size)
Definition: nifstream.cpp:136
NIFStream(NIFFile *file, Files::IStreamPtr inp)
Definition: nifstream.hpp:40
boost::shared_ptr< std::istream > IStreamPtr
Definition: constrainedfilestream.hpp:20
uint8_t read_byte()
Definition: nifstream.cpp:9
osg::Vec2f getVector2()
Definition: nifstream.cpp:37
osg::Vec3f getVector3()
Definition: nifstream.cpp:44
char getChar()
Definition: nifstream.hpp:44
float getFloat()
Definition: nifstream.hpp:49
Files::IStreamPtr inp
Input stream.
Definition: nifstream.hpp:29
Definition: niftypes.hpp:35
std::string getString()
Read in a string of the length specified in the file.
Definition: nifstream.cpp:94
void getFloats(std::vector< float > &vec, size_t size)
Definition: nifstream.cpp:112
Definition: nifstream.hpp:26
unsigned int getUInt()
Definition: nifstream.hpp:48
float read_le32f()
Definition: nifstream.cpp:27
short getShort()
Definition: nifstream.hpp:45
uint32_t read_le32()
Definition: nifstream.cpp:21
void getVector3s(osg::Vec3Array *vec, size_t size)
Definition: nifstream.cpp:124
void getUShorts(osg::VectorGLushort *vec, size_t size)
Definition: nifstream.cpp:106