BRL-CAD
lod.h File Reference
#include "common.h"
#include "vmath.h"
#include "bv.h"
#include "bg/defines.h"
Include dependency graph for lod.h:

Go to the source code of this file.

Data Structures

struct  bg_mesh_lod_context
 

Functions

void bg_view_bounds (struct bview *v)
 Functions for generating view dependent level-of-detail data, particularly for meshes. More...
 
int bg_view_objs_select (struct bv_scene_obj ***set, struct bview *v, int x, int y)
 
int bg_view_objs_rect_select (struct bv_scene_obj ***set, struct bview *v, int x1, int y1, int x2, int y2)
 
struct bg_mesh_lod_contextbg_mesh_lod_context_create (const char *name)
 
void bg_mesh_lod_context_destroy (struct bg_mesh_lod_context *c)
 
void bg_mesh_lod_clear_cache (struct bg_mesh_lod_context *c, unsigned long long key)
 
unsigned long long bg_mesh_lod_cache (struct bg_mesh_lod_context *c, const point_t *v, size_t vcnt, const vect_t *vn, int *f, size_t fcnt, unsigned long long user_key, fastf_t fratio)
 
unsigned long long bg_mesh_lod_custom_key (void *data, size_t data_size)
 
unsigned long long bg_mesh_lod_key_get (struct bg_mesh_lod_context *c, const char *name)
 
int bg_mesh_lod_key_put (struct bg_mesh_lod_context *c, const char *name, unsigned long long key)
 
struct bv_mesh_lodbg_mesh_lod_create (struct bg_mesh_lod_context *c, unsigned long long key)
 
void bg_mesh_lod_destroy (struct bv_mesh_lod *l)
 
void bg_mesh_lod_memshrink (struct bv_scene_obj *s)
 
int bg_mesh_lod_view (struct bv_scene_obj *s, struct bview *v, int reset)
 
int bg_mesh_lod_level (struct bv_scene_obj *s, int level, int reset)
 
void bg_mesh_lod_free (struct bv_scene_obj *s)
 
void bg_mesh_lod_detail_setup_clbk (struct bv_mesh_lod *lod, int(*clbk)(struct bv_mesh_lod *, void *), void *cb_data)
 
void bg_mesh_lod_detail_clear_clbk (struct bv_mesh_lod *lod, int(*clbk)(struct bv_mesh_lod *, void *))
 
void bg_mesh_lod_detail_free_clbk (struct bv_mesh_lod *lod, int(*clbk)(struct bv_mesh_lod *, void *))