Tue, 07 May 2013 05:04:46 -0400
Rewrite debug window filter in JS.
Note, this does cause a couple regressions, but they are probably not
that big a deal. First, the JS regular expression syntax is slightly
different. Second, the JS regex API lacks a way to reliably determine
the location of matched groups, so we can't highlight just the groups
and must highlight the entire expression.
I suspect that none of our users ever had to use any fancy regex in the
debug window, and that most of our developers didn't even know it could
be done. So I doubt these regressions will cause much pain.
#ifndef __FILTER_H__ #define __FILTER_H__ struct cc_features; typedef struct filter_bank { float head_size[10]; float head_z_rot[10]; float head_y_rot[10]; float mouth_open[10]; float xfilt[10]; float yfilt[10]; } filter_bank; filter_bank* Filter_Initialize (void); void Filter_Destroy (filter_bank *f); void filter(struct cc_features *instance, filter_bank *f); #endif /* __FILTER_H__ */