YAGE  v0.1.1
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
picopng.h
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * picopng.h
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 <cstdlib>
10 #include <vector>
11 
12 namespace yage
13 {
14 
15 extern int decodePNG(std::vector<unsigned char> &out_image,
16  unsigned long &image_width, unsigned long &image_height,
17  const unsigned char *in_png, size_t in_size,
18  bool convert_to_rgba32 = true);
19 
20 } // namespace yage
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)
Definition: picopng.cpp:34