code format

This commit is contained in:
2022-12-14 14:14:33 +03:00
parent 09e5342956
commit cdb02fc9be
278 changed files with 15371 additions and 12176 deletions

View File

@@ -19,23 +19,27 @@
#ifndef LOADER_OBJ_H
#define LOADER_OBJ_H
#include "gltexture_manager.h"
#include "globject.h"
#include <QFileInfo>
#include "gltexture_manager.h"
#include <QDateTime>
#include <QFileInfo>
namespace LoaderOBJ {
#pragma pack(push, 1)
struct Face {
ushort v0;
ushort v1;
ushort v2;
ushort flags;
};
struct Face {
ushort v0;
ushort v1;
ushort v2;
ushort flags;
};
#pragma pack(pop)
void initOBJMesh(GLObjectBase * o, const QVector<Vector3d> & vertices, const QVector<Vector3d> & normals, const QVector<Vector3d> & texcoords);
Material materialByName(const QVector<Material> & materials, const QString & name);
}
void initOBJMesh(GLObjectBase * o,
const QVector<Vector3d> & vertices,
const QVector<Vector3d> & normals,
const QVector<Vector3d> & texcoords);
Material materialByName(const QVector<Material> & materials, const QString & name);
} // namespace LoaderOBJ
GLObjectBase * loadFromOBJFile(const QString & filepath, float scale = 1.0);