CMSC23740 Common Code Library
Support code for CS23740 programming projects
Loading...
Searching...
No Matches
cs237::gobj::Obj Struct Reference

a geometric object More...

#include <gobjects.hpp>

Public Member Functions

 Obj ()
 
 Obj (Obj &)=delete
 
 Obj (Obj const &)=delete
 
 Obj (Obj &&)=delete
 
 Obj (std::string_view s)
 
 Obj (std::string_view s, uint32_t nv, uint32_t ni)
 
 ~Obj ()
 

Public Attributes

std::string name
 object name ("cube", etc.)
 
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 geometric object

Constructor & Destructor Documentation

◆ Obj() [1/6]

cs237::gobj::Obj::Obj ( )
inline

◆ Obj() [2/6]

cs237::gobj::Obj::Obj ( Obj & )
delete

◆ Obj() [3/6]

cs237::gobj::Obj::Obj ( Obj const & )
delete

◆ Obj() [4/6]

cs237::gobj::Obj::Obj ( Obj && )
delete

◆ Obj() [5/6]

cs237::gobj::Obj::Obj ( std::string_view s)
inline

◆ Obj() [6/6]

cs237::gobj::Obj::Obj ( std::string_view s,
uint32_t nv,
uint32_t ni )
inline

◆ ~Obj()

cs237::gobj::Obj::~Obj ( )
inline

Member Data Documentation

◆ indices

uint32_t* cs237::gobj::Obj::indices

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

◆ name

std::string cs237::gobj::Obj::name

object name ("cube", etc.)

◆ nIndices

uint32_t cs237::gobj::Obj::nIndices

the number of indices (3 * number of triangles)

◆ norms

glm::vec3* cs237::gobj::Obj::norms

array of nVerts normal vectors (or nullptr)

◆ nVerts

uint32_t cs237::gobj::Obj::nVerts

the number of vertices in this group.

◆ txtCoords

glm::vec2* cs237::gobj::Obj::txtCoords

array of nVerts texture coordinates (or nullptr)

◆ verts

glm::vec3* cs237::gobj::Obj::verts

array of nVerts vertex coordinates


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