YAGE
0.02
Yet Another Game Engine
picopng.hpp
Go to the documentation of this file.
1
/* ----------------------------------------------------------------------------
2
* picopng.hpp
3
*
4
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5
* See file LICENSE for more details
6
* ----------------------------------------------------------------------------
7
*/
8
9
#include <vector>
10
#include <cstdlib>
11
12
namespace
yage
13
{
14
15
extern
int
decodePNG
(std::vector<unsigned char> &out_image,
16
unsigned
long
&image_width,
17
unsigned
long
&image_height,
18
const
unsigned
char
*in_png,
19
size_t
in_size,
20
bool
convert_to_rgba32 =
true
);
21
22
}
// yage
yage::decodePNG
int decodePNG(std::vector< unsigned char > &out_image, unsigned long &image_width, unsigned long &image_height, const unsigned char *in_png, size_t in_size, bool convert_to_rgba32=true)
Definition:
picopng.cpp:33
yage
Templated matrix class.
Definition:
camera2d.hpp:17
include
YAGE
picopng.hpp
Generated on Wed Aug 23 2017 22:56:51 for YAGE by
1.8.13