mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2025-05-31 14:11:42 +05:30
Meshes with multiple batches handled
This commit is contained in:
@@ -69,13 +69,12 @@ bool getmeshheader(struct MeshHeader **hs,
|
||||
}
|
||||
|
||||
bool getmeshbatch(struct Batch *b,
|
||||
struct MeshHeader *h,
|
||||
unsigned int offset,
|
||||
const char * const filedata) {
|
||||
bool done = false;
|
||||
if (b == NULL || h == NULL || filedata == NULL) {
|
||||
if (b == NULL || filedata == NULL) {
|
||||
return done;
|
||||
}
|
||||
unsigned int offset = h -> offsetBatches;
|
||||
struct BatchData *d1 = NULL;
|
||||
struct VertexData d2;
|
||||
d1 = (struct BatchData*) (filedata + offset);
|
||||
|
Reference in New Issue
Block a user