Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 347B

12345678910111213
  1. from .objects.MaterialManager import *
  2. from .objects.ShaderMaterial import *
  3. # Utility function
  4. def ReadFile(path, relative=None, m='r'):
  5. import os.path
  6. if relative:
  7. path = os.path.join(os.path.dirname(relative), path)
  8. with open(path, m) as file:
  9. return file.read()
  10. # Run the manager
  11. MaterialManager.RegisterEvents()