Cogs.Core
TextureGeneratorComponent.h
1#pragma once
2
3#include "Generators/ImageType.h"
4#include "Resources/Resources.h"
5
6#include "Foundation/ComponentModel/Component.h"
7
8namespace Cogs
9{
10 namespace Core
11 {
17 {
19 static void registerType();
20
22 ImageType diffuseMap = ImageType::None;
23
26 };
27 }
28}
29
30template<> inline
31Cogs::StringView getName<Cogs::Core::TextureGeneratorComponent>()
32{
33 return "TextureGeneratorComponent";
34}
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.
Generates texture data and assigns the texture to either a MaterialComponent on the entity or the set...
ImageType diffuseMap
Type of image to create and set as diffuse map.
MaterialInstanceHandle material
Target material to apply image to.
static void registerType()
Register the type in the type system.