2023-02-12 14:36:59 +01:00
|
|
|
#ifndef CHUNKMESH_H
|
|
|
|
#define CHUNKMESH_H
|
|
|
|
|
|
|
|
#include <glad/glad.h>
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
2023-03-23 21:17:06 +01:00
|
|
|
#include <string>
|
2023-02-12 14:36:59 +01:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "chunk.hpp"
|
|
|
|
#include "globals.hpp"
|
|
|
|
#include "shader.hpp"
|
2023-03-03 21:33:11 +01:00
|
|
|
|
|
|
|
namespace chunkmesher{
|
2023-03-23 21:17:06 +01:00
|
|
|
void mesh(Chunk::Chunk* chunk);
|
|
|
|
void sendtogpu(Chunk::Chunk* chunk);
|
|
|
|
void draw(Chunk::Chunk* chunk, glm::mat4 model);
|
2023-03-03 21:33:11 +01:00
|
|
|
|
2023-03-23 21:17:06 +01:00
|
|
|
void quad(Chunk::Chunk* chunk, glm::vec3 bottomLeft, glm::vec3 topLeft, glm::vec3 topRight, glm::vec3 bottomRight, Block block, bool backFace);
|
2023-03-03 21:33:11 +01:00
|
|
|
}
|
2023-02-12 14:36:59 +01:00
|
|
|
|
|
|
|
|
2023-03-23 16:19:25 +01:00
|
|
|
#endif
|