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"
|
|
|
|
|
#include "GraphicsDevice.h"
|
|
|
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Queries and prepares resources.
|
|
|
|
|
/// </summary>
|
|
|
|
|
class GraphicsResource : public IDisposable
|
|
|
|
|
{
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
virtual void Dispose(bool disposing)=0;
|
|
|
|
|
|
|
|
|
|
public:
|
2010-12-27 01:01:25 +00:00
|
|
|
|
virtual GraphicsDevice* GraphicsDevice_();
|
2010-12-04 16:14:34 +00:00
|
|
|
|
bool IsDisposed();
|
|
|
|
|
char* Name();
|
|
|
|
|
void Name(char* value);
|
|
|
|
|
int Priority;
|
|
|
|
|
virtual ResourceType_t ResourceType_();
|
|
|
|
|
|
|
|
|
|
EventHandler Disposing;
|
|
|
|
|
|
|
|
|
|
virtual ~GraphicsResource();
|
|
|
|
|
GraphicsResource();
|
|
|
|
|
|
|
|
|
|
void Dispose();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-27 01:01:25 +00:00
|
|
|
|
#endif //_XFX_GRAPHICS_GRAPHICSRESOURCE_
|