55#ifndef _SO_GL_VIEWPORT_REGION_ELEMENT
56#define _SO_GL_VIEWPORT_REGION_ELEMENT
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Class for representing a viewport.
This is the abstract base class for all state elements.
Element that stores the current viewport region in GL.
virtual void pop(SoState *state, const SoElement *prevTopElement)
static void initClass()
Initializes the SoGLViewportRegionElement class.
virtual void init(SoState *state)
Initializes element.
virtual void push(SoState *state)
Override push() and pop() methods to keep GL up to date.
virtual void setElt(const SbViewportRegion &vpReg)
Sets the region in an instance. Has GL side effects.
virtual ~SoGLViewportRegionElement()
An SoState collects and holds state while traversing a scene graph.
Element that stores the current viewport region, which indicates which part of the window is being re...