CMSC23700 Common Code Library
Support code for CS23700 programming projects
Loading...
Searching...
No Matches
OBJ::Group Struct Reference

#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
 

Detailed Description

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.

Member Data Documentation

◆ indices

uint32_t* OBJ::Group::indices

array of nIndices element indices that can be used to render the group

◆ material

int OBJ::Group::material

index to material for group (-1 for no material)

◆ name

std::string OBJ::Group::name

name of this group

◆ nIndices

uint32_t OBJ::Group::nIndices

the number of indices (3 * number of triangles)

◆ norms

glm::vec3* OBJ::Group::norms

array of nVerts normal vectors (or nullptr)

◆ nVerts

uint32_t OBJ::Group::nVerts

the number of vertices in this group.

◆ txtCoords

glm::vec2* OBJ::Group::txtCoords

array of nVerts texture coordinates (or nullptr)

◆ verts

glm::vec3* OBJ::Group::verts

array of nVerts vertex coordinates


The documentation for this struct was generated from the following file: