GPU buffer materials:
Separate and reuse some shared code. Also avoid counting for information we already know, such as total loop triangles etc.
This commit is contained in:
@@ -48,6 +48,7 @@ struct DMFlagMat;
|
||||
struct DerivedMesh;
|
||||
struct GSet;
|
||||
struct GPUVertPointLink;
|
||||
struct GPUDrawObject;
|
||||
struct PBVH;
|
||||
struct MVert;
|
||||
|
||||
@@ -71,6 +72,8 @@ typedef struct GPUBufferMaterial {
|
||||
short mat_nr;
|
||||
} GPUBufferMaterial;
|
||||
|
||||
void GPU_buffer_material_finalize(struct GPUDrawObject *gdo, GPUBufferMaterial *matinfo, int totmat);
|
||||
|
||||
/* meshes are split up by material since changing materials requires
|
||||
* GL state changes that can't occur in the middle of drawing an
|
||||
* array.
|
||||
|
Reference in New Issue
Block a user