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.

18 lines
614 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #pragma once
  2. #include "ggl.h"
  3. #include "vertexbuffer.h"
  4. #include "shader.h"
  5. class Model {
  6. VertexBuffer* mVertexBuffer;
  7. Shader*mShader;
  8. public:
  9. glm::mat4 mModelMatrix;
  10. Model();
  11. void Init(const char*modelPath);
  12. void Draw(glm::mat4 & viewMatrix, glm::mat4 projectionMatrix, float x, float y, float z);
  13. void SetPosition(float x, float y, float z);
  14. void SetAmbientMaterial(float r, float g, float b, float a);
  15. void SetDiffuseMaterial(float r, float g, float b, float a);
  16. void SetSpecularMaterial(float r, float g, float b, float a);
  17. void SetTexture(const char*imagePath);
  18. void SetTexture(GLuint texture);
  19. };