#pragma once #include "glew.h" struct VertexData{ float position[3]; float texcoord[2]; float normal[3];}; class ObjModel{public: GLuint mVBO, mIBO; unsigned int mIndexCount;public: void Init(const char*modelFilePath); void Bind(GLint posLoc,GLint texcoordLoc,GLint normalLoc); void Draw();};
#pragma once
#include "glew.h"
struct VertexData
{
float position[3];
float texcoord[2];
float normal[3];
};
class ObjModel
public:
GLuint mVBO, mIBO;
unsigned int mIndexCount;
void Init(const char*modelFilePath);
void Bind(GLint posLoc,GLint texcoordLoc,GLint normalLoc);
void Draw();