TextureImporter.h 855 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
  3. // LICENSE: Atomic Game Engine Editor and Tools EULA
  4. // Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
  5. // license information: https://github.com/AtomicGameEngine/AtomicGameEngine
  6. //
  7. #pragma once
  8. #include "AssetImporter.h"
  9. namespace ToolCore
  10. {
  11. class TextureImporter : public AssetImporter
  12. {
  13. OBJECT(TextureImporter);
  14. public:
  15. /// Construct.
  16. TextureImporter(Context* context, Asset* asset);
  17. virtual ~TextureImporter();
  18. virtual void SetDefaults();
  19. Resource* GetResource(const String& typeName = String::EMPTY);
  20. Node* InstantiateNode(Node* parent, const String& name);
  21. protected:
  22. bool Import();
  23. virtual bool LoadSettingsInternal(JSONValue& jsonRoot);
  24. virtual bool SaveSettingsInternal(JSONValue& jsonRoot);
  25. };
  26. }