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" */
|
|
|
|
|
2022-08-18 15:34:05 +00:00
|
|
|
#include "ssbo.h"
|
2021-12-07 19:51:12 +00:00
|
|
|
#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:
|
2022-08-18 15:34:05 +00:00
|
|
|
std::vector<gfx::Texture> textures;
|
2021-12-07 19:51:12 +00:00
|
|
|
|
2022-08-18 20:03:51 +00:00
|
|
|
TexturedModel(GLFWwindow* window, gfx::Shader shader, gfx::Texture texture, std::vector<LitVertex> vertices,
|
2021-12-07 21:01:48 +00:00
|
|
|
std::vector<GLuint> indicies = std::vector<GLuint>());
|
2022-08-18 20:03:51 +00:00
|
|
|
TexturedModel(GLFWwindow* window, GLuint shader_program, gfx::Texture texture, std::vector<LitVertex> vertices,
|
2021-12-07 19:51:12 +00:00
|
|
|
std::vector<GLuint> indicies = std::vector<GLuint>());
|
|
|
|
|
2022-08-18 20:03:51 +00:00
|
|
|
TexturedModel(GLFWwindow* window, gfx::Shader shader, std::vector<gfx::Texture> textures, std::vector<LitVertex> vertices,
|
2022-08-18 15:34:05 +00:00
|
|
|
std::vector<GLuint> indicies = std::vector<GLuint>());
|
2022-08-18 20:03:51 +00:00
|
|
|
TexturedModel(GLFWwindow* window, GLuint shader_program, std::vector<gfx::Texture> textures, std::vector<LitVertex> vertices,
|
2022-08-18 15:34:05 +00:00
|
|
|
std::vector<GLuint> indicies = std::vector<GLuint>());
|
|
|
|
|
2021-12-07 19:51:12 +00:00
|
|
|
virtual void update(const float& delta_time) override;
|
|
|
|
virtual void render(GLFWwindow* target) override;
|
|
|
|
};
|
|
|
|
}
|