AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzBitmapPoly Class Reference

#include <CzBitmapPoly.h>

Inheritance diagram for CzBitmapPoly:
CzBitmapSprite CzSprite

List of all members.

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

CzGeometryGeometry
 Geometry used to display the sprite.

Constructor & Destructor Documentation

virtual CzBitmapPoly::~CzBitmapPoly ( ) [inline, virtual]

Member Function Documentation

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.

Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if the test passes, false if the test fails.

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.

Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if the test passes, false if the test fails.

Reimplemented from CzSprite.

void CzBitmapPoly::Init ( CzGeometry geometry)
bool CzBitmapPoly::isClipped ( ) [virtual]

Query if this sprite is clipped.

Returns:
true if clipped, false if not.

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.

Parameters:
[in]otherIf non-null, the other sprite.
Returns:
true if overlap, false if no overlap.

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

Parameters:
[in,out]otherIf non-null, the other sprite.
Returns:
true if overlap, false if no overlap.

Reimplemented from CzSprite.

void CzBitmapPoly::TransformVertices ( ) [protected, virtual]

Builds a list of transformed vertices.

Transform sprites vertices by current sprite transform.

Reimplemented from CzSprite.


Member Data Documentation

Geometry used to display the sprite.

Reimplemented from CzSprite.


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