BRL-CAD
mfuncs Struct Reference

#include <shadefuncs.h>

Collaboration diagram for mfuncs:
[legend]

Data Fields

uint32_t mf_magic
 To validate structure. More...
 
char * mf_name
 Keyword for material. More...
 
struct mfuncsmf_forw
 Forward link. More...
 
int mf_inputs
 shadework inputs needed More...
 
int mf_flags
 Flags describing shader. More...
 
int(* mf_setup )(struct region *rp, struct bu_vls *matparm, void **dpp, const struct mfuncs *mfp, struct rt_i *rtip)
 Routine for preparing. More...
 
int(* mf_render )(struct application *ap, const struct partition *pp, struct shadework *swp, void *dp)
 Routine for rendering. More...
 
void(* mf_print )(struct region *rp, void *dp)
 Routine for printing. More...
 
void(* mf_free )(void *cp)
 Routine for releasing storage. More...
 

Detailed Description

The interface to the various material property & texture routines.

Definition at line 41 of file shadefuncs.h.

Field Documentation

◆ mf_magic

uint32_t mf_magic

To validate structure.

Definition at line 42 of file shadefuncs.h.

◆ mf_name

char* mf_name

Keyword for material.

Definition at line 43 of file shadefuncs.h.

◆ mf_forw

struct mfuncs* mf_forw

Forward link.

Definition at line 44 of file shadefuncs.h.

◆ mf_inputs

int mf_inputs

shadework inputs needed

Definition at line 45 of file shadefuncs.h.

◆ mf_flags

int mf_flags

Flags describing shader.

Definition at line 46 of file shadefuncs.h.

◆ mf_setup

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

Routine for preparing.

Definition at line 47 of file shadefuncs.h.

◆ mf_render

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

Routine for rendering.

Definition at line 52 of file shadefuncs.h.

◆ mf_print

void(* mf_print) (struct region *rp, void *dp)

Routine for printing.

Definition at line 56 of file shadefuncs.h.

◆ mf_free

void(* mf_free) (void *cp)

Routine for releasing storage.

Definition at line 58 of file shadefuncs.h.


The documentation for this struct was generated from the following file: