mirror of
https://github.com/kuhyx/engineer-thesis-WUT.git
synced 2026-07-04 16:23:14 +02:00
35 lines
915 B
C++
35 lines
915 B
C++
// "Copyright [2023] <Krzysztof Rudnicki>"
|
|
#ifndef ENGINE_ENGINE_RENDERLOOP_HPP_
|
|
#define ENGINE_ENGINE_RENDERLOOP_HPP_
|
|
#include <GLFW/glfw3.h>
|
|
#include <iostream>
|
|
|
|
void renderLoop(GLFWwindow *window);
|
|
int renderLoopInside(GLFWwindow *window, int whatToDraw);
|
|
|
|
void copyVerticesArray(
|
|
unsigned int vertexBufferObject,
|
|
const float vertices[],
|
|
const size_t sizeOfVertices,
|
|
const GLenum boundBufferTarget);
|
|
|
|
unsigned int generateBindVAO();
|
|
|
|
void configureVertexAttribute(
|
|
const bool colorIncluded,
|
|
const bool textureIncluded);
|
|
|
|
int processInput(GLFWwindow *window, int whatToDraw);
|
|
|
|
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);
|
|
|
|
#endif // ENGINE_ENGINE_RENDERLOOP_HPP_
|