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

Go to the source code of this file.

Macros

#define MFUNCS(_name)   { mlib_add_shader(headp, _name); }
 
#define DMFUNCS(_name)   { extern struct mfuncs _name[]; mlib_add_shader(headp, _name); }
 

Functions

void optical_shader_init (struct mfuncs **headp)
 

Variables

int rt_verbosity = -1
 
int rdebug
 
double AmbientIntensity = 0.4
 
struct bn_tablespectrum = NULL
 
vect_t background = VINIT_ZERO
 
struct region env_region
 

Detailed Description

This file represents the single function exported from the shader library whose "name" is known. All other functions are called through the function table.

Shaders are, of course, permitted to "upcall" into LIBRT as necessary.

Definition in file init.c.

Macro Definition Documentation

#define MFUNCS (   _name)    { mlib_add_shader(headp, _name); }

Definition at line 53 of file init.c.

Referenced by optical_shader_init().

#define DMFUNCS (   _name)    { extern struct mfuncs _name[]; mlib_add_shader(headp, _name); }

Definition at line 56 of file init.c.

Referenced by optical_shader_init().