2013-05-05 18:18:41 +02:00
|
|
|
/********************************************************
|
|
|
|
* IGraphicsDeviceService.h *
|
|
|
|
* *
|
|
|
|
* XFX IGraphicsDeviceService definition file *
|
2013-06-02 14:32:43 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
2013-05-05 18:18:41 +02:00
|
|
|
********************************************************/
|
|
|
|
#ifndef _XFX_GRAPHICS_IGRAPHICSDEVICESERVICE_
|
|
|
|
#define _XFX_GRAPHICS_IGRAPHICSDEVICESERVICE_
|
|
|
|
|
2014-04-20 13:19:50 +02:00
|
|
|
#include <System/Event.h>
|
2013-05-05 18:18:41 +02:00
|
|
|
#include <System/Types.h>
|
|
|
|
|
2014-04-20 13:19:50 +02:00
|
|
|
using namespace System;
|
|
|
|
|
2013-05-05 18:18:41 +02:00
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Graphics
|
|
|
|
{
|
|
|
|
class GraphicsDevice;
|
|
|
|
|
|
|
|
// Defines a mechanism for retrieving GraphicsDevice objects.
|
|
|
|
interface IGraphicsDeviceService : public Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
EventHandler DeviceCreated;
|
|
|
|
EventHandler DeviceDisposing;
|
|
|
|
EventHandler DeviceReset;
|
|
|
|
EventHandler DeviceResetting;
|
|
|
|
|
|
|
|
virtual ~IGraphicsDeviceService() {}
|
|
|
|
|
|
|
|
virtual GraphicsDevice* getGraphicsDevice() const =0;
|
|
|
|
|
2014-04-20 13:19:50 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_IGRAPHICSDEVICESERVICE_
|