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

One local-space mesh vertex: position, texture coordinate, RGBA8 color. More...

#include <MeshRenderer.hpp>

Public Member Functions

bool operator== (const MeshVertex2D &) const =default

Public Attributes

glm::vec2 position {0.0f, 0.0f}
glm::vec2 uv {0.0f, 0.0f}
u32 color = 0xFFFFFFFFu

Detailed Description

One local-space mesh vertex: position, texture coordinate, RGBA8 color.

Definition at line 35 of file MeshRenderer.hpp.

Member Function Documentation

◆ operator==()

bool esengine::ecs::MeshVertex2D::operator== ( const MeshVertex2D & ) const
default

Member Data Documentation

◆ color

u32 esengine::ecs::MeshVertex2D::color = 0xFFFFFFFFu

Definition at line 38 of file MeshRenderer.hpp.

◆ position

glm::vec2 esengine::ecs::MeshVertex2D::position {0.0f, 0.0f}

Definition at line 36 of file MeshRenderer.hpp.

◆ uv

glm::vec2 esengine::ecs::MeshVertex2D::uv {0.0f, 0.0f}

Definition at line 37 of file MeshRenderer.hpp.


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