#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);
| pMdl | Pointer to the model resource |
| matID | The material ID |
These functions return the values set in the model resource. The type differs depending on the function.
These functions makes sure the model specified by pMdl is rendered using the values set inside the model resource.
NNS_G3dMdlGetMdlDiff |
Gets the diffuse color from inside the model resource. |
NNS_G3dMdlGetMdlAmb |
Gets the ambient color from inside the model resource. |
NNS_G3dMdlGetMdlSpec |
Gets the specular color from inside the model resource. |
NNS_G3dMdlGetMdlEmi |
Gets the emission color from inside the model resource. |
NNS_G3dMdlGetMdlLightEnableFlag |
Gets the light-enable flag from inside the model resource. |
NNS_G3dMdlGetMdlPolygonMode |
Gets the polygon mode from inside the model resource. |
NNS_G3dMdlGetMdlCullMode |
Gets the cull mode from inside the model resource. |
NNS_G3dMdlGetMdlPolygonID |
Gets the polygon ID from inside the model resource. |
NNS_G3dMdlGetMdlAlpha |
Gets the alpha value from inside the model resource. |
NNS_G3dMdlGetMdlFogEnableFlag |
Gets the fog-enable flag from inside the model resource. |
NNS_G3dMdlGetMdlDepthTestCond |
Gets the depth-test condition from inside the model resource. |
NNS_G3dMdlGetMdl1Dot |
Gets the specification for displaying 1-dot polygons from inside the model resource. |
NNS_G3dMdlGetMdlFarClip |
Gets the specification for displaying polygons that intersect with the FAR clip plane from inside the model resource. |
NNS_G3dMdlGetMdlXLDepthUpdate |
Gets the enable flag for updating the depth value of translucent polygons from inside the model resource. |
10/12/2004 Initial version.
CONFIDENTIAL