Beispiel #1
0
void IndexedFaceSet::update_attributes(Renderable & renderable) {
    renderable.bind_attribute(vertices, VEC3_FLOAT, num_vertices, "vertex_position");
}
Beispiel #2
0
void IndexedFaceSet::bind_attributes(Renderable & renderable) {
    renderable.bind_attribute(vertices, VEC3_FLOAT, num_vertices, "vertex_position");
    renderable.bind_indices(indices, num_indices * sizeof(int));
}