Skip to content

Engine → Renderer → sprite_batch.h

sprite

Syntax

struct sprite

Variables

AccessNameTypeDefaultDescription
publiccolourmath::vec4math::vec4(1.0f)
publiclayeri160
publicorderi160
publicsizemath::vec2math::vec2(1.0f)
publicspacesprite_spacesprite_space::WORLD
publictexturegpu_texture_id{}
publicuvRectmath::vec4math::vec4(0.0f, 0.0f, 1.0f, 1.0f)
publicworldFromLocalmath::mat4math::mat4(1.0f)

Operator Overloads

Public

operator==

[[nodiscard]] bool operator==(
    const sprite &other) const noexcept = default;