Gamedev Framework (gf)  0.6.0
A C++11 framework for 2D games
Public Attributes | List of all members
gf::Region Struct Reference

A region of a window. More...

#include <gf/Region.h>

Public Attributes

int left
 Left coordinate of the region. More...
 
int bottom
 Bottom coordinate of the region. More...
 
int width
 Width of the region. More...
 
int height
 Height of the region. More...
 

Detailed Description

A region of a window.

A region is defined by its bottom-left point and its size. It is used to define viewports and scissor boxes (see gf::RenderTarget).

See also
gf::RectI, gf::RenderTarget

Member Data Documentation

◆ bottom

int gf::Region::bottom

Bottom coordinate of the region.

◆ height

int gf::Region::height

Height of the region.

◆ left

int gf::Region::left

Left coordinate of the region.

◆ width

int gf::Region::width

Width of the region.