AGL
A graphics library
pyramid.h
1 // Copyright 2020, Savvy Sine, Aline Normoyle
2 
3 #ifndef AGL_MESH_PYRAMID_H_
4 #define AGL_MESH_PYRAMID_H_
5 
6 #include "agl/mesh/triangle_mesh.h"
7 
8 namespace agl {
9 
13 class Pyramid : public TriangleMesh {
14  public:
15  Pyramid(float base, float height);
16 
17  protected:
18  void init() override;
19 
20  private:
21  float _base;
22  float _height;
23 };
24 
25 } // namespace agl
26 #endif // AGL_MESH_PYRAMID_H_
agl::Pyramid::init
void init() override
Override init to specifiy vertex data for the mesh.
Definition: pyramid.cpp:14
agl::TriangleMesh
Base class for indexed triangle meshes.
Definition: triangle_mesh.h:16
agl::Pyramid
Draw a pyramid mesh.
Definition: pyramid.h:13