BsMaterialManager.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. /** @cond INTERNAL */
  9. /** @addtogroup Material
  10. * @{
  11. */
  12. /** Material manager handles material creation. */
  13. class BS_CORE_EXPORT MaterialManager : public Module<MaterialManager>
  14. {
  15. public:
  16. /**
  17. * Creates a new material without any assigned shader.
  18. *
  19. * @note Make sure to call Material::setShader() before using it.
  20. */
  21. MaterialPtr create() const;
  22. /** Creates a new material with the specified shader. */
  23. MaterialPtr create(const HShader& shader) const;
  24. /**
  25. * Creates a new empty material without initializing it.
  26. *
  27. * @note You must manually call Material::initialize() after creation.
  28. */
  29. MaterialPtr createEmpty() const;
  30. };
  31. /** @} */
  32. /** @endcond */
  33. }