renamed some sprite functions for consistency

This commit is contained in:
Andre Leiradella 2015-05-09 23:31:58 -03:00
parent 9ff3b982d6
commit a48f771717
3 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ static int compare( const void* e1, const void* e2 )
return c1 - c2;
}
void rl_sprites_render( void )
void rl_sprites_blit_nobg( void )
{
spt_t* sptptr = sprites;
const spt_t* endptr = sprites + num_sprites;
@ -116,7 +116,7 @@ void rl_sprites_render( void )
num_sprites = sptptr - sprites;
}
void rl_sprites_begin( void )
void rl_sprites_blit( void )
{
spt_t* sptptr = sprites;
const spt_t* endptr = sprites + num_sprites;
@ -170,7 +170,7 @@ void rl_sprites_begin( void )
num_sprites = sptptr - sprites;
}
void rl_sprites_end( void )
void rl_sprites_unblit( void )
{
spt_t* sptptr = sprites + num_visible - 1;

View File

@ -38,9 +38,9 @@ rl_sprite_t* rl_sprite_create( void );
void rl_sprites_translate( int x0, int y0 );
void rl_sprites_render( void );
void rl_sprites_blit_nobg( void );
void rl_sprites_begin( void );
void rl_sprites_end( void );
void rl_sprites_blit( void );
void rl_sprites_unblit( void );
#endif /* RL_SPRITE_H */

View File

@ -284,7 +284,7 @@ static void testscr_update( testscr_t* s )
int y = s->yy * max_y / height;
rl_map_render_layer( s->map, 0, x, y );
rl_sprites_render();
rl_sprites_blit_nobg();
rl_map_render_layer( s->map, 1, x, y );
}
}