3#include "Foundation/ComponentModel/Component.h"
15 enum class ShapePrimitiveType
23 TriangleListAdjacency = 6,
24 TriangleStripAdjacency = 7,
25 LineListAdjacency = 8,
26 LineStripAdjacency = 9,
28 ShapePrimitiveType_Size,
35 std::vector<glm::vec3> positions;
36 std::vector<glm::vec3> normals;
37 std::vector<glm::vec2> texCoords;
39 std::vector<int> indexes;
41 ShapePrimitiveType primitiveType = ShapePrimitiveType::Default;
43 static void registerType();
48template<>
inline Cogs::StringView getName<Cogs::Core::ShapePrimitiveType>() {
return "ShapePrimitiveType"; }
50template<>
inline Cogs::StringView getName<Cogs::Core::ShapeComponent>() {
return "ShapeComponent"; }
Base class for Component instances.
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.