-
Notifications
You must be signed in to change notification settings - Fork 3
/
pack.h
executable file
·26 lines (23 loc) · 987 Bytes
/
pack.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "pakfile.h"
#include <string>
#include <functional>
#include <map>
namespace scpak
{
typedef std::function<void(const std::string &inputDir, PakItem &output, const std::string &meta)> packer_type;
PakFile pack(const std::string &dirPath,
const std::map<std::string, packer_type> &packers,
const packer_type &default_packer);
PakFile pack(const std::string &dirPath,
bool packText = false,
bool packTexture = false,
bool packFont = false,
bool packSound = false);
PakFile packAll(const std::string &dirPath);
void pack_raw(const std::string &inputDir, PakItem &item);
void pack_string(const std::string &inputDir, PakItem &item);
void pack_bitmapFont(const std::string &inputDir, PakItem &item);
void pack_texture(const std::string &inputDir, PakItem &item, const std::string &meta);
void pack_soundBuffer(const std::string &inputDir, PakItem &item);
}