Being rendered, the elements modifies current model-view matrix such that the axes of the specified reference system (in model space) become oriented in the following way:
More...
#include <OpenGl_Flipper.hxx>
|
template<typename theResource_t > |
static void | Destroy (OpenGl_Context *theContext, theResource_t *&theElement) |
| Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe. More...
|
|
virtual | ~OpenGl_Element () |
|
Being rendered, the elements modifies current model-view matrix such that the axes of the specified reference system (in model space) become oriented in the following way:
- X - heads to the right side of view.
- Y - heads to the up side of view.
- N(Z) - heads towards the screen. Originally, this element serves for need of flipping the 3D text of dimension presentations.
OpenGl_Flipper::OpenGl_Flipper |
( |
const gp_Ax2 & |
theReferenceSystem | ) |
|
Construct rendering element to flip model-view matrix along the reference system to ensure up-Y, right-X orientation.
- Parameters
-
theReferenceSystem | [in] the reference coordinate system. |
Release GPU resources. Pointer to the context is used because this method might be called when the context is already being destroyed and usage of a handle would be unsafe.
Implements OpenGl_Element.
Set options for the element.
- Parameters
-
theIsEnabled | [in] flag indicates whether the flipper matrix modification should be set up or restored back. |
The documentation for this class was generated from the following file: