196 adiline2(
"LT:%s:%s", _filename, lookedFilename );
198 unsigned char*
source =
stbi_load(lookedFilename, &width, &height, &depth, 0);
221 Variable * realImage =
image_converter( _environment,
source, 8, 8, depth, 0, 0, 8, 8,
BITMAP_MODE_DEFAULT, 0, _flags );
void cpu_store_8bit(Environment *_environment, char *_destination, int _value)
CPU 6309: emit code to store 8 bit
#define IMAGE_HEIGHT_SIZE
#define BITMAP_MODE_DEFAULT
Variable * variable_retrieve(Environment *_environment, char *_name)
int tile_allocate(TileDescriptors *_tiles, char *_data)
char * image_flip_y(Environment *_environment, char *_source, int _width, int _height, int _depth)
TileDescriptor * calculate_tile_descriptor(TileData *_tileData)
char * image_flip_x(Environment *_environment, char *_source, int _width, int _height, int _depth)
int variable_delete(Environment *_environment, char *_name)
char * resource_load_asserts(Environment *_environment, char *_filename)
Variable * variable_temporary(Environment *_environment, VariableType _type, char *_meaning)
Define a temporary variable.
Variable * image_converter(Environment *_environment, char *_data, int _width, int _height, int _depth, int _offset_x, int _offset_y, int _frame_width, int _frame_height, int _mode, int _transparent_color, int _flags)
STBIDEF void stbi_image_free(void *retval_from_stbi_load)
STBIDEF stbi_uc * stbi_load(char const *filename, int *x, int *y, int *channels_in_file, int desired_channels)
TileDescriptors * tilesets[MAX_TILESETS]
int tenLinerRulesEnforced
TileDescriptors * descriptors
TileDescriptor * descriptor[512]
unsigned char * valueBuffer
Variable * tile_load(Environment *_environment, char *_filename, int _flags, char *_tileset, int _index)
Emit code for LOAD TILE(...).
#define CRITICAL_10_LINE_RULES_ENFORCED(v)
#define CRITICAL_CANNOT_ALLOCATE_MORE_TILE()
struct _TileDescriptors TileDescriptors
struct _Variable Variable
Structure of a single variable.
struct _Environment Environment
Structure of compilation environment.
#define CRITICAL_TILE_LOAD_UNKNOWN_FORMAT(f)
#define CRITICAL_SANDBOX_ENFORCED(v)
#define CRITICAL_TILE_LOAD_ON_NON_TILESET(t)
#define CRITICAL_TILE_INVALID_HEIGHT(h)
#define CRITICAL_TILE_INVALID_WIDTH(w)
#define adiline2(s, a, b)