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.
20 lines
308 B
20 lines
308 B
#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();
|
|
};
|