Reputation: 21
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
Upvotes: 0
Views: 75
Reputation: 181715
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.
Upvotes: 4