mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-29 02:02:04 +05:30
Merge branch 'removeprints' of scuti/lib3ddevil1 into a/writemesh
This commit is contained in:
commit
10402c2649
@ -62,6 +62,5 @@ void append(const char *filename, const char *t, unsigned size) {
|
|||||||
if (written == 0) {
|
if (written == 0) {
|
||||||
perror("write error");
|
perror("write error");
|
||||||
}
|
}
|
||||||
printf("wrote %x\n", written);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,6 @@ void writemesh(const struct MeshHeader *mh,
|
|||||||
for (int i = 0; i < newmh.numBatch; i++) {
|
for (int i = 0; i < newmh.numBatch; i++) {
|
||||||
unsigned int nVertices = m -> b -> bd[i].numVertex;
|
unsigned int nVertices = m -> b -> bd[i].numVertex;
|
||||||
append(fn, (char*)(m -> b[i].vd.positions), sizeof(struct Coordinate) * nVertices);
|
append(fn, (char*)(m -> b[i].vd.positions), sizeof(struct Coordinate) * nVertices);
|
||||||
DEVIL1GEO.printcoordinate(m -> b -> vd.positions, 3);
|
|
||||||
append(fn, (char*)(m -> b[i].vd.normals), sizeof(struct Coordinate) * nVertices);
|
append(fn, (char*)(m -> b[i].vd.normals), sizeof(struct Coordinate) * nVertices);
|
||||||
append(fn, (char*)(m -> b[i].vd.u), sizeof(struct UVs) * nVertices);
|
append(fn, (char*)(m -> b[i].vd.u), sizeof(struct UVs) * nVertices);
|
||||||
append(fn, (char*)(m -> b[i].vd.bi), sizeof(struct BoneIndexes) * nVertices);
|
append(fn, (char*)(m -> b[i].vd.bi), sizeof(struct BoneIndexes) * nVertices);
|
||||||
|
Loading…
Reference in New Issue
Block a user