NNS_G3dMdlSetMdlXXXXX

C Specification

#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 makes sure the model specified by pMdl is rendered using the values set inside the model resource.

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

See Also

NNS_G3dMdlGetMdlXXXXX, NNS_G3dMdlSetMdlXXXXXAll

Revision History

10/12/2004 Initial version.