1#include "ShapeComponent.h"
7void Cogs::Core::ShapeComponent::registerType()
10 {
"Default", ShapePrimitiveType::Default },
11 {
"TriangleList", ShapePrimitiveType::TriangleList },
12 {
"TriangleStrip", ShapePrimitiveType::TriangleStrip },
13 {
"DefaultLine", ShapePrimitiveType::DefaultLine },
14 {
"LineList", ShapePrimitiveType::LineList },
15 {
"LineStrip", ShapePrimitiveType::LineStrip },
16 {
"TriangleListAdjacency", ShapePrimitiveType::TriangleListAdjacency },
17 {
"TriangleStripAdjacency", ShapePrimitiveType::TriangleStripAdjacency },
18 {
"LineListAdjacency", ShapePrimitiveType::LineListAdjacency },
19 {
"LineStripAdjacency", ShapePrimitiveType::LineStripAdjacency },
20 {
"PointList", ShapePrimitiveType::PointList },
23 TypeDatabase::createType<ShapePrimitiveType>()
24 .setEnumerators(enumerators);
27 Field(
Name(
"positions"), &ShapeComponent::positions),
28 Field(
Name(
"normals"), &ShapeComponent::normals),
29 Field(
Name(
"texCoords"), &ShapeComponent::texCoords),
30 Field(
Name(
"indexes"), &ShapeComponent::indexes),
31 Field(
Name(
"primitiveType"), &ShapeComponent::primitiveType),
34 TypeDatabase::createType<ShapeComponent>().setBase<Component>().setFields(fields);
Field definition describing a single data member of a data structure.
Contains reflection support.
Represents an unique name.