JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Rect Struct Reference

Simple struct for a rectangle, can be use with jngl::contains. More...

#include <jngl/Rect.hpp>

Public Member Functions

double getX () const
 
double getY () const
 
double getWidth () const
 
double getHeight () const
 
void drawBoundingBox (Mat3 modelview) const
 Draws a red box around the rectangle.
 

Public Attributes

Vec2 pos
 
Vec2 size
 

Detailed Description

Simple struct for a rectangle, can be use with jngl::contains.

Definition at line 13 of file Rect.hpp.

Collaboration diagram for Rect:
[legend]

Member Data Documentation

◆ pos

Vec2 pos

Definition at line 22 of file Rect.hpp.

◆ size

Vec2 size

Definition at line 23 of file Rect.hpp.


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