- 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -