![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GlTexelFetch.h>
Read single intensity values from an OpenGL texture. More...
Inheritance diagram for GlTexelFetch:Read single intensity values from an OpenGL texture.
Public Member Functions | |
| GlTexelFetch () | |
| Constructor, not setting up shader yet. | |
| ~GlTexelFetch () override | |
| Destructor. | |
| const std::vector< float > & | read (const GlImage *tex, int x, int y, int z=0) |
| Retrieve scalar intensity value at specified location. | |
Static Public Member Functions | |
| static GlTexelFetch & | instance () |
| Singleton access to instance. | |
Static Public Member Functions inherited from InstanceManager< GlTexelFetch > | |
| static GlTexelFetch & | cachedInstance () |
| Returns the cached instance of type T for the currently active OpenGL context. | |
Protected Attributes | |
| std::unique_ptr< GL::Program > | m_prog |
| Shader program for intensity retrieval. | |
| std::unique_ptr< GL::Framebuffer > | m_fbo |
| Required FBO instance. | |
| std::unique_ptr< GL::Texture > | m_imgOut |
| Output image for retrieved intensity. | |
| std::vector< float > | m_valOut |
| Output intensities for all channels. | |