X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=trail.h;h=82c7d608564aeea545133224f10c35fc1295a305;hb=0ba0bbe2da453f17f56a88521057e6514ae30b8f;hp=dc90fc9438414e45c598a161c3774bd5d56887fd;hpb=6538d63bbe4c4d5efb08bd207498ef57a6657e4d;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/trail.h b/trail.h index dc90fc9..82c7d60 100644 --- a/trail.h +++ b/trail.h @@ -1,7 +1,4 @@ -#ifndef TRAIL_H -#define TRAIL_H - -#include "skaterift.h" +#pragma once typedef struct trail_system trail_system; typedef struct trail_point trail_point; @@ -26,18 +23,11 @@ struct trail_system { /* render settings */ f32 width, lifetime, min_dist; -} -static trails_test = { - .width = 0.25f, - .lifetime = 5.0f, - .min_dist = 0.5f }; -static void trail_alloc( trail_system *sys, u32 max ); -static void trail_system_update( trail_system *sys, f32 dt, - v3f co, v3f normal, f32 alpha ); -static void trail_system_debug( trail_system *sys ); -static void trail_system_prerender( trail_system *sys ); -static void trail_system_render( trail_system *sys, camera *cam ); - -#endif /* TRAIL_H */ +void trail_alloc( trail_system *sys, u32 max ); +void trail_system_update( trail_system *sys, f32 dt, v3f co, + v3f normal, f32 alpha ); +void trail_system_debug( trail_system *sys ); +void trail_system_prerender( trail_system *sys ); +void trail_system_render( trail_system *sys, vg_camera *cam );