NNS_G3dMdlSetMdlXXXXX

Syntax

#include <nnsys/g3d/model.h>
void NNS_G3dMdlSetMdlDiff(NNSG3dResMdl* pMdl, u32 matID, GXRgb col);
void NNS_G3dMdlSetMdlAmb(NNSG3dResMdl* pMdl, u32 matID, GXRgb col);
void NNS_G3dMdlSetMdlSpec(NNSG3dResMdl* pMdl, u32 matID, GXRgb col);
void NNS_G3dMdlSetMdlEmi(NNSG3dResMdl* pMdl, u32 matID, GXRgb col);
void NNS_G3dMdlSetMdlLightEnableFlag(NNSG3dResMdl* pMdl, u32 matID, int light);
void NNS_G3dMdlSetMdlPolygonMode(NNSG3dResMdl* pMdl, u32 matID, GXPolygonMode polyMode);
void NNS_G3dMdlSetMdlCullMode(NNSG3dResMdl* pMdl, u32 matID, GXCull cullMode);
void NNS_G3dMdlSetMdlPolygonID(NNSG3dResMdl* pMdl, u32 matID, int polygonID);
void NNS_G3dMdlSetMdlAlpha(NNSG3dResMdl* pMdl, u32 matID, int alpha);
void NNS_G3dMdlSetMdlFogEnableFlag(NNSG3dResMdl* pMdl, u32 matID, BOOL flag);
void NNS_G3dMdlSetMdlDepthTestCond(NNSG3dResMdl* pMdl, u32 matID, BOOL flag);
void NNS_G3dMdlSetMdl1Dot(NNSG3dResMdl* pMdl, u32 matID, BOOL flag);
void NNS_G3dMdlSetMdlFarClip(NNSG3dResMdl* pMdl, u32 matID, BOOL flag);
void NNS_G3dMdlSetMdlXLDepthUpdate(NNSG3dResMdl* pMdl, u32 matID, BOOL flag);

Shared Arguments

pMdl Pointer to the model resource
matID The material ID.

Return Values

None.

Description

These functions configure rendering of the model specified by pMdl to use the values set inside the model resource.

NNS_G3dMdlSetMdlDiff Sets the diffuse color of a material in the model resource to col.
NNS_G3dMdlSetMdlAmb Sets the ambient color of a material in the model resource to col.
NNS_G3dMdlSetMdlSpec Sets the specular color of a material in the model resource to col.
NNS_G3dMdlSetMdlEmi Sets the emission color of a material in the model resource to col.
NNS_G3dMdlSetMdlLightEnableFlag Sets the light-enable flag of a material in the model resource to light.
NNS_G3dMdlSetMdlPolygonMode Sets the polygon mode of a material in the model resource to polyMode.
NNS_G3dMdlSetMdlCullMode Sets the cull mode of a material in the model resource to cullMode.
NNS_G3dMdlSetMdlPolygonID Sets the polygon ID of a material in the model resource to polygonID.
NNS_G3dMdlSetMdlAlpha Sets the alpha value of a material in the model resource to alpha.
NNS_G3dMdlSetMdlFogEnableFlag Sets the fog-enable flag of a material in the model resource to flag.
NNS_G3dMdlSetMdlDepthTestCond Sets the depth-test condition of a material in the model resource to flag.
NNS_G3dMdlSetMdl1Dot Sets the 1-dot polygon display setting of a material in the model resource to flag.
NNS_G3dMdlSetMdlFarClip Sets the specification for displaying polygons that intersect with the FAR clip plane to flag for a material inside the model resource.
NNS_G3dMdlSetMdlXLDepthUpdate Sets the enable flag for updating the depth value of translucent polygons to flag for a material inside the model resource.

See Also

NNS_G3dMdlGetMdlXXXXX, NNS_G3dMdlSetMdlXXXXXAll

Revision History

2004/10/12 Initial version.


CONFIDENTIAL