Class GridModelComponent

Inheritance Relationships

Base Type

Class Documentation

class GridModelComponent : public ModelComponent

Renders a grid uptil the view distance.

Public Functions

GridModelComponent(Entity &owner, const JSON::json &data)
~GridModelComponent()
void render(float viewDistance)
bool setupData()

Perform setting up internal data needed from other components after they have been added to the owning entity.

JSON::json getJSON() const

Get JSON representation of the component data needed to re-construct component from memory.

void draw()

Expose the component data with ImGui.