AGL
A graphics library
capsule.h
1
// copyright 2019, savvy_sine, Aline Normoyle
2
3
#ifndef AGL_MESH_CAPSULE_H_
4
#define AGL_MESH_CAPSULE_H_
5
6
#include "agl/mesh/triangle_mesh.h"
7
8
namespace
agl {
9
13
class
Capsule
:
public
TriangleMesh
{
14
public
:
15
Capsule
(
float
rad,
float
length, GLuint sl, GLuint st);
16
17
protected
:
18
void
init
()
override
;
19
20
private
:
21
float
_radius;
22
float
_length;
23
GLuint _nSlices;
24
GLuint _nStacks;
25
};
26
27
}
// namespace agl
28
#endif // AGL_MESH_CAPSULE_H_
agl::Capsule::init
void init() override
Override init to specifiy vertex data for the mesh.
Definition:
capsule.cpp:18
agl::TriangleMesh
Base class for indexed triangle meshes.
Definition:
triangle_mesh.h:16
agl::Capsule
Draw a capsule mesh.
Definition:
capsule.h:13
agl
mesh
capsule.h
Generated by
1.8.17