Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
OpenGl_PrimitiveArray Class Reference

#include <OpenGl_PrimitiveArray.hxx>

Inheritance diagram for OpenGl_PrimitiveArray:
Inheritance graph
[legend]

Public Types

enum  { DRAW_MODE_NONE = -1 }
 

Public Member Functions

 OpenGl_PrimitiveArray (CALL_DEF_PARRAY *thePArray)
 Default constructor. More...
 
virtual void Render (const Handle< OpenGl_Workspace > &theWorkspace) const
 Render primitives to the window. More...
 
virtual void Release (const Handle< OpenGl_Context > &theContext)
 Release GPU resources. More...
 
CALL_DEF_PARRAYPArray () const
 
- Public Member Functions inherited from OpenGl_Element
 OpenGl_Element ()
 
Standard_Boolean RenderFiltered (const Handle< OpenGl_Workspace > &theWorkspace, const Handle< OpenGl_RenderFilter > &theFilter) const
 Render element if it passes the filtering procedure. This method should be used for elements which can be used in scope of rendering algorithms. E.g. elements of groups during recursive rendering. If render filter is null, pure rendering is performed. More...
 

Protected Types

enum  VBODataType {
  VBOEdges, VBOVertices, VBOVcolours, VBOVnormals,
  VBOVtexels, VBOMaxType
}
 

Protected Member Functions

virtual ~OpenGl_PrimitiveArray ()
 Destructor. More...
 
- Protected Member Functions inherited from OpenGl_Element
virtual ~OpenGl_Element ()
 

Protected Attributes

CALL_DEF_PARRAYmyPArray
 
Handle< OpenGl_VertexBuffermyVbos [VBOMaxType]
 
GLint myDrawMode
 
Standard_Boolean myIsVboInit
 

Additional Inherited Members

- Static Public Member Functions inherited from OpenGl_Element
template<typename theResource_t >
static void Destroy (const Handle< OpenGl_Context > &theContext, theResource_t *&theElement)
 

Member Enumeration Documentation

anonymous enum
Enumerator
DRAW_MODE_NONE 
Enumerator
VBOEdges 
VBOVertices 
VBOVcolours 
VBOVnormals 
VBOVtexels 
VBOMaxType 

Constructor & Destructor Documentation

OpenGl_PrimitiveArray::OpenGl_PrimitiveArray ( CALL_DEF_PARRAY thePArray)

Default constructor.

virtual OpenGl_PrimitiveArray::~OpenGl_PrimitiveArray ( )
protectedvirtual

Destructor.

Member Function Documentation

CALL_DEF_PARRAY* OpenGl_PrimitiveArray::PArray ( ) const
inline
virtual void OpenGl_PrimitiveArray::Release ( const Handle< OpenGl_Context > &  theContext)
virtual

Release GPU resources.

Implements OpenGl_Element.

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

Render primitives to the window.

Implements OpenGl_Element.

Field Documentation

GLint OpenGl_PrimitiveArray::myDrawMode
protected
Standard_Boolean OpenGl_PrimitiveArray::myIsVboInit
mutableprotected
CALL_DEF_PARRAY* OpenGl_PrimitiveArray::myPArray
mutableprotected
Handle< OpenGl_VertexBuffer > OpenGl_PrimitiveArray::myVbos[VBOMaxType]
mutableprotected

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