Not sure what code that looks like this means?
void setBool(const std::string &name, bool value) const { glUniform1i(glGetUniformLocation(ID, name.c_str()), (int)value); } What’s the meaning of putting (int) in brackets? I understand the concept of function pointers, not sure if it applies here. A similar thing seems to be happening in the code below and I’m forced to just cram it. if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)) { std::cout […]