BRL-CAD
fbclear.c File Reference
#include "common.h"
#include <stdlib.h>
#include "fb.h"
#include "ged.h"
Include dependency graph for fbclear.c:

Go to the source code of this file.

Macros

#define FB_CONSTRAIN(_v, _a, _b)   (((_v) > (_a)) ? ((_v) < (_b) ? (_v) : (_b)) : (_a))
 

Functions

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

Detailed Description

Clear a framebuffer.

Definition in file fbclear.c.

Macro Definition Documentation

#define FB_CONSTRAIN (   _v,
  _a,
  _b 
)    (((_v) > (_a)) ? ((_v) < (_b) ? (_v) : (_b)) : (_a))

Definition at line 44 of file fbclear.c.

Referenced by ged_fbclear().

Function Documentation

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

Fclear clears a framebuffer.

Definition at line 48 of file fbclear.c.

References BLU, bu_log(), bu_vls_printf(), bu_vls_trunc(), fb_clear(), FB_CONSTRAIN, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_FBSERV, GED_CHECK_FBSERV_FBP, GED_ERROR, ged::ged_fbsp, GED_OK, ged::ged_result_str, GRN, RED, and usage().

Here is the call graph for this function: