apple2ix/src/video_util/imageUtil.h

35 lines
745 B
C
Raw Normal View History

/*
* Apple // emulator for *ix
2014-10-08 04:59:21 +00:00
*
* This software package is subject to the GNU General Public License
* version 3 or later (your choice) as published by the Free Software
2014-10-08 04:59:21 +00:00
* Foundation.
*
* Copyright 2013-2015 Aaron Culliney
2014-10-08 04:59:21 +00:00
*
*/
2014-10-08 04:59:21 +00:00
// Modified sample code from https://developer.apple.com/library/mac/samplecode/GLEssentials/Introduction/Intro.html
#ifndef __IMAGE_UTIL_H__
#define __IMAGE_UTIL_H__
#include "glUtil.h"
2014-10-08 04:59:21 +00:00
typedef struct demoImageRec {
GLubyte *data;
GLsizei size;
GLuint width;
GLuint height;
GLenum format;
GLenum type;
GLuint rowByteSize;
} demoImage;
2014-10-08 04:59:21 +00:00
demoImage *imgLoadImage(const char *filepathname, int flipVertical);
2014-10-08 04:59:21 +00:00
void imgDestroyImage(demoImage *image);
#endif //__IMAGE_UTIL_H__