#pragma once
#include "Device.h"
using namespace System;
using namespace System::ComponentModel;
namespace Sunlight
{
namespace DirectX
{
namespace Graphics
{
__gc public class Texture
{
protected:
bool m_bCreated;
Device *m_pDeviceObject;
IDirect3DTexture8 __nogc *m_pTexture;
void OnDeviceCreated(Object *sender, EventArgs *e);
void OnDeviceDestroyed(Object *sender, EventArgs *e);
public:
Texture();
~Texture();
__property Device *get_DeviceObject();
__property void set_DeviceObject(Device *);
String *Filename;
__property IDirect3DTexture8 __nogc *get_Direct3DTexture();
__property int get_Width();
__property int get_Height();
virtual void Create();
virtual void Destroy();
};
}
}
}