|
Jo Engine
2024.04.28
Jo Sega Saturn Engine
|
Go to the documentation of this file.
35 #ifndef __JO_IMAGE_H__
36 # define __JO_IMAGE_H__
41 # define JO_TILE_COUNT(TILE_TABLE) (sizeof(TILE_TABLE) / sizeof(jo_tile))
50 #ifdef JO_COMPILE_WITH_FS_SUPPORT
bool jo_bin_loader_from_stream(jo_img *img, char *stream, const jo_color transparent_color)
Load a BIN image from stream.
Struct of one tile (pos and size)
Definition: types.h:257
int jo_sprite_add_bin_tileset(const char *const sub_dir, const char *const filename, const jo_color transparent_color, const jo_tile *const tileset, const unsigned int tile_count)
Add tileset sprites from a BIN file.
bool jo_bin_loader(jo_img *img, const char *const sub_dir, const char *const filename, const jo_color transparent_color)
Load a BIN image.
unsigned short jo_color
15 bits color type
Definition: types.h:42
void jo_free_img(void *const img)
Free an image loaded from CD.
int jo_sprite_add_bin_from_stream(char *stream, const jo_color transparent_color)
Add a sprite from a BIN file.
void jo_replace_color(const jo_img *const img, const jo_color src_color, const jo_color dest_color)
Add a sprite.
int jo_sprite_add_bin(const char *const sub_dir, const char *const filename, const jo_color transparent_color)
Add a sprite from a BIN file.
int jo_sprite_add_image_pack(const char *const sub_dir, const char *const filename, const jo_color transparent_color)
Add a set of image from a TEX file format.
15 bits image struct
Definition: types.h:226