Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::ContentRect Struct Reference

The rectangle of this entity's content, in its own units. More...

#include <ContentRect.hpp>

Public Attributes

glm::vec2 size {100.0f, 100.0f}
 Width and height in local units, before the transform's scale.
glm::vec2 pivot {0.5f, 0.5f}
 The point of the rectangle the transform sits on, as a fraction of its size.

Detailed Description

The rectangle of this entity's content, in its own units.

Definition at line 34 of file ContentRect.hpp.

Member Data Documentation

◆ pivot

glm::vec2 esengine::ecs::ContentRect::pivot {0.5f, 0.5f}

The point of the rectangle the transform sits on, as a fraction of its size.

Definition at line 41 of file ContentRect.hpp.

Referenced by EMSCRIPTEN_BINDINGS().

◆ size

glm::vec2 esengine::ecs::ContentRect::size {100.0f, 100.0f}

Width and height in local units, before the transform's scale.

Definition at line 37 of file ContentRect.hpp.

Referenced by EMSCRIPTEN_BINDINGS().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/ecs/components/ContentRect.hpp