53void blit_image(
Environment * _environment,
char * _blit,
char * _x,
char * _y,
char * _frame,
char * _sequence,
int _flags ) {
64 vtImage = image->
type;
66 if ( image->
type != vtImage ) {
70 sources[i] = strdup( image->
realName );
95 tms9918_blit_image( _environment, sources, _environment->
blit.
sourceCount, blitLabel, x->
realName, y->
realName,
"",
"", image->
frameSize, image->
frameCount, _flags );
97 tms9918_blit_image( _environment, sources, _environment->
blit.
sourceCount, blitLabel, x->
realName, y->
realName, frame->
realName,
"", image->
frameSize, image->
frameCount, _flags );
101 tms9918_blit_image( _environment, sources, _environment->
blit.
sourceCount, blitLabel, x->
realName, y->
realName,
"", sequence->
realName, image->
frameSize, image->
frameCount, _flags );
103 tms9918_blit_image( _environment, sources, _environment->
blit.
sourceCount, blitLabel, x->
realName, y->
realName, frame->
realName, sequence->
realName, image->
frameSize, image->
frameCount, _flags );
109 tms9918_blit_image( _environment, sources, _environment->
blit.
sourceCount, blitLabel, x->
realName, y->
realName,
"", NULL, image->
frameSize, 0, _flags );
111 tms9918_blit_image( _environment, sources, _environment->
blit.
sourceCount, blitLabel, x->
realName, y->
realName, frame->
realName, NULL, image->
frameSize, 0, _flags );
115 tms9918_blit_image( _environment, sources, _environment->
blit.
sourceCount, blitLabel, x->
realName, y->
realName, NULL, NULL, 0, 0, _flags );
Variable * variable_retrieve(Environment *_environment, char *_name)
Variable * variable_retrieve_or_define(Environment *_environment, char *_name, VariableType _type, int _value)
void blit_image(Environment *_environment, char *_blit, char *_x, char *_y, char *_frame, char *_sequence, int _flags)
Emit ASM code for BLIT IMAGE [image] AT [int],[int].
char * sources[MAX_TEMPORARY_STORAGE]
void tms9918_blit_image(Environment *_environment, char *_sources[], int _source_count, char *_blit, char *_x, char *_y, char *_frame, char *_sequence, int _frame_size, int _frame_count, int _flags)
#define CRITICAL_BLIT_IMAGE_UNSUPPORTED(v, t)
#define MAX_TEMPORARY_STORAGE
#define CRITICAL_BLIT_CANNOT_MIX_IMAGE_TYPES(n)
struct _Variable Variable
Structure of a single variable.
struct _Environment Environment
Structure of compilation environment.
#define CRITICAL_BLIT_CANNOT_BLIT(n)
enum _VariableType VariableType
Type of variables.
char DATATYPE_AS_STRING[][16]