ImFusion SDK 4.3
GlTexelFetch Class Reference

#include <ImFusion/GL/GlTexelFetch.h>

Read single intensity values from an OpenGL texture. More...

+ Inheritance diagram for GlTexelFetch:

Detailed Description

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 GlTexelFetchinstance ()
 Singleton access to instance.
 
- Static Public Member Functions inherited from InstanceManager< GlTexelFetch >
static GlTexelFetchcachedInstance ()
 Returns the cached instance of type T for the currently active OpenGL context.
 

Protected Attributes

std::unique_ptr< GL::Programm_prog
 Shader program for intensity retrieval.
 
std::unique_ptr< GL::Framebufferm_fbo
 Required FBO instance.
 
std::unique_ptr< GL::Texturem_imgOut
 Output image for retrieved intensity.
 
std::vector< float > m_valOut
 Output intensities for all channels.
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close