Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Public Attributes
mrpt::opengl::CSetOfTexturedTriangles::TVertex Struct Reference

Detailed Description

Triangle vertex.

This structure encapsulates the vertex coordinates and the image pixels.

Definition at line 31 of file CSetOfTexturedTriangles.h.

#include <mrpt/opengl/CSetOfTexturedTriangles.h>

Public Member Functions

 TVertex ()
 Default constructor. More...
 
 TVertex (float x, float y, float z, uint32_t u, uint32_t v)
 
void writeToStream (mrpt::serialization::CArchive &out) const
 
void readFromStream (mrpt::serialization::CArchive &in)
 

Public Attributes

float m_x
 3D vertex coordinates. More...
 
float m_y
 
float m_z
 
uint32_t m_u
 2D texture coordinates. More...
 
uint32_t m_v
 

Constructor & Destructor Documentation

◆ TVertex() [1/2]

CSetOfTexturedTriangles::TVertex::TVertex ( )

Default constructor.

Definition at line 185 of file CSetOfTexturedTriangles.cpp.

◆ TVertex() [2/2]

CSetOfTexturedTriangles::TVertex::TVertex ( float  x,
float  y,
float  z,
uint32_t  u,
uint32_t  v 
)

Definition at line 190 of file CSetOfTexturedTriangles.cpp.

Member Function Documentation

◆ readFromStream()

void CSetOfTexturedTriangles::TVertex::readFromStream ( mrpt::serialization::CArchive in)

Definition at line 201 of file CSetOfTexturedTriangles.cpp.

◆ writeToStream()

void CSetOfTexturedTriangles::TVertex::writeToStream ( mrpt::serialization::CArchive out) const

Definition at line 196 of file CSetOfTexturedTriangles.cpp.

Member Data Documentation

◆ m_u

uint32_t mrpt::opengl::CSetOfTexturedTriangles::TVertex::m_u

2D texture coordinates.

Notice that the texture coordinates are 2D pixels!!!

Definition at line 40 of file CSetOfTexturedTriangles.h.

◆ m_v

uint32_t mrpt::opengl::CSetOfTexturedTriangles::TVertex::m_v

Definition at line 40 of file CSetOfTexturedTriangles.h.

◆ m_x

float mrpt::opengl::CSetOfTexturedTriangles::TVertex::m_x

3D vertex coordinates.

Definition at line 37 of file CSetOfTexturedTriangles.h.

◆ m_y

float mrpt::opengl::CSetOfTexturedTriangles::TVertex::m_y

Definition at line 37 of file CSetOfTexturedTriangles.h.

◆ m_z

float mrpt::opengl::CSetOfTexturedTriangles::TVertex::m_z

Definition at line 37 of file CSetOfTexturedTriangles.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019