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.
27 lines
558 B
27 lines
558 B
#pragma once
|
|
#include "ggl.h"
|
|
|
|
struct VertexData {
|
|
float position[3];
|
|
float normal[3];
|
|
float texcoord[2];
|
|
};
|
|
|
|
class Model {
|
|
|
|
public:
|
|
VertexData* mVertexes;
|
|
unsigned short *mIndexes;
|
|
int mIndexCount;
|
|
GLuint mTexture;
|
|
float mAmbientMaterial[4], mDiffuseMaterial[4], mSpecularMaterial[4];
|
|
|
|
Model();
|
|
void Init(const char* modelPatch);
|
|
void Draw();
|
|
|
|
//ÉèÖòÄÖÊ
|
|
void SetAmbientMaterial(float r, float g, float b, float a);
|
|
void SetDiffuseMaterial(float r, float g, float b, float a);
|
|
void SetSpecularMaterial(float r, float g, float b, float a);
|
|
};
|