2022-09-05 20:17:25 +02:00
|
|
|
#ifndef DRAW_HPP
|
|
|
|
|
#define DRAW_HPP
|
|
|
|
|
#include <glad/glad.h>
|
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
|
2022-09-10 13:40:58 +02:00
|
|
|
int drawFigure(const int whatToDraw);
|
2022-09-18 18:10:03 +02:00
|
|
|
int drawSquare(const std::string_view vertexShaderSource, const std::string_view fragmentShaderSource);
|
2022-09-05 20:17:25 +02:00
|
|
|
void doDrawElements(const unsigned int shaderProgram, const unsigned int vertexArrayObject, const GLenum drawArrayMode, const GLenum drawType, const int numberOfElementsToDraw);
|
2022-10-19 15:51:07 +02:00
|
|
|
int drawTriangle(const float triangleVertices[], const size_t triangleVerticesSize, const std::string_view vertexShaderSource, const std::string_view fragmentShaderSource, const bool colorIncluded);
|
|
|
|
|
GLfloat updateUniformColor();
|
|
|
|
|
void doDrawArrays(const Shader Shader, const unsigned int vertexArrayObject, const GLenum drawArrayMode, const int firstIndex, const unsigned int numberOfIndicesToBeRendered );
|
2022-09-05 20:17:25 +02:00
|
|
|
|
2022-10-19 15:51:07 +02:00
|
|
|
#endif
|