ContextInstancerDefault.cpp 596 B

12345678910111213141516171819202122232425
  1. #include "ContextInstancerDefault.h"
  2. #include "../../Include/RmlUi/Core/Context.h"
  3. namespace Rml {
  4. ContextInstancerDefault::ContextInstancerDefault() {}
  5. ContextInstancerDefault::~ContextInstancerDefault() {}
  6. ContextPtr ContextInstancerDefault::InstanceContext(const String& name, RenderManager* render_manager, TextInputHandler* text_input_handler)
  7. {
  8. return ContextPtr(new Context(name, render_manager, text_input_handler));
  9. }
  10. void ContextInstancerDefault::ReleaseContext(Context* context)
  11. {
  12. delete context;
  13. }
  14. void ContextInstancerDefault::Release()
  15. {
  16. delete this;
  17. }
  18. } // namespace Rml