![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
00001 // 00002 // 00003 // AppEasy SDK - Cross Platform Multi-purpose Game and App Engine 00004 // 00005 // Developed by Matthew Hopwood of Pocketeers Limited - www.pocketeers.co.uk 00006 // 00007 // For updates, tutorials and more details check out www.appeasymobile.com 00008 // 00009 // This code is provided free of charge and without any warranty whatsoever. You must ensure that this whole notice is present in all files and derivatives, so the reader knows its origin. 00010 // If you use this SDK in your product then please ensure that you credit AppEasy's usage appropriately. Please see www.appeasymobile.com for licensing details and support 00011 // 00012 // 00013 00014 #if !defined(_CCZ_BITMAP_POLY_H_) 00015 #define _CCZ_BITMAP_POLY_H_ 00016 00017 #include "CzBitmapSprite.h" 00018 #include "CzGeometry.h" 00019 00020 // 00021 // 00022 // 00023 // CzBitmapPoly - A BitmapSprite9 is a bitmapped visual representation of an on screen game object that uses patch-9 rendering 00024 // 00025 // 00026 // 00027 class CzBitmapPoly : public CzBitmapSprite 00028 { 00029 public: 00030 // Properties 00031 protected: 00032 CzGeometry* Geometry; 00033 public: 00034 // Properties End 00035 00036 protected: 00037 void RebuildUVList(); 00038 void TransformVertices(); 00039 00040 00041 public: 00042 CzBitmapPoly() : CzBitmapSprite() { setSpriteType(ST_9Patch); } 00043 virtual ~CzBitmapPoly() {} 00044 00045 void Init(CzGeometry* geometry); 00046 00047 virtual bool isClipped(); 00048 bool HitTest(float x, float y); 00049 bool HitTestNoClip(float x, float y); 00050 00051 void Draw(); 00052 00053 bool SimpleTestOverlap(CzSprite* other); 00054 bool TestOverlap(CzSprite* other); 00055 00056 }; 00057 00058 00059 00060 00061 00062 #endif // _CCZ_BITMAP_POLY_H_