|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
13 #ifndef CXGPUIMAGEBUFFER_H_
14 #define CXGPUIMAGEBUFFER_H_
16 #include "cxResourceExport.h"
19 #include <boost/shared_ptr.hpp>
20 #include <boost/weak_ptr.hpp>
47 virtual void allocate(
int textureUnitIndex) = 0;
56 virtual void bind(
int textureUnitIndex) = 0;
57 virtual int getMemorySize() = 0;
64 virtual unsigned int getTextureUid()
const = 0;
87 virtual void allocate() = 0;
95 virtual void bind(
int textureUnitIndex) = 0;
98 virtual int getLutSize()
const = 0;
116 static void shutdown();
120 int getMemoryUsage(
int *textures);
boost::shared_ptr< class GPUImageLutBuffer > GPUImageLutBufferPtr
GPUImageDataBufferPtr createGPUImageDataBuffer(vtkImageDataPtr volume)
Namespace for all CustusX production code.
virtual ~GPUImageDataBuffer()
virtual ~GPUImageLutBuffer()
GPUImageLutBufferPtr createGPUImageLutBuffer(vtkUnsignedCharArrayPtr lut)
boost::shared_ptr< class GPUImageDataBuffer > GPUImageDataBufferPtr
Repository for GPU buffers.
boost::weak_ptr< class GPUImageLutBuffer > GPUImageLutBufferWeakPtr
vtkSmartPointer< class vtkUnsignedCharArray > vtkUnsignedCharArrayPtr
boost::weak_ptr< class GPUImageDataBuffer > GPUImageDataBufferWeakPtr
Helper class for sharing GPU memory over several Views (GL contexts).
GPUImageBufferRepository * getGPUImageBufferRepository()
Helper class for sharing GPU memory over several Views (GL contexts).