BRL-CAD
libdm (Display Management)

Files

file  defines.h
 
file  fbserv.h
 This header holds generic routines and data structures used for TCP based communication between a framebuffer and a remote process. Variations on this logic, based originally on the stand-alone fbserv program, are at the core of MGED and Archer's ability to display incoming image data from a separate rt process.
 
file  util.h
 
file  view.h
 
file  dm.h
 

Data Structures

struct  dm
 
struct  dm_plugin
 
struct  fb
 
struct  fb_plugin
 
struct  fbserv_listener
 
struct  fbserv_client
 
struct  fbserv_obj
 
struct  dm_path_edit_params
 
struct  dm_view_data
 
struct  dm_hook_data
 
struct  ColorMap
 
struct  fb_platform_specific
 

Macros

#define FB_EXPORT
 
#define NET_LONG_LEN   4
 # bytes to network long More...
 
#define MAX_CLIENTS   32
 
#define MAX_PORT_TRIES   100
 
#define FBS_CALLBACK_NULL   (void (*)(void))NULL
 
#define FBSERV_OBJ_NULL   (struct fbserv_obj *)NULL
 
#define DM_NULL   (struct dm *)NULL
 
#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 PIXEL_NULL   (unsigned char *) 0
 
#define RGBPIXEL_NULL   (unsigned char *) 0
 
#define COLORMAP_NULL   (ColorMap *) 0
 
#define FB_NULL   (struct fb *) 0
 
#define FB_CK_FB(_p)   BU_CKMAG(_p, FB_MAGIC, "FB")
 
#define COPYRGB(to, from)
 
#define FB_DEBUG_BIO   1 /* Buffered io calls (less r/wpixel) */
 
#define FB_DEBUG_CMAP   2 /* Contents of colormaps */
 
#define FB_DEBUG_RW   4 /* Contents of reads and writes */
 
#define FB_DEBUG_BRW   8 /* Buffered IO rpixel and wpixel */
 
#define MSG_FBOPEN   1
 
#define MSG_FBCLOSE   2
 
#define MSG_FBCLEAR   3
 
#define MSG_FBREAD   4
 
#define MSG_FBWRITE   5
 
#define MSG_FBCURSOR   6
 fb_cursor(void) More...
 
#define MSG_FBWINDOW   7
 OLD. More...
 
#define MSG_FBZOOM   8
 OLD. More...
 
#define MSG_FBSCURSOR   9
 OLD. More...
 
#define MSG_FBVIEW   10
 NEW. More...
 
#define MSG_FBGETVIEW   11
 NEW. More...
 
#define MSG_FBRMAP   12
 
#define MSG_FBWMAP   13
 
#define MSG_FBHELP   14
 
#define MSG_FBREADRECT   15
 
#define MSG_FBWRITERECT   16
 
#define MSG_FBFLUSH   17
 
#define MSG_FBFREE   18
 
#define MSG_FBGETCURSOR   19
 NEW. More...
 
#define MSG_FBPOLL   30
 NEW. More...
 
#define MSG_FBSETCURSOR   31
 NEW in Release 4.4. More...
 
#define MSG_FBBWREADRECT   32
 NEW in Release 4.6. More...
 
#define MSG_FBBWWRITERECT   33
 NEW in Release 4.6. More...
 
#define MSG_DATA   20
 
#define MSG_RETURN   21
 
#define MSG_CLOSE   22
 
#define MSG_ERROR   23
 
#define MSG_NORETURN   100
 

Typedefs

typedef unsigned char RGBpixel[3]
 
typedef struct fb_internal FBIO
 

Enumerations

enum  dm_event_t { DM_MOTION_NOTIFY , DM_BUTTON_PRESS , DM_BUTTON_RELEASE }
 

Functions

int fbs_open (struct fbserv_obj *fbsp, int port)
 
int fbs_close (struct fbserv_obj *fbsp)
 
struct pkg_switchfbs_pkg_switch (void)
 
void fbs_setup_socket (int fd)
 
int fbs_new_client (struct fbserv_obj *fbsp, struct pkg_conn *pcp, void *data)
 
void fbs_existing_client_handler (void *clientData, int mask)
 
unsigned long long dm_hash (struct dm *dmp)
 
void dm_generic_hook (const struct bu_structparse *sdp, const char *name, void *base, const char *value, void *data)
 
int dm_validXType (const char *dpy_string, const char *name)
 
int draw_Line3D (struct dm *dmp, point_t pt1, point_t pt2)
 
void flip_display_image_vertically (unsigned char *image, size_t width, size_t height, int alpha)
 
int fb_sim_view (struct fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
 
int fb_sim_getview (struct fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
 
int fb_sim_cursor (struct fb *ifp, int mode, int x, int y)
 
int fb_sim_getcursor (struct fb *ifp, int *mode, int *x, int *y)
 
int fb_sim_readrect (struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
int fb_sim_bwreadrect (struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
void dm_draw_faceplate (struct bview *v, double base2local, double local2base)
 
void * dm_interp (struct dm *dmp)
 
void * dm_get_ctx (struct dm *dmp)
 
void * dm_get_udata (struct dm *dmp)
 
void dm_set_udata (struct dm *dmp, void *udata)
 
int dm_share_dlist (struct dm *dmp1, struct dm *dmp2)
 
fastf_t dm_Xx2Normal (struct dm *dmp, int x)
 
int dm_Normal2Xx (struct dm *dmp, fastf_t f)
 
fastf_t dm_Xy2Normal (struct dm *dmp, int y, int use_aspect)
 
int dm_Normal2Xy (struct dm *dmp, fastf_t f, int use_aspect)
 
void dm_fogHint (struct dm *dmp, int fastfog)
 
int dm_processOptions (struct dm *dmp, struct bu_vls *init_proc_vls, int argc, const char **argv)
 
int dm_limit (int i)
 
int dm_unlimit (int i)
 
fastf_t dm_wrap (fastf_t f)
 
void dm_draw_adc (struct dm *dmp, struct bv_adc_state *adcp, mat_t view2model, mat_t model2view)
 
void dm_draw_data_axes (struct dm *dmp, fastf_t viewSize, struct bv_data_axes_state *bndasp)
 
void dm_draw_scene_axes (struct dm *dmp, struct bv_scene_obj *s)
 
void dm_draw_hud_axes (struct dm *dmp, fastf_t viewSize, const mat_t rmat, struct bv_axes *bnasp)
 
int clip (fastf_t *, fastf_t *, fastf_t *, fastf_t *)
 
int vclip (point_t, point_t, fastf_t *, fastf_t *)
 
void dm_draw_grid (struct dm *dmp, struct bv_grid_state *ggsp, fastf_t scale, mat_t model2view, fastf_t base2local)
 
void dm_draw_rect (struct dm *dmp, struct bv_interactive_rect_state *grsp)
 
void dm_draw_scale (struct dm *dmp, fastf_t viewSize, const char *unit, int *lineColor, int *textColor)
 
const char * dm_version (void)
 
int dm_valid_type (const char *name, const char *dpy_string)
 
const char * dm_init_msgs (void)
 
struct dmdm_open (void *ctx, void *interp, const char *type, int argc, const char *argv[])
 
void dm_list_types (struct bu_vls *list, const char *separator)
 
const char * dm_bestXType (const char *dpy_string)
 
int dm_have_graphics (void)
 
const char * dm_graphics_system (const char *dmtype)
 
const char * dm_get_dm_name (const struct dm *dmp)
 
const char * dm_get_dm_lname (struct dm *dmp)
 
const char * dm_get_graphics_system (const struct dm *dmp)
 
int dm_get_width (struct dm *dmp)
 
int dm_get_height (struct dm *dmp)
 
void dm_set_width (struct dm *dmp, int width)
 
void dm_set_height (struct dm *dmp, int height)
 
void dm_geometry_request (struct dm *dmp, int width, int height)
 
void dm_internal_var (struct bu_vls *result, struct dm *dmp, const char *key)
 
fastf_t dm_get_aspect (struct dm *dmp)
 
int dm_graphical (const struct dm *dmp)
 
const char * dm_get_type (struct dm *dmp)
 
unsigned long dm_get_id (struct dm *dmp)
 
void dm_set_id (struct dm *dmp, unsigned long new_id)
 
int dm_get_displaylist (struct dm *dmp)
 
int dm_close (struct dm *dmp)
 
int dm_get_bg (unsigned char **bg1, unsigned char **bg2, struct dm *dmp)
 
int dm_set_bg (struct dm *dmp, unsigned char r1, unsigned char g1, unsigned char b1, unsigned char r2, unsigned char g2, unsigned char b2)
 
unsigned char * dm_get_fg (struct dm *dmp)
 
int dm_set_fg (struct dm *dmp, unsigned char r, unsigned char g, unsigned char b, int strict, fastf_t transparency)
 
int dm_reshape (struct dm *dmp, int width, int height)
 
int dm_make_current (struct dm *dmp)
 
int dm_doevent (struct dm *dmp, void *clientData, void *eventPtr)
 
int dm_get_dirty (struct dm *dmp)
 
void dm_set_dirty (struct dm *dmp, int i)
 
vect_tdm_get_clipmin (struct dm *dmp)
 
vect_tdm_get_clipmax (struct dm *dmp)
 
int dm_get_stereo (struct dm *dmp)
 
int dm_set_win_bounds (struct dm *dmp, fastf_t *w)
 
int dm_configure_win (struct dm *dmp, int force)
 
struct bu_vlsdm_get_pathname (struct dm *dmp)
 
void dm_set_pathname (struct dm *dmp, const char *pname)
 
struct bu_vlsdm_get_dname (struct dm *dmp)
 
const char * dm_get_name (const struct dm *dmp)
 
struct bu_vlsdm_get_tkname (struct dm *dmp)
 
int dm_get_fontsize (struct dm *dmp)
 
void dm_set_fontsize (struct dm *dmp, int size)
 
int dm_get_linewidth (struct dm *dmp)
 
void dm_set_linewidth (struct dm *dmp, int linewidth)
 
int dm_get_linestyle (struct dm *dmp)
 
void dm_set_linestyle (struct dm *dmp, int linestyle)
 
int dm_get_perspective (struct dm *dmp)
 
void dm_set_perspective (struct dm *dmp, fastf_t perspective)
 
int dm_get_display_image (struct dm *dmp, unsigned char **image, int flip, int alpha)
 
int dm_draw_vlist (struct dm *dmp, struct bv_vlist *vp)
 
int dm_draw_vlist_hidden_line (struct dm *dmp, struct bv_vlist *vp)
 
int dm_set_line_attr (struct dm *dmp, int width, int style)
 
int dm_draw_begin (struct dm *dmp)
 
int dm_draw_end (struct dm *dmp)
 
int dm_hud_begin (struct dm *dmp)
 
int dm_hud_end (struct dm *dmp)
 
int dm_loadmatrix (struct dm *dmp, fastf_t *mat, int eye)
 
int dm_loadpmatrix (struct dm *dmp, const fastf_t *mat)
 
void dm_pop_pmatrix (struct dm *dmp)
 
int dm_draw_string_2d (struct dm *dmp, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
 
int dm_string_bbox_2d (struct dm *dmp, vect2d_t *bmin, vect2d_t *bmax, const char *str, fastf_t x, fastf_t y, int size, int use_aspect)
 
int dm_draw_line_2d (struct dm *dmp, fastf_t x1, fastf_t y1_2d, fastf_t x2, fastf_t y2)
 
int dm_draw_line_3d (struct dm *dmp, point_t pt1, point_t pt2)
 
int dm_draw_lines_3d (struct dm *dmp, int npoints, point_t *points, int sflag)
 
int dm_draw_point_2d (struct dm *dmp, fastf_t x, fastf_t y)
 
int dm_draw_point_3d (struct dm *dmp, point_t pt)
 
int dm_draw_points_3d (struct dm *dmp, int npoints, point_t *points)
 
int dm_draw (struct dm *dmp, struct bv_vlist *(*callback)(void *), void **data)
 
int dm_set_depth_mask (struct dm *dmp, int d_on)
 
int dm_set_debug (struct dm *dmp, int lvl)
 
int dm_get_debug (struct dm *dmp)
 
int dm_logfile (struct dm *dmp, const char *filename)
 
struct fbdm_get_fb (struct dm *dmp)
 
int dm_get_fb_visible (struct dm *dmp)
 
int dm_set_fb_visible (struct dm *dmp, int is_fb_visible)
 
int dm_get_light (struct dm *dmp)
 
int dm_set_light (struct dm *dmp, int light)
 
int dm_get_transparency (struct dm *dmp)
 
int dm_set_transparency (struct dm *dmp, int transparency)
 
int dm_get_zbuffer (struct dm *dmp)
 
int dm_set_zbuffer (struct dm *dmp, int zbuffer)
 
int dm_get_zclip (struct dm *dmp)
 
void dm_set_zclip (struct dm *dmp, int zclip)
 
fastf_t dm_get_bound (struct dm *dmp)
 
void dm_set_bound (struct dm *dmp, fastf_t val)
 
int dm_get_bound_flag (struct dm *dmp)
 
void dm_set_bound_flag (struct dm *dmp, int bound)
 
int dm_draw_obj (struct dm *dmp, struct bv_scene_obj *s)
 
int dm_gen_dlists (struct dm *dmp, size_t range)
 
int dm_begin_dlist (struct dm *dmp, unsigned int list)
 
int dm_draw_dlist (struct dm *dmp, unsigned int list)
 
int dm_end_dlist (struct dm *dmp)
 
int dm_free_dlists (struct dm *dmp, unsigned int list, int range)
 
int dm_draw_display_list (struct dm *dmp, struct display_list *obj)
 
int dm_draw_head_dl (struct 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)
 
int dm_write_image (struct bu_vls *msgs, FILE *fp, struct dm *dmp)
 
void dm_flush (struct dm *dmp)
 
void dm_sync (struct dm *dmp)
 
int dm_event_cmp (struct dm *dmp, dm_event_t type, int event)
 
void dm_set_vp (struct 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 (struct dm *dmp)
 
void * dm_get_mvars (struct dm *dmp)
 
const char * dm_default_type (void)
 
struct fbfb_get (void)
 
struct fbfb_raw (const char *type)
 
void fb_put (struct fb *ifp)
 
struct dmfb_get_dm (struct fb *ifp)
 
const char * fb_gettype (struct fb *ifp)
 
void fb_set_standalone (struct fb *ifp, int val)
 
int fb_get_standalone (struct fb *ifp)
 
int fb_get_max_width (struct fb *ifp)
 
int fb_get_max_height (struct fb *ifp)
 
int fb_getwidth (struct fb *ifp)
 
int fb_getheight (struct fb *ifp)
 
int fb_poll (struct fb *ifp)
 
long fb_poll_rate (struct fb *ifp)
 
int fb_help (struct fb *ifp)
 
int fb_free (struct fb *ifp)
 
int fb_clear (struct fb *ifp, unsigned char *pp)
 
ssize_t fb_read (struct fb *ifp, int x, int y, unsigned char *pp, size_t count)
 
ssize_t fb_write (struct fb *ifp, int x, int y, const unsigned char *pp, size_t count)
 
int fb_rmap (struct fb *ifp, ColorMap *cmap)
 
int fb_wmap (struct fb *ifp, const ColorMap *cmap)
 
int fb_view (struct fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
 
int fb_getview (struct fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
 
int fb_setcursor (struct fb *ifp, const unsigned char *bits, int xb, int yb, int xo, int yo)
 
int fb_cursor (struct fb *ifp, int mode, int x, int y)
 
int fb_getcursor (struct fb *ifp, int *mode, int *x, int *y)
 
int fb_readrect (struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
int fb_writerect (struct fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
int fb_bwreadrect (struct fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
int fb_bwwriterect (struct fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
struct fbfb_open (const char *file, int _width, int _height)
 
int fb_close (struct fb *ifp)
 
int fb_close_existing (struct fb *ifp)
 
int fb_genhelp (void)
 
int fb_ioinit (struct fb *ifp)
 
int fb_seek (struct fb *ifp, int x, int y)
 
int fb_tell (struct fb *ifp, int *xp, int *yp)
 
int fb_rpixel (struct fb *ifp, unsigned char *pp)
 
int fb_wpixel (struct fb *ifp, unsigned char *pp)
 
int fb_flush (struct fb *ifp)
 
int fb_configure_window (struct fb *, int, int)
 
int fb_refresh (struct fb *ifp, int x, int y, int w, int h)
 
void fb_log (const char *fmt,...) _BU_ATTR_PRINTF12
 
int fb_null (struct fb *ifp)
 
int fb_null_setcursor (struct fb *ifp, const unsigned char *bits, int xbits, int ybits, int xorig, int yorig)
 
int fb_common_file_size (size_t *widthp, size_t *heightp, const char *filename, int pixel_size)
 
int fb_common_image_size (size_t *widthp, size_t *heightp, size_t npixels)
 
int fb_common_name_size (size_t *widthp, size_t *heightp, const char *name)
 
int fb_write_fp (struct fb *ifp, FILE *fp, int req_width, int req_height, int crunch, int inverse, struct bu_vls *result)
 
int fb_read_fd (struct fb *ifp, int fd, int file_width, int file_height, int file_xoff, int file_yoff, int scr_width, int scr_height, int scr_xoff, int scr_yoff, int fileinput, char *file_name, int one_line_only, int multiple_lines, int autosize, int inverse, int clear, int zoom, struct bu_vls *result)
 
int fb_read_icv (struct fb *ifp, icv_image_t *img, int file_xoff, int file_yoff, int file_maxwidth, int file_maxheight, int scr_xoff, int scr_yoff, int clear, int zoom, int inverse, int one_line_only, int multiple_lines, struct bu_vls *result)
 
icv_image_tfb_write_icv (struct fb *ifp, int scr_xoff, int scr_yoff, int width, int height)
 
int fb_read_png (struct fb *ifp, FILE *fp_in, int file_xoff, int file_yoff, int scr_xoff, int scr_yoff, int clear, int zoom, int inverse, int one_line_only, int multiple_lines, int verbose, int header_only, double def_screen_gamma, struct bu_vls *result)
 
int fb_set_interface (struct fb *ifp, const char *interface_type)
 
const char * fb_get_name (const struct fb *ifp)
 
void fb_set_magic (struct fb *ifp, uint32_t magic)
 
long fb_get_pagebuffer_pixel_size (struct fb *ifp)
 
int fb_is_set_fd (struct fb *ifp, fd_set *infds)
 
int fb_set_fd (struct fb *ifp, fd_set *select_list)
 
int fb_clear_fd (struct fb *ifp, fd_set *select_list)
 
int fb_is_linear_cmap (const ColorMap *cmap)
 
void fb_make_linear_cmap (ColorMap *cmap)
 
struct fb_platform_specificfb_get_platform_specific (uint32_t magic)
 
void fb_put_platform_specific (struct fb_platform_specific *fb_p)
 
struct fbfb_open_existing (const char *file, int _width, int _height, struct fb_platform_specific *fb_p)
 
void fb_setup_existing (struct fb *fbp, int _width, int _height, struct fb_platform_specific *fb_p)
 
int fb_reset (struct fb *ifp)
 
int fb_viewport (struct fb *ifp, int left, int top, int right, int bottom)
 
int fb_window (struct fb *ifp, int xcenter, int ycenter)
 
int fb_zoom (struct fb *ifp, int xzoom, int yzoom)
 
int fb_scursor (struct fb *ifp, int mode, int x, int y)
 
const char * fb_version (void)
 

Variables

int _fb_disk_enable
 
struct dm dm_null
 

Detailed Description

Macro Definition Documentation

◆ FB_EXPORT

#define FB_EXPORT

Definition at line 51 of file defines.h.

◆ NET_LONG_LEN

#define NET_LONG_LEN   4

# bytes to network long

Definition at line 51 of file fbserv.h.

◆ MAX_CLIENTS

#define MAX_CLIENTS   32

Definition at line 52 of file fbserv.h.

◆ MAX_PORT_TRIES

#define MAX_PORT_TRIES   100

Definition at line 53 of file fbserv.h.

◆ FBS_CALLBACK_NULL

#define FBS_CALLBACK_NULL   (void (*)(void))NULL

Definition at line 54 of file fbserv.h.

◆ FBSERV_OBJ_NULL

#define FBSERV_OBJ_NULL   (struct fbserv_obj *)NULL

Definition at line 55 of file fbserv.h.

◆ DM_NULL

#define DM_NULL   (struct dm *)NULL

Definition at line 44 of file dm.h.

◆ FONTBACK

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

Definition at line 47 of file dm.h.

◆ FONT5

#define FONT5   "5x7"

Definition at line 48 of file dm.h.

◆ FONT6

#define FONT6   "6x10"

Definition at line 49 of file dm.h.

◆ FONT7

#define FONT7   "7x13"

Definition at line 50 of file dm.h.

◆ FONT8

#define FONT8   "8x13"

Definition at line 51 of file dm.h.

◆ FONT9

#define FONT9   "9x15"

Definition at line 52 of file dm.h.

◆ FONT10

#define FONT10   "10x20"

Definition at line 53 of file dm.h.

◆ FONT12

#define FONT12   "12x24"

Definition at line 54 of file dm.h.

◆ DM_VALID_FONT_SIZE

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

Definition at line 59 of file dm.h.

◆ DM_FONT_SIZE_TO_NAME

#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 60 of file dm.h.

◆ PIXEL_NULL

#define PIXEL_NULL   (unsigned char *) 0

Definition at line 372 of file dm.h.

◆ RGBPIXEL_NULL

#define RGBPIXEL_NULL   (unsigned char *) 0

Definition at line 373 of file dm.h.

◆ COLORMAP_NULL

#define COLORMAP_NULL   (ColorMap *) 0

Definition at line 374 of file dm.h.

◆ FB_NULL

#define FB_NULL   (struct fb *) 0

Definition at line 376 of file dm.h.

◆ FB_CK_FB

#define FB_CK_FB (   _p)    BU_CKMAG(_p, FB_MAGIC, "FB")

assert the integrity of a framebuffer struct.

Definition at line 381 of file dm.h.

◆ COPYRGB

#define COPYRGB (   to,
  from 
)
Value:
{ (to)[RED]=(from)[RED];\
(to)[GRN]=(from)[GRN];\
(to)[BLU]=(from)[BLU]; }
#define RED
Definition: color.h:40
#define BLU
Definition: color.h:42
#define GRN
Definition: color.h:41

Definition at line 477 of file dm.h.

◆ FB_DEBUG_BIO

#define FB_DEBUG_BIO   1 /* Buffered io calls (less r/wpixel) */

Definition at line 482 of file dm.h.

◆ FB_DEBUG_CMAP

#define FB_DEBUG_CMAP   2 /* Contents of colormaps */

Definition at line 483 of file dm.h.

◆ FB_DEBUG_RW

#define FB_DEBUG_RW   4 /* Contents of reads and writes */

Definition at line 484 of file dm.h.

◆ FB_DEBUG_BRW

#define FB_DEBUG_BRW   8 /* Buffered IO rpixel and wpixel */

Definition at line 485 of file dm.h.

◆ MSG_FBOPEN

#define MSG_FBOPEN   1

Definition at line 506 of file dm.h.

◆ MSG_FBCLOSE

#define MSG_FBCLOSE   2

Definition at line 507 of file dm.h.

◆ MSG_FBCLEAR

#define MSG_FBCLEAR   3

Definition at line 508 of file dm.h.

◆ MSG_FBREAD

#define MSG_FBREAD   4

Definition at line 509 of file dm.h.

◆ MSG_FBWRITE

#define MSG_FBWRITE   5

Definition at line 510 of file dm.h.

◆ MSG_FBCURSOR

#define MSG_FBCURSOR   6

fb_cursor(void)

Definition at line 511 of file dm.h.

◆ MSG_FBWINDOW

#define MSG_FBWINDOW   7

OLD.

Definition at line 512 of file dm.h.

◆ MSG_FBZOOM

#define MSG_FBZOOM   8

OLD.

Definition at line 513 of file dm.h.

◆ MSG_FBSCURSOR

#define MSG_FBSCURSOR   9

OLD.

Definition at line 514 of file dm.h.

◆ MSG_FBVIEW

#define MSG_FBVIEW   10

NEW.

Definition at line 515 of file dm.h.

◆ MSG_FBGETVIEW

#define MSG_FBGETVIEW   11

NEW.

Definition at line 516 of file dm.h.

◆ MSG_FBRMAP

#define MSG_FBRMAP   12

Definition at line 517 of file dm.h.

◆ MSG_FBWMAP

#define MSG_FBWMAP   13

Definition at line 518 of file dm.h.

◆ MSG_FBHELP

#define MSG_FBHELP   14

Definition at line 519 of file dm.h.

◆ MSG_FBREADRECT

#define MSG_FBREADRECT   15

Definition at line 520 of file dm.h.

◆ MSG_FBWRITERECT

#define MSG_FBWRITERECT   16

Definition at line 521 of file dm.h.

◆ MSG_FBFLUSH

#define MSG_FBFLUSH   17

Definition at line 522 of file dm.h.

◆ MSG_FBFREE

#define MSG_FBFREE   18

Definition at line 523 of file dm.h.

◆ MSG_FBGETCURSOR

#define MSG_FBGETCURSOR   19

NEW.

Definition at line 524 of file dm.h.

◆ MSG_FBPOLL

#define MSG_FBPOLL   30

NEW.

Definition at line 525 of file dm.h.

◆ MSG_FBSETCURSOR

#define MSG_FBSETCURSOR   31

NEW in Release 4.4.

Definition at line 526 of file dm.h.

◆ MSG_FBBWREADRECT

#define MSG_FBBWREADRECT   32

NEW in Release 4.6.

Definition at line 527 of file dm.h.

◆ MSG_FBBWWRITERECT

#define MSG_FBBWWRITERECT   33

NEW in Release 4.6.

Definition at line 528 of file dm.h.

◆ MSG_DATA

#define MSG_DATA   20

Definition at line 530 of file dm.h.

◆ MSG_RETURN

#define MSG_RETURN   21

Definition at line 531 of file dm.h.

◆ MSG_CLOSE

#define MSG_CLOSE   22

Definition at line 532 of file dm.h.

◆ MSG_ERROR

#define MSG_ERROR   23

Definition at line 533 of file dm.h.

◆ MSG_NORETURN

#define MSG_NORETURN   100

Definition at line 535 of file dm.h.

Typedef Documentation

◆ RGBpixel

typedef unsigned char RGBpixel[3]

Format of disk pixels is .pix raw image files. Formerly used as arguments to many of the library routines, but has fallen into disuse due to the difficulties with ANSI function prototypes, and the fact that arrays are not real types in C. The most notable problem is that of passing a pointer to an array of RGBpixel. It looks doubly dimensioned, but isn't.

Definition at line 357 of file dm.h.

◆ FBIO

typedef struct fb_internal FBIO

Definition at line 499 of file dm.h.

Enumeration Type Documentation

◆ dm_event_t

enum dm_event_t
Enumerator
DM_MOTION_NOTIFY 
DM_BUTTON_PRESS 
DM_BUTTON_RELEASE 

Definition at line 309 of file dm.h.

Function Documentation

◆ fbs_open()

int fbs_open ( struct fbserv_obj fbsp,
int  port 
)

◆ fbs_close()

int fbs_close ( struct fbserv_obj fbsp)

◆ fbs_pkg_switch()

struct pkg_switch * fbs_pkg_switch ( void  )

◆ fbs_setup_socket()

void fbs_setup_socket ( int  fd)

◆ fbs_new_client()

int fbs_new_client ( struct fbserv_obj fbsp,
struct pkg_conn pcp,
void *  data 
)

◆ fbs_existing_client_handler()

void fbs_existing_client_handler ( void *  clientData,
int  mask 
)

◆ dm_hash()

unsigned long long dm_hash ( struct dm dmp)

◆ dm_generic_hook()

void dm_generic_hook ( const struct bu_structparse sdp,
const char *  name,
void *  base,
const char *  value,
void *  data 
)

◆ dm_validXType()

int dm_validXType ( const char *  dpy_string,
const char *  name 
)

◆ draw_Line3D()

int draw_Line3D ( struct dm dmp,
point_t  pt1,
point_t  pt2 
)

◆ flip_display_image_vertically()

void flip_display_image_vertically ( unsigned char *  image,
size_t  width,
size_t  height,
int  alpha 
)

◆ fb_sim_view()

int fb_sim_view ( struct fb ifp,
int  xcenter,
int  ycenter,
int  xzoom,
int  yzoom 
)

◆ fb_sim_getview()

int fb_sim_getview ( struct fb ifp,
int *  xcenter,
int *  ycenter,
int *  xzoom,
int *  yzoom 
)

◆ fb_sim_cursor()

int fb_sim_cursor ( struct fb ifp,
int  mode,
int  x,
int  y 
)

◆ fb_sim_getcursor()

int fb_sim_getcursor ( struct fb ifp,
int *  mode,
int *  x,
int *  y 
)

◆ fb_sim_readrect()

int fb_sim_readrect ( struct fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

◆ fb_sim_bwreadrect()

int fb_sim_bwreadrect ( struct fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

◆ dm_draw_faceplate()

void dm_draw_faceplate ( struct bview v,
double  base2local,
double  local2base 
)

◆ dm_interp()

void * dm_interp ( struct dm dmp)

◆ dm_get_ctx()

void * dm_get_ctx ( struct dm dmp)

◆ dm_get_udata()

void * dm_get_udata ( struct dm dmp)

◆ dm_set_udata()

void dm_set_udata ( struct dm dmp,
void *  udata 
)

◆ dm_share_dlist()

int dm_share_dlist ( struct dm dmp1,
struct dm dmp2 
)

◆ dm_Xx2Normal()

fastf_t dm_Xx2Normal ( struct dm dmp,
int  x 
)

◆ dm_Normal2Xx()

int dm_Normal2Xx ( struct dm dmp,
fastf_t  f 
)

◆ dm_Xy2Normal()

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

◆ dm_Normal2Xy()

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

◆ dm_fogHint()

void dm_fogHint ( struct dm dmp,
int  fastfog 
)

◆ dm_processOptions()

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

◆ dm_limit()

int dm_limit ( int  i)

◆ dm_unlimit()

int dm_unlimit ( int  i)

◆ dm_wrap()

fastf_t dm_wrap ( fastf_t  f)

◆ dm_draw_adc()

void dm_draw_adc ( struct dm dmp,
struct bv_adc_state adcp,
mat_t  view2model,
mat_t  model2view 
)

◆ dm_draw_data_axes()

void dm_draw_data_axes ( struct dm dmp,
fastf_t  viewSize,
struct bv_data_axes_state bndasp 
)

◆ dm_draw_scene_axes()

void dm_draw_scene_axes ( struct dm dmp,
struct bv_scene_obj s 
)

◆ dm_draw_hud_axes()

void dm_draw_hud_axes ( struct dm dmp,
fastf_t  viewSize,
const mat_t  rmat,
struct bv_axes bnasp 
)

◆ clip()

int clip ( fastf_t ,
fastf_t ,
fastf_t ,
fastf_t  
)

◆ vclip()

int vclip ( point_t  ,
point_t  ,
fastf_t ,
fastf_t  
)

◆ dm_draw_grid()

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

◆ dm_draw_rect()

void dm_draw_rect ( struct dm dmp,
struct bv_interactive_rect_state grsp 
)

◆ dm_draw_scale()

void dm_draw_scale ( struct dm dmp,
fastf_t  viewSize,
const char *  unit,
int *  lineColor,
int *  textColor 
)

◆ dm_version()

const char * dm_version ( void  )

◆ dm_valid_type()

int dm_valid_type ( const char *  name,
const char *  dpy_string 
)

◆ dm_init_msgs()

const char * dm_init_msgs ( void  )

◆ dm_open()

struct dm * dm_open ( void *  ctx,
void *  interp,
const char *  type,
int  argc,
const char *  argv[] 
)

◆ dm_list_types()

void dm_list_types ( struct bu_vls list,
const char *  separator 
)

◆ dm_bestXType()

const char * dm_bestXType ( const char *  dpy_string)

◆ dm_have_graphics()

int dm_have_graphics ( void  )

◆ dm_graphics_system()

const char * dm_graphics_system ( const char *  dmtype)

◆ dm_get_dm_name()

const char * dm_get_dm_name ( const struct dm dmp)

◆ dm_get_dm_lname()

const char * dm_get_dm_lname ( struct dm dmp)

◆ dm_get_graphics_system()

const char * dm_get_graphics_system ( const struct dm dmp)

◆ dm_get_width()

int dm_get_width ( struct dm dmp)

◆ dm_get_height()

int dm_get_height ( struct dm dmp)

◆ dm_set_width()

void dm_set_width ( struct dm dmp,
int  width 
)

◆ dm_set_height()

void dm_set_height ( struct dm dmp,
int  height 
)

◆ dm_geometry_request()

void dm_geometry_request ( struct dm dmp,
int  width,
int  height 
)

◆ dm_internal_var()

void dm_internal_var ( struct bu_vls result,
struct dm dmp,
const char *  key 
)

◆ dm_get_aspect()

fastf_t dm_get_aspect ( struct dm dmp)

◆ dm_graphical()

int dm_graphical ( const struct dm dmp)

◆ dm_get_type()

const char * dm_get_type ( struct dm dmp)

◆ dm_get_id()

unsigned long dm_get_id ( struct dm dmp)

◆ dm_set_id()

void dm_set_id ( struct dm dmp,
unsigned long  new_id 
)

◆ dm_get_displaylist()

int dm_get_displaylist ( struct dm dmp)

◆ dm_close()

int dm_close ( struct dm dmp)

◆ dm_get_bg()

int dm_get_bg ( unsigned char **  bg1,
unsigned char **  bg2,
struct dm dmp 
)

◆ dm_set_bg()

int dm_set_bg ( struct dm dmp,
unsigned char  r1,
unsigned char  g1,
unsigned char  b1,
unsigned char  r2,
unsigned char  g2,
unsigned char  b2 
)

◆ dm_get_fg()

unsigned char * dm_get_fg ( struct dm dmp)

◆ dm_set_fg()

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

◆ dm_reshape()

int dm_reshape ( struct dm dmp,
int  width,
int  height 
)

◆ dm_make_current()

int dm_make_current ( struct dm dmp)

◆ dm_doevent()

int dm_doevent ( struct dm dmp,
void *  clientData,
void *  eventPtr 
)

◆ dm_get_dirty()

int dm_get_dirty ( struct dm dmp)

◆ dm_set_dirty()

void dm_set_dirty ( struct dm dmp,
int  i 
)

◆ dm_get_clipmin()

vect_t * dm_get_clipmin ( struct dm dmp)

◆ dm_get_clipmax()

vect_t * dm_get_clipmax ( struct dm dmp)

◆ dm_get_stereo()

int dm_get_stereo ( struct dm dmp)

◆ dm_set_win_bounds()

int dm_set_win_bounds ( struct dm dmp,
fastf_t w 
)

◆ dm_configure_win()

int dm_configure_win ( struct dm dmp,
int  force 
)

◆ dm_get_pathname()

struct bu_vls * dm_get_pathname ( struct dm dmp)

◆ dm_set_pathname()

void dm_set_pathname ( struct dm dmp,
const char *  pname 
)

◆ dm_get_dname()

struct bu_vls * dm_get_dname ( struct dm dmp)

◆ dm_get_name()

const char * dm_get_name ( const struct dm dmp)

◆ dm_get_tkname()

struct bu_vls * dm_get_tkname ( struct dm dmp)

◆ dm_get_fontsize()

int dm_get_fontsize ( struct dm dmp)

◆ dm_set_fontsize()

void dm_set_fontsize ( struct dm dmp,
int  size 
)

◆ dm_get_linewidth()

int dm_get_linewidth ( struct dm dmp)

◆ dm_set_linewidth()

void dm_set_linewidth ( struct dm dmp,
int  linewidth 
)

◆ dm_get_linestyle()

int dm_get_linestyle ( struct dm dmp)

◆ dm_set_linestyle()

void dm_set_linestyle ( struct dm dmp,
int  linestyle 
)

◆ dm_get_perspective()

int dm_get_perspective ( struct dm dmp)

◆ dm_set_perspective()

void dm_set_perspective ( struct dm dmp,
fastf_t  perspective 
)

◆ dm_get_display_image()

int dm_get_display_image ( struct dm dmp,
unsigned char **  image,
int  flip,
int  alpha 
)

◆ dm_draw_vlist()

int dm_draw_vlist ( struct dm dmp,
struct bv_vlist vp 
)

◆ dm_draw_vlist_hidden_line()

int dm_draw_vlist_hidden_line ( struct dm dmp,
struct bv_vlist vp 
)

◆ dm_set_line_attr()

int dm_set_line_attr ( struct dm dmp,
int  width,
int  style 
)

◆ dm_draw_begin()

int dm_draw_begin ( struct dm dmp)

◆ dm_draw_end()

int dm_draw_end ( struct dm dmp)

◆ dm_hud_begin()

int dm_hud_begin ( struct dm dmp)

◆ dm_hud_end()

int dm_hud_end ( struct dm dmp)

◆ dm_loadmatrix()

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

◆ dm_loadpmatrix()

int dm_loadpmatrix ( struct dm dmp,
const fastf_t mat 
)

◆ dm_pop_pmatrix()

void dm_pop_pmatrix ( struct dm dmp)

◆ dm_draw_string_2d()

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

◆ dm_string_bbox_2d()

int dm_string_bbox_2d ( struct dm dmp,
vect2d_t bmin,
vect2d_t bmax,
const char *  str,
fastf_t  x,
fastf_t  y,
int  size,
int  use_aspect 
)

◆ dm_draw_line_2d()

int dm_draw_line_2d ( struct dm dmp,
fastf_t  x1,
fastf_t  y1_2d,
fastf_t  x2,
fastf_t  y2 
)

◆ dm_draw_line_3d()

int dm_draw_line_3d ( struct dm dmp,
point_t  pt1,
point_t  pt2 
)

◆ dm_draw_lines_3d()

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

◆ dm_draw_point_2d()

int dm_draw_point_2d ( struct dm dmp,
fastf_t  x,
fastf_t  y 
)

◆ dm_draw_point_3d()

int dm_draw_point_3d ( struct dm dmp,
point_t  pt 
)

◆ dm_draw_points_3d()

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

◆ dm_draw()

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

◆ dm_set_depth_mask()

int dm_set_depth_mask ( struct dm dmp,
int  d_on 
)

◆ dm_set_debug()

int dm_set_debug ( struct dm dmp,
int  lvl 
)

◆ dm_get_debug()

int dm_get_debug ( struct dm dmp)

◆ dm_logfile()

int dm_logfile ( struct dm dmp,
const char *  filename 
)

◆ dm_get_fb()

struct fb * dm_get_fb ( struct dm dmp)

◆ dm_get_fb_visible()

int dm_get_fb_visible ( struct dm dmp)

◆ dm_set_fb_visible()

int dm_set_fb_visible ( struct dm dmp,
int  is_fb_visible 
)

◆ dm_get_light()

int dm_get_light ( struct dm dmp)

◆ dm_set_light()

int dm_set_light ( struct dm dmp,
int  light 
)

◆ dm_get_transparency()

int dm_get_transparency ( struct dm dmp)

◆ dm_set_transparency()

int dm_set_transparency ( struct dm dmp,
int  transparency 
)

◆ dm_get_zbuffer()

int dm_get_zbuffer ( struct dm dmp)

◆ dm_set_zbuffer()

int dm_set_zbuffer ( struct dm dmp,
int  zbuffer 
)

◆ dm_get_zclip()

int dm_get_zclip ( struct dm dmp)

◆ dm_set_zclip()

void dm_set_zclip ( struct dm dmp,
int  zclip 
)

◆ dm_get_bound()

fastf_t dm_get_bound ( struct dm dmp)

◆ dm_set_bound()

void dm_set_bound ( struct dm dmp,
fastf_t  val 
)

◆ dm_get_bound_flag()

int dm_get_bound_flag ( struct dm dmp)

◆ dm_set_bound_flag()

void dm_set_bound_flag ( struct dm dmp,
int  bound 
)

◆ dm_draw_obj()

int dm_draw_obj ( struct dm dmp,
struct bv_scene_obj s 
)

◆ dm_gen_dlists()

int dm_gen_dlists ( struct dm dmp,
size_t  range 
)

◆ dm_begin_dlist()

int dm_begin_dlist ( struct dm dmp,
unsigned int  list 
)

◆ dm_draw_dlist()

int dm_draw_dlist ( struct dm dmp,
unsigned int  list 
)

◆ dm_end_dlist()

int dm_end_dlist ( struct dm dmp)

◆ dm_free_dlists()

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

◆ dm_draw_display_list()

int dm_draw_display_list ( struct dm dmp,
struct display_list obj 
)

◆ dm_draw_head_dl()

int dm_draw_head_dl ( struct 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 
)

◆ dm_write_image()

int dm_write_image ( struct bu_vls msgs,
FILE *  fp,
struct dm dmp 
)

◆ dm_flush()

void dm_flush ( struct dm dmp)

◆ dm_sync()

void dm_sync ( struct dm dmp)

◆ dm_event_cmp()

int dm_event_cmp ( struct dm dmp,
dm_event_t  type,
int  event 
)

◆ dm_set_vp()

void dm_set_vp ( struct dm dmp,
fastf_t vp 
)

◆ dm_set_hook()

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

◆ dm_get_vparse()

struct bu_structparse * dm_get_vparse ( struct dm dmp)

◆ dm_get_mvars()

void * dm_get_mvars ( struct dm dmp)

◆ dm_default_type()

const char * dm_default_type ( void  )

◆ fb_get()

struct fb * fb_get ( void  )

◆ fb_raw()

struct fb * fb_raw ( const char *  type)

◆ fb_put()

void fb_put ( struct fb ifp)

◆ fb_get_dm()

struct dm * fb_get_dm ( struct fb ifp)

◆ fb_gettype()

const char * fb_gettype ( struct fb ifp)

◆ fb_set_standalone()

void fb_set_standalone ( struct fb ifp,
int  val 
)

◆ fb_get_standalone()

int fb_get_standalone ( struct fb ifp)

◆ fb_get_max_width()

int fb_get_max_width ( struct fb ifp)

◆ fb_get_max_height()

int fb_get_max_height ( struct fb ifp)

◆ fb_getwidth()

int fb_getwidth ( struct fb ifp)

◆ fb_getheight()

int fb_getheight ( struct fb ifp)

◆ fb_poll()

int fb_poll ( struct fb ifp)

◆ fb_poll_rate()

long fb_poll_rate ( struct fb ifp)

◆ fb_help()

int fb_help ( struct fb ifp)

◆ fb_free()

int fb_free ( struct fb ifp)

◆ fb_clear()

int fb_clear ( struct fb ifp,
unsigned char *  pp 
)

◆ fb_read()

ssize_t fb_read ( struct fb ifp,
int  x,
int  y,
unsigned char *  pp,
size_t  count 
)

◆ fb_write()

ssize_t fb_write ( struct fb ifp,
int  x,
int  y,
const unsigned char *  pp,
size_t  count 
)

◆ fb_rmap()

int fb_rmap ( struct fb ifp,
ColorMap cmap 
)

◆ fb_wmap()

int fb_wmap ( struct fb ifp,
const ColorMap cmap 
)

◆ fb_view()

int fb_view ( struct fb ifp,
int  xcenter,
int  ycenter,
int  xzoom,
int  yzoom 
)

◆ fb_getview()

int fb_getview ( struct fb ifp,
int *  xcenter,
int *  ycenter,
int *  xzoom,
int *  yzoom 
)

◆ fb_setcursor()

int fb_setcursor ( struct fb ifp,
const unsigned char *  bits,
int  xb,
int  yb,
int  xo,
int  yo 
)

◆ fb_cursor()

int fb_cursor ( struct fb ifp,
int  mode,
int  x,
int  y 
)

◆ fb_getcursor()

int fb_getcursor ( struct fb ifp,
int *  mode,
int *  x,
int *  y 
)

◆ fb_readrect()

int fb_readrect ( struct fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

◆ fb_writerect()

int fb_writerect ( struct fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
const unsigned char *  pp 
)

◆ fb_bwreadrect()

int fb_bwreadrect ( struct fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

◆ fb_bwwriterect()

int fb_bwwriterect ( struct fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
const unsigned char *  pp 
)

◆ fb_open()

struct fb * fb_open ( const char *  file,
int  _width,
int  _height 
)

◆ fb_close()

int fb_close ( struct fb ifp)

◆ fb_close_existing()

int fb_close_existing ( struct fb ifp)

◆ fb_genhelp()

int fb_genhelp ( void  )

◆ fb_ioinit()

int fb_ioinit ( struct fb ifp)

◆ fb_seek()

int fb_seek ( struct fb ifp,
int  x,
int  y 
)

◆ fb_tell()

int fb_tell ( struct fb ifp,
int *  xp,
int *  yp 
)

◆ fb_rpixel()

int fb_rpixel ( struct fb ifp,
unsigned char *  pp 
)

◆ fb_wpixel()

int fb_wpixel ( struct fb ifp,
unsigned char *  pp 
)

◆ fb_flush()

int fb_flush ( struct fb ifp)

◆ fb_configure_window()

int fb_configure_window ( struct fb ,
int  ,
int   
)

◆ fb_refresh()

int fb_refresh ( struct fb ifp,
int  x,
int  y,
int  w,
int  h 
)

◆ fb_log()

void fb_log ( const char *  fmt,
  ... 
)

◆ fb_null()

int fb_null ( struct fb ifp)

◆ fb_null_setcursor()

int fb_null_setcursor ( struct fb ifp,
const unsigned char *  bits,
int  xbits,
int  ybits,
int  xorig,
int  yorig 
)

◆ fb_common_file_size()

int fb_common_file_size ( size_t *  widthp,
size_t *  heightp,
const char *  filename,
int  pixel_size 
)

◆ fb_common_image_size()

int fb_common_image_size ( size_t *  widthp,
size_t *  heightp,
size_t  npixels 
)

◆ fb_common_name_size()

int fb_common_name_size ( size_t *  widthp,
size_t *  heightp,
const char *  name 
)

◆ fb_write_fp()

int fb_write_fp ( struct fb ifp,
FILE *  fp,
int  req_width,
int  req_height,
int  crunch,
int  inverse,
struct bu_vls result 
)

◆ fb_read_fd()

int fb_read_fd ( struct fb ifp,
int  fd,
int  file_width,
int  file_height,
int  file_xoff,
int  file_yoff,
int  scr_width,
int  scr_height,
int  scr_xoff,
int  scr_yoff,
int  fileinput,
char *  file_name,
int  one_line_only,
int  multiple_lines,
int  autosize,
int  inverse,
int  clear,
int  zoom,
struct bu_vls result 
)

◆ fb_read_icv()

int fb_read_icv ( struct fb ifp,
icv_image_t img,
int  file_xoff,
int  file_yoff,
int  file_maxwidth,
int  file_maxheight,
int  scr_xoff,
int  scr_yoff,
int  clear,
int  zoom,
int  inverse,
int  one_line_only,
int  multiple_lines,
struct bu_vls result 
)

◆ fb_write_icv()

icv_image_t * fb_write_icv ( struct fb ifp,
int  scr_xoff,
int  scr_yoff,
int  width,
int  height 
)

◆ fb_read_png()

int fb_read_png ( struct fb ifp,
FILE *  fp_in,
int  file_xoff,
int  file_yoff,
int  scr_xoff,
int  scr_yoff,
int  clear,
int  zoom,
int  inverse,
int  one_line_only,
int  multiple_lines,
int  verbose,
int  header_only,
double  def_screen_gamma,
struct bu_vls result 
)

◆ fb_set_interface()

int fb_set_interface ( struct fb ifp,
const char *  interface_type 
)

◆ fb_get_name()

const char * fb_get_name ( const struct fb ifp)

◆ fb_set_magic()

void fb_set_magic ( struct fb ifp,
uint32_t  magic 
)

◆ fb_get_pagebuffer_pixel_size()

long fb_get_pagebuffer_pixel_size ( struct fb ifp)

◆ fb_is_set_fd()

int fb_is_set_fd ( struct fb ifp,
fd_set *  infds 
)

◆ fb_set_fd()

int fb_set_fd ( struct fb ifp,
fd_set *  select_list 
)

◆ fb_clear_fd()

int fb_clear_fd ( struct fb ifp,
fd_set *  select_list 
)

◆ fb_is_linear_cmap()

int fb_is_linear_cmap ( const ColorMap cmap)

◆ fb_make_linear_cmap()

void fb_make_linear_cmap ( ColorMap cmap)

◆ fb_get_platform_specific()

struct fb_platform_specific * fb_get_platform_specific ( uint32_t  magic)

◆ fb_put_platform_specific()

void fb_put_platform_specific ( struct fb_platform_specific fb_p)

◆ fb_open_existing()

struct fb * fb_open_existing ( const char *  file,
int  _width,
int  _height,
struct fb_platform_specific fb_p 
)

◆ fb_setup_existing()

void fb_setup_existing ( struct fb fbp,
int  _width,
int  _height,
struct fb_platform_specific fb_p 
)

◆ fb_reset()

int fb_reset ( struct fb ifp)

◆ fb_viewport()

int fb_viewport ( struct fb ifp,
int  left,
int  top,
int  right,
int  bottom 
)

◆ fb_window()

int fb_window ( struct fb ifp,
int  xcenter,
int  ycenter 
)

◆ fb_zoom()

int fb_zoom ( struct fb ifp,
int  xzoom,
int  yzoom 
)

◆ fb_scursor()

int fb_scursor ( struct fb ifp,
int  mode,
int  x,
int  y 
)

◆ fb_version()

const char * fb_version ( void  )

report version information about LIBFB

Variable Documentation

◆ _fb_disk_enable

int _fb_disk_enable
extern

◆ dm_null

struct dm dm_null
extern