docs: fix point sprite documentation

This commit is contained in:
Roland Scheidegger
2010-02-03 17:39:47 +01:00
parent 4a4daa75a8
commit c2b85e335d

View File

@@ -82,17 +82,18 @@ point_size_per_vertex
Whether vertices have a point size element. Whether vertices have a point size element.
point_size point_size
The size of points, if not specified per-vertex. The size of points, if not specified per-vertex.
point_sprite sprite_coord_enable
Whether points are drawn as sprites (textured quads). This is mutually Specifies if a coord has its texture coordinates replaced or not. This
exclusive with point_smooth. Note that sprite_coord_mode set to is a packed bitfield containing the enable for all coords - if all are 0
PIPE_SPRITE_COORD_NONE for all coords and point_sprite enabled is basically point sprites are effectively disabled. If any coord is non-zero,
equivalent to point_sprite disabled. point_smooth should be disabled.
If enabled, the four vertices of the resulting quad will be assigned
texture coordinates, according to sprite_coord_mode.
sprite_coord_mode sprite_coord_mode
Specifies how the value for each shader output should be computed when Specifies how the value for each shader output should be computed when
drawing sprites. If PIPE_SPRITE_COORD_NONE, don't change the vertex drawing sprites, for each coord which has sprite_coord_enable set.
shader output. Otherwise, the four vertices of the resulting quad will For PIPE_SPRITE_COORD_LOWER_LEFT, the lower left vertex will have
be assigned texture coordinates. For PIPE_SPRITE_COORD_LOWER_LEFT, the coordinate (0,0,0,1).
lower left vertex will have coordinate (0,0,0,1).
For PIPE_SPRITE_COORD_UPPER_LEFT, the upper-left vertex will have For PIPE_SPRITE_COORD_UPPER_LEFT, the upper-left vertex will have
coordinate (0,0,0,1). coordinate (0,0,0,1).
This state is needed by the 'draw' module because that's where each This state is needed by the 'draw' module because that's where each