Shuvit game master repo. http://shuvit.org
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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