Nice trick I'm using in my projects, actually irrlicht is affected by this issue too.
When dealing with multiple/incomplete implementations compiler give warnings about unused parameters (well some parameter can be used in some implementation and since the API is the same can be unused in another implementation.. There's a nice way to fix that
- cpp Code: Select all
void method(bool used_param, bool unused_param)
(void) unused_param; //shut up compiler warnings without producing more assembly.
this can be usefull when warnings are UNWANTED (if they are unwanted depends on case and needs).
this also works FOR EVERY UNUSED EXPRESSION. Just cast the expression to void.
OpenGL is not hard. What you have to do is just explained in specifications. What is hard is dealing with poor OpenGL implementations.