engineer-thesis-WUT/Engine/engine/renderLoop.hpp

20 lines
709 B
C++
Raw Normal View History

2022-09-05 20:17:25 +02:00
#ifndef RENDER_LOOP_HPP
#define RENDER_LOOP_HPP
#include <GLFW/glfw3.h>
#include <iostream>
void renderLoop(GLFWwindow* window);
bool renderLoopInside(GLFWwindow* window, bool whatToDraw);
void copyVerticesArray(unsigned int vertexBufferObject, const float vertices[], const size_t sizeOfVertices, const GLenum boundBufferTarget);
unsigned int generateBindVAO();
void configureVertexAttribute();
bool processInput(GLFWwindow *window, bool whatToDraw);
2022-09-06 21:52:06 +02:00
unsigned int copyVerticesMemory(const float vertices[], const size_t sizeOfVertices, const GLenum boundBufferTarget);
unsigned int copyVerticesMemory(const unsigned int vertices[], const size_t sizeOfVertices, const GLenum boundBufferTarget);
2022-09-05 20:17:25 +02:00
#endif