From b686b405c6a22b26e9b8082c92ed91513608bea3 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 1 Oct 2021 16:35:08 -0700 Subject: *: librototiller->libtil Largely mechanical rename of librototiller -> libtil, but introducing a til_ prefix to all librototiller (now libtil) functions and types where a rototiller prefix was absent. This is just a step towards a more libized librototiller, and til is just a nicer to type/read prefix than rototiller_. --- src/modules/swarm/swarm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/swarm/swarm.c') diff --git a/src/modules/swarm/swarm.c b/src/modules/swarm/swarm.c index 4ebd79e..0b320fb 100644 --- a/src/modules/swarm/swarm.c +++ b/src/modules/swarm/swarm.c @@ -24,8 +24,8 @@ #include #include -#include "fb.h" -#include "rototiller.h" +#include "til.h" +#include "til_fb.h" #define SWARM_SIZE (32 * 1024) #define SWARM_ZCONST 4.f @@ -236,13 +236,13 @@ static void swarm_update(swarm_context_t *ctxt, unsigned ticks) } -static void swarm_render_fragment(void *context, unsigned ticks, unsigned cpu, fb_fragment_t *fragment) +static void swarm_render_fragment(void *context, unsigned ticks, unsigned cpu, til_fb_fragment_t *fragment) { swarm_context_t *ctxt = context; swarm_update(ctxt, ticks); - fb_fragment_zero(fragment); + til_fb_fragment_zero(fragment); { float fw = fragment->frame_width, fh = fragment->frame_height; @@ -261,13 +261,13 @@ static void swarm_render_fragment(void *context, unsigned ticks, unsigned cpu, f nc.x = nc.x * fw + fw; nc.y = nc.y * fh + fh; - fb_fragment_put_pixel_checked(fragment, nc.x, nc.y, color); + til_fb_fragment_put_pixel_checked(fragment, nc.x, nc.y, color); } } } -rototiller_module_t swarm_module = { +til_module_t swarm_module = { .create_context = swarm_create_context, .destroy_context = swarm_destroy_context, .render_fragment = swarm_render_fragment, -- cgit v1.2.1