Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
Public Member Functions | Static Public Member Functions | Friends | List of all members
Core::RenderResources Class Reference
Inheritance diagram for Core::RenderResources:
Core::EventHandler Core::RecursiveLockable

Public Member Functions

bool create_render_context (RenderContextHandle &context)
 Generate a render context for one of the viewers.
 
void install_resources_context (RenderResourcesContextHandle resources_context)
 
bool valid_render_resources ()
 Check whether valid render resources have been installed.
 
RenderContextHandle get_current_context ()
 
unsigned long get_vram_size ()
 Return the total video memory size on the GPU.
 
- Public Member Functions inherited from Core::RecursiveLockable
mutex_type & get_mutex () const
 

Static Public Member Functions

static mutex_type & GetMutex ()
 

Friends

class Texture
 
class BufferObject
 
class FramebufferObject
 
class Renderbuffer
 
class GLSLShader
 
class GLSLProgram
 

Additional Inherited Members

- Public Types inherited from Core::RecursiveLockable
typedef boost::recursive_mutex mutex_type
 
typedef boost::unique_lock< mutex_type > lock_type
 

Member Function Documentation

RenderContextHandle Core::RenderResources::get_current_context ( )

Get the current render context of the calling thread NOTE: The returned handle should only be used in the scope where this function is being called, because it may become invalid later.

RenderResources::mutex_type & Core::RenderResources::GetMutex ( )
static

Get the shared mutex for the opengl resources NOTE: Do not lock the RenderResources while StateEngine is locked as this will cause deadlock

void Core::RenderResources::install_resources_context ( RenderResourcesContextHandle  resources_context)

Install a context from the UI system in the resource, so this class can generate virtual OpenGL contexts.


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