18 lines
373 B
C++
18 lines
373 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "Image.h"
|
|
|
|
namespace Asset
|
|
{
|
|
class SpriteAssetLoader
|
|
{
|
|
public:
|
|
static const char* GetFileExtension() { return ".sprite"; }
|
|
|
|
static bool Load(const std::string& path, std::vector<uint16_t>& pixels, RenderData::Image& image);
|
|
static bool Save(const std::string& path, const RenderData::Image& image);
|
|
};
|
|
}
|