Cogs.Core
MeshRenderComponent.h
1#pragma once
2
3#include "Components/Core/RenderComponent.h"
4
5#include "Rendering/Common.h"
6
7#include "Resources/Resources.h"
8
9namespace Cogs::Core
10{
18 {
19 public:
21 static void registerType();
22
25
27 uint32_t startIndex = 0;
28
30 uint32_t vertexCount = static_cast<uint32_t>(-1);
31
34 };
35}
36
37template<> inline Cogs::StringView getName<Cogs::Core::MeshRenderComponent>() { return "MeshRenderComponent"; }
Renders the contents of a MeshComponent using the given materials.
uint32_t startIndex
Start vertex index to render from.
uint32_t vertexCount
Number of vertexes to draw.
MaterialInstanceHandle material
Material used to render the mesh.
PrimitiveType primitiveType
Primitive type to use when drawing.
static void registerType()
Register the type in the type system.
Base component for all rendering content.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
PrimitiveType
Primitive types for interpreting vertex data sent to the graphics pipeline.
Definition: Common.h:112