![]() |
CMSC23700 Common Code Library
Support code for CS23700 programming projects
|
#include <obj.hpp>
Public Attributes | |
| std::string | name |
| name of this group | |
| int | material |
| index to material for group (-1 for no material) | |
| uint32_t | nVerts |
| the number of vertices in this group. | |
| uint32_t | nIndices |
| the number of indices (3 * number of triangles) | |
| glm::vec3 * | verts |
| array of nVerts vertex coordinates | |
| glm::vec3 * | norms |
| array of nVerts normal vectors (or nullptr) | |
| glm::vec2 * | txtCoords |
| array of nVerts texture coordinates (or nullptr) | |
| uint32_t * | indices |
A Group is a connected mesh that has a single material. It is represented by per-vertex data (position, normal, and texture coordinate) and an index array that defines a list of triangles.
| uint32_t* OBJ::Group::indices |
array of nIndices element indices that can be used to render the group
| int OBJ::Group::material |
index to material for group (-1 for no material)
| std::string OBJ::Group::name |
name of this group
| uint32_t OBJ::Group::nIndices |
the number of indices (3 * number of triangles)
| glm::vec3* OBJ::Group::norms |
array of nVerts normal vectors (or nullptr)
| uint32_t OBJ::Group::nVerts |
the number of vertices in this group.
| glm::vec2* OBJ::Group::txtCoords |
array of nVerts texture coordinates (or nullptr)
| glm::vec3* OBJ::Group::verts |
array of nVerts vertex coordinates