- Where Developers Learn, Share, & Build Careers
I tried to sample this code by Microsoft, which would allow you to draw an XNA GS 4.0 view of a custom Windows form Allows access to control:
.
The code works great when drawing a triangle, but when I try to attract a generated trap, it just pulls the X into control. I debug the code and it looks like when I arrive:
graphics.GraphicsDevice.DrawUserIndexedPrimitives & lt; VertexPositionColor & gt; (PrimitiveType.TrangleList, Vertices, 0, Vertices.Length, indicies, 0, indicies.Length / 3); This draw function never runs out. I have tested my code in the normal XNA game project and it works 100%.
Does anyone have a clue that is going on?
Thank you in advance.
It seems that the problem was the XNA access profile, just changed it to hiDef and it worked Done! :)
Comments
Post a Comment