g4tools  5.4.0
Public Types | Public Member Functions | Public Attributes | List of all members
tools::sg::tess_prim Class Reference

Public Types

typedef size_t bufpos
 

Public Member Functions

 tess_prim ()
 
virtual ~tess_prim ()
 
 tess_prim (const tess_prim &a_from)
 
tess_primoperator= (const tess_prim &a_from)
 

Public Attributes

gl::mode_t m_mode
 
std::vector< float > m_coords
 
std::vector< float > m_norms
 
size_t m_size
 
bufpos m_pos_coords
 
bufpos m_pos_norms
 

Detailed Description

Definition at line 20 of file tessellate.

Member Typedef Documentation

◆ bufpos

Definition at line 69 of file tessellate.

Constructor & Destructor Documentation

◆ tess_prim() [1/2]

tools::sg::tess_prim::tess_prim ( )
inline

Definition at line 25 of file tessellate.

27  ,m_size(0)
28  ,m_pos_coords(0)
29  ,m_pos_norms(0)
30  {
31 #ifdef TOOLS_MEM
32  mem::increment(s_class().c_str());
33 #endif
34  }

◆ ~tess_prim()

virtual tools::sg::tess_prim::~tess_prim ( )
inlinevirtual

Definition at line 35 of file tessellate.

35  {
36 #ifdef TOOLS_MEM
37  mem::decrement(s_class().c_str());
38 #endif
39  }

◆ tess_prim() [2/2]

tools::sg::tess_prim::tess_prim ( const tess_prim a_from)
inline

Definition at line 41 of file tessellate.

42  :m_mode(a_from.m_mode)
43  ,m_coords(a_from.m_coords)
44  ,m_norms(a_from.m_norms)
45  ,m_size(a_from.m_size)
46  ,m_pos_coords(a_from.m_pos_coords)
47  ,m_pos_norms(a_from.m_pos_norms)
48  {
49 #ifdef TOOLS_MEM
50  mem::increment(s_class().c_str());
51 #endif
52  }

Member Function Documentation

◆ operator=()

tess_prim& tools::sg::tess_prim::operator= ( const tess_prim a_from)
inline

Definition at line 53 of file tessellate.

53  {
54  if(&a_from==this) return *this;
55  m_mode = a_from.m_mode;
56  m_coords = a_from.m_coords;
57  m_norms = a_from.m_norms;
58  m_size = a_from.m_size;
59  m_pos_coords = a_from.m_pos_coords;
60  m_pos_norms = a_from.m_pos_norms;
61  return *this;
62  }

Member Data Documentation

◆ m_coords

std::vector<float> tools::sg::tess_prim::m_coords

Definition at line 65 of file tessellate.

◆ m_mode

gl::mode_t tools::sg::tess_prim::m_mode

Definition at line 64 of file tessellate.

◆ m_norms

std::vector<float> tools::sg::tess_prim::m_norms

Definition at line 66 of file tessellate.

◆ m_pos_coords

bufpos tools::sg::tess_prim::m_pos_coords

Definition at line 70 of file tessellate.

◆ m_pos_norms

bufpos tools::sg::tess_prim::m_pos_norms

Definition at line 71 of file tessellate.

◆ m_size

size_t tools::sg::tess_prim::m_size

Definition at line 68 of file tessellate.


The documentation for this class was generated from the following file:
tools::gl::triangles
mode_t triangles()
Definition: glprims:20
tools::sg::tess_prim::m_size
size_t m_size
Definition: tessellate:68
tools::sg::tess_prim::m_pos_coords
bufpos m_pos_coords
Definition: tessellate:70
tools::sg::tess_prim::m_norms
std::vector< float > m_norms
Definition: tessellate:66
tools::sg::tess_prim::m_pos_norms
bufpos m_pos_norms
Definition: tessellate:71
tools::sg::tess_prim::m_mode
gl::mode_t m_mode
Definition: tessellate:64
tools::sg::tess_prim::m_coords
std::vector< float > m_coords
Definition: tessellate:65