luke![]() Member Posts: 311 From: I use your computer as my second Linux box Registered: 10-30-2005 |
Ok, I've been learning DirectX(3D) lately and I feel that I understand it well. So when I begin to actually *code* some DX apps... I find out just how well I've learned it lol. My problem is that I just can't figure out how to initialize D3d, I get all sorts of linker errors namely: TileEngine error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function _WinMain@16 I rather shamefacedly ask for some skeleton code that just inits DirectX(3D) and sets the background color to something.... Its probably that Im not including something or my linker settings (Im only including <d3d9.h> & <windows.h>, I've also seen the file <d3dx9.h> but thats an 'extension' lib as I understand it.) ------------------ |
|
Nomad Member Posts: 63 From: Registered: 06-29-2004 |
Try www.ultimategameprogramming.com, they usually have pretty good tutorials with sample code; I had been playing with a few DirectX tutorials a good while back (though now DirectX is too "fancy" for my Windows computer to run and I had to abandon the endeavor for OpenGL on my Mac). I know I have some good stuff at home (I'm at a dorm right now), let me know if you need more resources that UGP just doesn't cut. [This message has been edited by Nomad (edited July 21, 2006).] |
|
luke![]() Member Posts: 311 From: I use your computer as my second Linux box Registered: 10-30-2005 |
wow. Sure wish I had found this site sooner... I really love their approach of commented code! <thinks about how I should comment better too...> ------------------ |
|
dartsman![]() Member Posts: 484 From: Queensland, Australia Registered: 03-16-2006 |
well you just needed to include the directx library to your project...
if you want anymore help let me know, I could get you some skeleton code if you want, but there are plenty out there. ------------------ |
|
luke![]() Member Posts: 311 From: I use your computer as my second Linux box Registered: 10-30-2005 |
Well, I actually found my problem: wasn't linking the .lib files. Although I could've sworn that I'd done earlier... >_< ------------------ |