BRL-CAD
global.h File Reference
#include "common.h"
#include "rt/wdb.h"
#include "vmath.h"
Include dependency graph for global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rt_g
 

Macros

#define RT_G_INIT_ZERO   { 0, BU_LIST_INIT_ZERO, RT_WDB_INIT_ZERO }
 
#define RT_GET_VLIST(p)   BV_GET_VLIST(&RTG.rtg_vlfree, p)
 
#define RT_FREE_VLIST(hd)   BV_FREE_VLIST(&RTG.rtg_vlfree, hd)
 
#define RT_ADD_VLIST(hd, pnt, draw)   BV_ADD_VLIST(&RTG.rtg_vlfree, hd, pnt, draw)
 
#define RT_VLIST_SET_DISP_MAT(_dest_hd, _ref_pt)   BV_VLIST_SET_DISP_MAT(&RTG.rtg_vlfree, _dest_hd, _ref_pt)
 
#define RT_VLIST_SET_MODEL_MAT(_dest_hd)   BV_VLIST_SET_MODEL_MAT(&RTG.rtg_vlfree, _dest_hd)
 
#define RT_VLIST_SET_POINT_SIZE(hd, size)   BV_VLIST_SET_POINT_SIZE(&RTG.rtg_vlfree, hd, size)
 
#define RT_VLIST_SET_LINE_WIDTH(hd, width)   BV_VLIST_SET_LINE_WIDTH(&RTG.rtg_vlfree, hd, width)
 

Variables

struct rt_g RTG
 

Macro Definition Documentation

◆ RT_G_INIT_ZERO

#define RT_G_INIT_ZERO   { 0, BU_LIST_INIT_ZERO, RT_WDB_INIT_ZERO }

Definition at line 45 of file global.h.

◆ RT_GET_VLIST

#define RT_GET_VLIST (   p)    BV_GET_VLIST(&RTG.rtg_vlfree, p)

Applications that are going to use RT_ADD_VLIST and RT_GET_VLIST are required to execute this macro once, first:

BU_LIST_INIT(&RTG.rtg_vlfree);

Note that RT_GET_VLIST and RT_FREE_VLIST are non-PARALLEL.

Definition at line 60 of file global.h.

◆ RT_FREE_VLIST

#define RT_FREE_VLIST (   hd)    BV_FREE_VLIST(&RTG.rtg_vlfree, hd)

Place an entire chain of bv_vlist structs on the freelist

Definition at line 63 of file global.h.

◆ RT_ADD_VLIST

#define RT_ADD_VLIST (   hd,
  pnt,
  draw 
)    BV_ADD_VLIST(&RTG.rtg_vlfree, hd, pnt, draw)

Definition at line 65 of file global.h.

◆ RT_VLIST_SET_DISP_MAT

#define RT_VLIST_SET_DISP_MAT (   _dest_hd,
  _ref_pt 
)    BV_VLIST_SET_DISP_MAT(&RTG.rtg_vlfree, _dest_hd, _ref_pt)

set the transformation matrix to display matrix

Definition at line 68 of file global.h.

◆ RT_VLIST_SET_MODEL_MAT

#define RT_VLIST_SET_MODEL_MAT (   _dest_hd)    BV_VLIST_SET_MODEL_MAT(&RTG.rtg_vlfree, _dest_hd)

set the transformation matrix to model matrix

Definition at line 71 of file global.h.

◆ RT_VLIST_SET_POINT_SIZE

#define RT_VLIST_SET_POINT_SIZE (   hd,
  size 
)    BV_VLIST_SET_POINT_SIZE(&RTG.rtg_vlfree, hd, size)

Set a point size to apply to the vlist elements that follow.

Definition at line 74 of file global.h.

◆ RT_VLIST_SET_LINE_WIDTH

#define RT_VLIST_SET_LINE_WIDTH (   hd,
  width 
)    BV_VLIST_SET_LINE_WIDTH(&RTG.rtg_vlfree, hd, width)

Set a line width to apply to the vlist elements that follow.

Definition at line 77 of file global.h.

Variable Documentation

◆ RTG

struct rt_g RTG
extern

global ray-trace geometry state