BsRenderAPIFactory.h 795 B

123456789101112131415161718192021222324252627
  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. namespace BansheeEngine
  6. {
  7. /** @addtogroup RenderAPI-Internal
  8. * @{
  9. */
  10. /** Factory class that you may specialize in order to start up a specific render system. */
  11. class RenderAPIFactory
  12. {
  13. public:
  14. virtual ~RenderAPIFactory() { }
  15. /** Creates and starts up the render system managed by this factory. */
  16. virtual void create() = 0;
  17. /** Returns the name of the render system this factory creates. */
  18. virtual const char* name() const = 0;
  19. };
  20. /** @} */
  21. }