#include <nnsys/g3d/glbstate.h>
void
NNS_G3dGlbPolygonAttr(
int light,
GXPolygonMode polyMode,
GXCull cullMode,
int polygonID,
int alpha,
int misc
);
light | 4-bit mask designates which light to illuminate. |
polyMode | The polygon mode. |
cullMode | Designate which face to cull. |
polygonID |
Polygon ID. |
alpha | Designate the alpha value. |
misc | Bit field which designates other polygon attributes. |
None.
Configures the polygon-related attribute values in the global state kept in the G3D library.
light
is the 4-bit flag that specifies, in order from the lower bit of the lower 4 bits, whether Light 0, Light 1, Light 2, and Light 3 are ON/OFF. polyMode
is the argument that specifies the polygon mode in GXPolygonMode
type. cullMode
is the argument that specifies the polygon culling method in GXCull
type. polygonID
is the argument that specifies the polygon ID between 0 - 63. alpha
is the argument that specifies the α value for a polygon between 0 - 31. misc
is a bit field comprising the other attribute flags, and passes the logical sum of GXPolygonAttrMisc
type values.
By using the NNS_G3dMdlUseGlbLightEnableFlag
function, the NNS_G3dMdlUseGlbPolygonMode
function, the NNS_G3dMdlUseGlbCullMode
function, the NNS_G3dMdlUseGlbPolygonID
function, and the NNS_G3dMdlUseGlbAlpha
function, several of the above attributes can be applied to the model. The configuration of this API will apply all other attributes to the model.
2004/08/02 Initial version.
CONFIDENTIAL