Oolite
Loading...
Searching...
No Matches
OOPNGTextureLoader.m File Reference
Include dependency graph for OOPNGTextureLoader.m:

Go to the source code of this file.

Classes

category  OOPNGTextureLoader(OOPrivate)

Macros

#define MSG_TERMINATOR   ""

Functions

static void PNGError (png_structp png, png_const_charp message)
static void PNGWarning (png_structp png, png_const_charp message)
static void PNGRead (png_structp png, png_bytep bytes, png_size_t size)

Macro Definition Documentation

◆ MSG_TERMINATOR

#define MSG_TERMINATOR   ""

Definition at line 196 of file OOPNGTextureLoader.m.

Referenced by PNGError(), and PNGWarning().

Function Documentation

◆ PNGError()

void PNGError ( png_structp png,
png_const_charp message )
static

Definition at line 199 of file OOPNGTextureLoader.m.

200{
201 OOPNGTextureLoader* loader = png_get_io_ptr(png);
202 OOLog(@"texture.load.png.error", @"***** A PNG loading error occurred for %@: %s" MSG_TERMINATOR, [loader path], message);
203
204#if PNG_LIBPNG_VER >= 10500
205 png_longjmp(png, 1);
206#else
207 longjmp(png_jmpbuf(png), 1);
208#endif
209}
#define OOLog(class, format,...)
Definition OOLogging.h:84
#define MSG_TERMINATOR

References MSG_TERMINATOR, and OOLog.

Referenced by OOPNGTextureLoader(OOPrivate)::doLoadTexture.

Here is the caller graph for this function:

◆ PNGRead()

void PNGRead ( png_structp png,
png_bytep bytes,
png_size_t size )
static

Definition at line 217 of file OOPNGTextureLoader.m.

218{
219 OOPNGTextureLoader* loader = png_get_io_ptr(png);
220 [loader readBytes:bytes count:size];
221}
void readBytes:count:(png_bytep bytes,[count] png_size_t count)

References OOPNGTextureLoader::readBytes:count:.

Referenced by OOPNGTextureLoader(OOPrivate)::doLoadTexture.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PNGWarning()

void PNGWarning ( png_structp png,
png_const_charp message )
static

Definition at line 211 of file OOPNGTextureLoader.m.

212{
213 OOPNGTextureLoader* loader = png_get_io_ptr(png);
214 OOLog(@"texture.load.png.warning", @"----- A PNG loading warning occurred for %@: %s" MSG_TERMINATOR, [loader path], message);
215}

References MSG_TERMINATOR, and OOLog.

Referenced by OOPNGTextureLoader(OOPrivate)::doLoadTexture.

Here is the caller graph for this function: