BsMaterialManager.h 898 B

1234567891011121314151617181920212223242526272829
  1. //__________________________ Banshee Project - A modern game development toolkit _________________________________//
  2. //_____________________________________ www.banshee-project.com __________________________________________________//
  3. //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
  4. #pragma once
  5. #include "BsCorePrerequisites.h"
  6. #include "BsModule.h"
  7. namespace BansheeEngine
  8. {
  9. /**
  10. * @brief Material manager handles material creation.
  11. */
  12. class BS_CORE_EXPORT MaterialManager : public Module<MaterialManager>
  13. {
  14. public:
  15. /**
  16. * @brief Creates a new material without any assigned shader.
  17. *
  18. * @note Make sure to call Material::setShader before using it.
  19. */
  20. MaterialPtr create() const;
  21. /**
  22. * @brief Creates a new material with the specified shader.
  23. */
  24. MaterialPtr create(ShaderPtr shader) const;
  25. };
  26. }