implemented alpha texture repository
This commit is contained in:
@@ -54,8 +54,23 @@ public:
|
||||
u8 isMd2Loaded, isObjLoaded, isDffLoaded, isSpecInitialized;
|
||||
clutbuffer_t clut;
|
||||
lod_t lod;
|
||||
u32 id;
|
||||
MeshTexture *textures;
|
||||
|
||||
/** Array of materials. Size of getMaterialsCount() */
|
||||
MeshMaterial *getMaterials() const { return obj->frames[0].getMaterials(); };
|
||||
|
||||
const u32 &getMaterialsCount() const { return obj->frames[0].getMaterialsCount(); };
|
||||
|
||||
/** Returns material, which is a mesh "subgroup". */
|
||||
MeshMaterial &getMaterial(const u32 &i) const { return obj->frames[0].getMaterial(i); };
|
||||
|
||||
/**
|
||||
* Returns material, which is a mesh "subgroup".
|
||||
* NULL if not found.
|
||||
*/
|
||||
MeshMaterial *getMaterialById(const u32 &t_id) const { return obj->frames[0].getMaterialById(t_id); }
|
||||
|
||||
private:
|
||||
void setupLodAndClut();
|
||||
void setDefaultWrapSettings(texwrap_t &t_wrapSettings);
|
||||
|
||||
Reference in New Issue
Block a user