You.i Engine
YiAssetConfigurationDataSource.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_ASSET_CONFIGURATION_DATA_SOURCE_H_
3 #define _YI_ASSET_CONFIGURATION_DATA_SOURCE_H_
4 
5 #include "framework/YiScreen.h"
6 
20 {
21 public:
25  static void SetCustomInstance(CYIAssetConfigurationDataSource *pInstance);
26 
30  static const CYIScreen *GetScreen();
31 
35  static int16_t GetSurfaceWidth();
36 
40  static int16_t GetSurfaceHeight();
41 
43 
44  virtual const CYIScreen *GetCustomScreen() const = 0;
45  virtual int16_t GetCustomSurfaceWidth() const = 0;
46  virtual int16_t GetCustomSurfaceHeight() const = 0;
47 
48 private:
49  static CYIAssetConfigurationDataSource *m_pAssetConfigurationDataSource;
50 };
51 
56 #endif
Represents a data source for asset configuration.
Definition: YiAssetConfigurationDataSource.h:19
Definition: YiScreen.h:25
static const CYIScreen * GetScreen()
Gets the screen configuration from the current screen. If a data source instance has been assigned...
static void SetCustomInstance(CYIAssetConfigurationDataSource *pInstance)
Sets a custom asset configuration data source. If a custom data source instance has already been assi...
static int16_t GetSurfaceHeight()
Gets the surface height from the current surface. If a data source instance has been assigned...
static int16_t GetSurfaceWidth()
Gets the surface width from the current surface. If a data source instance has been assigned...
virtual int16_t GetCustomSurfaceWidth() const =0
virtual int16_t GetCustomSurfaceHeight() const =0
virtual const CYIScreen * GetCustomScreen() const =0