forked from scottcgi/Mojoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImage.h
41 lines (31 loc) · 1018 Bytes
/
Image.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub.
* The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion.
*
* License : https://github.com/scottcgi/Mojoc/blob/master/LICENSE
* GitHub : https://github.com/scottcgi/Mojoc
* CodeStyle: https://github.com/scottcgi/Mojoc/blob/master/Docs/CodeStyle.md
*
* Since : 2013-8-30
* Update : 2019-1-19
* Author : scott.cgi
*/
#ifndef IMAGE_H
#define IMAGE_H
#include "Engine/Toolkit/HeaderUtils/Define.h"
struct AImage
{
/**
* Read png pixel data from resourceFilePath, after using the data must be freed.
* return NULL when error happened.
*
* resourceFilePath:
* Android: assets
* IOS : NSBundle
*/
void* (*CreatePixelDataFromPNG)(const char* resourceFilePath, float* outWidth, float* outHeight);
};
extern struct AImage AImage[1];
#endif