Cogs.Core
InstancedMeshBuilderComponent.cpp
1#include "InstancedMeshBuilderComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
7void Cogs::Core::InstancedMeshBuilderComponent::registerType()
8{
9 Field fields [] = {
16 };
17
18 TypeDatabase::createType<InstancedMeshBuilderComponent>()
19 .setBase<Component>()
20 .setFields(fields);
21}
float fixedSizeMaxDistance
Culling camera-distance when fixedSize is enabled. Disable by setting it to zero or negative value.
bool fixedSize
If set, instances are dynamically scaled s.t. they appear fixed sized on screen regardles of distance...
std::vector< glm::vec3 > scales
Per-instance scale factors, either empty or size matching the other array attributes.
std::vector< glm::quat > rotations
Per-instance rotations, either empty or size matching the other array attributes.
std::vector< glm::vec4 > colors
Per-instance colors, either empty or size matching the other array attributes.
std::vector< glm::vec3 > positions
Per-instance positions, either empty or size matching the other array attributes.
Field definition describing a single data member of a data structure.
Definition: Field.h:70
Contains reflection support.
Definition: Component.h:11
Represents an unique name.
Definition: Name.h:70