Viewport InfoAvailability LightWave 7.5 Component LayoutHeader lwrender.h The viewport info global returns information about the state of Layout's OpenGL viewports. The data is read-only, but you can set the parameters using navigation and display commands. Global Call LWViewportInfo *vpinfo; vpinfo = global( LWVIEWPORTINFO_GLOBAL, GFUSE_TRANSIENT );The global function returns a pointer to an LWViewportInfo. typedef struct st_LWViewportInfo { int numViewports; int (*type) (int); unsigned int (*flags) (int); void (*pos) (int, LWDVector); void (*xfrm) (int, double mat[9]); void (*clip) (int, double *hither, double *yon); void (*rect) (int, int *left, int *top, int *width, int *height); } LWViewportInfo;
view = type( i )
flags = flags( i ) LWVIEWF_CENTER LWVIEWF_WEIGHTSHADE LWVIEWF_XRAY clip( i, &hither, &yon ) rect( i, &left, &top, &width, &height ) |