BRL-CAD
fb2pix.c File Reference
#include "common.h"
#include <stdlib.h>
#include <sys/stat.h>
#include "bu/getopt.h"
#include "fb.h"
#include "fbserv_obj.h"
#include "pkg.h"
#include "ged.h"
Include dependency graph for fb2pix.c:

Go to the source code of this file.

Functions

int ged_fb2pix (struct ged *gedp, int argc, const char *argv[])
 

Variables

char * file_name
 
FILE * outfp
 
int screen_height
 
int screen_width
 

Detailed Description

fb2pix writes a framebuffer image to a .pix file.

Definition in file fb2pix.c.

Function Documentation

int ged_fb2pix ( struct ged gedp,
int  argc,
const char *  argv[] 
)

Fb2pix writes a framebuffer image to a .pix file.

Definition at line 103 of file fb2pix.c.

References BRLCAD_OK, bu_vls_printf(), bu_vls_trunc(), fb_write_fp(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_FBSERV, GED_CHECK_FBSERV_FBP, GED_ERROR, ged::ged_fbsp, GED_HELP, GED_OK, ged::ged_result_str, get_args(), outfp, screen_height, screen_width, and usage().

Here is the call graph for this function:

Variable Documentation

char* file_name

Definition at line 40 of file fb2pix.c.

Referenced by ged_bo(), ged_lc(), and ged_pix2fb().

FILE* outfp

Definition at line 41 of file fb2pix.c.

Referenced by ged_fb2pix().

int screen_height

Definition at line 45 of file fb2pix.c.

Referenced by ged_fb2pix().

int screen_width

Definition at line 46 of file fb2pix.c.

Referenced by ged_fb2pix().