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.
 
 

19 lines
614 B

#pragma once
#include "ggl.h"
#include "vertexbuffer.h"
#include "shader.h"
class Model {
VertexBuffer* mVertexBuffer;
Shader*mShader;
public:
glm::mat4 mModelMatrix;
Model();
void Init(const char*modelPath);
void Draw(glm::mat4 & viewMatrix, glm::mat4 projectionMatrix, float x, float y, float z);
void SetPosition(float x, float y, float z);
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);
void SetTexture(const char*imagePath);
void SetTexture(GLuint texture);
};