Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 1 file). Show all
Unified · Split
| @@ -482,8 +482,10 @@ void GeometryCache::buildShapes() { · 481 unmodified lines | |||
| 482 | using namespace geometry; | 482 | using namespace geometry; |
| 483 | auto vertexBuffer = std::make_shared<gpu::Buffer>(); | 483 | auto vertexBuffer = std::make_shared<gpu::Buffer>(); |
| 484 | auto indexBuffer = std::make_shared<gpu::Buffer>(); | 484 | auto indexBuffer = std::make_shared<gpu::Buffer>(); |
| 485 | // Cube | 485 | // Cube |
| 486 | setupFlatShape(_shapes[Cube], geometry::cube(), _shapeVertices, _shapeIndices); | 486 | setupFlatShape(_shapes[Cube], geometry::cube(), _shapeVertices, _shapeIndices); |
| 487 | //Quad renders as flat Cube | ||
| 488 | setupFlatShape(_shapes[Quad], geometry::cube(), _shapeVertices, _shapeIndices); | ||
| 487 | // Tetrahedron | 489 | // Tetrahedron |
| 488 | setupFlatShape(_shapes[Tetrahedron], geometry::tetrahedron(), _shapeVertices, _shapeIndices); | 490 | setupFlatShape(_shapes[Tetrahedron], geometry::tetrahedron(), _shapeVertices, _shapeIndices); |
| 489 | // Icosahedron | 491 | // Icosahedron |
| @@ -524,12 +526,10 @@ void GeometryCache::buildShapes() { · 34 unmodified lines | |||
| 524 | extrudePolygon<64>(_shapes[Cylinder], _shapeVertices, _shapeIndices); | 526 | extrudePolygon<64>(_shapes[Cylinder], _shapeVertices, _shapeIndices); |
| 525 | //Cone, | 527 | //Cone, |
| 526 | extrudePolygon<64>(_shapes[Cone], _shapeVertices, _shapeIndices, true); | 528 | extrudePolygon<64>(_shapes[Cone], _shapeVertices, _shapeIndices, true); |
| 527 | //Circle | 529 | // Circle renders as flat Cylinder |
| 528 | drawCircle(_shapes[Circle], _shapeVertices, _shapeIndices); | 530 | extrudePolygon<64>(_shapes[Circle], _shapeVertices, _shapeIndices); |
| 529 | // Not implemented yet: | 531 | // Not implemented yet: |
| 530 | //Quad, | 532 | //Torus, |
| 531 | //Torus, | ||
| 532 | |||
| 533 | } | 533 | } |
| 534 | 534 | ||
| 535 | const GeometryCache::ShapeData * GeometryCache::getShapeData(const Shape shape) const { | 535 | const GeometryCache::ShapeData * GeometryCache::getShapeData(const Shape shape) const { |