Ninja Library - Model and Motion Structure

NJS_MESHSET

Structure that stores polygon data

DEFINITION

typedef struct { 
 Uint16  type_matId; 
 Uint16  nbMesh; 
 Sint16  *meshes; 
 Uint32  *attrs; 
 NJS_VECTOR *normals; 
 NJS_COLOR *vertcolor; 
 NJS_COLOR *vertuv; 
} NJS_MESHSET; 

MEMBER

 type_matId  Mesh type and material ID 
 nbMesh  Number of polygons / Number of contiguous polygons 
 *meshes  Polygon list 
 *attrs  Polygon attributes 
 *normals  Polygon normal line vector list 
 *vertcolor  Polygon vertex color list 
 *vertuv  Polygon vertex UV list 

DESCRIPTION

Structure that stores polygon data. Each bit of member "type_matId" which indicates mesh type and material ID is as follows.

 15 - 14  Mesh type 
 13 - 0  Material ID (0-4095) 


NJS_MESHSET
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999