Window system intarface
Window system intarface. This class implements the main window system interface. The system framework must use a grRender object for scene rendering and user interaction.
void SetInitScene( grNode * n )
void SetRunScene( grNode * n )
void Render()
void Init()
void PortSize( int & w, int & h )
h - height of the windowvoid ReadPixel( GLenum format, GLenum type, GLvoid * mem )
type - see opengl:glReadPixels for the list of types
mem - pointer of image memory (allocated by user!)void PickNodes( int x, int y, double wx, double wy, grPickResult & pr )
y - vertical size position
wx - x selection range (in pixel)
wy - y selection range (in pixel)
pr - set of nodes selected
int PickInNode( int x, int y, double wx, double wy, grNode * node )
y - vertical size position
wx - x selection range (in pixel)
wy - y selection range (in pixel)
pr - pointer of a selected node
bool Pick( int x, int y, double wx, double wy, grNode * & node, int & prim )
y - vertical size position
wx - x selection range (in pixel)
wy - y selection range (in pixel)
node - the node selected
prim - index of the picked node primitive
void grViewAll( const grVertex3f & vert)
void grViewAll( const Boxd & boundbox )
void grViewAll( const Boxf & boundbox )
BOOL OnCreate( void * hwnd )
void OnDestroy( void * hwnd )
void OnSize( void * hwnd, int w, int h )
w - new window width
h - new window height
Alphabetic index HTML hierarchy of classes or Java