This makes everything consistent with the C Language bindings for OpenGL. The boolean values were causing problems when passed into functions like glfwSetWindowShouldClose(), which is faithful to the C Language style. Kept boolean return values, however, so it's easier in Dart to use the result of a function in an if-test or logical operation (without having to add != 0 everywhere).
Updated the generator code to support different input/return value maps, and made "bool" map to integer as an input, and map to "bool" as an output. Only a few generated bindings were affected.
This makes everything consistent with the C Language bindings for OpenGL. The boolean values were causing problems when passed into functions like glfwSetWindowShouldClose(), which is faithful to the C Language style. Kept boolean return values, however, so it's easier in Dart to use the result of a function in an if-test or logical operation (without having to add != 0 everywhere).
Updated the generator code to support different input/return value maps, and made "bool" map to integer as an input, and map to "bool" as an output. Only a few generated bindings were affected.