BsMaterialManager.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsModule.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Material-Internal
  9. * @{
  10. */
  11. /** Material manager handles material creation. */
  12. class BS_CORE_EXPORT MaterialManager : public Module<MaterialManager>
  13. {
  14. public:
  15. /**
  16. * Creates a new material without any assigned shader.
  17. *
  18. * @note Make sure to call Material::setShader() before using it.
  19. */
  20. SPtr<Material> create() const;
  21. /** Creates a new material with the specified shader. */
  22. SPtr<Material> create(const HShader& shader) const;
  23. /**
  24. * Creates a new empty material without initializing it.
  25. *
  26. * @note You must manually call Material::initialize() after creation.
  27. */
  28. SPtr<Material> createEmpty() const;
  29. };
  30. /** @} */
  31. }