mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
38 lines
704 B
C++
Executable File
38 lines
704 B
C++
Executable File
#ifndef MODEL_H
|
|
#define MODEL_H
|
|
|
|
#include<vector>
|
|
#include<string>
|
|
#include"node.h"
|
|
|
|
class aiScene;
|
|
class aiNode;
|
|
class aiMesh;
|
|
class aiMaterial;
|
|
|
|
namespace vb01{
|
|
class Mesh;
|
|
class Material;
|
|
class Texture;
|
|
|
|
class Model : public Node{
|
|
public:
|
|
Model(std::string,bool=true);
|
|
~Model();
|
|
void update();
|
|
void setMaterial(Material*);
|
|
void setCastShadow(bool);
|
|
void setWireframe(bool);
|
|
private:
|
|
void processNode(aiNode*, const aiScene*, Node*);
|
|
void processMesh(aiMesh*, const aiScene*, Node*);
|
|
// std::vector<Texture*> processTexture(aiMaterial*, Assimp::aiTextureType);
|
|
void processMaterial();
|
|
|
|
Material* material;
|
|
bool castShadow=false,wireframe=false;
|
|
};
|
|
}
|
|
|
|
#endif
|