0
votes
2answers
132 views

XNA Game arhitecture, sharing vertices between objects

I'm practicing primitives rendering in XNA and I want to create something like pipe or tunnel. I have base class called PipeSegment from which I inherit classes like RotatingSegment and NormalSegment ...
4
votes
1answer
573 views

Vertex data split into separate buffers or one one structure?

Is it better to have all vertex data in one structure like this: class MyVertex { int x,y,z; int u,v; int normalx, normaly, normalz; } Or to have each component ...