1
0
Fork 0
Diplomový projekt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
raytracer/assimpmodel.h

32 lines
633 B

#ifndef ASSIMPMODEL_H
#define ASSIMPMODEL_H
#include <QString>
#include <CL/cl_platform.h>
#include <assimp/types.h>
struct Face
{
uint a,b,c,m;
Face(uint *face, uint mat, uint offset = 0);
};
struct Material
{
cl_float3 color;
};
class AssImpModel
{
uint numVertices, numFaces;
std::vector<aiVector3D> vertexs;
std::vector<Face> faces;
std::vector<Material> materials;
public:
AssImpModel(const QString &path);
const std::vector<aiVector3D>& getVertexs() const;
const std::vector<Face>& getFaces() const;
const std::vector<Material>& getMaterials() const;
};
#endif // ASSIMPMODEL_H