Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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;
}

thanks

Edit:
Link to the code at github link

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading