Example #1
0
 static void listAttribs(MeshBase& mesh)
 {
     mesh.addAttrib(MeshBase::AttribType_Position,   MeshBase::AttribFormat_F32, 3);
     mesh.addAttrib(MeshBase::AttribType_Normal,     MeshBase::AttribFormat_F32, 3);
     mesh.addAttrib(MeshBase::AttribType_TexCoord,   MeshBase::AttribFormat_F32, 2);
 }
Example #2
0
 static void listAttribs(MeshBase& mesh)
 {
     mesh.addAttrib(MeshBase::AttribType_Position,   MeshBase::AttribFormat_F32, 3);
     mesh.addAttrib(MeshBase::AttribType_Normal,     MeshBase::AttribFormat_F32, 3);
     mesh.addAttrib(MeshBase::AttribType_Color,      MeshBase::AttribFormat_F32, 4);
 }