forked from Dynamitos/Seele
Adding nlohmanns json library
This commit is contained in:
1 parent
3ef8342247
commit
bb5b48698a
83 files changed
+2426
-646
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#include "Material.h"
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using namespace Seele;
|
||||
using json = nlohmann::json;
|
||||
|
||||
Material::Material()
|
||||
{
|
||||
}
|
||||
|
||||
Material::Material(const std::string& directory, const std::string& name)
|
||||
: FileAsset(directory, name)
|
||||
{
|
||||
}
|
||||
|
||||
Material::Material(const std::string& fullPath)
|
||||
: FileAsset(fullPath)
|
||||
{
|
||||
}
|
||||
|
||||
Material::~Material()
|
||||
{
|
||||
}
|
||||
|
||||
void Material::compile()
|
||||
{
|
||||
auto& stream = getReadStream();
|
||||
stream.seekg(0);
|
||||
json j;
|
||||
stream >> j;
|
||||
std::cout << j["test"] << std::endl;
|
||||
}
|
||||
|
||||
Gfx::PGraphicsPipeline Material::getPipeline()
|
||||
{
|
||||
return pipeline;
|
||||
}
|
||||
Reference in new issue
Block a user