Open source remastering of the Freespace 2 engine
pngutils.cpp File Reference
#include <stdio.h>
#include <string.h>
#include "bmpman/bmpman.h"
#include "cfile/cfile.h"
#include "globalincs/pstypes.h"
#include "graphics/2d.h"
#include "palman/palman.h"
#include "png.h"
#include "pngutils/pngutils.h"

Go to the source code of this file.


void png_scp_read_data (png_structp png_ptr, png_bytep data, png_size_t length)
int png_read_header (const char *real_filename, CFILE *img_cfp, int *w, int *h, int *bpp, ubyte *palette)
int png_read_bitmap (const char *real_filename, ubyte *image_data, ubyte *bpp, int dest_size, int cf_type)


CFILEpng_file = NULL

Function Documentation

int png_read_bitmap ( const char *  real_filename,
ubyte image_data,
ubyte bpp,
int  dest_size,
int  cf_type 

Definition at line 133 of file pngutils.cpp.

int png_read_header ( const char *  real_filename,
CFILE img_cfp,
int w,
int h,
int bpp,
ubyte palette 

Definition at line 38 of file pngutils.cpp.

void png_scp_read_data ( png_structp  png_ptr,
png_bytep  data,
png_size_t  length 

Definition at line 15 of file pngutils.cpp.

Variable Documentation

CFILE* png_file = NULL

Definition at line 12 of file pngutils.cpp.