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.

26 lines
558 B

5 years ago
  1. #pragma once
  2. #include "ggl.h"
  3. struct VertexData {
  4. float position[3];
  5. float normal[3];
  6. float texcoord[2];
  7. };
  8. class Model {
  9. public:
  10. VertexData* mVertexes;
  11. unsigned short *mIndexes;
  12. int mIndexCount;
  13. GLuint mTexture;
  14. float mAmbientMaterial[4], mDiffuseMaterial[4], mSpecularMaterial[4];
  15. Model();
  16. void Init(const char* modelPatch);
  17. void Draw();
  18. //����
  19. void SetAmbientMaterial(float r, float g, float b, float a);
  20. void SetDiffuseMaterial(float r, float g, float b, float a);
  21. void SetSpecularMaterial(float r, float g, float b, float a);
  22. };