Содержащиеся в
Найти другие документы
Ресурсы поддержки
| Загрузить это руководство в формате PDF
Antialiasing Test Descriptions
5
- This chapter describes the Antialiasing 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
· aa_line
-
| Test Types: | RGB, CM |
| Description: | Sets the line style to antialiased and filter width. Draws 3D lines in various angles. |
- Attributes Tested: XGL_CTX_LINE_AA_BLEND_EQ
-
-
XGL_CTX_LINE_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_multipolyline
Output: Antialiased lines drawn like the spokes of a bicycle wheel.
· aa_line_alt_patterned
-
| Test Types: | RGB, CM |
| Description: | Sets the line style to alt-patterned, antialiased and filter width. Draws 3D lines in various angles for six different line patterns. |
- Attributes Tested: XGL_CTX_LINE_STYLE
- Operators Tested: xgl_object_set
-
| Output:· aa_line_alt_patterned_interp | Antialiased alt-patterned lines drawn for six different patterns. Lines are drawn like the spokes of a bicycle wheel for each line pattern. |
| Test Types: | RGB, CM |
| Description: | Sets the line style to alt-patterned, line color interpolation, antialiased, and filter width. Draws 3D lines in various angles for six different line patterns. |
- Attributes Tested: XGL_3D_CTX_LINE_COLOR_INTERP
-
-
XGL_CTX_LINE_STYLE
XGL_CTX_LINE_AA_BLEND_EQ
XGL_CTX_LINE_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_multipolyline
Output: Antialiased alt-patterned color interpolated lines drawn
- for six different patterns. Lines are drawn like the spokes of a bicycle wheel for each line pattern.
· aa_line_blend_draw_mode
-
| Test Types: | RGB, CM |
| Description: | Sets HLHSR, line color, and surface color. Sets non-blending, draws a polygon and two antialiased lines, then draws two non-antialiased lines. Sets blending to blended and repeats drawing the polygon and lines. Sets blending to all and repeats drawing. |
- Attributes Tested: XGL_3D_CTX_HLHSR_MODE
-
-
XGL_3D_CTX_BLEND_DRAW_MODE
XGL_CTX_LINE_AA_BLEND_EQ
XGL_CTX_LINE_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_multipolyline
xgl_polygon
Output: A polygon and two non-antialiased lines are drawn on the
- top left corner, and two antialised lines on the top right corner. These are repeated on the bottom left corner. The bottom right corner is blank.
· aa_line_blend_eq
-
| Test Types: | RGB, CM |
| Description: | For-loop the three line antialiasing blending cases: arbitrary background, constant background, and add to background. Draws antialiased lines in various angles. Draws a polygon. Draws antialiased and non-antialiased lines across the polygon for each blending case. |
- Attributes Tested: XGL_CTX_LINE_COLOR
- Operators Tested: xgl_object_set
-
| Output:· aa_line_interp | Three sets of spokes of bicycle wheels drawn with antialiased lines in the top half of the canvas and three sets of polygons, antialiased and non-antialiased lines across them in the bottom half. |
| Test Types: | RGB, CM |
| Description: | Sets the vertex colors. Sets color interpolation and antialiasing blending, then draws lines in various angles. |
- Attributes Tested: XGL_3D_CTX_LINE_COLOR_INTERP
-
-
XGL_CTX_LINE_AA_BLEND_EQ
XGL_CTX_LINE_AA_FILTER_WIDTH
- Operators Tested: xgl_multipolyline
-
| Output:· aa_line_patterned | Antialiased color interpolated lines drawn like the spokes of a bicycle wheel; red at the center and blue at the rim. |
| Test Types: | RGB, CM |
| Description: | Sets the line style to patterned, antialiasing blending, and filter width. Draws 3D lines in various angles for six different line patterns. |
- Attributes Tested: XGL_CTX_LINE_COLOR
-
-
XGL_CTX_LINE_STYLE
XGL_CTX_LINE_AA_BLEND_EQ
XGL_CTX_LINE_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_multipolyline
Output: Antialiased patterned lines drawn for six different
- patterns. Lines are drawn like the spokes of a bicycle wheel for each line pattern.
· aa_line_patterned_interp
-
| Test Types: | RGB, CM |
| Description: | Sets the vertex colors. Sets color interpolation. Sets the line style to patterned, antialiasing blending, and filter width. Draws 3D lines in various angles for six different line patterns. |
- Attributes Tested: XGL_3D_CTX_LINE_COLOR_INTERP
-
-
XGL_CTX_LINE_STYLE
XGL_CTX_LINE_PATTERN
XGL_CTX_LINE_AA_BLEND_EQ,
XGL_CTX_LINE_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_multipolyline
Output: Antialiased patterned color interpolated lines drawn for
- six different patterns. Lines are drawn like the spokes of a bicycle wheel for each line pattern.
· aa_marker
-
| Test Types: | RGB, CM |
| Description: | Sets the antialiasing blending and filter width. Sets point colors. For loop three different marker scale factors, and eight markers to draw markers. |
- Attributes Tested: XGL_CTX_MARKER_AA_BLEND_EQ,
-
-
XGL_CTX_MARKER_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_multimarker
Output: Draws two sets (red and green) of eight antialised markers
in different scales.
· aa_mspg_edge
-
| Test Types: | RGB, CM |
| Description: | Sets surface transparency method, and blending equation. Sets blending mode to not blend. Draws opaque simple polygons and then draws transparent simple polygons. Sets blending mode to blend and draws opaque and transparent simple polygons. Repeats the above with edges on. |
- Attributes Tested: XGL_3D_CTX_SURF_TRANSP_METHOD
-
-
XGL_3D_CTX_SURF_TRANSP_BLEND_EQ,
XGL_3D_CTX_BLEND_DRAW_MODE
XGL_3D_CTX_SURF_FRONT_TRANSP
XGL_CTX_SURF_EDGE_FLAG
XGL_CTX_EDGE_COLOR
XGL_CTX_EDGE_AA_BLEND_EQ
XGL_CTX_EDGE_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_multi_simple_polygon
Output: Two solid blue squares in the top left portion of the
- canvas, two dark green blended squares in the top right, two solid blue squares in the bottom left, and two hollow and two dark green blended squares with edges on in the bottom right are drawn. Note that no edges are drawn for the squares in the bottom left.
· aa_mspg_hollow
-
| Test Types: | RGB, CM |
| Description: | Sets HLHSR. Sets surface fill to hollow. Sets surface antialiasing blending equation and filter width. Sets blending mode to none and draws two sets of multi-simple polygons. Sets blending mode to blended and draws polygons. Sets blending mode to blend all and draws polygons. |
- Attributes Tested: XGL_CTX_SURF_FRONT_FILL_STYLE
-
-
XGL_CTX_SURF_AA_BLEND_EQ
XGL_CTX_SURF_AA_FILTER_WIDTH
XGL_3D_CTX_BLEND_DRAW_MODE
Operators Tested: xgl_object_set
xgl_multi_simple_polygon
Output: Two sets of blue and green antialiased hollow squares are
- drawn in the top left and bottom portions of the canvas. Nothing is drawn in the top right. The bottom right is blank.
· aa_stroketext
-
| Test Types: | RGB, CM |
| Description: | Sets the character height and character color. Sets the stroke text antialiasing blending equation and filter width. Draws stroke text. |
- Attributes Tested: XGL_CTX_STEXT_AA_BLEND_EQ
-
-
XGL_CTX_STEXT_AA_FILTER_WIDTH
Operators Tested: xgl_object_set
xgl_stroke_text_3d
Output: Antialiased stroke text
-
ABCDEFGHIJKLMNOPQRSTUVWXYZ\nabcdefghijklm nopqrstuvwxyz\n0123456789 are drawn on the canvas.
|
|