#include <model.h>
◆ Flag
Enumerator |
---|
DEDUP | |
CALC_NORMALS | |
◆ calculate_normals()
◆ load()
bool nngn::Models::load |
( |
const char * |
path, |
|
|
u32 |
tex, |
|
|
u8 |
flags, |
|
|
std::vector< Vertex > * |
vertices, |
|
|
std::vector< u32 > * |
indices |
|
) |
| |
|
static |
Reads an OBJ file as a list of vertices/indices.
Both vector
s are input/output arguments: existing values will be preserved, new values will be appended.
- Parameters
-
vertices | Filled with position/texture/normal values from the OBJ file, with one exception: the third texture coordinate of every element is set to (float)tex . |
indices | Indices into vertices , adjusted as necessary if it already contains data. |
The documentation for this class was generated from the following files: