#include <revolution/gd.h>
void GDSetLPSize(
u8 lineWidth, u8 pointSize,
GXTexOffset lineOffset, GXTexOffset pointOffset,
GXBool lineHalfAspect );
lineWidth |
Specifies the width of the line in 1/6 pixels. Maximum width is 42.5 pixels. |
|---|---|
pointSize |
Specifies the width and height of a point in 1/6 pixels. |
ineOffset |
Specifies the offset from the vertex texture coordinates to the opposite angle of the line. |
pointOffset |
Specifies the offset from the vertex texture coordinates to the opposite angle of the point. |
lineHalfAspect |
Sets GX_TRUE if the aspect ratio (height/width) of the line to render will be cut in half. |
None.
This function sets various parameters for rendering lines and points. This function sets the lineWidth and pointSize. Furthermore, the texture offset value for either primitive type are set. The texture offset is the value added to the texture coordinate of the opposite angle of a point or line. Texture offsets must be enabled by the associated coordinates (see GDSetTexCoordScaleAndTOEs function).
In addition, with this function, you can also set the aspect ratio during line rendering. If lineHalfAspect is GX_TRUE, then the aspect ratio becomes half the height for line rendering.
Note that the texture offset values are added after the texture coordinates are generated (see the GXSetTexCoordGen function).
GXSetLineWidth, GXSetPointSize, GXSetFieldMode
2006/03/01 Initial version.
CONFIDENTIAL