3#include "ExtensionRegistry.h"
4#include "Serialization/EntityReader.h"
6#include "LoftedCrossSectionsComponent.h"
7#include "LoftedCrossSectionsSystem.h"
8#include "TrajectoryCrossSectionsComponent.h"
9#include "TrajectoryCrossSectionsSystem.h"
11#include "Foundation/Logging/Logger.h"
25 LoftedCrossSectionsComponent::registerType();
26 TrajectoryCrossSectionsComponent::registerType();
33 readEntityDefinition(R
"(
40 "TrajectoryCrossSectionsComponent",
41 "LoftedCrossSectionsComponent",
42 "TextureGeneratorComponent",
44 "MeshRenderComponent",
48 { "TextureGeneratorComponent": { "diffuseMap": "None" } },
49 { "MaterialComponent": { "diffuseColor": [ 0.5, 0.5, 0.5, 1 ] } },
51 "TrajectoryCrossSectionsComponent": {
52 "parameterization": "CoordLengthOverCircumference",
59 readEntityDefinition(R"(
61 "name": "TrajectoryCylinder",
66 "TrajectoryCrossSectionsComponent",
67 "LoftedCrossSectionsComponent",
68 "TextureGeneratorComponent",
74 { "TextureGeneratorComponent": { "diffuseMap": "None" } },
75 { "MaterialComponent": { "diffuseColor": [ 0.5, 0.5, 0.5, 1 ] } },
77 "TrajectoryCrossSectionsComponent": {
78 "parameterization": "CoordLengthOverCircumference",
85 readEntityDefinition(R"(
92 "TrajectoryCrossSectionsComponent",
93 "LoftedCrossSectionsComponent",
94 "TextureGeneratorComponent",
100 { "TextureGeneratorComponent": { "diffuseMap": "Dirt" } },
102 "TrajectoryCrossSectionsComponent": {
103 "parameterization": "CoordLengthOverCircumference",
119 } casingExtensionInstance;
A Context instance contains all the services, systems and runtime components needed to use Cogs.
class EntityStore * store
Entity store.
static void add(Extension *extension, StringView version)
Adds the given extension to the registry, ensuring the initialization methods are called at appropria...
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
bool initialize(Context *context) override
Initialize extension for the given context.
const char * getExtensionKey() const override
Get the extensions unique key, used to check for extension presence and retrieve extension specific d...
bool initializeStatic() override
Initialize extension statically.
Defines an extension to Cogs.Core and provides methods to override in order to initialize extension c...
@ Geometry
Run at the time geometry data is updated.
@ PostTransform
Run immediately after transformations are updated.