Search code examples
c++openglopen-sourceglm-math

Editing open-source libraries


I'm currently developing a C++ library to make the lives of my OpenGL game development team easier. I'm using GLM for handling maths.

Assuming I credit the original creators appropriately and leave any license information in the files, is it okay to rename the GLM namespace to match the namespace I'm using in my library? This will make using the library in the end much cleaner, without exposing multiple different libraries/namespaces to the users.

If this isn't legal/ethical, is there anything I can do to add an alias to the namespace and only expose the alias?

Thanks.


Solution

  • GLM License:

    It says:

    [...] to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software [...]

    This is the only condition:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    And one restriction:

    By making use of the Software for military purposes, you choose to make a Bunny unhappy.

    So you can rename the namespace as you like.

    Don't use it for millitary purpose if you care about bunnies.