BRL-CAD
if_stack.c File Reference
#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "bu/log.h"
#include "bu/str.h"
#include "fb_private.h"
#include "fb.h"
Include dependency graph for if_stack.c:

Go to the source code of this file.

Data Structures

struct  stkinfo
 

Macros

#define MAXIF   32
 
#define SI(ptr)   ((struct stkinfo *)((ptr)->u1.p))
 
#define SIL(ptr)   ((ptr)->u1.p) /* left hand side version */
 

Functions

HIDDEN int stk_open (fb *ifp, const char *file, int width, int height)
 
HIDDEN struct fb_platform_specificstk_get_fbps (uint32_t magic)
 
HIDDEN void stk_put_fbps (struct fb_platform_specific *fbps)
 
HIDDEN int stk_open_existing (fb *ifp, int width, int height, struct fb_platform_specific *fb_p)
 
HIDDEN int stk_close_existing (fb *ifp)
 
HIDDEN int stk_configure_window (fb *ifp, int width, int height)
 
HIDDEN int stk_refresh (fb *ifp, int x, int y, int w, int h)
 
HIDDEN int stk_close (fb *ifp)
 
HIDDEN int stk_clear (fb *ifp, unsigned char *pp)
 
HIDDEN ssize_t stk_read (fb *ifp, int x, int y, unsigned char *pixelp, size_t count)
 
HIDDEN ssize_t stk_write (fb *ifp, int x, int y, const unsigned char *pixelp, size_t count)
 
HIDDEN int stk_readrect (fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
HIDDEN int stk_writerect (fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
HIDDEN int stk_bwreadrect (fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
HIDDEN int stk_bwwriterect (fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
HIDDEN int stk_rmap (fb *ifp, ColorMap *cmp)
 
HIDDEN int stk_wmap (fb *ifp, const ColorMap *cmp)
 
HIDDEN int stk_view (fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
 
HIDDEN int stk_getview (fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
 
HIDDEN int stk_setcursor (fb *ifp, const unsigned char *bits, int xbits, int ybits, int xorig, int yorig)
 
HIDDEN int stk_cursor (fb *ifp, int mode, int x, int y)
 
HIDDEN int stk_getcursor (fb *ifp, int *mode, int *x, int *y)
 
HIDDEN int stk_poll (fb *ifp)
 
HIDDEN int stk_flush (fb *ifp)
 
HIDDEN int stk_free (fb *ifp)
 
HIDDEN int stk_help (fb *ifp)
 

Variables

fb stk_interface
 

Detailed Description

Allows multiple frame buffers to be ganged together.

Definition in file if_stack.c.

Macro Definition Documentation

#define MAXIF   32

Definition at line 42 of file if_stack.c.

Referenced by stk_open().

#define SIL (   ptr)    ((ptr)->u1.p) /* left hand side version */

Definition at line 47 of file if_stack.c.

Referenced by stk_open().

Function Documentation

HIDDEN int stk_open ( fb ifp,
const char *  file,
int  width,
int  height 
)

Definition at line 50 of file if_stack.c.

References bu_strncmp(), FB_CK_FB, fb_log(), FB_NULL, fb_open(), fb_internal::if_height, fb_internal::if_max_height, fb_internal::if_max_width, fb_internal::if_name, fb_internal::if_width, MAXIF, SI, and SIL.

Here is the call graph for this function:

HIDDEN struct fb_platform_specific* stk_get_fbps ( uint32_t  magic)

Definition at line 116 of file if_stack.c.

HIDDEN void stk_put_fbps ( struct fb_platform_specific fbps)

Definition at line 123 of file if_stack.c.

HIDDEN int stk_open_existing ( fb ifp,
int  width,
int  height,
struct fb_platform_specific fb_p 
)

Definition at line 129 of file if_stack.c.

HIDDEN int stk_close_existing ( fb ifp)

Definition at line 136 of file if_stack.c.

HIDDEN int stk_configure_window ( fb ifp,
int  width,
int  height 
)

Definition at line 142 of file if_stack.c.

HIDDEN int stk_refresh ( fb ifp,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 148 of file if_stack.c.

HIDDEN int stk_close ( fb ifp)

Definition at line 155 of file if_stack.c.

References FB_CK_FB, fb_close(), and SI.

Here is the call graph for this function:

HIDDEN int stk_clear ( fb ifp,
unsigned char *  pp 
)

Definition at line 171 of file if_stack.c.

References fb_clear(), and SI.

Here is the call graph for this function:

HIDDEN ssize_t stk_read ( fb ifp,
int  x,
int  y,
unsigned char *  pixelp,
size_t  count 
)

Definition at line 185 of file if_stack.c.

References fb_read(), and SI.

Here is the call graph for this function:

HIDDEN ssize_t stk_write ( fb ifp,
int  x,
int  y,
const unsigned char *  pixelp,
size_t  count 
)

Definition at line 198 of file if_stack.c.

References fb_write(), and SI.

Here is the call graph for this function:

HIDDEN int stk_readrect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

Definition at line 215 of file if_stack.c.

References fb_readrect(), SI, and OSL::Strings::width.

Here is the call graph for this function:

HIDDEN int stk_writerect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
const unsigned char *  pp 
)

Definition at line 231 of file if_stack.c.

References fb_writerect(), SI, and OSL::Strings::width.

Here is the call graph for this function:

HIDDEN int stk_bwreadrect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
unsigned char *  pp 
)

Definition at line 248 of file if_stack.c.

References fb_bwreadrect(), SI, and OSL::Strings::width.

Here is the call graph for this function:

HIDDEN int stk_bwwriterect ( fb ifp,
int  xmin,
int  ymin,
int  width,
int  height,
const unsigned char *  pp 
)

Definition at line 264 of file if_stack.c.

References fb_bwwriterect(), SI, and OSL::Strings::width.

Here is the call graph for this function:

HIDDEN int stk_rmap ( fb ifp,
ColorMap cmp 
)

Definition at line 278 of file if_stack.c.

References fb_rmap(), and SI.

Here is the call graph for this function:

HIDDEN int stk_wmap ( fb ifp,
const ColorMap cmp 
)

Definition at line 291 of file if_stack.c.

References fb_wmap(), and SI.

Here is the call graph for this function:

HIDDEN int stk_view ( fb ifp,
int  xcenter,
int  ycenter,
int  xzoom,
int  yzoom 
)

Definition at line 305 of file if_stack.c.

References fb_view(), and SI.

Here is the call graph for this function:

HIDDEN int stk_getview ( fb ifp,
int *  xcenter,
int *  ycenter,
int *  xzoom,
int *  yzoom 
)

Definition at line 319 of file if_stack.c.

References fb_getview(), and SI.

Here is the call graph for this function:

HIDDEN int stk_setcursor ( fb ifp,
const unsigned char *  bits,
int  xbits,
int  ybits,
int  xorig,
int  yorig 
)

Definition at line 332 of file if_stack.c.

References fb_setcursor(), and SI.

Here is the call graph for this function:

HIDDEN int stk_cursor ( fb ifp,
int  mode,
int  x,
int  y 
)

Definition at line 346 of file if_stack.c.

References fb_cursor(), and SI.

Here is the call graph for this function:

HIDDEN int stk_getcursor ( fb ifp,
int *  mode,
int *  x,
int *  y 
)

Definition at line 360 of file if_stack.c.

References fb_getcursor(), and SI.

Here is the call graph for this function:

HIDDEN int stk_poll ( fb ifp)

Definition at line 373 of file if_stack.c.

References fb_poll(), and SI.

Here is the call graph for this function:

HIDDEN int stk_flush ( fb ifp)

Definition at line 387 of file if_stack.c.

References fb_flush(), and SI.

Here is the call graph for this function:

HIDDEN int stk_free ( fb ifp)

Definition at line 401 of file if_stack.c.

References fb_free(), and SI.

Here is the call graph for this function:

HIDDEN int stk_help ( fb ifp)

Definition at line 415 of file if_stack.c.

References fb_help(), fb_log(), and SI.

Here is the call graph for this function:

Variable Documentation

fb stk_interface

Definition at line 435 of file if_stack.c.