GrafX2 2.9.3227
The ultimate 256-color painting program
loadsavefuncs.h File Reference

helper functions for load/save More...

+ This graph shows which files directly or indirectly include this file:

Macros

#define Write_one_byte(file, b)   do { if (!Write_byte(file,(b))) File_error=1; } while (0)
 

Functions

FILE * Open_file_write (T_IO_Context *context)
 For use by Save_XXX() functions. More...
 
FILE * Open_file_read (T_IO_Context *context)
 For use by Load_XXX() and Test_XXX() functions. More...
 
FILE * Open_file_read_with_alternate_ext (T_IO_Context *context, const char *ext)
 For use by Load_XXX() and Test_XXX() functions. More...
 
void Remove_file (T_IO_Context *context)
 For use by Save_XXX() functions. More...
 
FILE * Open_file_write_with_alternate_ext (T_IO_Context *context, const char *ext)
 For use by Save_XXX() functions. More...
 
void Palette_256_to_64 (T_Palette palette)
 
void Palette_64_to_256 (T_Palette palette)
 
word Current_layer_count_used_colors (T_IO_Context *context, dword *usage)
 

Detailed Description

helper functions for load/save

Macro Definition Documentation

◆ Write_one_byte

#define Write_one_byte (   file,
 
)    do { if (!Write_byte(file,(b))) File_error=1; } while (0)

Function Documentation

◆ Open_file_write()

◆ Open_file_read()

◆ Open_file_read_with_alternate_ext()

◆ Remove_file()

◆ Open_file_write_with_alternate_ext()

FILE * Open_file_write_with_alternate_ext ( T_IO_Context context,
const char *  ext 
)

◆ Palette_256_to_64()

void Palette_256_to_64 ( T_Palette  palette)

Referenced by Save_PKM(), and Save_SCx().

◆ Palette_64_to_256()

void Palette_64_to_256 ( T_Palette  palette)

Referenced by Load_PAL(), Load_PKM(), and Load_SCx().

◆ Current_layer_count_used_colors()

word Current_layer_count_used_colors ( T_IO_Context context,
dword usage 
)