3#include "Components/Core/SpriteRenderComponent.h"
5#include "Resources/Resources.h"
6#include "Resources/MaterialOptions.h"
8#include <glm/matrix.hpp>
10#include <glm/vec4.hpp>
29 glm::vec4
color = glm::vec4(1, 1, 1, 1);
32 glm::vec2
size = glm::vec2(0, 0);
59template<>
inline Cogs::StringView getName<Cogs::Core::OverlayComponent>() {
return "OverlayComponent"; }
Base class for Component instances.
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.
Provides a weakly referenced view over the contents of a string.
PositionMode
Positioning mode.
@ Relative
Position given in normalized device coordinates, with [-1, -1] corresponding to the lower left of the...
BlendMode
Defines blending modes for rendering.
@ Blend
Render with regular alpha blending.
@ Relative
Size given in normalized device coordinates.
Contains all Cogs related functionality.
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.