Browse Source

doc: add missing BufferUsage parameter.

Signed-off-by: Squareys <Squareys@googlemail.com>
pull/94/head
Squareys 11 years ago
parent
commit
dddc7f37eb
  1. 2
      src/Magnum/SceneGraph/Drawable.h

2
src/Magnum/SceneGraph/Drawable.h

@ -53,7 +53,7 @@ typedef SceneGraph::Scene<SceneGraph::MatrixTransformation3D> Scene3D;
class RedCube: public Object3D, public SceneGraph::Drawable3D { class RedCube: public Object3D, public SceneGraph::Drawable3D {
public: public:
explicit RedCube(Object3D* parent, SceneGraph::DrawableGroup3D* group): Object3D{parent}, SceneGraph::Drawable3D{*this, group} { explicit RedCube(Object3D* parent, SceneGraph::DrawableGroup3D* group): Object3D{parent}, SceneGraph::Drawable3D{*this, group} {
std::tie(_mesh, _vertices, _indices) = MeshTools::compile(Primitives::UVSphere::solid(16, 32)); std::tie(_mesh, _vertices, _indices) = MeshTools::compile(Primitives::UVSphere::solid(16, 32), BufferUsage::StaticDraw);
} }
private: private:

Loading…
Cancel
Save