| 123456789101112131415161718192021222324252627282930313233343536373839 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsCorePrerequisites.h"
- #include "BsModule.h"
- namespace BansheeEngine
- {
- /** @cond INTERNAL */
- /** @addtogroup Material
- * @{
- */
- /** Material manager handles material creation. */
- class BS_CORE_EXPORT MaterialManager : public Module<MaterialManager>
- {
- public:
- /**
- * Creates a new material without any assigned shader.
- *
- * @note Make sure to call Material::setShader() before using it.
- */
- MaterialPtr create() const;
- /** Creates a new material with the specified shader. */
- MaterialPtr create(const HShader& shader) const;
- /**
- * Creates a new empty material without initializing it.
- *
- * @note You must manually call Material::initialize() after creation.
- */
- MaterialPtr createEmpty() const;
- };
- /** @} */
- /** @endcond */
- }
|