Triangle List Test Descriptions
32
- This chapter describes the Triangle List test programs. The following is defined for each test program:
-
- Name of the test program
- Test types (See the section "Denizen Test Types" on page 2 for the different test types.)
- Description of the test program
- Attributes tested by the program
- Operators tested by the program
- Output from the test program
· tlist_flag1
-
| Test Types: | RGB, SM |
| Description: | Tests triangle list with vertex flags and facet color |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
- Operators Tested: xgl_object_get
-
-
xgl_object_set
xgl_triangle_list
Output: A red trapezoid, a red triangle in the top row, a red
- parrallelogram, and an attached yellow rhombus in the bottom row
· tlist_flag2
-
| Test Types: | RGB, SM |
| Description: | Tests triangle list with vertex flags. Draws an independent triangle, tstrip, tstar followed by a tstrip and facet color. |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
- Operators Tested: xgl_object_get
-
-
xgl_object_set
xgl_triangle_list
Output: A green independent triangle, a white tstar (looks like a
- parallelepiped), and two white strips in the bottom rows.
· tlist_flag3
-
| Test Types: | RGB, SM |
| Description: | Tests triangle list with vertex winding flags. |
- Attributes Tested: XGL_3D_CTX_SURF_GEOM_NORMAL
- Operators Tested: xgl_object_get
-
| Output:· tlist_indep | Two sets of triangles and polygon are drawn on the canvas. Some triangles are missing with the changing of the winding flag. |
| Test Types: | RGB, SM |
| Description: | Tests the drawing of independent triangle using the xgl_triangle_list() test, color interpolation and the use of facet colors. |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
- Operators Tested: xgl_object_get
- Output:.....Three rows of triangles, with three triangles per row. The first row has red triangles. The second row has interpolated vertex colors; the first triangle colors are R, W and G, the second triangle colors are Y, B, Magenta, and
- the third triangle colors are Cyan, Red and White. The third row has a white, red and green triangle tlist_indep.
· tlist_star
-
| Test Types: | RGB, SM |
| Description: | Tests triangle list with global flag XGL_TLIST_FLAG_TRI_STAR. The tests also exercises vertex colors and facet colors. |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
- Operators Tested: xgl_object_get
-
| Output:· tlist_star2 | A green hexagon, an interpolated hexagon with first vertex color as white and vertex colors (Cyan, Red, Green, Blue, Yellow, Magenta), and a multi-colored hexagon (G, B, Y, Magenta, W, R). A red parrallelogram and an attached yellow rhombus in the bottom row. |
| Test Types: | RGB, SM |
| Description: | Tests triangle list with global flag as TSTAR and facet colors and normals and back culling enabled. |
- Attributes Tested: XGL_3D_CTX_SURF_FRONT_ILLUMINATION
- Operators Tested: xgl_object_get
- Output:.....A white parrallelogram
|