Surface Editor
Availability LightWave 6.0 | Component Layout, Modeler | Header lwsurfed.h
The surface editor global allows you to control the surface editing interface.
Global Call
LWSurfEdFuncs *surfedf; surfedf = global( LWSURFEDFUNCS_GLOBAL, GFUSE_TRANSIENT );
The global function returns a pointer to an LWSurfEdFuncs.
typedef struct st_LWSurfEdFuncs {
void (*open) (int);
void (*close) (void);
int (*isOpen) (void);
void (*setSurface) (LWSurfaceID);
void (*setPosition)(int x, int y);
void (*getPosition)(int *x, int *y, int *w, int *h);
} LWSurfEdFuncs;
open( int )- Open the surface editor window.
close()- Close the window.
state = isOpen()- True if the editor window is open.
setSurface( surfid )- Set the current surface in the editor.
setPosition( x, y )- Set the window's position relative to the upper left corner of the screen.
getPosition( x, y, w, h )- Get the window's position and size in pixels.