Open CASCADE Technology  7.4.0
Public Member Functions | Static Public Member Functions | Protected Member Functions
OpenGl_Element Class Referenceabstract

Base interface for drawable elements. More...

#include <OpenGl_Element.hxx>

Inheritance diagram for OpenGl_Element:
Inheritance graph
[legend]

Public Member Functions

 OpenGl_Element ()
 
virtual void Render (const Handle< OpenGl_Workspace > &theWorkspace) const =0
 
virtual void Release (OpenGl_Context *theContext)=0
 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. More...
 
virtual Standard_Boolean IsFillDrawMode () const
 Return TRUE if primitive type generates shaded triangulation (to be used in filters). More...
 
virtual void SynchronizeAspects ()
 Update parameters of the drawable elements. More...
 

Static Public Member Functions

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...
 

Protected Member Functions

virtual ~OpenGl_Element ()
 

Detailed Description

Base interface for drawable elements.

Constructor & Destructor Documentation

◆ OpenGl_Element()

OpenGl_Element::OpenGl_Element ( )

◆ ~OpenGl_Element()

virtual OpenGl_Element::~OpenGl_Element ( )
protectedvirtual

Member Function Documentation

◆ Destroy()

template<typename theResource_t >
static void OpenGl_Element::Destroy ( OpenGl_Context theContext,
theResource_t *&  theElement 
)
inlinestatic

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.

◆ IsFillDrawMode()

virtual Standard_Boolean OpenGl_Element::IsFillDrawMode ( ) const
inlinevirtual

Return TRUE if primitive type generates shaded triangulation (to be used in filters).

Reimplemented in OpenGl_PrimitiveArray.

◆ Release()

virtual void OpenGl_Element::Release ( OpenGl_Context theContext)
pure virtual

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.

Implemented in OpenGl_Aspects, OpenGl_Text, OpenGl_PrimitiveArray, OpenGl_GraduatedTrihedron, OpenGl_Flipper, OpenGl_FrameStatsPrs, and OpenGl_StencilTest.

◆ Render()

virtual void OpenGl_Element::Render ( const Handle< OpenGl_Workspace > &  theWorkspace) const
pure virtual

◆ SynchronizeAspects()

virtual void OpenGl_Element::SynchronizeAspects ( )
inlinevirtual

Update parameters of the drawable elements.

Reimplemented in OpenGl_Aspects.


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