When I try to compile a simple program that just initializing the Direct3D device i get an error:
--------------------Configuration: mywin - Win32 (WCE emulator) Debug--------------------
mywin.obj : error LNK2019: unresolved external symbol _Direct3DCreate8 referenced in function _WinMain
emulatorDbg/mywin.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
One of the basics of game programming is checking to see if a 3d object was clicked with the mouse, yet in immediate mode (the obvious choice for games), none of the code I have waded through checks for a mouse click on an object. The lone sdk sample dealing with this (pick) just checks for a primitive pick in a global vertex buffer. Do you just maintain a vertex buffer for every object and check for picks on every buffer when a mouse click happens? I'd really rather use an older version of DirectX (I can hear the grumbling from the size of the DX8 home user download already), but there's even less help for pick testing in the older docs. Better ideas or code, anyone?
C3DGraphic::CalcNormal() makes and calculates 4 different normals for every pair of XY-coords on the grid. I'm not very strong on math, but I'd like to know what's the purpose of calculating and averaging 4 different vectors and taking a SERIOUS performance hit on such a critical function?
Once again, complete newbie here so please don't flame me if you think my question is dumb. After all, I think all of us are here to learn? :)