Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
OpenGl_Resource Class Reference

Interface for OpenGl resource with following meaning: More...

#include <OpenGl_Resource.hxx>

Inheritance diagram for OpenGl_Resource:
Inheritance graph
[legend]

Public Member Functions

 OpenGl_Resource ()
 Empty constructor.
virtual ~OpenGl_Resource ()
 Destructor. Inheritors should call Clean (NULL) within it.
virtual void Release (const OpenGl_Context *theGlCtx)=0
 Release GPU resources. Notice that implementation should be SAFE for several consecutive calls (thus should invalidate internal structures / ids to avoid multiple-free errors).

Detailed Description


Constructor & Destructor Documentation

virtual OpenGl_Resource::~OpenGl_Resource ( ) [virtual]

Member Function Documentation

virtual void OpenGl_Resource::Release ( const OpenGl_Context theGlCtx) [pure virtual]
Parameters:
theGlCtx- bound GL context, shouldn't be NULL.

Implemented in OpenGl_VertexBuffer, OpenGl_TextureBufferArb, and OpenGl_ResourceTexture.


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