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

Go to the source code of this file.

Functions

HIDDEN int null_open (fb *ifp, const char *file, int width, int height)
 
HIDDEN struct fb_platform_specificnull_get_fbps (uint32_t magic)
 
HIDDEN void null_put_fbps (struct fb_platform_specific *fbps)
 
HIDDEN int null_open_existing (fb *ifp, int width, int height, struct fb_platform_specific *fb_p)
 
HIDDEN int null_close_existing (fb *ifp)
 
HIDDEN int null_configure_window (fb *ifp, int width, int height)
 
HIDDEN int null_refresh (fb *ifp, int x, int y, int w, int h)
 
HIDDEN int null_close (fb *ifp)
 
HIDDEN int null_clear (fb *ifp, unsigned char *pp)
 
HIDDEN ssize_t null_read (fb *ifp, int x, int y, unsigned char *pixelp, size_t count)
 
HIDDEN ssize_t null_write (fb *ifp, int x, int y, const unsigned char *pixelp, size_t count)
 
HIDDEN int null_rmap (fb *ifp, ColorMap *cmp)
 
HIDDEN int null_wmap (fb *ifp, const ColorMap *cmp)
 
HIDDEN int null_view (fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
 
HIDDEN int null_getview (fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
 
HIDDEN int null_setcursor (fb *ifp, const unsigned char *bits, int xbits, int ybits, int xorig, int yorig)
 
HIDDEN int null_cursor (fb *ifp, int mode, int x, int y)
 
HIDDEN int null_getcursor (fb *ifp, int *mode, int *x, int *y)
 
HIDDEN int null_readrect (fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
HIDDEN int null_writerect (fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
HIDDEN int null_poll (fb *ifp)
 
HIDDEN int null_flush (fb *ifp)
 
HIDDEN int null_free (fb *ifp)
 
HIDDEN int null_help (fb *ifp)
 

Variables

fb null_interface
 

Detailed Description

A Null Frame Buffer. Useful for benchmarking or debugging.

Definition in file if_null.c.

Function Documentation

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

Definition at line 41 of file if_null.c.

References FB_CK_FB, fb_internal::if_height, fb_internal::if_width, and OSL::Strings::width.

HIDDEN struct fb_platform_specific* null_get_fbps ( uint32_t  magic)

Definition at line 54 of file if_null.c.

HIDDEN void null_put_fbps ( struct fb_platform_specific fbps)

Definition at line 61 of file if_null.c.

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

Definition at line 67 of file if_null.c.

HIDDEN int null_close_existing ( fb ifp)

Definition at line 73 of file if_null.c.

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

Definition at line 79 of file if_null.c.

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

Definition at line 85 of file if_null.c.

HIDDEN int null_close ( fb ifp)

Definition at line 91 of file if_null.c.

References FB_CK_FB.

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

Definition at line 100 of file if_null.c.

References FB_CK_FB.

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

Definition at line 109 of file if_null.c.

References FB_CK_FB.

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

Definition at line 118 of file if_null.c.

References FB_CK_FB.

HIDDEN int null_rmap ( fb ifp,
ColorMap cmp 
)

Definition at line 127 of file if_null.c.

References FB_CK_FB.

HIDDEN int null_wmap ( fb ifp,
const ColorMap cmp 
)

Definition at line 136 of file if_null.c.

References FB_CK_FB.

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

Definition at line 145 of file if_null.c.

References FB_CK_FB.

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

Definition at line 155 of file if_null.c.

References FB_CK_FB.

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

Definition at line 165 of file if_null.c.

References FB_CK_FB.

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

Definition at line 174 of file if_null.c.

References FB_CK_FB.

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

Definition at line 184 of file if_null.c.

References FB_CK_FB.

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

Definition at line 194 of file if_null.c.

References FB_CK_FB.

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

Definition at line 203 of file if_null.c.

References FB_CK_FB.

HIDDEN int null_poll ( fb ifp)

Definition at line 212 of file if_null.c.

References FB_CK_FB.

HIDDEN int null_flush ( fb ifp)

Definition at line 221 of file if_null.c.

References FB_CK_FB.

HIDDEN int null_free ( fb ifp)

Definition at line 230 of file if_null.c.

References FB_CK_FB.

HIDDEN int null_help ( fb ifp)

Definition at line 239 of file if_null.c.

References FB_CK_FB, fb_log(), fb_internal::if_height, fb_internal::if_max_height, fb_internal::if_max_width, fb_internal::if_name, fb_internal::if_type, fb_internal::if_width, and null_interface.

Here is the call graph for this function:

Variable Documentation

fb null_interface

Definition at line 257 of file if_null.c.

Referenced by null_help().