วันเสาร์ที่ 26 ธันวาคม พ.ศ. 2552

Drawing 3D Wireframe model in XNA

in LoadContent(), set property RenderState.FillMode = FillMode.WireFrame;

protected override void LoadContent()
{
device = graphics.GraphicsDevice;
device.RenderState.FillMode = FillMode.WireFrame;
myModel = Content.Load("tank");
}

ไม่มีความคิดเห็น: