3#include "Components/Core/TextComponent.h"
5#include "Resources/Resources.h"
6#include "Resources/MaterialOptions.h"
54 glm::vec4
color = glm::vec4(1, 1, 1, 1);
59template<>
inline Cogs::StringView getName<Cogs::Core::BillboardComponent>() {
return "BillboardComponent"; }
Base class for Component instances.
Renders a square billboard oriented towards the screen, positioned by the transform given by the Tran...
glm::vec2 imageSize
Size of the billboard in pixels.
static void registerType()
Register the type in the type system.
VerticalAlignment verticalAlignment
Vertical alignment of the billboard.
BlendMode blendMode
Blend mode.
HorizontalAlignment horizontalAlignment
Horizontal alignment of the billboard.
bool flipY
Flip the billboard vertically.
TextureHandle image
Image to show.
glm::vec4 color
Color tint of the billboard.
bool flipX
Flip the billboard horizontally.
bool alwaysOnTop
Render billboard on top of normal geometry.
Provides a weakly referenced view over the contents of a string.
BlendMode
Defines blending modes for rendering.
@ Blend
Render with regular alpha blending.
HorizontalAlignment
Horizontal alignment of overlays.
VerticalAlignment
Defines vertical alignment modes for text.
@ Center
Center the text on the screen position.
Contains all Cogs related functionality.
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.