【翻译】Managed DirectX(第九章)[33]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

        CreatePatchMesh(filename, tessLevel);

    }

    if (e.KeyChar == 't')

    {

        filename = @"..\..\tiger.x";

        tessLevel = 1.0f;

        CreatePatchMesh(filename, tessLevel);

    }

    if (e.KeyChar == 'w')

        device.RenderState.FillMode = FillMode.WireFrame;

    if (e.KeyChar == 's')

        device.RenderState.FillMode = FillMode.Solid;

}

现在可以用“w”和“s”键来切换线框或实心模式,使用“c”切换到立法体模型,使用“t”切换到老虎模型,使用“o”回到球体。

本文关键:【翻译】Managed DirectX(第九章)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top