emilib
tga.hpp
1 // By Emil Ernerfeldt 2014-2016
2 // LICENSE:
3 // This software is dual-licensed to the public domain and under the following
4 // license: you are granted a perpetual, irrevocable license to copy, modify,
5 // publish, and distribute this file as you see fit.
6 
7 #pragma once
8 
9 #include <cstdint>
10 #include <vector>
11 
12 namespace emilib {
13 
17 bool write_tga(const char* path, size_t width, size_t height, const void* rgba_ptr, bool include_alpha);
18 
20 std::vector<uint8_t> encode_tga(size_t width, size_t height, const void* rgba_ptr, bool include_alpha);
21 
22 } // namespace emilib
Definition: coroutine.hpp:18