格式支持图元zIndex

dev-VirtualTexture
wuyize 2022-08-07 21:29:18 +08:00
parent 38bd57c4c9
commit 4aa40addd1
3 changed files with 546 additions and 537 deletions

View File

@ -105,7 +105,7 @@ Drawable* Model::processMesh(aiMesh* mesh, const aiScene* scene, aiMatrix4x4 mod
if (paintingProgram != nullptr && std::strcmp(str.C_Str(), "17876391417123941155.jpg") == 0) if (paintingProgram != nullptr && std::strcmp(str.C_Str(), "17876391417123941155.jpg") == 0)
{ {
qDebug() << str.C_Str(); qDebug() << str.C_Str() << "Replaced";
// 初始化网格 // 初始化网格
PaintingMesh* m_mesh = new PaintingMesh(glFunc, paintingProgram, model); PaintingMesh* m_mesh = new PaintingMesh(glFunc, paintingProgram, model);
// 遍历网格的每个顶点 // 遍历网格的每个顶点
@ -144,7 +144,7 @@ Drawable* Model::processMesh(aiMesh* mesh, const aiScene* scene, aiMatrix4x4 mod
//root //root
1,2, 1,2,
3,4, 5,6, 3,4, 5,6,
7,0, 7,30./360* 4294967296 /*右儿子用来表示旋转角度*/, 8,0, 7,0, 7,0, 7,30./360* 65536 + 1*65536 /*右儿子用来表示旋转角度和层数*/, 8,0, 7,0,
//elememt0 //elememt0
1,2, 1,2,
5+28/*contour索引由于contour不定长这里需要给到contour在elementIndex中位置*/,5+12/*style索引在elementData中位置*/, 3,4, 5+28/*contour索引由于contour不定长这里需要给到contour在elementIndex中位置*/,5+12/*style索引在elementData中位置*/, 3,4,

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
#include "MainWindow.h" #include "MainWindow.h"
#include <QtWidgets/QApplication> #include <QtWidgets/QApplication>
#include <QGuiApplication>
extern "C" { extern "C" {
_declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; _declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;