AGL
A graphics library
cube.h
1
// Copyright 2020, Savvy Sine, Aline Normoyle
2
3
#ifndef AGL_MESH_CUBE_H_
4
#define AGL_MESH_CUBE_H_
5
6
#include "agl/mesh/triangle_mesh.h"
7
8
namespace
agl {
9
13
class
Cube
:
public
agl::TriangleMesh
{
14
public
:
15
explicit
Cube
(GLfloat size = 1.0f);
16
17
protected
:
18
void
init
()
override
;
19
20
private
:
21
GLfloat _size;
22
};
23
24
}
// namespace agl
25
#endif // AGL_MESH_CUBE_H_
agl::Cube
Draw a cube mesh.
Definition:
cube.h:13
agl::TriangleMesh
Base class for indexed triangle meshes.
Definition:
triangle_mesh.h:16
agl::Cube::init
void init() override
Override init to specifiy vertex data for the mesh.
Definition:
cube.cpp:12
agl
mesh
cube.h
Generated by
1.8.17