mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 07:28:12 +08:00
Merge
This commit is contained in:
commit
e203ee0ff3
@ -13,7 +13,7 @@
|
|||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{BB1EFCBB-6CD7-4283-8C3F-69AE88470EED}</ProjectGuid>
|
<ProjectGuid>{BB1EFCBB-6CD7-4283-8C3F-69AE88470EED}</ProjectGuid>
|
||||||
<Keyword>QtVS_v304</Keyword>
|
<Keyword>QtVS_v304</Keyword>
|
||||||
<WindowsTargetPlatformVersion Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">10.0.22621.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">10.0</WindowsTargetPlatformVersion>
|
||||||
<WindowsTargetPlatformVersion Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">10.0.22621.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">10.0.22621.0</WindowsTargetPlatformVersion>
|
||||||
<QtMsBuild Condition="'$(QtMsBuild)'=='' OR !Exists('$(QtMsBuild)\qt.targets')">$(MSBuildProjectDirectory)\QtMsBuild</QtMsBuild>
|
<QtMsBuild Condition="'$(QtMsBuild)'=='' OR !Exists('$(QtMsBuild)\qt.targets')">$(MSBuildProjectDirectory)\QtMsBuild</QtMsBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@ -13,6 +13,7 @@ Model::~Model() {
|
|||||||
// TODO: Maybe delete all meshes?
|
// TODO: Maybe delete all meshes?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// file path is ...\\...\\.obj, and processnode & processmesh have been called here
|
||||||
void Model::loadModel(std::string path) {
|
void Model::loadModel(std::string path) {
|
||||||
Assimp::Importer importer;
|
Assimp::Importer importer;
|
||||||
const aiScene* scene = importer.ReadFile(
|
const aiScene* scene = importer.ReadFile(
|
||||||
@ -26,6 +27,7 @@ void Model::loadModel(std::string path) {
|
|||||||
_directory = path.substr(0, path.find_last_of('/'));
|
_directory = path.substr(0, path.find_last_of('/'));
|
||||||
|
|
||||||
processNode(scene->mRootNode, scene);
|
processNode(scene->mRootNode, scene);
|
||||||
|
_status = LOADED;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Model::processNode(aiNode* node, const aiScene* scene) {
|
void Model::processNode(aiNode* node, const aiScene* scene) {
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
#include "vao.h"
|
#include "vao.h"
|
||||||
#include "shader.h"
|
#include "shader.h"
|
||||||
#include "logger.h"
|
#include "logger.h"
|
||||||
|
#include "model.h"
|
||||||
|
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user