Sign in to follow this  

D3DXCreateBox

This topic is 4282 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Dave

Share this post


Link to post
Share on other sites
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

This topic is 4282 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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