int StorageHandler::loadInt(StorageAddresses address) { union IntConversion data; loadBytes(address, data.buffer, 2); return data.i; }
void PShader::loadFragmentShader(std::string src) { this->fragSrc = loadBytes(src); compileFragmentShader(); glAttachShader(glProgram, glFragment); glLinkProgram(glProgram); }
long StorageHandler::loadLong(StorageAddresses address) { union LongConversion data; loadBytes(address, data.buffer, 4); return data.l; }
void PShader::loadVertexShader(std::string src) { this->vertSrc = loadBytes(src); compileVertexShader(); glAttachShader(glProgram, glVertex); glLinkProgram(glProgram); }