#ifndef _D3DXERR_H
#define _D3DXERR_H

/* Direct3D error code definitions */

#define FACILITY_D3DX  0x877
#define D3DXERR_NOMEMORY  ((HRESULT)0xC8770BB8L)
#define D3DXERR_NULLPOINTER  ((HRESULT)0xC8770BB9L)
#define D3DXERR_INVALIDD3DXDEVICEINDEX  ((HRESULT)0xC8770BBAL)
#define D3DXERR_NODIRECTDRAWAVAILABLE  ((HRESULT)0xC8770BBBL)
#define D3DXERR_NODIRECT3DAVAILABLE  ((HRESULT)0xC8770BBCL)
#define D3DXERR_NODIRECT3DDEVICEAVAILABLE  ((HRESULT)0xC8770BBDL)
#define D3DXERR_NOPRIMARYAVAILABLE  ((HRESULT)0xC8770BBEL)
#define D3DXERR_NOZBUFFERAVAILABLE  ((HRESULT)0xC8770BBFL)
#define D3DXERR_NOBACKBUFFERAVAILABLE  ((HRESULT)0xC8770BC0L)
#define D3DXERR_COULDNTUPDATECAPS  ((HRESULT)0xC8770BC1L)
#define D3DXERR_NOZBUFFER  ((HRESULT)0xC8770BC2L)
#define D3DXERR_INVALIDMODE  ((HRESULT)0xC8770BC3L)
#define D3DXERR_INVALIDPARAMETER  ((HRESULT)0xC8770BC4L)
#define D3DXERR_INITFAILED  ((HRESULT)0xC8770BC5L)
#define D3DXERR_STARTUPFAILED  ((HRESULT)0xC8770BC6L)
#define D3DXERR_D3DXNOTSTARTEDYET  ((HRESULT)0xC8770BC7L)
#define D3DXERR_NOTINITIALIZED  ((HRESULT)0xC8770BC8L)
#define D3DXERR_FAILEDDRAWTEXT  ((HRESULT)0xC8770BC9L)
#define D3DXERR_BADD3DXCONTEXT  ((HRESULT)0xC8770BCAL)
#define D3DXERR_CAPSNOTSUPPORTED  ((HRESULT)0xC8770BCBL)
#define D3DXERR_UNSUPPORTEDFILEFORMAT  ((HRESULT)0xC8770BCCL)
#define D3DXERR_IFLERROR  ((HRESULT)0xC8770BCDL)
#define D3DXERR_FAILEDGETCAPS  ((HRESULT)0xC8770BCEL)
#define D3DXERR_CANNOTRESIZEFULLSCREEN  ((HRESULT)0xC8770BCFL)
#define D3DXERR_CANNOTRESIZENONWINDOWED  ((HRESULT)0xC8770BD0L)
#define D3DXERR_FRONTBUFFERALREADYEXISTS  ((HRESULT)0xC8770BD1L)
#define D3DXERR_FULLSCREENPRIMARYEXISTS  ((HRESULT)0xC8770BD2L)
#define D3DXERR_GETDCFAILED  ((HRESULT)0xC8770BD3L)
#define D3DXERR_BITBLTFAILED  ((HRESULT)0xC8770BD4L)
#define D3DXERR_NOTEXTURE  ((HRESULT)0xC8770BD5L)
#define D3DXERR_MIPLEVELABSENT  ((HRESULT)0xC8770BD6L)
#define D3DXERR_SURFACENOTPALETTED  ((HRESULT)0xC8770BD7L)
#define D3DXERR_ENUMFORMATSFAILED  ((HRESULT)0xC8770BD8L)
#define D3DXERR_COLORDEPTHTOOLOW  ((HRESULT)0xC8770BD9L)
#define D3DXERR_INVALIDFILEFORMAT  ((HRESULT)0xC8770BDAL)
#define D3DXERR_NOMATCHFOUND  ((HRESULT)0xC8770BDBL)

#endif /* _D3DXERR_H */

