88 std::cerr <<
"Warning : .tex single frame reading not implemented yet -\n"
89 <<
"reading whole texture" << std::endl;
96 std::ifstream is( hdr.
filename().c_str(),
97 std::ios::in | std::ios::binary );
100 is.unsetf( std::ios::skipws );
116 for (
int t=0; t<nt; ++t )
118 uint32_t time, nitem;
119 sr->read( is, time );
120 sr->read( is, nitem );
122 std::vector<T> & vec = thing[ time ].data();
124 vec.insert( vec.end(), nitem, T() );
125 ir->
read( is, &vec[0], nitem );
void setHeader(const aims::PythonHeader &hdr)
Set the header.