TextureImporter.h 538 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "AssetImporter.h"
  3. namespace ToolCore
  4. {
  5. class TextureImporter : public AssetImporter
  6. {
  7. OBJECT(TextureImporter);
  8. public:
  9. /// Construct.
  10. TextureImporter(Context* context, Asset* asset);
  11. virtual ~TextureImporter();
  12. virtual void SetDefaults();
  13. Resource* GetResource(const String& typeName = String::EMPTY);
  14. Node* InstantiateNode(Node* parent, const String& name);
  15. protected:
  16. bool Import();
  17. virtual bool LoadSettingsInternal();
  18. virtual bool SaveSettingsInternal();
  19. };
  20. }