BsD3D11BuiltinMaterialFactory.h 765 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "BsPrerequisites.h"
  3. #include "BsBuiltinMaterialManager.h"
  4. namespace BansheeEngine
  5. {
  6. /**
  7. * @copydoc BuiltinMaterialFactory
  8. */
  9. class D3D11BuiltinMaterialFactory : public BuiltinMaterialFactory
  10. {
  11. public:
  12. void startUp();
  13. void shutDown();
  14. const CM::String& getSupportedRenderSystem() const;
  15. CM::HMaterial createSpriteTextMaterial() const;
  16. CM::HMaterial createSpriteImageMaterial() const;
  17. CM::HMaterial createDebugDrawMaterial() const;
  18. protected:
  19. CM::ShaderPtr mSpriteTextShader;
  20. CM::ShaderPtr mSpriteImageShader;
  21. CM::ShaderPtr mDebugDrawShader;
  22. CM::HSamplerState mGUISamplerState;
  23. void initSpriteTextShader();
  24. void initSpriteImageShader();
  25. void initDebugDrawShader();
  26. };
  27. }