39# if defined(ICV_DLL_EXPORTS) && defined(ICV_DLL_IMPORTS)
40# error "Only ICV_DLL_EXPORTS or ICV_DLL_IMPORTS can be defined, not both."
41# elif defined(ICV_DLL_EXPORTS)
42# define ICV_EXPORT COMPILER_DLLEXPORT
43# elif defined(ICV_DLL_IMPORTS)
44# define ICV_EXPORT COMPILER_DLLIMPORT
62#define ICV_NULL_IMAGE 0X0001
63#define ICV_SANITIZED 0X0002
64#define ICV_OPERATIONS_MODE 0x0004
65#define ICV_UNDEFINED_1 0x0008
100#define ICV_IMAGE_NULL ((struct icv_image *)0)
105#define ICV_CK_IMAGE(_i) ICV_CKMAG(_i, ICV_IMAGE_MAGIC, "icv_image")
110#define ICV_IMAGE_INIT(_i) { \
111 (_i)->magic = ICV_IMAGE_MAGIC; \
112 (_i)->width = (_i)->height = (_i)->channels = (_i)->alpha_channel = 0; \
113 (_i)->gamma_corr = 0.0; \
116 (_i)->render_info = NULL; \
122#define ICV_IMAGE_IS_INITIALIZED(_i) (((struct icv_image *)(_i) != ICV_IMAGE_NULL) && LIKELY((_i)->magic == ICV_IMAGE_MAGIC))
128#define ICV_IMAGE_VAL_INT(_i) if (!ICV_IMAGE_IS_INITIALIZED(_i)) return -1
133#define ICV_IMAGE_VAL_PTR(_i) if (!ICV_IMAGE_IS_INITIALIZED(_i)) return NULL
140#define ICV_CONV_8BIT(data) ((double)(data))/255.0
Header file for the BRL-CAD common definitions.
struct icv_render_info * render_info
optional render metadata; NULL if not set
ICV_COLOR_SPACE color_space
double aspect
pixel aspect ratio (width/height)
double viewrotscale[16]
Viewrotscale 4x4 matrix (row-major); [15] = 0.5*viewsize.
char * db_filename
path to the .g geometry database
char * objects
space-separated list of top-level objects
double eye_model[3]
eye position in model space (mm)
double perspective
perspective half-angle in degrees; 0 = orthographic
double viewsize
view width in model units (mm)