2015-07-26 21:39:49 +00:00
|
|
|
#ifndef CMATERIALSET_H
|
|
|
|
#define CMATERIALSET_H
|
|
|
|
|
|
|
|
#include <FileIO/CInputStream.h>
|
|
|
|
#include <Resource/CTexture.h>
|
|
|
|
#include <Resource/CMaterial.h>
|
|
|
|
#include "EFormatVersion.h"
|
|
|
|
|
|
|
|
class CMaterialSet
|
|
|
|
{
|
2015-08-01 03:44:50 +00:00
|
|
|
friend class CMaterialLoader;
|
|
|
|
friend class CMaterialCooker;
|
|
|
|
|
|
|
|
std::vector<CMaterial*> mMaterials;
|
2015-07-26 21:39:49 +00:00
|
|
|
|
2015-08-01 03:44:50 +00:00
|
|
|
public:
|
2015-07-26 21:39:49 +00:00
|
|
|
CMaterialSet();
|
|
|
|
~CMaterialSet();
|
2015-08-01 03:44:50 +00:00
|
|
|
CMaterialSet* Clone();
|
|
|
|
u32 NumMaterials();
|
|
|
|
CMaterial* MaterialByIndex(u32 index);
|
2015-11-24 06:08:31 +00:00
|
|
|
CMaterial* MaterialByName(const TString& name);
|
|
|
|
u32 MaterialIndexByName(const TString& name);
|
2015-07-26 21:39:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CMATERIALSET_H
|