Rename MeshIO class to MeshReader.
This makes the name symmetrical with MeshWriter.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include <utils/EntityManager.h>
|
||||
|
||||
#include <filamat/MaterialBuilder.h>
|
||||
#include <filameshio/MeshIO.h>
|
||||
#include <filameshio/MeshReader.h>
|
||||
|
||||
using namespace math;
|
||||
using namespace filament;
|
||||
@@ -53,7 +53,7 @@ using namespace utils;
|
||||
static std::vector<Path> g_filenames;
|
||||
|
||||
static std::map<std::string, MaterialInstance*> g_materialInstances;
|
||||
static std::vector<MeshIO::Mesh> g_meshes;
|
||||
static std::vector<MeshReader::Mesh> g_meshes;
|
||||
static const Material* g_material;
|
||||
static Entity g_light;
|
||||
static std::map<std::string, Texture*> g_maps;
|
||||
@@ -216,7 +216,7 @@ static void setup(Engine* engine, View* view, Scene* scene) {
|
||||
|
||||
auto& tcm = engine->getTransformManager();
|
||||
for (const auto& filename : g_filenames) {
|
||||
MeshIO::Mesh mesh = MeshIO::loadMeshFromFile(engine, filename, g_materialInstances);
|
||||
MeshReader::Mesh mesh = MeshReader::loadMeshFromFile(engine, filename, g_materialInstances);
|
||||
if (mesh.renderable) {
|
||||
auto ei = tcm.getInstance(mesh.renderable);
|
||||
tcm.setTransform(ei, mat4f{ mat3f(g_config.scale), float3(0.0f, 0.0f, -4.0f) } *
|
||||
|
||||
Reference in New Issue
Block a user