2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* IGraphicsDeviceService.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX IGraphicsDeviceService definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_GRAPHICS_IGRAPHICSDEVICESERVICE_
|
|
|
|
|
#define _XFX_GRAPHICS_IGRAPHICSDEVICESERVICE_
|
|
|
|
|
|
|
|
|
|
#include <System/Types.h>
|
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
class GraphicsDevice;
|
|
|
|
|
|
|
|
|
|
// Defines a mechanism for retrieving GraphicsDevice objects.
|
2012-09-28 20:36:02 +00:00
|
|
|
|
interface IGraphicsDeviceService : public Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
EventHandler DeviceCreated;
|
|
|
|
|
EventHandler DeviceDisposing;
|
|
|
|
|
EventHandler DeviceReset;
|
|
|
|
|
EventHandler DeviceResetting;
|
|
|
|
|
|
2012-09-28 20:36:02 +00:00
|
|
|
|
virtual ~IGraphicsDeviceService() {}
|
|
|
|
|
|
2012-03-29 22:02:43 +00:00
|
|
|
|
virtual GraphicsDevice* getGraphicsDevice() const =0;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
|
|
|
|
|
//! TODO: return typecode
|
|
|
|
|
int GetType() const { }
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_IGRAPHICSDEVICESERVICE_
|