Message from C, C++ talks

June 2019

— How would i then do this

— Http://this.is-a-professional-domain.com/7e3CaVF.png

— I got to write the file reading bit

— Then trow the readed text into the constructor, then return the created Shader obj

— 

std::string vertex = readFile(vertexFile);

Shader shader (readFile(vertexPath).c_str(), readFile(fragmentPath).c_str());

— Like this?

— Not familiar with OpenGL, so idk

— Http://this.is-a-professional-domain.com/6sjaWVU.png

— Pff

— It's garbage when reaching the Shader constructor

— O.o

— :(

— mmihov any tips

— Return Shader(vertexCode.c_str(), fragmentCode.c_str());

— It isn't working?