Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
Recti Struct Reference

Integer rectangle struct. More...

#include <engine_structs.h>

Public Member Functions

 Recti ()
 
 Recti (int x, int y, int width, int height)
 
bool is_zero () const
 
glm::ivec2 top_left () const
 
glm::ivec2 bottom_right () const
 

Public Attributes

int x
 
int y
 
int width
 
int height
 

Detailed Description

Integer rectangle struct.

Version
0.0.1

Constructor & Destructor Documentation

◆ Recti() [1/2]

Recti::Recti ( )
inline

◆ Recti() [2/2]

Recti::Recti ( int  x,
int  y,
int  width,
int  height 
)
inline

Member Function Documentation

◆ bottom_right()

glm::ivec2 Recti::bottom_right ( ) const

◆ is_zero()

bool Recti::is_zero ( ) const

◆ top_left()

glm::ivec2 Recti::top_left ( ) const

Member Data Documentation

◆ height

int Recti::height

◆ width

int Recti::width

◆ x

int Recti::x

◆ y

int Recti::y

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