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_PLATFORM_IMAGING_H_) 00015 #define _CCZ_PLATFORM_IMAGING_H_ 00016 00017 #include "IzPlatformImaging.h" 00018 #include "CzImage.h" 00019 #include "IwGx.h" 00020 00021 class CzPlatformImaging : public IzPlatformImaging 00022 { 00023 // Properties 00024 protected: 00025 public: 00026 // Properties end 00027 protected: 00028 CIwImage::Format toMarmImageFormat(CzImage::eFormat format) const; 00029 CzImage::eFormat toCzImageFormat(CIwImage::Format format) const; 00030 00031 public: 00032 // Init 00033 int Init(); 00034 void Release(); 00035 // Textures 00036 CzTexture CreateTexture(void* memory_file, int memory_file_size); 00037 CzTexture CreateTexture(void* pixels, int width, int height, int pitch, CzImage::eFormat format, bool modifiable); 00038 CzTexture CreateTexture(CzTexture source, CzImage::eFormat format); 00039 void ChangeTexture(CzTexture texture, void* pixels, CzImage::eFormat format); 00040 void UploadTexture(CzTexture texture); 00041 void DestroyTexture(CzTexture texture); 00042 void setTextureFiltering(CzTexture texture, bool enable); 00043 void getTextureInfo(CzTexture texture, CzTextureinfo& texture_info); 00044 void SaveTextureAsPng(CzTexture texture, const char* filename); 00045 void SaveTextureAsJpeg(CzTexture texture, const char* filename); 00046 00047 00048 }; 00049 00050 00051 #endif // _CCZ_PLATFORM_IMAGING_H_