Shuvit game master repo. http://shuvit.org
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

__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()