There's no "problem" with that method. I was just hoping that my code for loading one mesh wouldn't be that different from the code to load in two. I suppose I will grab my book to learn about...
Type: Posts; User: infernosnow
There's no "problem" with that method. I was just hoping that my code for loading one mesh wouldn't be that different from the code to load in two. I suppose I will grab my book to learn about...
Well, this was my logic... I learned how to load in one .x from the DirectX documentation tutorial. It's really simple and straight forward. The code for all that is here:...
Why do I get the feeling all that code I've written is all for nothing and that my DirectX book is completely useless?
I tried your way, but it didn't work.
The first time I use m_pMeshTextures, I have [g] on the end
m_pMeshTextures[g] = new LPDIRECT3DTEXTURE9[m_dwNumMaterials[g]];
Then a few lines down, I...
Full code in a wordpad file here:
http://www.kryolinth.com/gamecodeV1_5%20loadDestroyMesh.rtf
Real simple. InitGeometry(); is called when you press the C key. "C" for "Create stuff" you can think...
Well, I finally completed the code. It works now. I'm officially exhuasted.
insulting, yes, however I'm more of a learn-as-I-go person. I've taken a C++ course in college, so I know the basics. I just have a hard time putting some of them to use. I'm slow at programming. I...
actually, it would be ["pD3DXMtrlBuffer" + g] not pD3DXMtrlBuffer[g] in Actionscript. Tried it in C++, but it didn't like it. Oh well.
Well, while I was waiting for your reply, I decided to venture off and try a different method. This one is actually cleaner I think. It doesn't pass anything, save an int which simply tells it how...
This error is talking about the LoadMeshFromX thing in the definition of InitGeometry function
error C2664: 'D3DXLoadMeshFromXA' : cannot convert parameter 1 from 'std::string' to 'LPCSTR'
This...
And how might I do that good sir?
ahh yes, and using using namespace std did solve a few string problems. Thanks.
I've fooled around with the code a bit. Hope this helps. I need to pass arguments to the function, but I'm doing that wrong somehow. The variables used in the function dealing with arguments are...
This is not the entire code. I do in fact have string declared.
It's really simple actually. You don't need to understand what this code does. I just need help figuring out how to write the function declaration, call, and definition in order to pass arguments.
...