Public Member Functions | Public Attributes
vgui_poly_tableau_vp_sc_snapshot Class Reference

A tableau which renders its children into sub-rectangles of its viewport. More...

#include <vgui_poly_tableau.h>

List of all members.

Public Member Functions

 vgui_poly_tableau_vp_sc_snapshot ()
 ~vgui_poly_tableau_vp_sc_snapshot ()

Public Attributes

GLint vp [4]
GLint sc [4]
bool sc_was_enabled

Detailed Description

A tableau which renders its children into sub-rectangles of its viewport.

Class poly_tableau is a tableau which renders its children into sub-rectangles of its given viewport. The subrectangles are given as relative coordinates on [0,1]x[0,1], with (0,0) being the lower left corner and (1,1) the upper right corner.

vgui_poly_tableau has a concept of which child is 'current', meaning roughly which child is getting the mouse events. It automatically switches current child, according to where the pointer is, in a sensible way.

vgui_poly_tableau can be used to emulate two adaptors side by side.

Implementation notes: Many methods take an argument "GLint const vp[4]", which is the viewport (in the format returned by OpenGL) as it was when the last event reached the tableau. For example, it is not possible to switch 'current' child without knowing the viewport, because a LEAVE/ENTER pair have to be sent to the old and new child and the viewport must be set correctly before dispatching these events. Viewport helper class. The constructor takes a snapshot of the current viewport and scissor areas. The destructor restores that state.

Definition at line 50 of file vgui_poly_tableau.h.


Constructor & Destructor Documentation

vgui_poly_tableau_vp_sc_snapshot::vgui_poly_tableau_vp_sc_snapshot ( ) [inline]

Definition at line 57 of file vgui_poly_tableau.h.

vgui_poly_tableau_vp_sc_snapshot::~vgui_poly_tableau_vp_sc_snapshot ( ) [inline]

Definition at line 64 of file vgui_poly_tableau.h.


Member Data Documentation

Definition at line 54 of file vgui_poly_tableau.h.

Definition at line 55 of file vgui_poly_tableau.h.

Definition at line 53 of file vgui_poly_tableau.h.


The documentation for this class was generated from the following file: