BRL-CAD
libdm (display management)

Files

file  dm_xvars.h
 
file  dm.h
 
file  dm-glx.h
 
file  dm-Null.h
 
file  dm-ogl.h
 
file  dm-osgl.h
 
file  dm-pex.h
 
file  dm-plot.h
 
file  dm-ps.h
 
file  dm-qt.h
 
file  dm-rtgl.h
 
file  dm-tk.h
 
file  dm-wgl.h
 
file  dm-X.h
 

Data Structures

struct  dm_xvars
 
struct  dm_hook_data
 
struct  modifiable_glx_vars
 
struct  glx_vars
 
struct  ogl_vars
 
struct  modifiable_pex_vars
 
struct  pex_vars
 
struct  plot_vars
 
struct  ps_vars
 
struct  modifiable_rtgl_vars
 
struct  rtgl_vars
 
struct  job
 
struct  jobList
 
struct  ptInfoList
 
struct  colorBin
 
struct  objTree
 
struct  rtglJobs
 
struct  tk_vars
 
struct  wgl_vars
 
struct  x_vars
 

Macros

#define TK_WINDOW_TYPEDEF   1
 
#define XVARS_MV_O(_m)   offsetof(struct dm_xvars, _m)
 
#define INIT_XCOLOR(c)   memset((c), 0, sizeof(XColor))
 
#define USE_FBSERV   1
 
#define DM_NULL   (dm *)NULL
 
#define DM_MIN   (-2048)
 
#define DM_MAX   (2047)
 
#define DM_O(_m)   offsetof(dm, _m)
 
#define GED_MAX   2047.0
 
#define GED_MIN   -2048.0
 
#define GED_RANGE   4095.0
 
#define INV_GED   0.00048828125
 
#define INV_4096   0.000244140625
 
#define DIVBY4096(x)   (((double)(x))*INV_4096)
 
#define GED_TO_Xx(_dmp, x)   ((int)((DIVBY4096(x)+0.5)*_dmp->dm_width))
 
#define GED_TO_Xy(_dmp, x)   ((int)((0.5-DIVBY4096(x))*_dmp->dm_height))
 
#define Xx_TO_GED(_dmp, x)   ((int)(((x)/(double)_dmp->dm_width - 0.5) * GED_RANGE))
 
#define Xy_TO_GED(_dmp, x)   ((int)((0.5 - (x)/(double)_dmp->dm_height) * GED_RANGE))
 
#define GED_TO_PM1(x)   (((fastf_t)(x))*INV_GED)
 
#define FONTBACK   "-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1"
 
#define FONT5   "5x7"
 
#define FONT6   "6x10"
 
#define FONT7   "7x13"
 
#define FONT8   "8x13"
 
#define FONT9   "9x15"
 
#define FONT10   "10x20"
 
#define FONT12   "12x24"
 
#define DM_VALID_FONT_SIZE(_size)   (5 <= (_size) && (_size) <= 12 && (_size) != 11)
 
#define DM_FONT_SIZE_TO_NAME(_size)   (((_size) == 5) ? FONT5 : (((_size) == 6) ? FONT6 : (((_size) == 7) ? FONT7 : (((_size) == 8) ? FONT8 : (((_size) == 9) ? FONT9 : (((_size) == 10) ? FONT10 : FONT12))))))
 
#define DM_TYPE_BAD   -1
 
#define DM_TYPE_NULL   0
 
#define DM_TYPE_PLOT   1
 
#define DM_TYPE_PS   2
 
#define DM_TYPE_X   3
 
#define DM_TYPE_OGL   4
 
#define DM_TYPE_GLX   5
 
#define DM_TYPE_PEX   6
 
#define DM_TYPE_WGL   7
 
#define DM_TYPE_TK   8
 
#define DM_TYPE_RTGL   9
 
#define DM_TYPE_TXT   10
 
#define DM_TYPE_QT   11
 
#define DM_TYPE_OSG   12
 
#define DM_TYPE_OSGL   13
 
#define DM_SOLID_LINE   0
 
#define DM_DASHED_LINE   1
 
#define IS_DM_TYPE_NULL(_t)   ((_t) == DM_TYPE_NULL)
 
#define IS_DM_TYPE_PLOT(_t)   ((_t) == DM_TYPE_PLOT)
 
#define IS_DM_TYPE_PS(_t)   ((_t) == DM_TYPE_PS)
 
#define IS_DM_TYPE_X(_t)   ((_t) == DM_TYPE_X)
 
#define IS_DM_TYPE_TK(_t)   ((_t) == DM_TYPE_TK)
 
#define IS_DM_TYPE_OGL(_t)   ((_t) == DM_TYPE_OGL)
 
#define IS_DM_TYPE_GLX(_t)   ((_t) == DM_TYPE_GLX)
 
#define IS_DM_TYPE_PEX(_t)   ((_t) == DM_TYPE_PEX)
 
#define IS_DM_TYPE_WGL(_t)   ((_t) == DM_TYPE_WGL)
 
#define IS_DM_TYPE_RTGL(_t)   ((_t) == DM_TYPE_RTGL)
 
#define IS_DM_TYPE_TXT(_t)   ((_t) == DM_TYPE_TXT)
 
#define IS_DM_TYPE_QT(_t)   ((_t) == DM_TYPE_QT)
 
#define IS_DM_TYPE_OSG(_t)   ((_t) == DM_TYPE_OSG)
 
#define IS_DM_TYPE_OSGL(_t)   ((_t) == DM_TYPE_OSGL)
 
#define GET_DM(p, structure, w, hp)
 
#define DM_COLOR_HI   ((short)230)
 
#define DM_COLOR_LOW   ((short)0)
 
#define DM_BLACK_R   DM_COLOR_LOW
 
#define DM_BLACK_G   DM_COLOR_LOW
 
#define DM_BLACK_B   DM_COLOR_LOW
 
#define DM_RED_R   DM_COLOR_HI
 
#define DM_RED_G   DM_COLOR_LOW
 
#define DM_RED_B   DM_COLOR_LOW
 
#define DM_BLUE_R   DM_COLOR_LOW
 
#define DM_BLUE_G   DM_COLOR_LOW
 
#define DM_BLUE_B   DM_COLOR_HI
 
#define DM_YELLOW_R   DM_COLOR_HI
 
#define DM_YELLOW_G   DM_COLOR_HI
 
#define DM_YELLOW_B   DM_COLOR_LOW
 
#define DM_WHITE_R   DM_COLOR_HI
 
#define DM_WHITE_G   DM_COLOR_HI
 
#define DM_WHITE_B   DM_COLOR_HI
 
#define DM_BLACK   DM_BLACK_R, DM_BLACK_G, DM_BLACK_B
 
#define DM_RED   DM_RED_R, DM_RED_G, DM_RED_B
 
#define DM_BLUE   DM_BLUE_R, DM_BLUE_G, DM_BLUE_B
 
#define DM_YELLOW   DM_YELLOW_R, DM_YELLOW_G, DM_YELLOW_B
 
#define DM_WHITE   DM_WHITE_R, DM_WHITE_G, DM_WHITE_B
 
#define DM_COPY_COLOR(_dr, _dg, _db, _sr, _sg, _sb)
 
#define DM_SAME_COLOR(_dr, _dg, _db, _sr, _sg, _sb)
 
#define DM_REVERSE_COLOR_BYTE_ORDER(_shift, _mask)
 
#define DM_CHGV_REDO   0 /* Display has changed substantially */
 
#define DM_CHGV_ADD   1 /* Add an object to the display */
 
#define DM_CHGV_DEL   2 /* Delete an object from the display */
 
#define DM_CHGV_REPL   3 /* Replace an object */
 
#define DM_CHGV_ILLUM   4 /* Make new object the illuminated object */
 
#define LIGHT_OFF   0
 
#define LIGHT_ON   1
 
#define LIGHT_RESET   2 /* all lights out */
 
#define DM_OPEN(_interp, _type, _argc, _argv)   dm_open(_interp, _type, _argc, _argv)
 
#define DM_OPEN(_interp, _type, _argc, _argv)   dm_open(_interp, _type, _argc, _argv)
 
#define DM_CLOSE(_dmp)   _dmp->dm_close(_dmp)
 
#define DM_DRAW_BEGIN(_dmp)   _dmp->dm_drawBegin(_dmp)
 
#define DM_DRAW_END(_dmp)   _dmp->dm_drawEnd(_dmp)
 
#define DM_NORMAL(_dmp)   _dmp->dm_normal(_dmp)
 
#define DM_LOADMATRIX(_dmp, _mat, _eye)   _dmp->dm_loadMatrix(_dmp, _mat, _eye)
 
#define DM_LOADPMATRIX(_dmp, _mat)   _dmp->dm_loadPMatrix(_dmp, _mat)
 
#define DM_DRAW_STRING_2D(_dmp, _str, _x, _y, _size, _use_aspect)   _dmp->dm_drawString2D(_dmp, _str, _x, _y, _size, _use_aspect)
 
#define DM_DRAW_LINE_2D(_dmp, _x1, _y1, _x2, _y2)   _dmp->dm_drawLine2D(_dmp, _x1, _y1, _x2, _y2)
 
#define DM_DRAW_LINE_3D(_dmp, _pt1, _pt2)   _dmp->dm_drawLine3D(_dmp, _pt1, _pt2)
 
#define DM_DRAW_LINES_3D(_dmp, _npoints, _points, _sflag)   _dmp->dm_drawLines3D(_dmp, _npoints, _points, _sflag)
 
#define DM_DRAW_POINT_2D(_dmp, _x, _y)   _dmp->dm_drawPoint2D(_dmp, _x, _y)
 
#define DM_DRAW_POINT_3D(_dmp, _pt)   _dmp->dm_drawPoint3D(_dmp, _pt)
 
#define DM_DRAW_POINTS_3D(_dmp, _npoints, _points)   _dmp->dm_drawPoints3D(_dmp, _npoints, _points)
 
#define DM_DRAW_VLIST(_dmp, _vlist)   _dmp->dm_drawVList(_dmp, _vlist)
 
#define DM_DRAW_VLIST_HIDDEN_LINE(_dmp, _vlist)   _dmp->dm_drawVListHiddenLine(_dmp, _vlist)
 
#define DM_DRAW(_dmp, _callback, _data)   _dmp->dm_draw(_dmp, _callback, _data)
 
#define DM_SET_FGCOLOR(_dmp, _r, _g, _b, _strict, _transparency)   _dmp->dm_setFGColor(_dmp, _r, _g, _b, _strict, _transparency)
 
#define DM_SET_BGCOLOR(_dmp, _r, _g, _b)   _dmp->dm_setBGColor(_dmp, _r, _g, _b)
 
#define DM_SET_LINE_ATTR(_dmp, _width, _dashed)   _dmp->dm_setLineAttr(_dmp, _width, _dashed)
 
#define DM_CONFIGURE_WIN(_dmp, _force)   _dmp->dm_configureWin((_dmp), (_force))
 
#define DM_SET_WIN_BOUNDS(_dmp, _w)   _dmp->dm_setWinBounds(_dmp, _w)
 
#define DM_SET_LIGHT(_dmp, _on)   _dmp->dm_setLight(_dmp, _on)
 
#define DM_SET_TRANSPARENCY(_dmp, _on)   _dmp->dm_setTransparency(_dmp, _on)
 
#define DM_SET_DEPTH_MASK(_dmp, _on)   _dmp->dm_setDepthMask(_dmp, _on)
 
#define DM_SET_ZBUFFER(_dmp, _on)   _dmp->dm_setZBuffer(_dmp, _on)
 
#define DM_DEBUG(_dmp, _lvl)   _dmp->dm_debug(_dmp, _lvl)
 
#define DM_LOGFILE(_dmp, _lvl)   _dmp->dm_logfile(_dmp, _lvl)
 
#define DM_BEGINDLIST(_dmp, _list)   _dmp->dm_beginDList(_dmp, _list)
 
#define DM_ENDDLIST(_dmp)   _dmp->dm_endDList(_dmp)
 
#define DM_DRAWDLIST(_dmp, _list)   _dmp->dm_drawDList(_list)
 
#define DM_FREEDLISTS(_dmp, _list, _range)   _dmp->dm_freeDLists(_dmp, _list, _range)
 
#define DM_GEN_DLISTS(_dmp, _range)   _dmp->dm_genDLists(_dmp, _range)
 
#define DM_GET_DISPLAY_IMAGE(_dmp, _image)   _dmp->dm_getDisplayImage(_dmp, _image)
 
#define DM_MAKE_CURRENT(_dmp)   _dmp->dm_makeCurrent(_dmp)
 
#define GED2IRIS(x)   (((float)(x))*0.00048828125)
 
#define Glx_MV_O(_m)   offsetof(struct modifiable_glx_vars, _m)
 
#define CMAP_BASE   40
 
#define GED2IRIS(x)   (((float)(x))*0.00048828125)
 
#define GED_TO_Xx(_dmp, x)   ((int)(((x)/4096.0+0.5)*((struct pex_vars *)((_dmp)->dmr_vars))->width))
 
#define GED_TO_Xy(_dmp, x)   ((int)((0.5-(x)/4096.0)*((struct pex_vars *)((_dmp)->dmr_vars))->height))
 
#define Xx_TO_GED(_dmp, x)   ((int)(((x)/(double)((struct pex_vars *)((_dmp)->dmr_vars))->width - 0.5) * 4095))
 
#define Xy_TO_GED(_dmp, x)   ((int)((0.5 - (x)/(double)((struct pex_vars *)((_dmp)->dmr_vars))->height) * 4095))
 
#define TRY_DEPTHCUE   0
 
#define Pex_MV_O(_m)   offsetof(struct modifiable_pex_vars, _m)
 
#define GED_TO_PLOT(x)   (x)
 
#define PLOT_TO_GED(x)   (x)
 
#define GED_TO_PS(x)   ((int)((x)+2048))
 
#define CMAP_BASE   40
 
#define GED2IRIS(x)   (((float)(x))*0.00048828125)
 
#define Rtgl_MV_O(_m)   offsetof(struct modifiable_rtgl_vars, _m)
 
#define RTGL_MVARS   (((struct rtgl_vars *)dmp->dm_vars.priv_vars)->mvars)
 
#define RTGL_GEDP   RTGL_MVARS.gedp
 
#define RTGL_DIRTY   RTGL_MVARS.needRefresh
 
#define JOB_ARRAY_SIZE   1000
 
#define COPY_JOB(a, b)
 
#define START_TABLE_SIZE   64
 
#define KEY_LENGTH   3
 
#define PT_ARRAY_SIZE   999
 
#define INIT_OBJTREE(p)
 
#define CMAP_BASE   40
 
#define CUBE_DIMENSION   6
 
#define NUM_PIXELS   216 /* CUBE_DIMENSION * CUBE_DIMENSION * CUBE_DIMENSION */
 
#define ColormapNull   (Colormap *)NULL
 
#define CMAP_BASE   40
 
#define GED2IRIS(x)   (((float)(x))*0.00048828125)
 
#define CMAP_BASE   40
 
#define CUBE_DIMENSION   6
 
#define NUM_PIXELS   216 /* CUBE_DIMENSION * CUBE_DIMENSION * CUBE_DIMENSION */
 
#define ColormapNull   (Colormap *)NULL
 

Typedefs

typedef void * Tk_Window
 
typedef long Display
 
typedef long Window
 
typedef long Colormap
 
typedef struct dm_internal dm
 

Functions

int Dm_Init (void *interp)
 
dmdm_open (Tcl_Interp *interp, int type, int argc, const char *argv[])
 
void * dm_interp (dm *dmp)
 
int dm_share_dlist (dm *dmp1, dm *dmp2)
 
fastf_t dm_Xx2Normal (dm *dmp, int x)
 
int dm_Normal2Xx (dm *dmp, fastf_t f)
 
fastf_t dm_Xy2Normal (dm *dmp, int y, int use_aspect)
 
int dm_Normal2Xy (dm *dmp, fastf_t f, int use_aspect)
 
void dm_fogHint (dm *dmp, int fastfog)
 
int dm_processOptions (dm *dmp, struct bu_vls *init_proc_vls, int argc, char **argv)
 
int dm_limit (int i)
 
int dm_unlimit (int i)
 
fastf_t dm_wrap (fastf_t f)
 
void dm_draw_adc (dm *dmp, struct bview_adc_state *adcp, mat_t view2model, mat_t model2view)
 
void dm_draw_data_axes (dm *dmp, fastf_t viewSize, struct bview_data_axes_state *bndasp)
 
void dm_draw_axes (dm *dmp, fastf_t viewSize, const mat_t rmat, struct bview_axes_state *bnasp)
 
int clip (fastf_t *, fastf_t *, fastf_t *, fastf_t *)
 
int vclip (fastf_t *, fastf_t *, fastf_t *, fastf_t *)
 
void dm_draw_grid (dm *dmp, struct bview_grid_state *ggsp, fastf_t scale, mat_t model2view, fastf_t base2local)
 
int dm_draw_labels (dm *dmp, struct rt_wdb *wdbp, const char *name, mat_t viewmat, int *labelsColor, int(*labelsHook)(dm *dmp_arg, struct rt_wdb *wdbp_arg, const char *name_arg, mat_t viewmat_arg, int *labelsColor_arg, ClientData labelsHookClientdata_arg), ClientData labelsHookClientdata)
 
void dm_draw_rect (dm *dmp, struct bview_interactive_rect_state *grsp)
 
void dm_draw_scale (dm *dmp, fastf_t viewSize, int *lineColor, int *textColor)
 
const char * dm_version (void)
 
dmdm_get ()
 
void dm_put (dm *dmp)
 
void dm_set_null (dm *dmp)
 
const char * dm_get_dm_name (dm *dmp)
 
const char * dm_get_dm_lname (dm *dmp)
 
int dm_get_width (dm *dmp)
 
int dm_get_height (dm *dmp)
 
void dm_set_width (dm *dmp, int width)
 
void dm_set_height (dm *dmp, int height)
 
fastf_t dm_get_aspect (dm *dmp)
 
int dm_get_type (dm *dmp)
 
void * dm_get_xvars (dm *dmp)
 
struct bu_vlsdm_list_types (const char separator)
 
unsigned long dm_get_id (dm *dmp)
 
void dm_set_id (dm *dmp, unsigned long new_id)
 
int dm_get_displaylist (dm *dmp)
 
int dm_close (dm *dmp)
 
unsigned char * dm_get_bg (dm *dmp)
 
int dm_set_bg (dm *dmp, unsigned char r, unsigned char g, unsigned char b)
 
unsigned char * dm_get_fg (dm *dmp)
 
int dm_set_fg (dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
 
int dm_make_current (dm *dmp)
 
vect_t * dm_get_clipmin (dm *dmp)
 
vect_t * dm_get_clipmax (dm *dmp)
 
int dm_get_bound_flag (dm *dmp)
 
void dm_set_bound (dm *dmp, fastf_t val)
 
int dm_get_stereo (dm *dmp)
 
int dm_set_win_bounds (dm *dmp, fastf_t *w)
 
int dm_configure_win (dm *dmp, int force)
 
struct bu_vlsdm_get_pathname (dm *dmp)
 
struct bu_vlsdm_get_dname (dm *dmp)
 
struct bu_vlsdm_get_tkname (dm *dmp)
 
int dm_get_fontsize (dm *dmp)
 
void dm_set_fontsize (dm *dmp, int size)
 
int dm_get_light_flag (dm *dmp)
 
void dm_set_light_flag (dm *dmp, int size)
 
int dm_set_light (dm *dmp, int light)
 
void * dm_get_public_vars (dm *dmp)
 
void * dm_get_private_vars (dm *dmp)
 
int dm_get_transparency (dm *dmp)
 
int dm_set_transparency (dm *dmp, int transparency)
 
int dm_get_zbuffer (dm *dmp)
 
int dm_set_zbuffer (dm *dmp, int zbuffer)
 
int dm_get_linewidth (dm *dmp)
 
void dm_set_linewidth (dm *dmp, int linewidth)
 
int dm_get_linestyle (dm *dmp)
 
void dm_set_linestyle (dm *dmp, int linestyle)
 
int dm_get_zclip (dm *dmp)
 
void dm_set_zclip (dm *dmp, int zclip)
 
int dm_get_perspective (dm *dmp)
 
void dm_set_perspective (dm *dmp, fastf_t perspective)
 
int dm_get_display_image (dm *dmp, unsigned char **image)
 
int dm_gen_dlists (dm *dmp, size_t range)
 
int dm_begin_dlist (dm *dmp, unsigned int list)
 
void dm_draw_dlist (dm *dmp, unsigned int list)
 
int dm_end_dlist (dm *dmp)
 
int dm_free_dlists (dm *dmp, unsigned int list, int range)
 
int dm_draw_vlist (dm *dmp, struct bn_vlist *vp)
 
int dm_draw_vlist_hidden_line (dm *dmp, struct bn_vlist *vp)
 
int dm_set_line_attr (dm *dmp, int width, int style)
 
int dm_draw_begin (dm *dmp)
 
int dm_draw_end (dm *dmp)
 
int dm_normal (dm *dmp)
 
int dm_loadmatrix (dm *dmp, fastf_t *mat, int eye)
 
int dm_loadpmatrix (dm *dmp, fastf_t *mat)
 
int dm_draw_string_2d (dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
 
int dm_draw_line_2d (dm *dmp, fastf_t x1, fastf_t y1_2d, fastf_t x2, fastf_t y2)
 
int dm_draw_line_3d (dm *dmp, point_t pt1, point_t pt2)
 
int dm_draw_lines_3d (dm *dmp, int npoints, point_t *points, int sflag)
 
int dm_draw_point_2d (dm *dmp, fastf_t x, fastf_t y)
 
int dm_draw_point_3d (dm *dmp, point_t pt)
 
int dm_draw_points_3d (dm *dmp, int npoints, point_t *points)
 
int dm_draw (dm *dmp, struct bn_vlist *(*callback)(void *), void **data)
 
int dm_draw_obj (dm *dmp, struct display_list *obj)
 
int dm_set_depth_mask (dm *dmp, int d_on)
 
int dm_debug (dm *dmp, int lvl)
 
int dm_logfile (dm *dmp, const char *filename)
 
fbdm_get_fb (dm *dmp)
 
int dm_get_fb_visible (dm *dmp)
 
int dm_set_fb_visible (dm *dmp, int is_fb_visible)
 
fastf_tdm_get_vp (dm *dmp)
 
void dm_set_vp (dm *dmp, fastf_t *vp)
 
int dm_set_hook (const struct bu_structparse_map *map, const char *key, void *data, struct dm_hook_data *hook)
 
struct bu_structparsedm_get_vparse (dm *dmp)
 
void * dm_get_mvars (dm *dmp)
 
int dm_draw_display_list (dm *dmp, struct bu_list *dl, fastf_t transparency_threshold, fastf_t inv_viewsize, short r, short g, short b, int line_width, int draw_style, int draw_edit, unsigned char *gdc, int solids_down, int mv_dlist)
 
void glx_clearToBlack ()
 
int null_close (dm *dmp)
 
int null_drawBegin (dm *dmp)
 
int null_drawEnd (dm *dmp)
 
int null_normal (dm *dmp)
 
int null_loadMatrix (dm *dmp, fastf_t *mat, int which_eye)
 
int null_loadPMatrix (dm *dmp, fastf_t *mat)
 
int null_drawString2D (dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
 
int null_drawLine2D (dm *dmp, fastf_t x_1, fastf_t y_1, fastf_t x_2, fastf_t y_2)
 
int null_drawLine3D (dm *dmp, point_t pt1, point_t pt2)
 
int null_drawLines3D (dm *dmp, int npoints, point_t *points, int sflag)
 
int null_drawPoint2D (dm *dmp, fastf_t x, fastf_t y)
 
int null_drawPoint3D (dm *dmp, point_t point)
 
int null_drawPoints3D (dm *dmp, int npoints, point_t *points)
 
int null_drawVList (dm *dmp, struct bn_vlist *vp)
 
int null_drawVListHiddenLine (dm *dmp, struct bn_vlist *vp)
 
int null_draw (dm *dmp, struct bn_vlist *(*callback_function)(void *), void **data)
 
int null_setFGColor (dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
 
int null_setBGColor (dm *dmp, unsigned char r, unsigned char g, unsigned char b)
 
int null_setLineAttr (dm *dmp, int width, int style)
 
int null_configureWin (dm *dmp, int force)
 
int null_setWinBounds (dm *dmp, fastf_t *w)
 
int null_setLight (dm *dmp, int light_on)
 
int null_setTransparency (dm *dmp, int transparency)
 
int null_setDepthMask (dm *dmp, int mask)
 
int null_setZBuffer (dm *dmp, int zbuffer_on)
 
int null_debug (dm *dmp, int lvl)
 
int null_beginDList (dm *dmp, unsigned int list)
 
int null_endDList (dm *dmp)
 
void null_drawDList (unsigned int list)
 
int null_freeDLists (dm *dmp, unsigned int list, int range)
 
int null_genDLists (dm *dmp, size_t range)
 
int null_getDisplayImage (dm *dmp, unsigned char **image)
 
int null_fg (dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
 
int null_bg (dm *dmp, unsigned char r, unsigned char g, unsigned char b)
 
void null_reshape (dm *dmp, int width, int height)
 
int null_makeCurrent (dm *dmp)
 
void null_processEvents (dm *dmp)
 
int null_openFb (dm *dmp)
 
void ogl_fogHint ()
 
void Pex_configure_window_shape ()
 
void Pex_establish_perspective ()
 
void Pex_set_perspective ()
 
void rtgl_fogHint ()
 
void wgl_fogHint ()
 

Variables

dm dm_ogl
 
dm dm_plot
 
dm dm_ps
 
dm dm_rtgl
 
dm dm_tk
 
dm dm_wgl
 
dm dm_X
 
dm dm_txt
 
dm dm_qt
 
dm dm_osgl
 
struct glx_vars head_glx_vars
 
dm dm_null
 
struct pex_vars head_pex_vars
 
struct plot_vars head_plot_vars
 
struct ps_vars head_ps_vars
 

Detailed Description

Macro Definition Documentation

#define TK_WINDOW_TYPEDEF   1

Definition at line 45 of file dm_xvars.h.

#define XVARS_MV_O (   _m)    offsetof(struct dm_xvars, _m)

Definition at line 54 of file dm_xvars.h.

#define INIT_XCOLOR (   c)    memset((c), 0, sizeof(XColor))

Definition at line 56 of file dm_xvars.h.

#define USE_FBSERV   1

Definition at line 35 of file dm.h.

#define DM_NULL   (dm *)NULL
#define DM_MIN   (-2048)

Definition at line 44 of file dm.h.

#define DM_MAX   (2047)

Definition at line 45 of file dm.h.

#define DM_O (   _m)    offsetof(dm, _m)

Definition at line 47 of file dm.h.

#define GED_MAX   2047.0

Definition at line 49 of file dm.h.

#define GED_MIN   -2048.0

Definition at line 50 of file dm.h.

#define GED_RANGE   4095.0

Definition at line 51 of file dm.h.

#define INV_GED   0.00048828125

Definition at line 52 of file dm.h.

#define INV_4096   0.000244140625

Definition at line 53 of file dm.h.

#define DIVBY4096 (   x)    (((double)(x))*INV_4096)

Definition at line 60 of file dm.h.

#define GED_TO_Xx (   _dmp,
 
)    ((int)((DIVBY4096(x)+0.5)*_dmp->dm_width))

Definition at line 61 of file dm.h.

#define GED_TO_Xy (   _dmp,
 
)    ((int)((0.5-DIVBY4096(x))*_dmp->dm_height))

Definition at line 62 of file dm.h.

#define Xx_TO_GED (   _dmp,
 
)    ((int)(((x)/(double)_dmp->dm_width - 0.5) * GED_RANGE))

Definition at line 63 of file dm.h.

#define Xy_TO_GED (   _dmp,
 
)    ((int)((0.5 - (x)/(double)_dmp->dm_height) * GED_RANGE))

Definition at line 64 of file dm.h.

#define GED_TO_PM1 (   x)    (((fastf_t)(x))*INV_GED)

Definition at line 67 of file dm.h.

Referenced by dm_draw_adc().

#define FONTBACK   "-adobe-courier-medium-r-normal--10-100-75-75-m-60-iso8859-1"

Definition at line 74 of file dm.h.

#define FONT5   "5x7"

Definition at line 75 of file dm.h.

#define FONT6   "6x10"

Definition at line 76 of file dm.h.

#define FONT7   "7x13"

Definition at line 77 of file dm.h.

#define FONT8   "8x13"

Definition at line 78 of file dm.h.

#define FONT9   "9x15"

Definition at line 79 of file dm.h.

#define FONT10   "10x20"

Definition at line 80 of file dm.h.

#define FONT12   "12x24"

Definition at line 81 of file dm.h.

#define DM_VALID_FONT_SIZE (   _size)    (5 <= (_size) && (_size) <= 12 && (_size) != 11)

Definition at line 86 of file dm.h.

Referenced by to_fontsize().

#define DM_FONT_SIZE_TO_NAME (   _size)    (((_size) == 5) ? FONT5 : (((_size) == 6) ? FONT6 : (((_size) == 7) ? FONT7 : (((_size) == 8) ? FONT8 : (((_size) == 9) ? FONT9 : (((_size) == 10) ? FONT10 : FONT12))))))

Definition at line 87 of file dm.h.

#define DM_TYPE_BAD   -1

Definition at line 91 of file dm.h.

Referenced by dmo_open_tcl(), and to_new_view().

#define DM_TYPE_NULL   0

Definition at line 92 of file dm.h.

Referenced by dm_open(), and to_new_view().

#define DM_TYPE_PLOT   1

Definition at line 93 of file dm.h.

Referenced by dm_open().

#define DM_TYPE_PS   2

Definition at line 94 of file dm.h.

Referenced by dm_open().

#define DM_TYPE_X   3

Definition at line 95 of file dm.h.

Referenced by dm_open(), dmo_open_tcl(), and to_new_view().

#define DM_TYPE_OGL   4

Definition at line 96 of file dm.h.

Referenced by dm_fogHint(), dm_open(), dm_share_dlist(), dmo_open_tcl(), and to_new_view().

#define DM_TYPE_GLX   5

Definition at line 97 of file dm.h.

#define DM_TYPE_PEX   6

Definition at line 98 of file dm.h.

#define DM_TYPE_WGL   7

Definition at line 99 of file dm.h.

Referenced by dm_fogHint(), dm_open(), dm_share_dlist(), dmo_open_tcl(), and to_new_view().

#define DM_TYPE_TK   8

Definition at line 100 of file dm.h.

Referenced by dm_open(), dmo_open_tcl(), and to_new_view().

#define DM_TYPE_RTGL   9

Definition at line 101 of file dm.h.

Referenced by dm_fogHint(), dm_open(), and dm_share_dlist().

#define DM_TYPE_TXT   10

Definition at line 102 of file dm.h.

Referenced by dm_open().

#define DM_TYPE_QT   11

Definition at line 103 of file dm.h.

Referenced by dm_open(), and to_new_view().

#define DM_TYPE_OSG   12

Definition at line 104 of file dm.h.

Referenced by dm_open(), and to_new_view().

#define DM_TYPE_OSGL   13

Definition at line 105 of file dm.h.

Referenced by dm_open(), and to_new_view().

#define DM_SOLID_LINE   0

Definition at line 108 of file dm.h.

#define DM_DASHED_LINE   1

Definition at line 109 of file dm.h.

Referenced by plot_setLineAttr(), and ps_setLineAttr().

#define IS_DM_TYPE_NULL (   _t)    ((_t) == DM_TYPE_NULL)

Definition at line 111 of file dm.h.

#define IS_DM_TYPE_PLOT (   _t)    ((_t) == DM_TYPE_PLOT)

Definition at line 112 of file dm.h.

#define IS_DM_TYPE_PS (   _t)    ((_t) == DM_TYPE_PS)

Definition at line 113 of file dm.h.

#define IS_DM_TYPE_X (   _t)    ((_t) == DM_TYPE_X)

Definition at line 114 of file dm.h.

#define IS_DM_TYPE_TK (   _t)    ((_t) == DM_TYPE_TK)

Definition at line 115 of file dm.h.

#define IS_DM_TYPE_OGL (   _t)    ((_t) == DM_TYPE_OGL)

Definition at line 116 of file dm.h.

#define IS_DM_TYPE_GLX (   _t)    ((_t) == DM_TYPE_GLX)

Definition at line 117 of file dm.h.

#define IS_DM_TYPE_PEX (   _t)    ((_t) == DM_TYPE_PEX)

Definition at line 118 of file dm.h.

#define IS_DM_TYPE_WGL (   _t)    ((_t) == DM_TYPE_WGL)

Definition at line 119 of file dm.h.

#define IS_DM_TYPE_RTGL (   _t)    ((_t) == DM_TYPE_RTGL)

Definition at line 120 of file dm.h.

#define IS_DM_TYPE_TXT (   _t)    ((_t) == DM_TYPE_TXT)

Definition at line 121 of file dm.h.

#define IS_DM_TYPE_QT (   _t)    ((_t) == DM_TYPE_QT)

Definition at line 122 of file dm.h.

#define IS_DM_TYPE_OSG (   _t)    ((_t) == DM_TYPE_OSG)

Definition at line 123 of file dm.h.

#define IS_DM_TYPE_OSGL (   _t)    ((_t) == DM_TYPE_OSGL)

Definition at line 124 of file dm.h.

#define GET_DM (   p,
  structure,
  w,
  hp 
)
Value:
{ \
register struct structure *tp; \
for (BU_LIST_FOR(tp, structure, hp)) { \
if (w == tp->win) { \
(p) = tp; \
break; \
} \
} \
if (BU_LIST_IS_HEAD(tp, hp)) \
p = (struct structure *)NULL; \
}
#define BU_LIST_FOR(p, structure, hp)
Definition: list.h:365
if(share_geom)
Definition: nmg_mod.c:3829
#define BU_LIST_IS_HEAD(p, hp)
Definition: list.h:322

Definition at line 126 of file dm.h.

#define DM_COLOR_HI   ((short)230)

Definition at line 141 of file dm.h.

#define DM_COLOR_LOW   ((short)0)

Definition at line 142 of file dm.h.

#define DM_BLACK_R   DM_COLOR_LOW

Definition at line 143 of file dm.h.

#define DM_BLACK_G   DM_COLOR_LOW

Definition at line 144 of file dm.h.

#define DM_BLACK_B   DM_COLOR_LOW

Definition at line 145 of file dm.h.

#define DM_RED_R   DM_COLOR_HI

Definition at line 146 of file dm.h.

#define DM_RED_G   DM_COLOR_LOW

Definition at line 147 of file dm.h.

#define DM_RED_B   DM_COLOR_LOW

Definition at line 148 of file dm.h.

#define DM_BLUE_R   DM_COLOR_LOW

Definition at line 149 of file dm.h.

#define DM_BLUE_G   DM_COLOR_LOW

Definition at line 150 of file dm.h.

#define DM_BLUE_B   DM_COLOR_HI

Definition at line 151 of file dm.h.

#define DM_YELLOW_R   DM_COLOR_HI

Definition at line 152 of file dm.h.

#define DM_YELLOW_G   DM_COLOR_HI

Definition at line 153 of file dm.h.

#define DM_YELLOW_B   DM_COLOR_LOW

Definition at line 154 of file dm.h.

#define DM_WHITE_R   DM_COLOR_HI

Definition at line 155 of file dm.h.

#define DM_WHITE_G   DM_COLOR_HI

Definition at line 156 of file dm.h.

#define DM_WHITE_B   DM_COLOR_HI

Definition at line 157 of file dm.h.

#define DM_BLACK   DM_BLACK_R, DM_BLACK_G, DM_BLACK_B

Definition at line 158 of file dm.h.

#define DM_RED   DM_RED_R, DM_RED_G, DM_RED_B

Definition at line 159 of file dm.h.

#define DM_BLUE   DM_BLUE_R, DM_BLUE_G, DM_BLUE_B

Definition at line 160 of file dm.h.

#define DM_YELLOW   DM_YELLOW_R, DM_YELLOW_G, DM_YELLOW_B

Definition at line 161 of file dm.h.

#define DM_WHITE   DM_WHITE_R, DM_WHITE_G, DM_WHITE_B

Definition at line 162 of file dm.h.

#define DM_COPY_COLOR (   _dr,
  _dg,
  _db,
  _sr,
  _sg,
  _sb 
)
Value:
{\
(_dr) = (_sr);\
(_dg) = (_sg);\
(_db) = (_sb); }

Definition at line 163 of file dm.h.

#define DM_SAME_COLOR (   _dr,
  _dg,
  _db,
  _sr,
  _sg,
  _sb 
)
Value:
(\
(_dr) == (_sr) &&\
(_dg) == (_sg) &&\
(_db) == (_sb))

Definition at line 167 of file dm.h.

#define DM_REVERSE_COLOR_BYTE_ORDER (   _shift,
  _mask 
)

Definition at line 191 of file dm.h.

#define DM_CHGV_REDO   0 /* Display has changed substantially */

Definition at line 195 of file dm.h.

#define DM_CHGV_ADD   1 /* Add an object to the display */

Definition at line 196 of file dm.h.

#define DM_CHGV_DEL   2 /* Delete an object from the display */

Definition at line 197 of file dm.h.

#define DM_CHGV_REPL   3 /* Replace an object */

Definition at line 198 of file dm.h.

#define DM_CHGV_ILLUM   4 /* Make new object the illuminated object */

Definition at line 199 of file dm.h.

#define LIGHT_OFF   0

Definition at line 205 of file dm.h.

#define LIGHT_ON   1

Definition at line 206 of file dm.h.

#define LIGHT_RESET   2 /* all lights out */

Definition at line 207 of file dm.h.

#define DM_OPEN (   _interp,
  _type,
  _argc,
  _argv 
)    dm_open(_interp, _type, _argc, _argv)

Definition at line 439 of file dm.h.

#define DM_OPEN (   _interp,
  _type,
  _argc,
  _argv 
)    dm_open(_interp, _type, _argc, _argv)

Definition at line 439 of file dm.h.

#define DM_CLOSE (   _dmp)    _dmp->dm_close(_dmp)

Definition at line 440 of file dm.h.

#define DM_DRAW_BEGIN (   _dmp)    _dmp->dm_drawBegin(_dmp)

Definition at line 441 of file dm.h.

#define DM_DRAW_END (   _dmp)    _dmp->dm_drawEnd(_dmp)

Definition at line 442 of file dm.h.

#define DM_NORMAL (   _dmp)    _dmp->dm_normal(_dmp)

Definition at line 443 of file dm.h.

#define DM_LOADMATRIX (   _dmp,
  _mat,
  _eye 
)    _dmp->dm_loadMatrix(_dmp, _mat, _eye)

Definition at line 444 of file dm.h.

#define DM_LOADPMATRIX (   _dmp,
  _mat 
)    _dmp->dm_loadPMatrix(_dmp, _mat)

Definition at line 445 of file dm.h.

#define DM_DRAW_STRING_2D (   _dmp,
  _str,
  _x,
  _y,
  _size,
  _use_aspect 
)    _dmp->dm_drawString2D(_dmp, _str, _x, _y, _size, _use_aspect)

Definition at line 446 of file dm.h.

#define DM_DRAW_LINE_2D (   _dmp,
  _x1,
  _y1,
  _x2,
  _y2 
)    _dmp->dm_drawLine2D(_dmp, _x1, _y1, _x2, _y2)

Definition at line 447 of file dm.h.

#define DM_DRAW_LINE_3D (   _dmp,
  _pt1,
  _pt2 
)    _dmp->dm_drawLine3D(_dmp, _pt1, _pt2)

Definition at line 448 of file dm.h.

#define DM_DRAW_LINES_3D (   _dmp,
  _npoints,
  _points,
  _sflag 
)    _dmp->dm_drawLines3D(_dmp, _npoints, _points, _sflag)

Definition at line 449 of file dm.h.

#define DM_DRAW_POINT_2D (   _dmp,
  _x,
  _y 
)    _dmp->dm_drawPoint2D(_dmp, _x, _y)

Definition at line 450 of file dm.h.

#define DM_DRAW_POINT_3D (   _dmp,
  _pt 
)    _dmp->dm_drawPoint3D(_dmp, _pt)

Definition at line 451 of file dm.h.

#define DM_DRAW_POINTS_3D (   _dmp,
  _npoints,
  _points 
)    _dmp->dm_drawPoints3D(_dmp, _npoints, _points)

Definition at line 452 of file dm.h.

#define DM_DRAW_VLIST (   _dmp,
  _vlist 
)    _dmp->dm_drawVList(_dmp, _vlist)

Definition at line 453 of file dm.h.

#define DM_DRAW_VLIST_HIDDEN_LINE (   _dmp,
  _vlist 
)    _dmp->dm_drawVListHiddenLine(_dmp, _vlist)

Definition at line 454 of file dm.h.

#define DM_DRAW (   _dmp,
  _callback,
  _data 
)    _dmp->dm_draw(_dmp, _callback, _data)

Definition at line 455 of file dm.h.

#define DM_SET_FGCOLOR (   _dmp,
  _r,
  _g,
  _b,
  _strict,
  _transparency 
)    _dmp->dm_setFGColor(_dmp, _r, _g, _b, _strict, _transparency)

Definition at line 456 of file dm.h.

#define DM_SET_BGCOLOR (   _dmp,
  _r,
  _g,
  _b 
)    _dmp->dm_setBGColor(_dmp, _r, _g, _b)

Definition at line 457 of file dm.h.

#define DM_SET_LINE_ATTR (   _dmp,
  _width,
  _dashed 
)    _dmp->dm_setLineAttr(_dmp, _width, _dashed)

Definition at line 458 of file dm.h.

#define DM_CONFIGURE_WIN (   _dmp,
  _force 
)    _dmp->dm_configureWin((_dmp), (_force))

Definition at line 459 of file dm.h.

#define DM_SET_WIN_BOUNDS (   _dmp,
  _w 
)    _dmp->dm_setWinBounds(_dmp, _w)

Definition at line 460 of file dm.h.

#define DM_SET_LIGHT (   _dmp,
  _on 
)    _dmp->dm_setLight(_dmp, _on)

Definition at line 461 of file dm.h.

#define DM_SET_TRANSPARENCY (   _dmp,
  _on 
)    _dmp->dm_setTransparency(_dmp, _on)

Definition at line 462 of file dm.h.

#define DM_SET_DEPTH_MASK (   _dmp,
  _on 
)    _dmp->dm_setDepthMask(_dmp, _on)

Definition at line 463 of file dm.h.

#define DM_SET_ZBUFFER (   _dmp,
  _on 
)    _dmp->dm_setZBuffer(_dmp, _on)

Definition at line 464 of file dm.h.

#define DM_DEBUG (   _dmp,
  _lvl 
)    _dmp->dm_debug(_dmp, _lvl)

Definition at line 465 of file dm.h.

#define DM_LOGFILE (   _dmp,
  _lvl 
)    _dmp->dm_logfile(_dmp, _lvl)

Definition at line 466 of file dm.h.

#define DM_BEGINDLIST (   _dmp,
  _list 
)    _dmp->dm_beginDList(_dmp, _list)

Definition at line 467 of file dm.h.

#define DM_ENDDLIST (   _dmp)    _dmp->dm_endDList(_dmp)

Definition at line 468 of file dm.h.

#define DM_DRAWDLIST (   _dmp,
  _list 
)    _dmp->dm_drawDList(_list)

Definition at line 469 of file dm.h.

#define DM_FREEDLISTS (   _dmp,
  _list,
  _range 
)    _dmp->dm_freeDLists(_dmp, _list, _range)

Definition at line 470 of file dm.h.

#define DM_GEN_DLISTS (   _dmp,
  _range 
)    _dmp->dm_genDLists(_dmp, _range)

Definition at line 471 of file dm.h.

#define DM_GET_DISPLAY_IMAGE (   _dmp,
  _image 
)    _dmp->dm_getDisplayImage(_dmp, _image)

Definition at line 472 of file dm.h.

#define DM_MAKE_CURRENT (   _dmp)    _dmp->dm_makeCurrent(_dmp)

Definition at line 473 of file dm.h.

#define GED2IRIS (   x)    (((float)(x))*0.00048828125)

Definition at line 32 of file dm-glx.h.

#define Glx_MV_O (   _m)    offsetof(struct modifiable_glx_vars, _m)

Definition at line 34 of file dm-glx.h.

#define CMAP_BASE   40

Definition at line 40 of file dm-ogl.h.

#define GED2IRIS (   x)    (((float)(x))*0.00048828125)

Definition at line 43 of file dm-ogl.h.

#define GED_TO_Xx (   _dmp,
 
)    ((int)(((x)/4096.0+0.5)*((struct pex_vars *)((_dmp)->dmr_vars))->width))

Definition at line 37 of file dm-pex.h.

#define GED_TO_Xy (   _dmp,
 
)    ((int)((0.5-(x)/4096.0)*((struct pex_vars *)((_dmp)->dmr_vars))->height))

Definition at line 38 of file dm-pex.h.

#define Xx_TO_GED (   _dmp,
 
)    ((int)(((x)/(double)((struct pex_vars *)((_dmp)->dmr_vars))->width - 0.5) * 4095))

Definition at line 39 of file dm-pex.h.

#define Xy_TO_GED (   _dmp,
 
)    ((int)((0.5 - (x)/(double)((struct pex_vars *)((_dmp)->dmr_vars))->height) * 4095))

Definition at line 40 of file dm-pex.h.

#define TRY_DEPTHCUE   0

Definition at line 42 of file dm-pex.h.

#define Pex_MV_O (   _m)    offsetof(struct modifiable_pex_vars, _m)

Definition at line 43 of file dm-pex.h.

#define GED_TO_PLOT (   x)    (x)

Definition at line 34 of file dm-plot.h.

#define PLOT_TO_GED (   x)    (x)

Definition at line 35 of file dm-plot.h.

#define GED_TO_PS (   x)    ((int)((x)+2048))

Definition at line 35 of file dm-ps.h.

Referenced by ps_drawVList().

#define CMAP_BASE   40

Definition at line 38 of file dm-rtgl.h.

#define GED2IRIS (   x)    (((float)(x))*0.00048828125)

Definition at line 41 of file dm-rtgl.h.

#define Rtgl_MV_O (   _m)    offsetof(struct modifiable_rtgl_vars, _m)

Definition at line 43 of file dm-rtgl.h.

#define RTGL_MVARS   (((struct rtgl_vars *)dmp->dm_vars.priv_vars)->mvars)

Definition at line 45 of file dm-rtgl.h.

#define RTGL_GEDP   RTGL_MVARS.gedp

Definition at line 46 of file dm-rtgl.h.

#define RTGL_DIRTY   RTGL_MVARS.needRefresh

Definition at line 47 of file dm-rtgl.h.

#define JOB_ARRAY_SIZE   1000

Definition at line 82 of file dm-rtgl.h.

#define COPY_JOB (   a,
 
)
Value:
VMOVE((a).pt, (b).pt); \
VMOVE((a).dir, (b).dir);

Definition at line 95 of file dm-rtgl.h.

#define START_TABLE_SIZE   64

Definition at line 99 of file dm-rtgl.h.

#define KEY_LENGTH   3

Definition at line 100 of file dm-rtgl.h.

#define PT_ARRAY_SIZE   999

Definition at line 101 of file dm-rtgl.h.

#define INIT_OBJTREE (   p)
Value:
{ \
((struct objTree *)(p))->name = NULL; \
((struct objTree *)(p))->numChildren = 0; \
((struct objTree *)(p))->children = NULL; \
((struct objTree *)(p))->parent = NULL; \
((struct objTree *)(p))->ptInfo = NULL; \
}
Definition: clone.c:90
int numChildren
Definition: dm-rtgl.h:117
struct ptInfoList * ptInfo
Definition: dm-rtgl.h:120
struct objTree * children
Definition: dm-rtgl.h:118
struct objTree * parent
Definition: dm-rtgl.h:119

Definition at line 123 of file dm-rtgl.h.

#define CMAP_BASE   40

Definition at line 29 of file dm-tk.h.

#define CUBE_DIMENSION   6

Definition at line 30 of file dm-tk.h.

#define NUM_PIXELS   216 /* CUBE_DIMENSION * CUBE_DIMENSION * CUBE_DIMENSION */

Definition at line 31 of file dm-tk.h.

#define ColormapNull   (Colormap *)NULL

Definition at line 32 of file dm-tk.h.

#define CMAP_BASE   40

Definition at line 40 of file dm-wgl.h.

#define GED2IRIS (   x)    (((float)(x))*0.00048828125)

Definition at line 43 of file dm-wgl.h.

#define CMAP_BASE   40

Definition at line 32 of file dm-X.h.

#define CUBE_DIMENSION   6

Definition at line 33 of file dm-X.h.

#define NUM_PIXELS   216 /* CUBE_DIMENSION * CUBE_DIMENSION * CUBE_DIMENSION */

Definition at line 34 of file dm-X.h.

#define ColormapNull   (Colormap *)NULL

Definition at line 35 of file dm-X.h.

Typedef Documentation

typedef void* Tk_Window

Definition at line 44 of file dm_xvars.h.

typedef long Display

Definition at line 49 of file dm_xvars.h.

typedef long Window

Definition at line 50 of file dm_xvars.h.

typedef long Colormap

Definition at line 51 of file dm_xvars.h.

typedef struct dm_internal dm

Definition at line 226 of file dm.h.

Function Documentation

int Dm_Init ( void *  interp)

Definition at line 127 of file tcl.c.

References BU_CMD_NULL, bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_strcpy(), dm_bestXType_tcl(), dm_validXType_tcl(), Dmo_Init(), and vectorThreshold.

Referenced by Tclcad_Init().

Here is the call graph for this function:

dm* dm_open ( Tcl_Interp *  interp,
int  type,
int  argc,
const char *  argv[] 
)

Definition at line 107 of file dm-generic.c.

References DM_NULL, DM_TYPE_NULL, DM_TYPE_OGL, DM_TYPE_OSG, DM_TYPE_OSGL, DM_TYPE_PLOT, DM_TYPE_PS, DM_TYPE_QT, DM_TYPE_RTGL, DM_TYPE_TK, DM_TYPE_TXT, DM_TYPE_WGL, DM_TYPE_X, null_open(), plot_open(), ps_open(), qt_open(), and txt_open().

Referenced by dmo_open_tcl(), and to_new_view().

Here is the call graph for this function:

void* dm_interp ( dm dmp)

Definition at line 162 of file dm-generic.c.

References dm_internal::dm_interp, and UNLIKELY.

int dm_share_dlist ( dm dmp1,
dm dmp2 
)

Definition at line 173 of file dm-generic.c.

References bu_vls_strcmp(), dm_internal::dm_dName, DM_NULL, dm_internal::dm_type, DM_TYPE_OGL, DM_TYPE_RTGL, DM_TYPE_WGL, and UNLIKELY.

Here is the call graph for this function:

fastf_t dm_Xx2Normal ( dm dmp,
int  x 
)

Definition at line 209 of file dm-generic.c.

References dm_internal::dm_width, and UNLIKELY.

int dm_Normal2Xx ( dm dmp,
fastf_t  f 
)

Definition at line 216 of file dm-generic.c.

References dm_internal::dm_width, and UNLIKELY.

fastf_t dm_Xy2Normal ( dm dmp,
int  y,
int  use_aspect 
)

Definition at line 223 of file dm-generic.c.

References dm_internal::dm_aspect, dm_internal::dm_height, and UNLIKELY.

int dm_Normal2Xy ( dm dmp,
fastf_t  f,
int  use_aspect 
)

Definition at line 233 of file dm-generic.c.

References dm_internal::dm_aspect, dm_internal::dm_height, and UNLIKELY.

void dm_fogHint ( dm dmp,
int  fastfog 
)

Definition at line 243 of file dm-generic.c.

References bu_log(), dm_internal::dm_type, DM_TYPE_OGL, DM_TYPE_RTGL, DM_TYPE_WGL, ogl_fogHint(), rtgl_fogHint(), UNLIKELY, and wgl_fogHint().

Here is the call graph for this function:

int dm_processOptions ( dm dmp,
struct bu_vls init_proc_vls,
int  argc,
char **  argv 
)

Definition at line 38 of file options.c.

References bu_getopt(), bu_log(), bu_optarg, bu_opterr, bu_optind, bu_optopt, bu_vls_printf(), bu_vls_strcpy(), dm_internal::dm_dName, dm_internal::dm_height, dm_internal::dm_pathName, dm_internal::dm_top, and dm_internal::dm_width.

Here is the call graph for this function:

int dm_limit ( int  i)
int dm_unlimit ( int  i)
fastf_t dm_wrap ( fastf_t  f)
void dm_draw_data_axes ( dm dmp,
fastf_t  viewSize,
struct bview_data_axes_state bndasp 
)
int clip ( fastf_t xp1,
fastf_t yp1,
fastf_t xp2,
fastf_t yp2 
)

clip a 2-D integer line seg against the size of the display

Definition at line 66 of file clip.c.

References code(), GED_MAX, and GED_MIN.

Referenced by rt_process_casec().

Here is the call graph for this function:

int vclip ( fastf_t ,
fastf_t ,
fastf_t ,
fastf_t  
)

Referenced by plot_drawVList(), and ps_drawVList().

void dm_draw_grid ( dm dmp,
struct bview_grid_state ggsp,
fastf_t  scale,
mat_t  model2view,
fastf_t  base2local 
)

Definition at line 35 of file grid.c.

References bview_grid_state::anchor, bview_grid_state::color, dm_internal::dm_aspect, dm_draw_point_2d(), dm_set_fg(), dm_set_line_attr(), dm_internal::dm_width, bview_grid_state::res_h, bview_grid_state::res_major_h, bview_grid_state::res_major_v, bview_grid_state::res_v, VSET, X, Y, and ZERO.

Referenced by go_draw_faceplate().

Here is the call graph for this function:

int dm_draw_labels ( dm dmp,
struct rt_wdb wdbp,
const char *  name,
mat_t  viewmat,
int *  labelsColor,
int(*)(dm *dmp_arg, struct rt_wdb *wdbp_arg, const char *name_arg, mat_t viewmat_arg, int *labelsColor_arg, ClientData labelsHookClientdata_arg)  labelsHook,
ClientData  labelsHookClientdata 
)

Referenced by go_draw_other().

void dm_draw_rect ( dm dmp,
struct bview_interactive_rect_state grsp 
)
void dm_draw_scale ( dm dmp,
fastf_t  viewSize,
int *  lineColor,
int *  textColor 
)

Definition at line 39 of file scale.c.

References bu_vls_addr(), bu_vls_free(), BU_VLS_INIT_ZERO, bu_vls_printf(), dm_draw_line_2d(), dm_draw_string_2d(), dm_internal::dm_lineStyle, dm_internal::dm_lineWidth, dm_set_fg(), and dm_set_line_attr().

Referenced by dmo_drawScale_cmd(), and go_draw_faceplate().

Here is the call graph for this function:

const char* dm_version ( void  )

returns the compile-time version of libdm

Definition at line 32 of file vers.c.

dm* dm_get ( )

Definition at line 274 of file dm-generic.c.

References BU_GET, bu_vls_init(), dm_internal::dm_dName, DM_NULL, and dm_internal::dm_pathName.

Here is the call graph for this function:

void dm_put ( dm dmp)

Definition at line 285 of file dm-generic.c.

References BU_PUT, bu_vls_free(), dm_internal::dm_dName, DM_NULL, dm_internal::dm_pathName, dm_internal::dm_put_internal, fb_put(), and dm_internal::fbp.

Here is the call graph for this function:

void dm_set_null ( dm dmp)

Definition at line 298 of file dm-generic.c.

References dm_null, and UNLIKELY.

const char* dm_get_dm_name ( dm dmp)

Definition at line 321 of file dm-generic.c.

References dm_internal::dm_name, and UNLIKELY.

const char* dm_get_dm_lname ( dm dmp)

Definition at line 328 of file dm-generic.c.

References dm_internal::dm_lname, and UNLIKELY.

void dm_set_width ( dm dmp,
int  width 
)

Definition at line 349 of file dm-generic.c.

References dm_internal::dm_width, UNLIKELY, and OSL::Strings::width.

void dm_set_height ( dm dmp,
int  height 
)

Definition at line 356 of file dm-generic.c.

References dm_internal::dm_height, and UNLIKELY.

fastf_t dm_get_aspect ( dm dmp)

Definition at line 378 of file dm-generic.c.

References dm_internal::dm_aspect, and UNLIKELY.

int dm_get_type ( dm dmp)

Definition at line 364 of file dm-generic.c.

References dm_internal::dm_type, and UNLIKELY.

void* dm_get_xvars ( dm dmp)

Definition at line 314 of file dm-generic.c.

References dm_internal::dm_vars, dm_vars::pub_vars, and UNLIKELY.

struct bu_vls* dm_list_types ( const char  separator)

Definition at line 992 of file dm-generic.c.

References BU_GET, bu_vls_addr(), bu_vls_init(), bu_vls_printf(), and bu_vls_trunc().

Referenced by dm_list_tcl().

Here is the call graph for this function:

unsigned long dm_get_id ( dm dmp)

Definition at line 526 of file dm-generic.c.

References dm_internal::dm_id, and UNLIKELY.

void dm_set_id ( dm dmp,
unsigned long  new_id 
)

Definition at line 533 of file dm-generic.c.

References dm_internal::dm_id, and UNLIKELY.

int dm_get_displaylist ( dm dmp)

Definition at line 371 of file dm-generic.c.

References dm_internal::dm_displaylist, and UNLIKELY.

Referenced by dm_draw_display_list().

int dm_close ( dm dmp)

Definition at line 413 of file dm-generic.c.

References dm_internal::dm_close, and UNLIKELY.

Referenced by dmo_deleteProc(), to_deleteProc(), and to_deleteViewProc().

unsigned char* dm_get_bg ( dm dmp)

Definition at line 420 of file dm-generic.c.

References dm_internal::dm_bg, and UNLIKELY.

Referenced by to_bg().

int dm_set_bg ( dm dmp,
unsigned char  r,
unsigned char  g,
unsigned char  b 
)

Definition at line 427 of file dm-generic.c.

References dm_internal::dm_setBGColor, and UNLIKELY.

Referenced by dmo_bg_tcl(), and to_bg().

unsigned char* dm_get_fg ( dm dmp)

Definition at line 434 of file dm-generic.c.

References dm_internal::dm_fg, and UNLIKELY.

int dm_make_current ( dm dmp)
vect_t* dm_get_clipmin ( dm dmp)

Definition at line 455 of file dm-generic.c.

References dm_internal::dm_clipmin, and UNLIKELY.

Referenced by to_bounds().

vect_t* dm_get_clipmax ( dm dmp)

Definition at line 463 of file dm-generic.c.

References dm_internal::dm_clipmax, and UNLIKELY.

Referenced by to_bounds().

int dm_get_bound_flag ( dm dmp)

Definition at line 470 of file dm-generic.c.

References dm_internal::dm_boundFlag, and UNLIKELY.

Referenced by dm_draw_display_list().

void dm_set_bound ( dm dmp,
fastf_t  val 
)

Definition at line 477 of file dm-generic.c.

References dm_internal::dm_bound, and UNLIKELY.

Referenced by to_bounds().

int dm_get_stereo ( dm dmp)

Definition at line 491 of file dm-generic.c.

References dm_internal::dm_stereo, and UNLIKELY.

int dm_set_win_bounds ( dm dmp,
fastf_t w 
)

Definition at line 484 of file dm-generic.c.

References dm_internal::dm_setWinBounds, and UNLIKELY.

Referenced by to_bounds().

int dm_configure_win ( dm dmp,
int  force 
)

Definition at line 497 of file dm-generic.c.

References dm_internal::dm_configureWin, and UNLIKELY.

Referenced by dmo_configure_tcl(), to_configure(), and to_fontsize().

struct bu_vls* dm_get_dname ( dm dmp)

Definition at line 512 of file dm-generic.c.

References dm_internal::dm_dName, and UNLIKELY.

struct bu_vls* dm_get_tkname ( dm dmp)

Definition at line 519 of file dm-generic.c.

References dm_internal::dm_tkName, and UNLIKELY.

int dm_get_fontsize ( dm dmp)

Definition at line 385 of file dm-generic.c.

References dm_internal::dm_fontsize, and UNLIKELY.

Referenced by to_fontsize().

void dm_set_fontsize ( dm dmp,
int  size 
)

Definition at line 392 of file dm-generic.c.

References dm_internal::dm_fontsize, and UNLIKELY.

Referenced by to_fontsize().

int dm_get_light_flag ( dm dmp)

Definition at line 399 of file dm-generic.c.

References dm_internal::dm_light, and UNLIKELY.

Referenced by to_light().

void dm_set_light_flag ( dm dmp,
int  size 
)

Definition at line 406 of file dm-generic.c.

References dm_internal::dm_light, and UNLIKELY.

int dm_set_light ( dm dmp,
int  light 
)

Definition at line 540 of file dm-generic.c.

References dm_internal::dm_setLight, and UNLIKELY.

Referenced by dmo_light_tcl(), and to_light().

void* dm_get_public_vars ( dm dmp)

Definition at line 547 of file dm-generic.c.

References dm_internal::dm_vars, dm_vars::pub_vars, and UNLIKELY.

Referenced by to_view_win_size().

void* dm_get_private_vars ( dm dmp)

Definition at line 554 of file dm-generic.c.

References dm_internal::dm_vars, dm_vars::priv_vars, and UNLIKELY.

int dm_get_transparency ( dm dmp)

Definition at line 561 of file dm-generic.c.

References dm_internal::dm_transparency, and UNLIKELY.

Referenced by go_draw_dlist(), and to_transparency().

int dm_set_transparency ( dm dmp,
int  transparency 
)

Definition at line 568 of file dm-generic.c.

References dm_internal::dm_setTransparency, and UNLIKELY.

Referenced by dmo_transparency_tcl(), and to_transparency().

int dm_get_zbuffer ( dm dmp)

Definition at line 575 of file dm-generic.c.

References dm_internal::dm_zbuffer, and UNLIKELY.

Referenced by go_refresh(), and to_zbuffer().

int dm_set_zbuffer ( dm dmp,
int  zbuffer 
)

Definition at line 582 of file dm-generic.c.

References dm_internal::dm_setZBuffer, and UNLIKELY.

Referenced by dmo_zbuffer_tcl(), go_refresh(), go_refresh_draw(), and to_zbuffer().

int dm_get_linewidth ( dm dmp)
void dm_set_linewidth ( dm dmp,
int  linewidth 
)

Definition at line 596 of file dm-generic.c.

References dm_internal::dm_lineWidth, and UNLIKELY.

int dm_get_linestyle ( dm dmp)

Definition at line 603 of file dm-generic.c.

References dm_internal::dm_lineStyle, and UNLIKELY.

Referenced by go_dm_draw_arrows(), go_dm_draw_lines(), and go_dm_draw_polys().

void dm_set_linestyle ( dm dmp,
int  linestyle 
)

Definition at line 610 of file dm-generic.c.

References dm_internal::dm_lineStyle, and UNLIKELY.

int dm_get_zclip ( dm dmp)

Definition at line 625 of file dm-generic.c.

References dm_internal::dm_zclip, and UNLIKELY.

void dm_set_zclip ( dm dmp,
int  zclip 
)

Definition at line 632 of file dm-generic.c.

References dm_internal::dm_zclip, and UNLIKELY.

Referenced by to_zclip().

int dm_get_perspective ( dm dmp)

Definition at line 639 of file dm-generic.c.

References dm_internal::dm_perspective, and UNLIKELY.

void dm_set_perspective ( dm dmp,
fastf_t  perspective 
)

Definition at line 646 of file dm-generic.c.

References dm_internal::dm_perspective, and UNLIKELY.

Referenced by to_dm_func(), and to_view_func_common().

int dm_get_display_image ( dm dmp,
unsigned char **  image 
)

Definition at line 653 of file dm-generic.c.

References dm_internal::dm_getDisplayImage.

Referenced by to_dm_get_display_image().

int dm_gen_dlists ( dm dmp,
size_t  range 
)

Definition at line 660 of file dm-generic.c.

References dm_internal::dm_genDLists, and UNLIKELY.

Referenced by to_create_vlist_callback_solid().

int dm_begin_dlist ( dm dmp,
unsigned int  list 
)

Definition at line 667 of file dm-generic.c.

References dm_internal::dm_beginDList, and UNLIKELY.

Referenced by to_create_vlist_callback_solid().

void dm_draw_dlist ( dm dmp,
unsigned int  list 
)

Definition at line 673 of file dm-generic.c.

References dm_internal::dm_drawDList, and UNLIKELY.

Referenced by dm_draw_display_list(), and go_draw_solid().

int dm_end_dlist ( dm dmp)

Definition at line 679 of file dm-generic.c.

References dm_internal::dm_endDList, and UNLIKELY.

Referenced by to_create_vlist_callback_solid().

int dm_free_dlists ( dm dmp,
unsigned int  list,
int  range 
)

Definition at line 685 of file dm-generic.c.

References dm_internal::dm_freeDLists, and UNLIKELY.

Referenced by to_free_vlist_callback().

int dm_draw_vlist ( dm dmp,
struct bn_vlist vp 
)
int dm_draw_vlist_hidden_line ( dm dmp,
struct bn_vlist vp 
)

Definition at line 699 of file dm-generic.c.

References dm_internal::dm_drawVListHiddenLine, and UNLIKELY.

Referenced by go_draw_solid(), and to_create_vlist_callback_solid().

int dm_draw_begin ( dm dmp)

Definition at line 705 of file dm-generic.c.

References dm_internal::dm_drawBegin, and UNLIKELY.

Referenced by dmo_clear_tcl(), dmo_drawBegin_tcl(), and go_refresh().

int dm_draw_end ( dm dmp)

Definition at line 711 of file dm-generic.c.

References dm_internal::dm_drawEnd, and UNLIKELY.

Referenced by dmo_clear_tcl(), dmo_drawEnd_tcl(), and go_refresh().

int dm_normal ( dm dmp)

Definition at line 717 of file dm-generic.c.

References dm_internal::dm_normal, and UNLIKELY.

Referenced by dmo_normal_tcl(), and go_draw_other().

int dm_loadmatrix ( dm dmp,
fastf_t mat,
int  eye 
)

Definition at line 723 of file dm-generic.c.

References dm_internal::dm_loadMatrix.

Referenced by dmo_loadmat_tcl(), go_draw(), and go_draw_solid().

int dm_loadpmatrix ( dm dmp,
fastf_t mat 
)

Definition at line 729 of file dm-generic.c.

References dm_internal::dm_loadPMatrix.

Referenced by go_draw().

int dm_draw_string_2d ( dm dmp,
const char *  str,
fastf_t  x,
fastf_t  y,
int  size,
int  use_aspect 
)
int dm_draw_line_2d ( dm dmp,
fastf_t  x1,
fastf_t  y1_2d,
fastf_t  x2,
fastf_t  y2 
)
int dm_draw_line_3d ( dm dmp,
point_t  pt1,
point_t  pt2 
)

Definition at line 747 of file dm-generic.c.

References dm_internal::dm_drawLine3D, and UNLIKELY.

int dm_draw_lines_3d ( dm dmp,
int  npoints,
point_t *  points,
int  sflag 
)

Definition at line 754 of file dm-generic.c.

References dm_internal::dm_drawLines3D, and UNLIKELY.

Referenced by dm_draw_data_axes(), go_dm_draw_arrows(), and go_dm_draw_lines().

int dm_draw_point_2d ( dm dmp,
fastf_t  x,
fastf_t  y 
)
int dm_draw_point_3d ( dm dmp,
point_t  pt 
)

Definition at line 766 of file dm-generic.c.

References dm_internal::dm_drawPoint3D, and UNLIKELY.

int dm_draw_points_3d ( dm dmp,
int  npoints,
point_t *  points 
)

Definition at line 772 of file dm-generic.c.

References dm_internal::dm_drawPoints3D, and UNLIKELY.

Referenced by dm_draw_data_axes().

int dm_draw ( dm dmp,
struct bn_vlist *(*)(void *)  callback,
void **  data 
)

Definition at line 778 of file dm-generic.c.

References dm_internal::dm_draw, and UNLIKELY.

int dm_draw_obj ( dm dmp,
struct display_list obj 
)

Definition at line 784 of file dm-generic.c.

References dm_internal::dm_draw_obj.

int dm_set_depth_mask ( dm dmp,
int  d_on 
)
int dm_debug ( dm dmp,
int  lvl 
)

Definition at line 796 of file dm-generic.c.

References dm_internal::dm_debug, and UNLIKELY.

Referenced by dmo_debug_tcl().

int dm_logfile ( dm dmp,
const char *  filename 
)

Definition at line 802 of file dm-generic.c.

References dm_internal::dm_logfile.

Referenced by dmo_logfile_tcl().

fb* dm_get_fb ( dm dmp)

Definition at line 305 of file dm-generic.c.

References dm_internal::dm_openFb, FB_NULL, dm_internal::fbp, and UNLIKELY.

Referenced by to_open_fbs().

int dm_get_fb_visible ( dm dmp)
int dm_set_fb_visible ( dm dmp,
int  is_fb_visible 
)
fastf_t* dm_get_vp ( dm dmp)

Definition at line 809 of file dm-generic.c.

References dm_internal::dm_vp, and UNLIKELY.

void dm_set_vp ( dm dmp,
fastf_t vp 
)

Definition at line 816 of file dm-generic.c.

References dm_internal::dm_vp, and UNLIKELY.

int dm_set_hook ( const struct bu_structparse_map map,
const char *  key,
void *  data,
struct dm_hook_data hook 
)
struct bu_structparse* dm_get_vparse ( dm dmp)

Definition at line 863 of file dm-generic.c.

References UNLIKELY, and dm_internal::vparse.

void* dm_get_mvars ( dm dmp)

Definition at line 870 of file dm-generic.c.

References dm_internal::m_vars, and UNLIKELY.

int dm_draw_display_list ( dm dmp,
struct bu_list dl,
fastf_t  transparency_threshold,
fastf_t  inv_viewsize,
short  r,
short  g,
short  b,
int  line_width,
int  draw_style,
int  draw_edit,
unsigned char *  gdc,
int  solids_down,
int  mv_dlist 
)

Definition at line 922 of file dm-generic.c.

References BU_LIST_NEXT, BU_LIST_NOT_HEAD, BU_LIST_PNEXT, display_list::dl_headSolid, dm_draw_dlist(), dm_draw_vlist(), dm_get_bound_flag(), dm_get_displaylist(), dm_set_line_attr(), DOWN, and UP.

Here is the call graph for this function:

void glx_clearToBlack ( )
int null_close ( dm dmp)

Definition at line 38 of file dm-Null.c.

int null_drawBegin ( dm dmp)

Definition at line 45 of file dm-Null.c.

int null_drawEnd ( dm dmp)

Definition at line 52 of file dm-Null.c.

int null_normal ( dm dmp)

Definition at line 59 of file dm-Null.c.

int null_loadMatrix ( dm dmp,
fastf_t mat,
int  which_eye 
)

Definition at line 66 of file dm-Null.c.

int null_loadPMatrix ( dm dmp,
fastf_t mat 
)

Definition at line 73 of file dm-Null.c.

int null_drawString2D ( dm dmp,
const char *  str,
fastf_t  x,
fastf_t  y,
int  size,
int  use_aspect 
)

Definition at line 80 of file dm-Null.c.

int null_drawLine2D ( dm dmp,
fastf_t  x_1,
fastf_t  y_1,
fastf_t  x_2,
fastf_t  y_2 
)

Definition at line 87 of file dm-Null.c.

int null_drawLine3D ( dm dmp,
point_t  pt1,
point_t  pt2 
)

Definition at line 94 of file dm-Null.c.

int null_drawLines3D ( dm dmp,
int  npoints,
point_t *  points,
int  sflag 
)

Definition at line 101 of file dm-Null.c.

int null_drawPoint2D ( dm dmp,
fastf_t  x,
fastf_t  y 
)

Definition at line 108 of file dm-Null.c.

int null_drawPoint3D ( dm dmp,
point_t  point 
)

Definition at line 115 of file dm-Null.c.

int null_drawPoints3D ( dm dmp,
int  npoints,
point_t *  points 
)

Definition at line 122 of file dm-Null.c.

int null_drawVList ( dm dmp,
struct bn_vlist vp 
)

Definition at line 129 of file dm-Null.c.

int null_drawVListHiddenLine ( dm dmp,
struct bn_vlist vp 
)

Definition at line 136 of file dm-Null.c.

int null_draw ( dm dmp,
struct bn_vlist *(*)(void *)  callback_function,
void **  data 
)

Definition at line 143 of file dm-Null.c.

int null_setFGColor ( dm dmp,
unsigned char  r,
unsigned char  g,
unsigned char  b,
int  strict,
fastf_t  transparency 
)

Definition at line 150 of file dm-Null.c.

int null_setBGColor ( dm dmp,
unsigned char  r,
unsigned char  g,
unsigned char  b 
)

Definition at line 157 of file dm-Null.c.

int null_setLineAttr ( dm dmp,
int  width,
int  style 
)

Definition at line 164 of file dm-Null.c.

int null_configureWin ( dm dmp,
int  force 
)

Definition at line 171 of file dm-Null.c.

int null_setWinBounds ( dm dmp,
fastf_t w 
)

Definition at line 178 of file dm-Null.c.

int null_setLight ( dm dmp,
int  light_on 
)

Definition at line 185 of file dm-Null.c.

int null_setTransparency ( dm dmp,
int  transparency 
)

Definition at line 192 of file dm-Null.c.

int null_setDepthMask ( dm dmp,
int  mask 
)

Definition at line 199 of file dm-Null.c.

int null_setZBuffer ( dm dmp,
int  zbuffer_on 
)

Definition at line 206 of file dm-Null.c.

int null_debug ( dm dmp,
int  lvl 
)

Definition at line 213 of file dm-Null.c.

int null_beginDList ( dm dmp,
unsigned int  list 
)

Definition at line 225 of file dm-Null.c.

int null_endDList ( dm dmp)

Definition at line 232 of file dm-Null.c.

void null_drawDList ( unsigned int  list)

Definition at line 239 of file dm-Null.c.

int null_freeDLists ( dm dmp,
unsigned int  list,
int  range 
)

Definition at line 245 of file dm-Null.c.

int null_genDLists ( dm dmp,
size_t  range 
)

Definition at line 252 of file dm-Null.c.

int null_getDisplayImage ( dm dmp,
unsigned char **  image 
)

Definition at line 259 of file dm-Null.c.

int null_fg ( dm dmp,
unsigned char  r,
unsigned char  g,
unsigned char  b,
int  strict,
fastf_t  transparency 
)
int null_bg ( dm dmp,
unsigned char  r,
unsigned char  g,
unsigned char  b 
)
void null_reshape ( dm dmp,
int  width,
int  height 
)

Definition at line 266 of file dm-Null.c.

int null_makeCurrent ( dm dmp)

Definition at line 272 of file dm-Null.c.

void null_processEvents ( dm dmp)
int null_openFb ( dm dmp)

Definition at line 279 of file dm-Null.c.

void ogl_fogHint ( )

Referenced by dm_fogHint().

void Pex_configure_window_shape ( )
void Pex_establish_perspective ( )
void Pex_set_perspective ( )
void rtgl_fogHint ( )

Referenced by dm_fogHint().

void wgl_fogHint ( )

Referenced by dm_fogHint().

Variable Documentation

dm dm_ogl
dm dm_plot

Definition at line 496 of file dm-plot.c.

Referenced by plot_open().

dm dm_ps

Definition at line 488 of file dm-ps.c.

Referenced by ps_open().

dm dm_rtgl
dm dm_tk
dm dm_wgl
dm dm_X
dm dm_txt

Definition at line 341 of file dm-txt.c.

Referenced by txt_open().

dm dm_qt
dm dm_osgl
struct glx_vars head_glx_vars
dm dm_null

Definition at line 285 of file dm-Null.c.

Referenced by dm_set_null(), and null_open().

struct pex_vars head_pex_vars
struct plot_vars head_plot_vars

Definition at line 58 of file dm-plot.c.

struct ps_vars head_ps_vars

Definition at line 62 of file dm-ps.c.