Rename gfx_coord_array_add to gfx_coord_array_append

This commit is contained in:
twinaphex 2016-03-23 07:01:54 +01:00
parent e1c47a68fe
commit 072d6ff125
4 changed files with 5 additions and 5 deletions

View File

@ -330,7 +330,7 @@ static void gl_raster_font_render_line(
coords.lut_tex_coord = font_lut_tex_coord;
if (font->block)
gfx_coord_array_add(&font->block->carr, &coords, coords.vertices);
gfx_coord_array_append(&font->block->carr, &coords, coords.vertices);
else
gl_raster_font_draw_vertices(gl, &coords);

View File

@ -59,7 +59,7 @@ static bool gfx_coord_array_resize(gfx_coord_array_t *ca,
return true;
}
bool gfx_coord_array_add(gfx_coord_array_t *ca,
bool gfx_coord_array_append(gfx_coord_array_t *ca,
const gfx_coords_t *coords, unsigned count)
{
size_t base_size, offset;

View File

@ -84,7 +84,7 @@ typedef struct gfx_raster_block
gfx_coord_array_t carr;
} gfx_font_raster_block_t;
bool gfx_coord_array_add(gfx_coord_array_t *ca,
bool gfx_coord_array_append(gfx_coord_array_t *ca,
const gfx_coords_t *coords, unsigned count);
void gfx_coord_array_free(gfx_coord_array_t *ca);

View File

@ -346,14 +346,14 @@ static void zarch_zui_push_quad(unsigned width, unsigned height,
coords.lut_tex_coord = coord_draw.ptr;
coords.vertices = 3;
gfx_coord_array_add(ca, &coords, 3);
gfx_coord_array_append(ca, &coords, 3);
coords.color += 4;
coords.vertex += 2;
coords.tex_coord += 2;
coords.lut_tex_coord += 2;
gfx_coord_array_add(ca, &coords, 3);
gfx_coord_array_append(ca, &coords, 3);
}
static float zarch_zui_randf(float min, float max)