ImageLoaders.cpp File Reference

#include "ImageLoaders.h"
#include "MercuryTextureManager.h"
#include "MercuryFiles.h"
#include "MercuryLog.h"
#include <png.h>

Go to the source code of this file.

Defines

#define abort_(x)   { LOG.Warn(x); return NULL; }

Functions

void PNGRead (png_struct *png, png_byte *p, png_size_t size)
RawImageDataLoadPNG (MercuryFile *fp)
RawImageDataLoadBMP (MercuryFile *file)
 RUN_STATEMENT_AT_BOOT (include_png, IMAGEREADERREGISTER.AddDecoder(LoadPNG,"‰PN");) RUN_STATEMENT_AT_BOOT(include_bmp
IMAGEREADERREGISTER AddDecoder (LoadBMP,"BM8")


Define Documentation

#define abort_ (  )     { LOG.Warn(x); return NULL; }

Definition at line 17 of file ImageLoaders.cpp.


Function Documentation

IMAGEREADERREGISTER AddDecoder ( LoadBMP  ,
"BM8"   
)

RawImageData* LoadBMP ( MercuryFile file  ) 

Definition at line 154 of file ImageLoaders.cpp.

RawImageData* LoadPNG ( MercuryFile fp  ) 

Definition at line 32 of file ImageLoaders.cpp.

void PNGRead ( png_struct *  png,
png_byte *  p,
png_size_t  size 
)

Definition at line 19 of file ImageLoaders.cpp.

RUN_STATEMENT_AT_BOOT ( include_png  ,
IMAGEREADERREGISTER.AddDecoder(LoadPNG,"‰PN");   
)


Hosted by SourceForge.net Logo