Add extrudePolygon for cylinder

This commit is contained in:
Liv 2017-05-25 10:23:28 -07:00
parent 65c4d31676
commit 362e08a90d

View file

@ -366,8 +366,6 @@ void GeometryCache::buildShapes() {
shapeData.setupIndices(_shapeIndices, IndexVector(), wireIndices);
}
// Not implememented yet:
//Triangle,
extrudePolygon<3>(_shapes[Triangle], _shapeVertices, _shapeIndices);
//Hexagon,
@ -375,11 +373,13 @@ void GeometryCache::buildShapes() {
//Octagon,
extrudePolygon<8>(_shapes[Octagon], _shapeVertices, _shapeIndices);
// Not implememented yet:
//Quad,
//Circle,
//Torus,
//Cone,
//Cylinder,
//Cylinder
extrudePolygon<48>(_shapes[Cylinder], _shapeVertices, _shapeIndices);
}
gpu::Stream::FormatPointer& getSolidStreamFormat() {