NNS_G3dMdlSetMdlXXXXXAll

C Specification

#include <nnsys/g3d/model.h>
void NNS_G3dMdlSetMdlDiffAll(NNSG3dResMdl* pMdl, GXRgb col);
void NNS_G3dMdlSetMdlAmbAll(NNSG3dResMdl* pMdl, GXRgb col);
void NNS_G3dMdlSetMdlSpecAll(NNSG3dResMdl* pMdl, GXRgb col);
void NNS_G3dMdlSetMdlEmiAll(NNSG3dResMdl* pMdl, GXRgb col);
void NNS_G3dMdlSetMdlLightEnableFlagAll(NNSG3dResMdl* pMdl, int light);
void NNS_G3dMdlSetMdlPolygonModeAll(NNSG3dResMdl* pMdl, GXPolygonMode polyMode);
void NNS_G3dMdlSetMdlCullModeAll(NNSG3dResMdl* pMdl, GXCull cullMode);
void NNS_G3dMdlSetMdlPolygonIDAll(NNSG3dResMdl* pMdl, int polygonID);
void NNS_G3dMdlSetMdlAlphaAll(NNSG3dResMdl* pMdl, int alpha);
void NNS_G3dMdlSetMdlFogEnableFlagAll(NNSG3dResMdl* pMdl, BOOL flag);
void NNS_G3dMdlSetMdlDepthTestCondAll(NNSG3dResMdl* pMdl, BOOL flag);
void NNS_G3dMdlSetMdl1DotAll(NNSG3dResMdl* pMdl, BOOL flag);
void NNS_G3dMdlSetMdlFarClipAll(NNSG3dResMdl* pMdl, BOOL flag);
void NNS_G3dMdlSetMdlXLDepthUpdateAll(NNSG3dResMdl* pMdl, BOOL flag);

Shared Arguments

pMdl Pointer to the model resource

Return Values

None.

Description

These functions makes sure the model specified by pMdl is rendered using the values set inside the model resource.

NNS_G3dMdlSetMdlDiffAll Sets the diffuse color tocol for all material sets inside the model resource.
NNS_G3dMdlSetMdlAmbAll Sets the ambient color to colfor all materials inside the model resource.
NNS_G3dMdlSetMdlSpecAll Sets the specular color to col for all materials inside the model resource.
NNS_G3dMdlSetMdlEmiAll Sets the emission color to col for all materials inside the model resource.
NNS_G3dMdlSetMdlLightEnableFlagAll Sets the light-enable flag to light for all materials inside the model resource.
NNS_G3dMdlSetMdlPolygonModeAll Sets the polygon mode to for all materials inside the model resource.
NNS_G3dMdlSetMdlCullModeAll Sets the cull mode to cullMode for all materials inside the model resource.
NNS_G3dMdlSetMdlPolygonIDAll Sets the polygon ID to polyID for all materials inside the model resource.
NNS_G3dMdlSetMdlAlphaAll Sets the alpha value to alpha for all materials inside the model resource.
NNS_G3dMdlSetMdlFogEnableFlagAll Sets the fog-enable flag to flag for all materials inside the model resource.
NNS_G3dMdlSetMdlDepthTestCondAll Sets the depth-test condition to flag for all materials inside the model resource.
NNS_G3dMdlSetMdl1DotAll Sets the specification for displaying 1-dot polygons to flag for all materials inside the model resource.
NNS_G3dMdlSetMdlFarClipAll Sets the specification for displaying polygons that intersect with the FAR clip plane to flag for all materials inside the model resource.
NNS_G3dMdlSetMdlXLDepthUpdateAll Sets the enable flag for updating the depth value of translucent polygons to flag for all materials inside the model resource.

See Also

NNS_G3dMdlSetMdlXXXXX, NNS_G3dMdlGetMdlXXXXX

Revision History

2004/10/12 Initial version.


CONFIDENTIAL