Cogs.Core
TerrainComponent.h
1#pragma once
2#include "Resources/Resources.h"
3#include "Resources/Material.h"
4#include "Resources/MaterialInstance.h"
5#include "Foundation/ComponentModel/Component.h"
6
7#include <string>
8
9namespace Cogs
10{
11 namespace Core
12 {
14 {
15 static void registerType();
16
19
22
25
28 };
29 }
30}
31
32template<> inline Cogs::StringView getName<Cogs::Core::TerrainComponent>() { return "TerrainComponent"; }
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
TextureHandle customTexture
Handle to custom texture, made available in custom shaders as "customTexture".
MaterialInstanceHandle depthMaterial
The terrain material instance used for the depth buffer.
SamplerState::AddressMode addressMode
Address mode for custom texture.
MaterialInstanceHandle material
The terrain material instance.
AddressMode
Addressing modes to use when sampling textures.
Definition: SamplerState.h:15
@ Wrap
Texture coordinates automatically wrap around to [0, 1] range.
Definition: SamplerState.h:19