Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::render::PixelRect Struct Reference

Rectangle of a texture, in whole pixels from its top-left corner. More...

#include <aegis2d/render/sprite_sheet.hpp>

Public Attributes

int x = 0
 Left edge.
 
int y = 0
 Top edge.
 
int width = 0
 Width, above 0.
 
int height = 0
 Height, above 0.
 

Friends

constexpr bool operator== (const PixelRect &, const PixelRect &) noexcept=default
 Compares the rectangles.
 

Detailed Description

Rectangle of a texture, in whole pixels from its top-left corner.

Friends And Related Symbol Documentation

◆ operator==

constexpr bool operator== ( const PixelRect &  ,
const PixelRect &   
)
friend

Compares the rectangles.

Member Data Documentation

◆ height

int aegis2d::render::PixelRect::height = 0

Height, above 0.

◆ width

int aegis2d::render::PixelRect::width = 0

Width, above 0.

◆ x

int aegis2d::render::PixelRect::x = 0

Left edge.

◆ y

int aegis2d::render::PixelRect::y = 0

Top edge.


The documentation for this struct was generated from the following file: