2023-10-18 17:03:13 +02:00
|
|
|
#ifndef GRAPHICS_HPP
|
|
|
|
#define GRAPHICS_HPP
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class ShaderProgram {
|
|
|
|
public:
|
|
|
|
enum Base { Empty, Triangle };
|
|
|
|
std::string baseName();
|
2023-10-18 19:48:48 +02:00
|
|
|
ShaderProgram(Base base, std::string vertexSource, std::string fragSource);
|
2023-10-18 17:03:13 +02:00
|
|
|
int run();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
unsigned int vertex;
|
|
|
|
unsigned int frag;
|
|
|
|
Base base;
|
|
|
|
};
|
|
|
|
int mainWindow(ShaderProgram* shaderProgramm);
|
|
|
|
#endif
|