Debugging logic for the BRL-CAD Optical Library, LIBOPTICAL.
More...
|
void | light_cleanup (void) |
|
void | light_maker (int num, mat_t v2m) |
|
int | light_init (struct application *ap) |
|
void | light_obs (struct application *ap, struct shadework *swp, int have) |
|
void | mlib_add_shader (struct mfuncs **headp, struct mfuncs *mfp1) |
|
int | mlib_setup (struct mfuncs **headp, struct region *rp, struct rt_i *rtip) |
|
void | mlib_free (struct region *rp) |
|
struct mfuncs * | load_dynamic_shader (const char *material) |
|
void | pr_shadework (const char *str, const struct shadework *swp) |
|
void | optical_shader_init (struct mfuncs **headp) |
|
int | mlib_zero (struct application *, const struct partition *, struct shadework *, void *) |
|
int | mlib_one (struct region *, struct bu_vls *, void **, const struct mfuncs *, struct rt_i *) |
|
void | mlib_void (struct region *, void *) |
|
int | rr_render (struct application *app, const struct partition *pp, struct shadework *swp) |
|
void | shade_inputs (struct application *app, const struct partition *pp, struct shadework *swp, int want) |
|
void | wray (struct partition *pp, struct application *app, FILE *fp, const vect_t inormal) |
|
void | wraypts (vect_t in, vect_t inorm, vect_t out, int id, struct application *app, FILE *fp) |
|
void | wraypaint (vect_t start, vect_t norm, int paint, struct application *app, FILE *fp) |
|
int | viewshade (struct application *app, const struct partition *pp, struct shadework *swp) |
|
const char * | optical_version (void) |
|
Debugging logic for the BRL-CAD Optical Library, LIBOPTICAL.
Definitions for the BRL-CAD Optical Library, LIBOPTICAL.
◆ OPTICAL_DEBUG
◆ OPTICAL_DEBUG_HITS
#define OPTICAL_DEBUG_HITS 0x00000001 /* 1 Print hits used by view() */ |
◆ OPTICAL_DEBUG_MATERIAL
#define OPTICAL_DEBUG_MATERIAL 0x00000002 /* 2 Material properties */ |
◆ OPTICAL_DEBUG_SHOWERR
#define OPTICAL_DEBUG_SHOWERR 0x00000004 /* 3 Colorful markers on errors */ |
◆ OPTICAL_DEBUG_RTMEM
#define OPTICAL_DEBUG_RTMEM 0x00000008 /* 4 Debug librt mem after startup */ |
◆ OPTICAL_DEBUG_SHADE
#define OPTICAL_DEBUG_SHADE 0x00000010 /* 5 Shading calculation */ |
◆ OPTICAL_DEBUG_PARSE
#define OPTICAL_DEBUG_PARSE 0x00000020 /* 6 Command parsing */ |
◆ OPTICAL_DEBUG_LIGHT
#define OPTICAL_DEBUG_LIGHT 0x00000040 /* 7 Debug lighting */ |
◆ OPTICAL_DEBUG_REFRACT
#define OPTICAL_DEBUG_REFRACT 0x00000080 /* 8 Debug reflection & refraction */ |
◆ OPTICAL_DEBUG_STATS
#define OPTICAL_DEBUG_STATS 0x00000200 /* 10 Print more statistics */ |
◆ OPTICAL_DEBUG_RTMEM_END
#define OPTICAL_DEBUG_RTMEM_END 0x00000400 /* 11 Print librt mem use on 'clean' */ |
◆ OPTICAL_DEBUG_MISSPLOT
#define OPTICAL_DEBUG_MISSPLOT 0x20000000 /* 30 plot(5) missed rays to stdout */ |
◆ OPTICAL_DEBUG_RAYWRITE
#define OPTICAL_DEBUG_RAYWRITE 0x40000000 /* 31 Ray(5V) view rays to stdout */ |
◆ OPTICAL_DEBUG_RAYPLOT
#define OPTICAL_DEBUG_RAYPLOT 0x80000000 /* 32 plot(5) rays to stdout */ |
◆ OPTICAL_DEBUG_FORMAT
#define OPTICAL_DEBUG_FORMAT |
Value: "\020" \
"\040RAYPLOT" \
"\037RAYWRITE" \
"\036MISSPLOT" \
\
"\013RTMEM_END" \
"\012STATS" \
"\011UNUSED" \
"\010REFRACT" \
"\7LIGHT" \
"\6PARSE" \
"\5SHADE" \
"\4RTMEM" \
"\3SHOWERR" \
"\2MATERIAL" \
"\1HITS"
Definition at line 74 of file debug.h.
◆ LPT_MAGIC
#define LPT_MAGIC 0x327649 |
◆ SOME_LIGHT_SAMPLES
#define SOME_LIGHT_SAMPLES 128 |
◆ LIGHT_NULL
◆ RT_CK_LIGHT
◆ PL_NULL
◆ PL_O
◆ MF_NULL
#define MF_NULL ((struct mfuncs *)0) |
◆ RT_CK_MF
◆ MFI_NORMAL
◆ MFI_UV
◆ MFI_LIGHT
◆ MFI_HIT
◆ MFI_FORMAT
◆ MFF_PROC
shader is procedural, computes tr/re/hits
Definition at line 81 of file shadefuncs.h.
◆ SW_NLIGHTS
#define SW_NLIGHTS 16 /* Max # of light sources */ |
◆ light_cleanup()
void light_cleanup |
( |
void |
| ) |
|
◆ light_maker()
void light_maker |
( |
int |
num, |
|
|
mat_t |
v2m |
|
) |
| |
◆ light_init()
◆ light_obs()
◆ mlib_add_shader()
void mlib_add_shader |
( |
struct mfuncs ** |
headp, |
|
|
struct mfuncs * |
mfp1 |
|
) |
| |
◆ mlib_setup()
int mlib_setup |
( |
struct mfuncs ** |
headp, |
|
|
struct region * |
rp, |
|
|
struct rt_i * |
rtip |
|
) |
| |
◆ mlib_free()
void mlib_free |
( |
struct region * |
rp | ) |
|
◆ load_dynamic_shader()
struct mfuncs * load_dynamic_shader |
( |
const char * |
material | ) |
|
Given a shader/material name, try to find a DSO to supply the shader.
◆ pr_shadework()
void pr_shadework |
( |
const char * |
str, |
|
|
const struct shadework * |
swp |
|
) |
| |
◆ optical_shader_init()
void optical_shader_init |
( |
struct mfuncs ** |
headp | ) |
|
this function sets the provided mfuncs head pointer to the list of available shaders. the provided mfuncs head pointer should point to MF_NULL prior to getting passed to optical_shader_init() so that the same shader list may be returned repeatably.
◆ mlib_zero()
◆ mlib_one()
◆ mlib_void()
void mlib_void |
( |
struct region * |
, |
|
|
void * |
|
|
) |
| |
◆ rr_render()
◆ shade_inputs()
◆ wray()
◆ wraypts()
◆ wraypaint()
◆ viewshade()
◆ optical_version()
const char * optical_version |
( |
void |
| ) |
|
◆ optical_debug
unsigned int optical_debug |
|
extern |
◆ AmbientIntensity
◆ background
◆ env_region
◆ max_bounces
◆ max_ireflect
◆ LightHead
◆ phong_parse