Cogs.Core
OverlayComponent.cpp
1#include "OverlayComponent.h"
2
3#include "Types.h"
4
5using namespace Cogs::Reflection;
6
8{
9 Field fields[] = {
12 Field(Name("positionMode"), &OverlayComponent::positionMode),
14 Field(Name("imageTransform"), &OverlayComponent::imageTransform),
17 };
18
19 TypeDatabase::createType<OverlayComponent>().setBase<Component>().setFields(fields);
20}
BlendMode blendMode
Blend mode of the overlay.
SizeMode sizeMode
Size mode of the overlay.
glm::vec2 size
Size of the overlay.
PositionMode positionMode
Positioning mode of the overlay.
static void registerType()
Register the type in the type system.
glm::mat4 imageTransform
Image transform matrix that can be used to manipulate the appearance of the overlay without performin...
TextureHandle image
Image to display.
glm::vec4 color
Color to tint the overlay image with.
Field definition describing a single data member of a data structure.
Definition: Field.h:68
Contains reflection support.
Definition: Component.h:11
Represents an unique name.
Definition: Name.h:70