mirror of
https://github.com/kuhyx/engineer-thesis-WUT.git
synced 2026-07-04 14:43:10 +02:00
13 lines
816 B
C++
13 lines
816 B
C++
#ifndef DRAW_HPP
|
|
#define DRAW_HPP
|
|
#include <glad/glad.h>
|
|
#include <GLFW/glfw3.h>
|
|
|
|
int drawFigure(const int whatToDraw);
|
|
int drawSquare(const std::string_view vertexShaderSource, const std::string_view fragmentShaderSource);
|
|
void doDrawElements(const unsigned int shaderProgram, const unsigned int vertexArrayObject, const GLenum drawArrayMode, const GLenum drawType, const int numberOfElementsToDraw);
|
|
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 );
|
|
|
|
#endif |