我的第一个D3D程序绘制一个运动的3D 三角形
作者: woodangel 时间: 2012-12-1 12:28
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.DirectX; //开发directx需要包含的两个命名空间
using Microsoft.DirectX.Direct3D;
namespace WindowsFormsApplication6
{
public partial class Form1 : Form
{
private Device device = null;
VertexBuffer vertexBuffer = null;
PresentParameters presentParameters = new PresentParameters();
bool pause = false;
Random rn = new Random();
public Form1()
{
InitializeComponent();
InitializeGraphics();