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

16 lines
724 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>
2022-09-10 13:40:58 +02:00
void renderLoop(GLFWwindow *window);
2022-09-17 14:14:08 +02:00
int renderLoopInside(GLFWwindow *window, int whatToDraw);
2022-09-05 20:17:25 +02:00
void copyVerticesArray(unsigned int vertexBufferObject, const float vertices[], const size_t sizeOfVertices, const GLenum boundBufferTarget);
unsigned int generateBindVAO();
void configureVertexAttribute(const bool colorIncluded);
2022-09-17 14:14:08 +02:00
int processInput(GLFWwindow *window, int 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
2022-09-10 13:40:58 +02:00
#endif