code format
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user