#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "rendermodes.h"
Defines | |
#define | NEW_OFFS |
#define | X |
#define | Y |
Functions | |
void | swap_BGR (rendersurf *data) |
Swap bytes (RGB->BGR). | |
void | vel_to_img_space (void) |
Map the regular grid to a cartesian grid. | |
void | loadDAT (char *filename) |
Load .dat-files. | |
loadGRI (char *filename) | |
Load .gri-files. | |
void | build_hmap_cmap (int data_selector, uint32_t **hmap, uint32_t **cmap, uint32_t **cmap_3d) |
Build the "height- and colormap" from the given data. Also allocates the needed space in memory. | |
void | init_color_palette (void) |
Initialize the color palette. Note that the colortable is not yet used in the current release. | |
void | build_lower_mip (uint32_t *hdata, uint32_t **low_mip) |
Build mip-map-"hull". Hierarchical acceleration for 3D rendermode. | |
void | draw_pencil_sketch (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float *len_data, int add_data_idx) |
Pencil-sketch Rendering. Use the current value (length, magnitude, ...) to select an appropriate sketch-texture. | |
Variables | |
int | rotate |
|
Build the "height- and colormap" from the given data. Also allocates the needed space in memory.
|
|
Build mip-map-"hull". Hierarchical acceleration for 3D rendermode.
|
|
Pencil-sketch Rendering. Use the current value (length, magnitude, ...) to select an appropriate sketch-texture.
|
|
Load .dat-files. Loads data-files.
|
|
Load .gri-files. Load geometry-files
|
|
Swap bytes (RGB->BGR).
|