I have a class called D3DGraphics in a header file called D3DGraphics.h. I have included d3d9.h and my Graphics file works absolutely file.
However, recently I found a header file which was including D3DGraphics.h when it was not using it, so I removed the
#include "D3DGraphics.h"
When I did that, the D3DGraphics header / cpp file suddenly forgot all the DirectX definitions and I got loads of errors like IDirect3D9 and D3DCOLOR_XRGB is undefined!? I have used
#pragma once
in all my header files and I'm pretty sure there is no mutual inclusion so I'm stumped. Why would removing the #include of a file cause that file to stop working!?
Thanks in advance