Please, any help?
If it is of any use, the delcaration of D3D_device is
IDirect3DDevice9 *D3D_device = NULL;
and it is later set to be the deivce. Since it is already a pointer, isn't it basically the same as a LPDIRECT3DDEVICE? I tried this:
objTexture * test = new objTexture( "Blah.png", D3D_device );
and then
objTexture::objTexture( const std::string& fname, LPDIRECT3DDEVICE9 dev ) : Texture(NULL)
But it says
"error LNK2019: unresolved external symbol _D3DXCreateTextureFromFileA@12 referenced in function "public: __thiscall objTexture::objTexture(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,struct IDirect3DDevice9 *)" (??0objTexture@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAUIDirect3DDevice9@@@Z)"
a bunch of weird stuff I can't understand.
EDIT: If I comment out the actual function that LOADS the texture, which is
loaded = D3DXCreateTextureFromFile( dev, fname.c_str(), &Texture );
It compiles with no errors...
EDIT: Figured it out. I accidentially forgot to include one of the Direct3D libs.
[Edited by - Gumgo on January 29, 2007 3:15:03 PM]