19#ifndef GL_CLAMP_TO_EDGE
20#define GL_CLAMP_TO_EDGE 0x812F
23static int sort_surfs_max(
int *,
int *,
int *,
int);
58 for (i = 0; i <
nsurfs; i++) {
90 for (i = 0; i < num; i++) {
99 for (i = 0; i < num; i++) {
102 for (
j = 0;
j < num;
j++) {
158 for (i = 0; i <
nsites; i++) {
186 for (i = 0; i <
nvols; i++) {
362 glOrtho(0, width, 0, height, -1, 1);
void G_free(void *)
Free allocated memory.
int * GP_get_site_list(int *)
Get list of point sets.
int GS_get_zextents(int, float *, float *, float *)
Get z-extent for a single surface.
void GS_set_draw(int)
Sets which buffer to draw to.
void GS_alldraw_wire(void)
Draw all wires.
void GVL_draw_vol(int)
Draw volume set.
void GS_draw_surf(int)
Draw surface.
void GS_setlight_position(int, float, float, float, int)
Set light position.
int GS_draw_cplane_fence(int, int, int)
Draw cplace fence ?
void GV_alldraw_vect(void)
Draw all loaded vector sets.
int * GS_get_surf_list(int *)
Get surface list.
void GVL_alldraw_wire(void)
Draw all volume sets in wire mode.
int gsd_north_arrow(float *, float, GLuint, unsigned long, unsigned long)
Draw North Arrow.
int gsd_scalebar_v2(float *, float, GLuint, unsigned long, unsigned long)
Draw Scalebar (as lines)
void GS_clear(int)
Clear view.
void GS_done_draw(void)
Draw done, swap buffers.
void GS_draw_fringe(int, unsigned long, float, int *)
Draw fringe around data (surface) at selected corners.
int * GVL_get_vol_list(int *)
Get list of loaded volume sets.
void GP_alldraw_site(void)
Draw all available point sets.
void GP_draw_site(int)
Draw point set.
int Nviz_load_image(GLubyte *image_data, int width, int height, int alpha)
Load image into texture.
void Nviz_get_max_texture(int *size)
Get maximum texture size.
int Nviz_draw_all_vect(void)
Draw all loaded vector sets (lines)
void Nviz_draw_image(int x, int y, int width, int height, int texture_id)
Draw image as texture.
int Nviz_draw_all_surf(nv_data *dc)
Draw all loaded surfaces.
void Nviz_set_2D(int width, int height)
Set ortho view for drawing images.
int Nviz_draw_quick(nv_data *data, int draw_mode)
Draw all surfaces in wireframe (quick mode)
int Nviz_draw_all(nv_data *data)
Draw all map objects (in full resolution) and decorations.
void Nviz_del_texture(int texture_id)
Delete texture.
int Nviz_draw_all_vol(void)
Draw all loaded volume sets.
int Nviz_draw_all_site(void)
Draw all loaded vector point sets.
#define DRAW_QUICK_VOLUME
#define DRAW_QUICK_VPOINTS
#define DRAW_QUICK_SURFACE
#define DRAW_QUICK_VLINES
struct scalebar_data ** scalebar
struct fringe_data ** fringe
struct arrow_data * arrow