I cannot understand how this function (c ) works and how it return true or false? The problem is with the (void)projection; I cannot understand that.
bool Node::SetupCamera(glm::mat4& projection, glm::mat4& modelview) {
(void)projection;
(void)modelview;
return false;
}
Edit: Link to the code at github link
CodePudding user response:
It looks like a stub; it does nothing. Maybe it's overridden in a derived class?
The (void) someArg;
trick is used to suppress warnings about unused arguments.