GLEngine documentation

GLEngine documentation

  • Code manual
  • User manual

›Entity component system

Architecture

  • Architecture
  • Renderer

    • Shaders

ECS

    Entity component system

    • Entity-component system
    • Component

Component

Component is base building block of entity in ECS system. GLEngine right now supports four types of components.

  • Graphical
  • Light
  • Camera
  • DebugGUI

Graphical

Graphical components are renderable parts of entity. During render phase they are being collected from Entity::C_EntityManager::GetEntities based on their AABB box in the world and position of camera.

Light

Light components are representing lights.

Camera

Camera components represents cameras. Their base class is Renderer::I_CameraComponent. Engine supports multiple switchable cameras through GLRenderer::C_CameraManager. Note it is feature in progress.

DebugGUI

This type of component is created automagically for each entity and serves as base for debug draw you can see on the picture.

Debug GUI

← Entity-component system
More
GitHubStar
Follow @DominikRohacek
Facebook Open Source
Copyright © 2020 Dominik Rohacek