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

Go to the source code of this file.

Macros

#define SIMBUF_SIZE   (24*1024)
 

Functions

int fb_sim_readrect (fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
int fb_sim_writerect (fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 
int fb_sim_bwreadrect (fb *ifp, int xmin, int ymin, int width, int height, unsigned char *pp)
 
int fb_sim_bwwriterect (fb *ifp, int xmin, int ymin, int width, int height, const unsigned char *pp)
 

Detailed Description

Subroutines to simulate the fb_readrect() and fb_writerect() capabilities for displays that do not presently handle it.

Definition in file fb_rect.c.

Macro Definition Documentation

#define SIMBUF_SIZE   (24*1024)

Definition at line 100 of file fb_rect.c.

Referenced by fb_sim_bwreadrect(), and fb_sim_bwwriterect().

Function Documentation

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

Definition at line 45 of file fb_rect.c.

References fb_log(), and fb_read().

Here is the call graph for this function:

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

Definition at line 78 of file fb_rect.c.

References fb_getwidth(), fb_write(), and OSL::Strings::width.

Here is the call graph for this function:

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

Definition at line 102 of file fb_rect.c.

References fb_log(), fb_read(), GRN, SIMBUF_SIZE, and OSL::Strings::width.

Here is the call graph for this function:

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

Definition at line 132 of file fb_rect.c.

References bp, fb_getwidth(), fb_log(), fb_write(), SIMBUF_SIZE, and OSL::Strings::width.

Here is the call graph for this function: