CG-Project2
Loading...
Searching...
No Matches
InstancedComponent Class Reference

This component is used to query the ECS for all primitives that are rendered using instanced rendering. More...

#include <Component.hpp>

Inheritance diagram for InstancedComponent:
Collaboration diagram for InstancedComponent:

Public Member Functions

 InstancedComponent (const ogl::RenderPrimitiveType &type)
 Instance a Component that will render the given primitive type.

Public Attributes

ogl::RenderPrimitiveType type
 primitive type of the mesh

Detailed Description

This component is used to query the ECS for all primitives that are rendered using instanced rendering.

Constructor & Destructor Documentation

◆ InstancedComponent()

InstancedComponent::InstancedComponent ( const ogl::RenderPrimitiveType & type)
inline

Instance a Component that will render the given primitive type.

Parameters
typeprimitive type to render
See also
ogl::RenderPrimitiveType

The documentation for this class was generated from the following file: