![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
#include <CzBitmapPoly.h>
Public Member Functions | |
CzBitmapPoly () | |
virtual | ~CzBitmapPoly () |
void | Init (CzGeometry *geometry) |
virtual bool | isClipped () |
Query if this sprite is clipped. | |
bool | HitTest (float x, float y) |
Tests if an x.y point is within the sprites boundaries. | |
bool | HitTestNoClip (float x, float y) |
Tests if an x.y point is within the sprites boundaries. | |
void | Draw () |
bool | SimpleTestOverlap (CzSprite *other) |
A simple method to test for overlapping sprites. | |
bool | TestOverlap (CzSprite *other) |
Tests for the overlapping of two sprites. | |
Protected Member Functions | |
void | RebuildUVList () |
void | TransformVertices () |
Builds a list of transformed vertices. | |
Protected Attributes | |
CzGeometry * | Geometry |
Geometry used to display the sprite. |
CzBitmapPoly::CzBitmapPoly | ( | ) | [inline] |
virtual CzBitmapPoly::~CzBitmapPoly | ( | ) | [inline, virtual] |
void CzBitmapPoly::Draw | ( | ) | [virtual] |
Reimplemented from CzBitmapSprite.
bool CzBitmapPoly::HitTest | ( | float | x, |
float | y | ||
) | [virtual] |
Tests if an x.y point is within the sprites boundaries.
Note that this method will automatically fail if the x,y point is outside the sprite managers clipping window rect.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from CzSprite.
bool CzBitmapPoly::HitTestNoClip | ( | float | x, |
float | y | ||
) | [virtual] |
Tests if an x.y point is within the sprites boundaries.
This method does not take into accuont any cliping rects that are assigned to the sprites manager.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from CzSprite.
void CzBitmapPoly::Init | ( | CzGeometry * | geometry | ) |
bool CzBitmapPoly::isClipped | ( | ) | [virtual] |
Query if this sprite is clipped.
Reimplemented from CzSprite.
void CzBitmapPoly::RebuildUVList | ( | ) | [protected] |
Reimplemented from CzBitmapSprite.
bool CzBitmapPoly::SimpleTestOverlap | ( | CzSprite * | other | ) | [virtual] |
A simple method to test for overlapping sprites.
Note that this nethod does not take into account rotation.
[in] | other | If non-null, the other sprite. |
Reimplemented from CzSprite.
bool CzBitmapPoly::TestOverlap | ( | CzSprite * | other | ) | [virtual] |
Tests for the overlapping of two sprites.
This method uses separation of axis to test if two polygons overlap, only supports none degenerative convex shapes
[in,out] | other | If non-null, the other sprite. |
Reimplemented from CzSprite.
void CzBitmapPoly::TransformVertices | ( | ) | [protected, virtual] |
Builds a list of transformed vertices.
Transform sprites vertices by current sprite transform.
Reimplemented from CzSprite.
CzGeometry* CzBitmapPoly::Geometry [protected] |
Geometry used to display the sprite.
Reimplemented from CzSprite.