Static Public Member Functions

Fiber::CreateTexture< TextureStorageType, TextureFormat > Struct Template Reference

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

#include <Texture.hpp>

List of all members.

Static Public Member Functions


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

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

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.

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 
) [inline, static]

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

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

template<typename TextureStorageType , int TextureFormat = GL_RGBA>
static RefPtr<Wizt::GLTexture3D> Fiber::CreateTexture< TextureStorageType, TextureFormat >::Volume ( const RefPtr< MemBase > &  DataCreator,
const Wizt::Range R,
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 
) [inline, static]

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

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