font_outline*: fix examples
Fix frame_ix increment. Remove unncessary differences between the two examples.
This commit is contained in:
parent
0510598233
commit
39e97a3f1b
@ -293,6 +293,6 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix++;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -188,11 +188,6 @@ void init_texture_memory(const struct opb_size& opb_size)
|
|||||||
background_parameter(0xff0000ff);
|
background_parameter(0xff0000ff);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr inline uint32_t b(uint32_t v, uint32_t n)
|
|
||||||
{
|
|
||||||
return ((v >> n) & 1) << (4 * n);
|
|
||||||
}
|
|
||||||
|
|
||||||
void inflate_font(const uint32_t * src,
|
void inflate_font(const uint32_t * src,
|
||||||
const uint32_t stride,
|
const uint32_t stride,
|
||||||
const uint32_t curve_end_ix)
|
const uint32_t curve_end_ix)
|
||||||
@ -218,6 +213,7 @@ void main()
|
|||||||
serial::integer<uint32_t>(font->first_char_code);
|
serial::integer<uint32_t>(font->first_char_code);
|
||||||
serial::integer<uint32_t>(font->glyph_count);
|
serial::integer<uint32_t>(font->glyph_count);
|
||||||
serial::integer<uint32_t>(font->glyph_height);
|
serial::integer<uint32_t>(font->glyph_height);
|
||||||
|
serial::integer<uint32_t>(font->texture_stride);
|
||||||
serial::integer<uint32_t>(font->texture_width);
|
serial::integer<uint32_t>(font->texture_width);
|
||||||
serial::integer<uint32_t>(font->texture_height);
|
serial::integer<uint32_t>(font->texture_height);
|
||||||
serial::character('\n');
|
serial::character('\n');
|
||||||
@ -299,6 +295,6 @@ void main()
|
|||||||
core_flip(frame_ix);
|
core_flip(frame_ix);
|
||||||
while (spg_status::vsync(holly.SPG_STATUS));
|
while (spg_status::vsync(holly.SPG_STATUS));
|
||||||
|
|
||||||
frame_ix++;
|
frame_ix = (frame_ix + 1) & 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user