Added uv and colour support
This commit is contained in:
committed by
Alexander Gessler
parent
eaf9cbc120
commit
3713383b0f
@@ -94,6 +94,7 @@ namespace Assimp {
|
||||
|
||||
struct Object;
|
||||
struct MTex;
|
||||
struct Image;
|
||||
|
||||
#define AI_BLEND_MESH_MAX_VERTS 2000000000L
|
||||
|
||||
@@ -161,6 +162,18 @@ struct MLoop : ElemBase {
|
||||
int v, e;
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
struct MLoopUV : ElemBase {
|
||||
float uv[2];
|
||||
int flag;
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
// Note that red and blue are not swapped, as with MCol
|
||||
struct MLoopCol : ElemBase {
|
||||
char r, g, b, a;
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
struct MPoly : ElemBase {
|
||||
int loopstart;
|
||||
@@ -169,6 +182,13 @@ struct MPoly : ElemBase {
|
||||
char flag;
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
struct MTexPoly : ElemBase {
|
||||
Image* tpage;
|
||||
char flag, transp;
|
||||
short mode, tile, pad;
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
struct MCol : ElemBase {
|
||||
char r,g,b,a FAIL;
|
||||
@@ -262,7 +282,10 @@ struct Mesh : ElemBase {
|
||||
vector<MVert> mvert FAIL;
|
||||
vector<MEdge> medge WARN;
|
||||
vector<MLoop> mloop;
|
||||
vector<MLoopUV> mloopuv;
|
||||
vector<MLoopCol> mloopcol;
|
||||
vector<MPoly> mpoly;
|
||||
vector<MTexPoly> mtpoly;
|
||||
vector<MDeformVert> dvert;
|
||||
vector<MCol> mcol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user