R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
ecs::Rectangle Struct Reference

Rectangle structure defining a region in a texture. More...

#include <Sprite.hpp>

Collaboration diagram for ecs::Rectangle:
Collaboration graph

Public Attributes

int x
 X coordinate of the top-left corner.
 
int y
 Y coordinate of the top-left corner.
 
int width
 Width of the rectangle.
 
int height
 Height of the rectangle.
 

Detailed Description

Rectangle structure defining a region in a texture.

Definition at line 18 of file Sprite.hpp.

Member Data Documentation

◆ height

int ecs::Rectangle::height

Height of the rectangle.

Definition at line 22 of file Sprite.hpp.

◆ width

int ecs::Rectangle::width

Width of the rectangle.

Definition at line 21 of file Sprite.hpp.

◆ x

int ecs::Rectangle::x

X coordinate of the top-left corner.

Definition at line 19 of file Sprite.hpp.

◆ y

int ecs::Rectangle::y

Y coordinate of the top-left corner.

Definition at line 20 of file Sprite.hpp.


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