Ku Mu
Ku Mu

Reputation: 21

can some one explain how this function works?

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

Answers (1)

Thomas
Thomas

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

Related Questions