NNS_G3dMdlGetMdlXXXXX

Syntax

#include <nnsys/g3d/model.h>
GXRgb NNS_G3dMdlGetMdlDiff(NNSG3dResMdl* pMdl, u32 matID);
GXRgb NNS_G3dMdlGetMdlAmb(NNSG3dResMdl* pMdl, u32 matID);
GXRgb NNS_G3dMdlGetMdlSpec(NNSG3dResMdl* pMdl, u32 matID);
GXRgb NNS_G3dMdlGetMdlEmi(NNSG3dResMdl* pMdl, u32 matID);
int NNS_G3dMdlGetMdlLightEnableFlag(NNSG3dResMdl* pMdl, u32 matID);
GXPolygonMode NNS_G3dMdlGetMdlPolygonMode(NNSG3dResMdl* pMdl, u32 matID);
GXCull NNS_G3dMdlGetMdlCullMode(NNSG3dResMdl* pMdl, u32 matID);
int NNS_G3dMdlGetMdlPolygonID(NNSG3dResMdl* pMdl, u32 matID);
int NNS_G3dMdlGetMdlAlpha(NNSG3dResMdl* pMdl, u32 matID);
BOOL NNS_G3dMdlGetMdlFogEnableFlag(NNSG3dResMdl* pMdl, u32 matID);
BOOL NNS_G3dMdlGetMdlDepthTestCond(NNSG3dResMdl* pMdl, u32 matID);
BOOL NNS_G3dMdlGetMdl1Dot(NNSG3dResMdl* pMdl, u32 matID);
BOOL NNS_G3dMdlGetMdlFarClip(NNSG3dResMdl* pMdl, u32 matID);
BOOL NNS_G3dMdlGetMdlXLDepthUpdate(NNSG3dResMdl* pMdl, u32 matID);

Shared Arguments

pMdl Pointer to the model resource
matID The material ID.

Return Values

These functions return the values set in the model resource. The type differs depending on the function.

Description

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

NNS_G3dMdlGetMdlDiff Gets the diffuse color of a material in the model resource.
NNS_G3dMdlGetMdlAmb Gets the ambient color of a material in the model resource.
NNS_G3dMdlGetMdlSpec Gets the specular color of a material in the model resource.
NNS_G3dMdlGetMdlEmi Gets the emission color of a material in the model resource.
NNS_G3dMdlGetMdlLightEnableFlag Gets the light-enable flag of a material in the model resource.
NNS_G3dMdlGetMdlPolygonMode Gets the polygon mode of a material in the model resource.
NNS_G3dMdlGetMdlCullMode Gets the cull mode of a material in the model resource.
NNS_G3dMdlGetMdlPolygonID Gets the polygon ID of a material in the model resource.
NNS_G3dMdlGetMdlAlpha Gets the alpha value of a material in the model resource.
NNS_G3dMdlGetMdlFogEnableFlag Gets the fog-enable flag of a material in the model resource.
NNS_G3dMdlGetMdlDepthTestCond Gets the depth-test condition of a material in the model resource.
NNS_G3dMdlGetMdl1Dot Gets the 1-dot polygon display setting of a material in the model resource.
NNS_G3dMdlGetMdlFarClip Gets the specification for displaying polygons that intersect with the FAR clip plane for a material in the model resource.
NNS_G3dMdlGetMdlXLDepthUpdate Gets the enable flag for updating the depth value of translucent polygons for a material in the model resource.

See Also

NNS_G3dMdlSetMdlXXXXX

Revision History

2004/10/12 Initial version.


CONFIDENTIAL