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

13 lines
841 B
C++
Raw Normal View History

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);
int drawSquare(const char* vertexShaderSource, const char* 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);
int drawTriangle(const float triangleVertices[], const size_t triangleVerticesSize, const char* vertexShaderSource, const char* fragmentShaderSource, const bool colorIncluded);
void updateUniformColor(const unsigned int shaderProgram, const GLchar* uniformName);
void doDrawArrays(const unsigned int shaderProgram, const unsigned int vertexArrayObject, const GLenum drawArrayMode, const int firstIndex, const unsigned int numberOfIndicesToBeRendered );
2022-09-05 20:17:25 +02:00
#endif