35 template <
typename VertexType>
46 std::vector<VertexType>
const& inVertices,
47 std::vector<VertexType>& outVertices,
48 std::vector<int>& outIndices);
57 std::vector<VertexType>
const& inVertices,
58 std::vector<int>
const& inIndices,
59 std::vector<VertexType>& outVertices,
60 std::vector<int>& outIndices);
72 std::vector<VertexType>& outVertices);
79 template <
typename VertexType>
81 std::vector<VertexType>
const& inVertices,
82 std::vector<VertexType>& outVertices, std::vector<int>& outIndices)
89 outIndices.resize(inVertices.size());
94 template <
typename VertexType>
96 std::vector<VertexType>
const& inVertices,
97 std::vector<int>
const& inIndices, std::vector<VertexType>& outVertices,
98 std::vector<int>& outIndices)
104 outIndices.resize(inIndices.size());
105 for (
size_t i = 0; i < inIndices.size(); ++i)
111 template <
typename VertexType>
inline 117 template <
typename VertexType>
119 std::vector<VertexType>
const& inVertices,
120 std::vector<VertexType>& outVertices)
125 std::map<VertexType, int>
table;
129 auto const iter = table.find(inVertices[i]);
130 if (iter != table.end())
147 for (
auto const& element : table)
149 outVertices[element.second] = element.first;
UniqueVerticesTriangles(std::vector< VertexType > const &inVertices, std::vector< VertexType > &outVertices, std::vector< int > &outIndices)
GLenum GLenum GLsizei void * table
void ConstructUniqueVertices(std::vector< VertexType > const &inVertices, std::vector< VertexType > &outVertices)
std::vector< int > mInToOutMapping
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
int GetOutputIndexFor(int index) const