AGL
A graphics library
plane.h
1 // Copyright 2020, Savvy Sine, Aline Normoyle
2 
3 #ifndef AGL_MESH_PLANE_H_
4 #define AGL_MESH_PLANE_H_
5 
6 #include "agl/mesh/triangle_mesh.h"
7 
8 namespace agl {
9 
13 class Plane : public TriangleMesh {
14  public:
15  Plane(float xsize, float zsize, int xdivs, int zdivs,
16  float smax = 1.0f, float tmax = 1.0f);
17 
18  protected:
19  void init() override;
20 
21  private:
22  float _xsize;
23  float _zsize;
24  int _xdivs;
25  int _zdivs;
26  float _smax;
27  float _tmax;
28 };
29 
30 } // namespace agl
31 #endif // AGL_MESH_PLANE_H_
agl::TriangleMesh
Base class for indexed triangle meshes.
Definition: triangle_mesh.h:16
agl::Plane::init
void init() override
Override init to specifiy vertex data for the mesh.
Definition: plane.cpp:19
agl::Plane
Draw a plane mesh.
Definition: plane.h:13