BRL-CAD
sh_null.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include "vmath.h"
#include "raytrace.h"
#include "optical.h"
Include dependency graph for sh_null.c:

Go to the source code of this file.

Functions

HIDDEN int sh_null_setup (register struct region *rp, struct bu_vls *matparm, void **dpp, const struct mfuncs *mfp, struct rt_i *rtip)
 
HIDDEN int sh_null_render (struct application *ap, const struct partition *pp, struct shadework *swp, void *dp)
 
HIDDEN void sh_null_print (register struct region *rp, void *dp)
 
HIDDEN void sh_null_free (void *cp)
 

Variables

struct mfuncs null_mfuncs []
 

Detailed Description

Notes - This is the null, aka invisible, shader. It is potentially useful as a performance metric as well as to hide objects from a scene rendering. It simply does nothing.

This is the most basic shader.

Definition in file sh_null.c.

Function Documentation

HIDDEN int sh_null_setup ( register struct region rp,
struct bu_vls matparm,
void **  dpp,
const struct mfuncs *  mfp,
struct rt_i rtip 
)

Definition at line 68 of file sh_null.c.

HIDDEN int sh_null_render ( struct application ap,
const struct partition pp,
struct shadework *  swp,
void *  dp 
)

Definition at line 91 of file sh_null.c.

References bu_log(), rr_render(), RT_AP_CHECK, and RT_CHECK_PT.

Here is the call graph for this function:

HIDDEN void sh_null_print ( register struct region rp,
void *  dp 
)

Definition at line 117 of file sh_null.c.

References bu_log(), and region::reg_name.

Here is the call graph for this function:

HIDDEN void sh_null_free ( void *  cp)

Definition at line 131 of file sh_null.c.

Variable Documentation

struct mfuncs null_mfuncs[]
Initial value:
= {
{MF_MAGIC, "invisible", 0, MFI_HIT, 0, sh_null_setup, sh_null_render, sh_null_print, sh_null_free },
{0, (char *)0, 0, 0, 0, 0, 0, 0, 0 }
}
#define MF_MAGIC
Definition: magic.h:205
HIDDEN int sh_null_render(struct application *ap, const struct partition *pp, struct shadework *swp, void *dp)
Definition: sh_null.c:91
HIDDEN void sh_null_free(void *cp)
Definition: sh_null.c:131
HIDDEN int sh_null_setup(register struct region *rp, struct bu_vls *matparm, void **dpp, const struct mfuncs *mfp, struct rt_i *rtip)
Definition: sh_null.c:68
HIDDEN void sh_null_print(register struct region *rp, void *dp)
Definition: sh_null.c:117

Definition at line 48 of file sh_null.c.

Referenced by optical_shader_init().