2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* GraphicsResource.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX GraphicsResource definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _XFX_GRAPHICS_GRAPHICSRESOURCE_
|
|
|
|
|
#define _XFX_GRAPHICS_GRAPHICSRESOURCE_
|
|
|
|
|
|
|
|
|
|
#include <System/Types.h>
|
|
|
|
|
#include <System/Delegates.h>
|
|
|
|
|
#include "Enums.h"
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
class GraphicsDevice;
|
|
|
|
|
|
|
|
|
|
// Queries and prepares resources.
|
2011-05-02 17:33:24 +00:00
|
|
|
|
class GraphicsResource : public IDisposable, virtual Object
|
2010-12-04 16:14:34 +00:00
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
bool isDisposed;
|
|
|
|
|
char* name;
|
|
|
|
|
ResourceType_t resourceType;
|
|
|
|
|
|
|
|
|
|
protected:
|
2010-12-27 01:01:25 +00:00
|
|
|
|
GraphicsDevice* graphicsDevice;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
virtual void Dispose(bool disposing);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
public:
|
2011-11-07 01:29:50 +00:00
|
|
|
|
virtual GraphicsDevice* getGraphicsDevice();
|
2010-12-04 16:14:34 +00:00
|
|
|
|
bool IsDisposed();
|
2011-11-07 01:29:50 +00:00
|
|
|
|
char* Name;
|
|
|
|
|
Object Tag;
|
2010-12-04 16:14:34 +00:00
|
|
|
|
|
|
|
|
|
EventHandler Disposing;
|
|
|
|
|
|
|
|
|
|
virtual ~GraphicsResource();
|
|
|
|
|
GraphicsResource();
|
|
|
|
|
|
|
|
|
|
void Dispose();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#endif //_XFX_GRAPHICS_GRAPHICSRESOURCE_
|