blob: bfa944d4d5dc2debe719e8de4884922be5267117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef HONEY_PRIMITIVES_H
#define HONEY_PRIMITIVES H
/** @file primitives.h
*
* @brief 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
|