|
hx3d
1
2D/3D Simple Game Framework
|
Defines a rectangle in a texture. More...
#include <texture_region.hpp>
Public Member Functions | |
| TextureRegion (Ptr< Texture > texture, float minX, float maxX, float minY, float maxY) | |
| Create a texture region from a texture and rectangle coordinates. More... | |
| TextureRegion () | |
| Create an empty texture region. | |
| const Ptr< Texture > & | getTexture () |
| Get the texture. More... | |
| float | getMinX () |
| Get the left coordinate. More... | |
| float | getMaxX () |
| Get the right coordinate. More... | |
| float | getMinY () |
| Get the bottom coordinate. More... | |
| float | getMaxY () |
| Get the top coordinate. More... | |
Defines a rectangle in a texture.
Definition at line 38 of file texture_region.hpp.
| hx3d::graphics::TextureRegion::TextureRegion | ( | Ptr< Texture > | texture, |
| float | minX, | ||
| float | maxX, | ||
| float | minY, | ||
| float | maxY | ||
| ) |
Create a texture region from a texture and rectangle coordinates.
| texture | Texture (Ptr) |
| minX | Left coordinate |
| maxX | Width |
| minY | Top coordinate |
| maxY | Height |
Definition at line 30 of file texture_region.cpp.
| float hx3d::graphics::TextureRegion::getMaxX | ( | ) |
| float hx3d::graphics::TextureRegion::getMaxY | ( | ) |
| float hx3d::graphics::TextureRegion::getMinX | ( | ) |
| float hx3d::graphics::TextureRegion::getMinY | ( | ) |
1.8.11