26 #ifndef OPTICAL_SHADEFUNCS_H
27 #define OPTICAL_SHADEFUNCS_H
60 #define MF_NULL ((struct mfuncs *)0)
61 #define RT_CK_MF(_p) BU_CKMAG(_p, MF_MAGIC, "mfuncs")
67 #define MFI_NORMAL 0x01
69 #define MFI_LIGHT 0x04
73 #define MFI_FORMAT "\020" \
Header file for the BRL-CAD common definitions.
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)
int(* mf_setup)(struct region *rp, struct bu_vls *matparm, void **dpp, const struct mfuncs *mfp, struct rt_i *rtip)
Routine for preparing.
void(* mf_free)(void *cp)
Routine for releasing storage.
struct mfuncs * mf_forw
Forward link.
void(* mf_print)(struct region *rp, void *dp)
Routine for printing.
char * mf_name
Keyword for material.
int(* mf_render)(struct application *ap, const struct partition *pp, struct shadework *swp, void *dp)
Routine for rendering.
int mf_inputs
shadework inputs needed
uint32_t mf_magic
To validate structure.
int mf_flags
Flags describing shader.