#pragma once
#include "ofConstants.h"
#include "ofMaterial.h"
#include "ofGraphics.h"
#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "ofxAssimpTexture.h"
#include "ofVbo.h"
#include "ofMesh.h"
#include "ofMatrix4x4.h"
struct aiMesh;
class ofxAssimpMeshHelper {
public:
ofxAssimpMeshHelper();
bool hasTexture();
ofTexture & getTextureRef();
aiMesh * mesh;
ofVbo vbo;
ofxAssimpTexture assimpTexture;
std::vector<ofIndexType> indices;
ofMaterial material;
ofBlendMode blendMode;
bool twoSided;
bool hasChanged;
std::vector<aiVector3D> animatedPos;
std::vector<aiVector3D> animatedNorm;
ofMesh cachedMesh;
bool validCache;
ofMatrix4x4 matrix;
};
Comments