While the template is valid C code, it does not work well when converted to C++. Some users would like to use the template as the starting point for C++ code.
This PR makes a few small changes to the C code to make it also compatible with C++.
1) use the scene enums everywhere, not a mix of enums and numbers (also makes the code read better)
2) don't pass the address of unnamed temp variables into functions, allocate an actual structure.
These changes allow the c files to be simply renamed C++ and compile without issues.
While the template is valid C code, it does not work well when converted to C++. Some users would like to use the template as the starting point for C++ code.
This PR makes a few small changes to the C code to make it also compatible with C++.
1) use the scene enums everywhere, not a mix of enums and numbers (also makes the code read better) 2) don't pass the address of unnamed temp variables into functions, allocate an actual structure.
These changes allow the c files to be simply renamed C++ and compile without issues.