pull/2/head
E. Almqvist 2 years ago
parent 2f301f0d29
commit ef3ff09bc2
  1. 7
      src/shaders.cpp

@ -1,8 +1,15 @@
#include <fstream> #include <fstream>
#include <glad/glad.h> #include <glad/glad.h>
#include <vector> #include <vector>
#include <filesystem>
namespace Shader { namespace Shader {
char* loadSourceFromFile(const char* file) {
char* src;
return src;
}
unsigned int compile(GLenum shadertype, const char* shaderSource) { unsigned int compile(GLenum shadertype, const char* shaderSource) {
unsigned int shader; unsigned int shader;
shader = glCreateShader(shadertype); shader = glCreateShader(shadertype);

Loading…
Cancel
Save