Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
Grid Struct Reference

Represents a grid component used for rendering a grid overlay. More...

#include <Grid.hpp>

Public Member Functions

 Grid (float s=1.f, float sz=100.f, glm::vec4 c={ 0.5f, 0.5f, 0.5f, 1.f })
 Construct a new Grid object.

Public Attributes

uint32_t colorID
uint32_t meshID
float spacing = 1.0f
float size = 100.0f
glm::vec4 color = { 0.5f, 0.5f, 0.5f, 1.0f }

Detailed Description

Represents a grid component used for rendering a grid overlay.

Constructor & Destructor Documentation

◆ Grid()

Grid::Grid ( float s = 1.f,
float sz = 100.f,
glm::vec4 c = { 0.5f,0.5f,0.5f,1.f } )
inline

Construct a new Grid object.

Parameters
sDistance between lines.
szRender area around the camera.
cColor of the grid lines.

Member Data Documentation

◆ color

glm::vec4 Grid::color = { 0.5f, 0.5f, 0.5f, 1.0f }

◆ colorID

uint32_t Grid::colorID

◆ meshID

uint32_t Grid::meshID

◆ size

float Grid::size = 100.0f

◆ spacing

float Grid::spacing = 1.0f

The documentation for this struct was generated from the following file:
  • engine/include/ecs/components/Grid.hpp