Vertex

Vertex data structures for 2D and 3D graphics.

Overview

Typical use cases:

  • Defining vertex attributes for rendering.

Header

<RaeptorCogs/Vertex.hpp>

Metadata

Author

Estorc

Version

v1.0

Copyright

Copyright (c) 2025 Estorc MIT License.

Structs

Structures

Struct

Description

RaeptorCogs::Vertex2D

Vertex structure for 2D graphics.

RaeptorCogs::Vertex3D

Vertex structure for 3D graphics.

struct Vertex2D

Vertex structure for 2D graphics.

Defines the layout of vertex data used in rendering.

Public Members

glm::vec2 position

Position of the vertex in 2D space.

Uses glm::vec2 to represent the x and y coordinates.

glm::vec2 uv

Texture coordinates (UV) of the vertex.

Uses glm::vec2 to represent the u and v texture mapping coordinates.

struct Vertex3D

Vertex structure for 3D graphics.

Defines the layout of a 3D vertex with position and texture coordinates.

Public Members

glm::vec3 position

Position of the vertex in 3D space.

Uses glm::vec3 to represent the x, y, and z coordinates.

glm::vec2 uv

Texture coordinates (UV) of the vertex.

Uses glm::vec2 to represent the u and v texture mapping coordinates.