| 494 |
theseven |
1 |
//
|
|
|
2 |
//
|
|
|
3 |
// Copyright 2011 TheSeven
|
|
|
4 |
//
|
|
|
5 |
//
|
|
|
6 |
// This file is part of emCORE.
|
|
|
7 |
//
|
|
|
8 |
// emCORE is free software: you can redistribute it and/or
|
|
|
9 |
// modify it under the terms of the GNU General Public License as
|
|
|
10 |
// published by the Free Software Foundation, either version 2 of the
|
|
|
11 |
// License, or (at your option) any later version.
|
|
|
12 |
//
|
|
|
13 |
// emCORE is distributed in the hope that it will be useful,
|
|
|
14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
16 |
// See the GNU General Public License for more details.
|
|
|
17 |
//
|
|
|
18 |
// You should have received a copy of the GNU General Public License along
|
|
|
19 |
// with emCORE. If not, see <http://www.gnu.org/licenses/>.
|
|
|
20 |
//
|
|
|
21 |
//
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
#include "emcorelib.h"
|
|
|
25 |
#include "export/libpng.h"
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
struct libpng_api apitable =
|
|
|
29 |
{
|
|
|
30 |
.png_open = png_open,
|
|
|
31 |
.png_get_width = png_get_width,
|
|
|
32 |
.png_get_height = png_get_height,
|
|
|
33 |
.png_set_background = png_set_background,
|
|
|
34 |
.png_decode_rgba = png_decode_rgba,
|
|
|
35 |
.png_decode_rgb = png_decode_rgb,
|
|
|
36 |
.png_destroy = png_destroy
|
|
|
37 |
};
|
|
|
38 |
|
| 651 |
theseven |
39 |
EMCORE_LIB_HEADER(LIBPNG_IDENTIFIER, LIBPNG_API_VERSION, LIBPNG_MIN_API_VERSION,
|
|
|
40 |
NULL, NULL, apitable)
|