I learnt that when I convert some mesh into memblock then it is represented as following
offset | size | meaning
00 | DWORD | FVF format (default 338)
04 | DWORD | size of vertex struct (default 36)
08 | DWORD | vertex count
12 | FLOAT | start of vertex data
...
and following 3 verts forms a triangle, then next 3 verts form next triangle and so...
but I saw an example code to CollisionDll:
` Make a mesh -> Memblock
make mesh from object MeshNo, TempObjNo
make memblock from mesh MB,MeshNo
` Find out what we're dealing with and at what location in memory block
num_verts = memblock dword(MB,0)
vert_data_start = memblock dword(MB,4)
num_faces = memblock dword(MB,16)
face_data_start = memblock dword(MB,20)
so here memblock represent mesh (made from whole object) as:
offset | size | meaning
00 | DWORD | vertex count
04 | DWORD | vertex data offset
08 | DWORD | face count
12 | DWORD | face data offset
...
so I am a little confused wright now.
Could someone tell me the true?