Message from C, C++ talks

June 2019

— Is it possible to keep a return in memory from a func

— Yes

— Depends

— Use heap memory


If you put it in memory yeah. like
std::string vertex = readFile(vertexFile);
would copy the std::string object back into memory

— Or this ^

— How would i then do this

— Http://

— 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());

Message permanent page

— Like this?

— Not familiar with OpenGL, so idk

— Http://

— Pff