سؤال

I'm currently trying to convert this code to C# XNA, however I'm having an issue with converting the CreateCube method - the resources on creating vertex lists in XNA seem to be outdated, dead, or just don't work.

Can anyone give me some help? I just want to create a colored, untextured cube by manually setting the vertexes of each face, then adding the (Those) cubes, or portions of cubes, to a VertexList to render.

هل كانت مفيدة؟

المحلول

Check out this article on how to Construct, Draw and Texture a cube. You can leave out the Texturing part as you don't require that, but the article is a good start and follows a similar approach to your article.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top