Cogs.Core
IndexConversion.h
1#pragma once
2
3#include "../Base.h"
4
5#include <glm/vec3.hpp>
6#include <vector>
7
8namespace Cogs::Core {
9 struct Mesh;
10
11 COGSCORE_DLL_API void tesselate(const glm::vec3* contours,
12 const size_t count,
13 const size_t stride,
14 std::vector<uint32_t>& triangleIndexes,
15 uint32_t base = 0);
16
17 COGSCORE_DLL_API std::vector<int32_t> tesselatePolygons(std::vector<int32_t>& inputIndexes,
18 Mesh* mesh);
19
20 COGSCORE_DLL_API void reindex(const std::vector<int32_t>& inputIndexes,
21 Mesh* mesh,
22 bool isLine);
23}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
bool isLine(PrimitiveType::EPrimitiveType primitiveType)
Check if the given primitive type represents lines.
Definition: Mesh.h:241