D3d polygon filling mode

Source: Internet
Author: User

Ebook: proficient in directx.3d graphics and animationProgramDesign .wang des "p71

By default, direct3d draws the rendered polygon image.

Typedef Enum d3dfillmode {d3dfill_point = 1, d3dfill_wireframe = 2, d3dfill_solid = 3, d3dfill_force_dword = 0x7fffffff} d3dfillmode, * lpd3dfillmode;

D3dfill_point: Point Mode. dirct3d draws a pixel at each vertex of a polygon.
D3dfill_wireframe: line mode. direct3d draws a line on each side of a polygon.
D3dfill_solid: Default fill mode of direct3d. direct3d fills the polygon.

ExampleCode:

// G_pd3ddevice is a valid direct3d device pointer g_pd3ddevice-> setrenderstate (d3drs_fillmode, d3dfill_wireframe );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.