CPU device context managment class More...
#include <Inventor/devices/SoCpuContext.h>
Public Member Functions | |
SoCpuContext (SoCpuDevice *device=NULL) | |
virtual void | bind () |
virtual void | unbind () |
virtual bool | isCompatible (SoDeviceContext *) const |
virtual bool | isCurrent () const |
Static Public Member Functions | |
static SoCpuContext * | getCurrent () |
This class provides functions to manage CPU device contexts.
Notes:
SoCpuContext::SoCpuContext | ( | SoCpuDevice * | device = NULL |
) |
Default constructor.
device | The SoCpuDevice on which to create the context. |
virtual void SoCpuContext::bind | ( | ) | [virtual] |
Bind this context to the current thread.
Implements SoDeviceContext.
static SoCpuContext* SoCpuContext::getCurrent | ( | ) | [static] |
Returns the currently bound context (if any) for the current thread.
virtual bool SoCpuContext::isCompatible | ( | SoDeviceContext * | ) | const [virtual] |
Query if the specified context and this one are compatible.
Compatible means that using a buffer from one of these contexts inside the other will not require copying the data.
virtual bool SoCpuContext::isCurrent | ( | ) | const [inline, virtual] |
Query if the context is valid and currently active.
Implements SoDeviceContext.
virtual void SoCpuContext::unbind | ( | ) | [virtual] |
Unbind this context from the current thread.
Implements SoDeviceContext.