draw_range_elements(type, min_index, max_index, indices.size(), &indices[0]);
}
+void Batch::draw_with_buffer(unsigned offset) const
+{
+ draw_range_elements(type, min_index, max_index, indices.size(), (unsigned *)0+offset);
+}
+
Batch::Loader::Loader(Batch &b):
- batch(b)
+ DataFile::ObjectLoader<Batch>(b)
{
add("indices", &Loader::indices);
}
void Batch::Loader::indices(const vector<uint> &ind)
{
- batch.append(ind);
+ obj.append(ind);
}
} // namespace GL