FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Static Public Member Functions | List of all members
Fiber::CreateTexture< TextureStorageType, TextureFormat > Struct Template Reference

Template class to load OpenGL textures of a specified type from Memory Arrays. More...

#include <Texture.hpp>

Static Public Member Functions

static RefPtr< Wizt::GLTexture3DVolume (const RefPtr< MemBase > &DataCreator, const Wizt::Range &R, double Gamma, GLenum format, const MultiIndex< 3 > &Start=MIndex(0, 0, 0), const MultiIndex< 3 > &End=MIndex(0, 0, 0), const MultiIndex< 3 > &Step=MIndex(1, 1, 1), int TextureUnit=0)
 Load data from a 3D memory array to a 3D OpenGL texture.
 
static RefPtr< Wizt::GLTexture2DPlane (const RefPtr< MemBase > &DataCreator, const Wizt::Range &R, int TextureUnit=0, GLenum format=GL_LUMINANCE)
 Load data from a 2D memory array to a 2D OpenGL texture.
 
static RefPtr< Wizt::GLTexture2DPlane (const RefPtr< MemBase > &DataCreator, const Range &R, const SliceSelection &O, const index_t &SliceNumber, int TextureUnit=0, GLenum format=GL_LUMINANCE)
 Load data from a 3D memory array to a 2D OpenGL texture by slice extraction.
 

Detailed Description

template<typename TextureStorageType, int TextureFormat = GL_RGBA>
struct Fiber::CreateTexture< TextureStorageType, TextureFormat >

Template class to load OpenGL textures of a specified type from Memory Arrays.

Member Function Documentation

◆ Plane() [1/2]

template<typename TextureStorageType , int TextureFormat = GL_RGBA>
static RefPtr< Wizt::GLTexture2D > Fiber::CreateTexture< TextureStorageType, TextureFormat >::Plane ( const RefPtr< MemBase > &  DataCreator,
const Range R,
const SliceSelection O,
const index_t SliceNumber,
int  TextureUnit = 0,
GLenum  format = GL_LUMINANCE 
)
inlinestatic

Load data from a 3D memory array to a 2D OpenGL texture by slice extraction.

OpenGL texture format as specified by one of the glMemSize<> instantiations.

References Fiber::createTexture2D().

◆ Plane() [2/2]

template<typename TextureStorageType , int TextureFormat = GL_RGBA>
static RefPtr< Wizt::GLTexture2D > Fiber::CreateTexture< TextureStorageType, TextureFormat >::Plane ( const RefPtr< MemBase > &  DataCreator,
const Wizt::Range R,
int  TextureUnit = 0,
GLenum  format = GL_LUMINANCE 
)
inlinestatic

Load data from a 2D memory array to a 2D OpenGL texture.

OpenGL texture format as specified by one of the glMemSize<> instantiations.

◆ Volume()

template<typename TextureStorageType , int TextureFormat = GL_RGBA>
static RefPtr< Wizt::GLTexture3D > Fiber::CreateTexture< TextureStorageType, TextureFormat >::Volume ( const RefPtr< MemBase > &  DataCreator,
const Wizt::Range R,
double  Gamma,
GLenum  format,
const MultiIndex< 3 > &  Start = MIndex(0,0,0),
const MultiIndex< 3 > &  End = MIndex(0,0,0),
const MultiIndex< 3 > &  Step = MIndex(1,1,1),
int  TextureUnit = 0 
)
inlinestatic

Load data from a 3D memory array to a 3D OpenGL texture.

OpenGL texture format as specified by one of the glMemSize<> instantiations.

References Fiber::createTexture3D().