Cogs.Core
MeshGeneratorComponent.h
1#pragma once
2
3#include "Generators/ShapeType.h"
4
5#include "Foundation/ComponentModel/Component.h"
6
7namespace Cogs
8{
9 namespace Core
10 {
16 {
18 static void registerType();
19
22
24 int samples = 24;
25
27 glm::vec3 size = glm::vec3(1, 1, 1);
28
30 float arcStart = 0.0f;
31
33 float arcEnd = 0.0f;
34 };
35 }
36}
37
38template<> inline
39Cogs::StringView getName<Cogs::Core::MeshGeneratorComponent>()
40{
41 return "MeshGeneratorComponent";
42}
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
ShapeType
Shape types generated by mesh generator.
Definition: ShapeType.h:19
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
Generates mesh data and assigns the generated mesh to a MeshComponent on the same entity.
ShapeType shape
Shape of the mesh to generate.
int samples
Sample complexity of the mesh.
static void registerType()
Register the type in the type system.