摘要: int theta, phi; float radius=330.0f; int dtheta = 15; int dphi = 15; NumVertices = (int) ((360/dtheta) * (90/dphi) * 4); if(FAILED(m_pDevice->CreateVertexBuffer( NumVertices *sizeof(SkyBoxVertex), D3DUSAGE_WRITEONLY,SkyBoxVertex::FVF,D3DPOOL_MANAGED,&m_pSphereVB,NULL ))) return false; m_pSphe 阅读全文
posted @ 2011-06-10 13:17 Alen_Xu 阅读(174) 评论(0) 推荐(0)