#include <float.h>
#include "rendermodes.h"
Defines | |
#define | lineDDA_gatherRGB(x0, y0, xEnd, yEnd, color, dst, dst_w, dst_h, r, g, b) |
#define | _f1_x(rank, ret_color) |
#define | _f2_x(rank, dir_flag, ret_color) |
#define | TEST_NEIGHBORHOOD(testpos, testdist, retval) |
#define | SLTEX_BLUR_MACRO |
#define | TRIANGLE_GLYPH(s_pos, e_pos, scale) |
Functions | |
void | draw_single_streamline (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float *seed_point, uint32_t line_color) |
Draw single streamline. No additional logic, just a simple streamline evaluator and plotter. | |
void | draw_streamlines_gridseed (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float linecnt_x, float linecnt_y, uint32_t line_color) |
Draw streamlines (grid). Draw streamlines with seepoints placed on grid. | |
void | draw_single_streamline_evenly_spaced (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float *seed_point, uint32_t line_color, sl_t *samplepoints) |
Draw single streamline. More elaborated streamline plotter (e.g. stores samplepoints) - used for evenly spaced streamlines. | |
void | draw_streamlines_evenly_spaced (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float dsep, float dtest, uint32_t line_color) |
Draw streamlines (evenly spaced). | |
void | dirblur_tex (uint32_t *srcin, uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float blur_amount) |
Variables | |
sl_t ** | dsep_grid |
sl_t * | samplepoints |
sl_t * | tmp_samplepoints |
int | max_len |
int | max_seedpoints |
int | dsep_w |
int | dsep_h |
int | dsepdsep |
float | nearest |
|
Draw single streamline. No additional logic, just a simple streamline evaluator and plotter.
|
|
Draw single streamline. More elaborated streamline plotter (e.g. stores samplepoints) - used for evenly spaced streamlines.
|
|
Draw streamlines (evenly spaced).
|
|
Draw streamlines (grid). Draw streamlines with seepoints placed on grid.
|