summaryrefslogtreecommitdiff
path: root/src/modules/roto/roto.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-04-21 14:42:14 -0700
committerVito Caputo <vcaputo@pengaru.com>2017-04-22 07:36:26 -0700
commit406495a01b1de41abc1b9240096da3741155b6fd (patch)
treed2c1e11e4f2cc94fb4dc6d8dc4d08aff2b6a67a2 /src/modules/roto/roto.c
parentf1557bea361602224f07965b8292b694ef570690 (diff)
*: /render/render_fragment/ in rototiller_module_t
Adding more context to the name in anticipation of adding a prepare_frame() method to the module struct.
Diffstat (limited to 'src/modules/roto/roto.c')
-rw-r--r--src/modules/roto/roto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/roto/roto.c b/src/modules/roto/roto.c
index c44d624..45b8700 100644
--- a/src/modules/roto/roto.c
+++ b/src/modules/roto/roto.c
@@ -149,7 +149,7 @@ static void init_roto(uint8_t texture[256][256], int32_t *costab, int32_t *sinta
/* Draw a rotating checkered 256x256 texture into fragment. (32-bit version) */
-static void roto32(fb_fragment_t *fragment)
+static void roto32_render_fragment(fb_fragment_t *fragment)
{
static int32_t costab[FIXED_TRIG_LUT_SIZE], sintab[FIXED_TRIG_LUT_SIZE];
static uint8_t texture[256][256];
@@ -213,7 +213,7 @@ static void roto32(fb_fragment_t *fragment)
/* Draw a rotating checkered 256x256 texture into fragment. (64-bit version) */
-static void roto64(fb_fragment_t *fragment)
+static void roto64_render_fragment(fb_fragment_t *fragment)
{
static int32_t costab[FIXED_TRIG_LUT_SIZE], sintab[FIXED_TRIG_LUT_SIZE];
static uint8_t texture[256][256];
@@ -288,7 +288,7 @@ static void roto64(fb_fragment_t *fragment)
rototiller_module_t roto32_module = {
- .render = roto32,
+ .render_fragment = roto32_render_fragment,
.name = "roto32",
.description = "Anti-aliased tiled texture rotation (32-bit)",
.author = "Vito Caputo <vcaputo@pengaru.com>",
@@ -297,7 +297,7 @@ rototiller_module_t roto32_module = {
rototiller_module_t roto64_module = {
- .render = roto64,
+ .render_fragment = roto64_render_fragment,
.name = "roto64",
.description = "Anti-aliased tiled texture rotation (64-bit)",
.author = "Vito Caputo <vcaputo@pengaru.com>",
© All Rights Reserved