DirectX9 IDirect3DDevice9::DrawPrimitive
来源:互联网 发布:试戴墨镜软件 编辑:程序博客网 时间:2024/06/04 19:19
IDirect3DDevice9::DrawPrimitive
This method is used to draw primitives that do not use index info.
HRESULT IDirect3DDevice9::DrawPrimitive(
D3DPRIMITIVETYPE PrimitiveType,
UINT StartVertex,
UINT PrimitiveCount
);
PrimitiveType—The type of primitive that we are drawing. For instance, we can draw points and lines in addition to triangles. Since we are using a triangle, useD3DPT_TRIANGLELISTfor this parameter.
StartVertex—Index to an element in the vertex streams that marks the starting point from which to begin reading vertices. This parameter gives us the flexibility to only draw certain portions of a vertex buffer.
PrimitiveCount—The number of primitives to draw
Example:
// draw four triangles.
_device->DrawPrimitive( D3DPT_TRIANGLELIST, 0, 4);
- DirectX9 IDirect3DDevice9::DrawPrimitive
- IDirect3DDevice9::DrawPrimitive
- DirectX9 IDirect3DDevice9::DrawIndexedPrimitive
- DirectX9函数:IDirect3DDevice9::Clear 方法
- DrawPrimitive
- DrawPrimitive()
- DrawPrimitive
- DrawPrimitive
- DrawPrimitive用法
- IDirect3DDevice9::SetTextureStageState
- IDirect3DDevice9::GetRenderTargetData
- IDirect3DDevice9::StretchRect
- IDirect3DDevice9::Clear
- IDirect3DDevice9::SetTextureStageState
- IDirect3DDevice9::SetClipPlane
- IDirect3DDevice9::Clear
- IDirect3DDevice9::CreateTexture
- IDirect3DDevice9::SetClipPlane
- 视频通话初步调研
- 软件项目管理的内容
- QStandardItemModel内存管理
- Selenium2(WebDriver)总结(常用类)
- Java注释
- DirectX9 IDirect3DDevice9::DrawPrimitive
- linux 远程连接问题
- 图像类型、MATLAB数据类型,以及类型之间的转换(三)
- AngularJs轻松入门(四)模块化
- const 修饰函数参数,返回值,函数体
- 那些年遇到的算法面试题
- 自定义View之大风车系列demo(一)
- linux同步ntpd服务器时间方式
- C++ 无法解析的外部符号