resonance 1.0.1
Loading...
Searching...
No Matches
agfxfile.h File Reference
#include <stdio.h>
#include "rndartt/arect.h"
Include dependency graph for agfxfile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AGfxFile
 Image file reader and writer, one subclass per file format. More...

Enumerations

enum  AGfxFileResult {
  kAGfxFileOk = 0 , kAGfxFileNoMemory = -1 , kAGfxFileOpenFailed = -2 , kAGfxFileUnsupported = -4 ,
  kAGfxFileBadFormat = -6
}
 Results the AGfxFile members return. More...

Functions

int GrabExt (const char *pszPath)
 Return the first three characters after the last full stop of a path, packed into a word.

Enumeration Type Documentation

◆ AGfxFileResult

Results the AGfxFile members return.

Enumerator
kAGfxFileOk 

The operation succeeded.

kAGfxFileNoMemory 

The pixel rectangle could not be allocated.

kAGfxFileOpenFailed 

The file could not be opened.

kAGfxFileUnsupported 

The format does not implement the operation.

kAGfxFileBadFormat 

The file content is not in a form the reader accepts.

Function Documentation

◆ GrabExt()

int GrabExt ( const char * pszPath)

Return the first three characters after the last full stop of a path, packed into a word.

Each character is converted to upper case through the ctype table, and the first character lands in the low byte. Zero results when the path has no full stop or when a path separator follows it, and a shorter extension leaves the remaining bytes zero.

Parameters
pszPathThe path.
Returns
The packed extension, BMP being 0x504d42.
Ghidra address:
NTSC-U/C: 0x0062f560
Ghidra address:
PAL: 0x006700f0