2021-12-07 19:51:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/* #include "shader.h"
|
|
|
|
#include "vao.h"
|
|
|
|
#include "vbo.h"
|
|
|
|
#include "../vertex.h"
|
|
|
|
#include "../renderable.h"
|
|
|
|
#include "../transformable.h" */
|
|
|
|
|
|
|
|
#include "shader.h"
|
|
|
|
#include "model.h"
|
|
|
|
#include "texture.h"
|
|
|
|
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace simpleengine::gfx {
|
|
|
|
class TexturedModel : public simpleengine::gfx::Model {
|
|
|
|
public:
|
|
|
|
gfx::Texture texture;
|
|
|
|
|
2021-12-07 21:01:48 +00:00
|
|
|
TexturedModel(GLFWwindow* window, gfx::Shader shader, gfx::Texture texture, std::vector<Vertex> vertices,
|
|
|
|
std::vector<GLuint> indicies = std::vector<GLuint>());
|
2021-12-13 03:17:59 +00:00
|
|
|
TexturedModel(GLFWwindow* window, GLuint shader_program, gfx::Texture texture, std::vector<Vertex> vertices,
|
2021-12-07 19:51:12 +00:00
|
|
|
std::vector<GLuint> indicies = std::vector<GLuint>());
|
|
|
|
|
|
|
|
virtual void update(const float& delta_time) override;
|
|
|
|
virtual void render(GLFWwindow* target) override;
|
|
|
|
};
|
|
|
|
}
|