Sign in to follow this  


Recommended Posts

dave    2187
Hey bud,

First of all, that isn't the politest way to ask for help on something. People here won't just hand over code. I would suggest that you first read up on meshes since this is what that function returns. I also suggest that you read the MSDN help page on the function.

I'm sure you will find the implementation of this very simple.

Hope that helps.


Share this post

Link to post
Share on other sites
Lost    238
This might help. (link)

ID3DXMesh *boxmesh;
Now add code in InitDeviceObjects() to fill the mesh variable with box-shaped geometry:
D3DXCreateBox(m_pd3dDevice, 1, 1, 1, &boxmesh, NULL);
The three numeric arguments here are the length, width, and height of the box, by the way.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this