diff options
author | sanine-a <sanine.not@pm.me> | 2020-05-20 23:03:42 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-05-20 23:03:42 -0500 |
commit | a09b5a72d365f10e35b012e04b95891abf0b8313 (patch) | |
tree | 8c233b15f5592371dde867abc62e31193b442c97 /include/primitives.h | |
parent | c3a41085272644709d891bf04137a6c2bd901230 (diff) |
add cube primitive
Diffstat (limited to 'include/primitives.h')
-rw-r--r-- | include/primitives.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/primitives.h b/include/primitives.h new file mode 100644 index 0000000..81dc16f --- /dev/null +++ b/include/primitives.h @@ -0,0 +1,24 @@ +#ifndef HONEY_PRIMITIVES_H +#define HONEY_PRIMITIVES H + +/** @file Define various common primitive objects. + */ + +#include "common.h" +#include "mesh.h" + +/** @brief Create a cube. + * + * @param[out] mesh Pointer to the destination mesh + * @param[in] width Desired width of the cube (x-axis) + * @param[in] height Desired height of the cube (y-axis) + * @param[in] depth Desired depth of the cube (z-axis) + * + * @return Success or failure code + */ +enum honey_mesh_result honey_mesh_new_cube(honey_mesh* mesh, + float width, + float height, + float depth); + +#endif |