28 lines
720 B
C++

#pragma once
#ifndef _FUNCS_HEADER_
#define _FUNCS_HEADER_
#include <iostream>
#include <thread>
#include <chrono>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
using namespace std::chrono_literals;
extern unsigned int gridX, gridY, sizeX, sizeY;
extern float* tileCoords;
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFWwindow* window);
float* makeGridPoints(unsigned int X=2, unsigned int Y=2);
float* scaleGridPoints(unsigned int X, unsigned int Y, float ratioX, float ratioY, float* points);
unsigned int* makeGridIndex(unsigned int X=2, unsigned int Y=2);
#endif