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(_CIZ_PLATFORM_DISPLAY_H_) 00015 #define _CIZ_PLATFORM_DISPLAY_H_ 00016 00017 #include "CzPlatform.h" 00018 00019 #define PLATFORM_DISPLAY PLATFORM->getDisplay() 00020 00021 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 00022 // 00023 // IzPlatformDisplay 00024 // 00025 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 00026 class IzPlatformDisplay 00027 { 00028 // Properties 00029 protected: 00030 bool Initialised; 00031 public: 00032 bool isInitialised() const { return Initialised; } 00033 // Properties end 00034 public: 00035 // Init 00036 virtual int Init(bool use_gl) = 0; 00037 virtual void Release() = 0; 00038 00039 // Parameter query 00040 virtual int getCurrentWidth() = 0; 00041 virtual int getCurrentHeight() = 0; 00042 virtual int getOrientation() = 0; 00043 00044 // Display management 00045 virtual void setColour(int r, int g, int b, int a) = 0; 00046 virtual void Clear() = 0; 00047 virtual void Swap() = 0; 00048 00049 // Graphics mode query 00050 }; 00051 00052 00053 #endif // _CIZ_PLATFORM_DISPLAY_H_