Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::Texture2DArray Class Reference
+ Inheritance diagram for inviwo::Texture2DArray:

Public Member Functions

 Texture2DArray (size3_t dimensions, GLFormat glFormat, GLenum filtering, const SwizzleMask &swizzleMask=swizzlemasks::rgba, const std::array< GLenum, 2 > &wrapping={GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE}, GLint level=0)
 
 Texture2DArray (size3_t dimensions, GLint format, GLint internalformat, GLenum dataType, GLenum filtering, const SwizzleMask &swizzleMask=swizzlemasks::rgba, const std::array< GLenum, 2 > &wrapping={GL_CLAMP_TO_EDGE, GL_CLAMP_TO_EDGE}, GLint level=0)
 
 Texture2DArray (const Texture2DArray &other)
 
 Texture2DArray (Texture2DArray &&other)
 
Texture2DArrayoperator= (const Texture2DArray &other)
 
Texture2DArrayoperator= (Texture2DArray &&other)
 
Texture2DArrayclone () const
 
void initialize (const void *data)
 
size_t getNumberOfValues () const
 
void upload (const void *data)
 
void uploadAndResize (const void *data, const size3_t &dim)
 
const size3_t & getDimensions () const
 
void setWrapping (const std::array< GLenum, 2 > &wrapping)
 
std::array< GLenum, 2 > getWrapping () const
 
- Public Member Functions inherited from inviwo::Texture
 Texture (GLenum target, GLFormat glFormat, GLenum filtering, const SwizzleMask &swizzleMask, std::span< const GLenum > wrapping, GLint level)
 
 Texture (GLenum target, GLint format, GLint internalformat, GLenum dataType, GLenum filtering, const SwizzleMask &swizzleMask, std::span< const GLenum > wrapping, GLint level)
 
 Texture (const Texture &other)
 
 Texture (Texture &&other)
 
Textureoperator= (const Texture &other)
 
Textureoperator= (Texture &&other)
 
GLenum getFormat () const
 
GLenum getInternalFormat () const
 
GLenum getDataType () const
 
const DataFormatBasegetDataFormat () const
 
GLenum getFiltering () const
 
GLint getLevel () const
 
GLuint getNChannels () const
 
GLuint getSizeInBytes () const
 
void setSwizzleMask (SwizzleMask mask)
 
SwizzleMask getSwizzleMask () const
 
void setInterpolation (InterpolationType interpolation)
 
InterpolationType getInterpolation () const
 
void setWrapping (std::span< const GLenum > wrapping)
 
void getWrapping (std::span< GLenum > wrapping) const
 
void download (void *data) const
 
void downloadToPBO () const
 
void loadFromPBO (const Texture *)
 
- Public Member Functions inherited from inviwo::TextureBase
 TextureBase (GLenum target)
 
 TextureBase (const TextureBase &other)
 
 TextureBase (TextureBase &&other)
 
TextureBaseoperator= (const TextureBase &other)
 
TextureBaseoperator= (TextureBase &&other)
 
GLuint getID () const
 
GLenum getTarget () const
 
void bind () const
 
void unbind () const
 
- Public Member Functions inherited from inviwo::Observable< TextureObserver >
 Observable (const Observable< TextureObserver > &other)
 
 Observable (Observable< TextureObserver > &&other) noexcept
 
Observable< TextureObserver > & operator= (const Observable< TextureObserver > &other)
 
Observable< TextureObserver > & operator= (Observable< TextureObserver > &&other) noexcept
 
void addObserver (TextureObserver *observer)
 
void removeObserver (TextureObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 
- Public Member Functions inherited from inviwo::ObservableInterface

Additional Inherited Members

- Protected Member Functions inherited from inviwo::Texture
void bindFromPBO () const
 
void bindToPBO () const
 
void unbindFromPBO () const
 
void unbindToPBO () const
 
void setupAsyncReadBackPBO () const
 
void setPBOAsInvalid ()
 
- Protected Member Functions inherited from inviwo::Observable< TextureObserver >
void forEachObserver (C callback)
 
- Protected Member Functions inherited from inviwo::ObservableInterface
void addObservationHelper (Observer *observer)
 
void removeObservationHelper (Observer *observer)
 
- Static Protected Member Functions inherited from inviwo::Texture
static size_t targetDims (GLenum target)
 
static GLuint channels (GLenum format)
 
static size_t dataTypeSize (GLenum dataType)
 
- Protected Attributes inherited from inviwo::Texture
GLenum format_
 
GLenum internalformat_
 
GLenum dataType_
 
GLint level_
 
std::mutex syncMutex
 
GLsync syncObj = 0
 
- Protected Attributes inherited from inviwo::TextureBase
GLuint id_
 
GLenum target_
 
- Static Protected Attributes inherited from inviwo::Texture
static constexpr std::array< GLenum, 3 > wrapNames
 
static constexpr std::array< std::pair< GLenum, size_t >, 5 > targetToDim
 

Member Function Documentation

◆ clone()

Texture2DArray * inviwo::Texture2DArray::clone ( ) const
virtual

Implements inviwo::Texture.

◆ getNumberOfValues()

size_t inviwo::Texture2DArray::getNumberOfValues ( ) const
virtual

Implements inviwo::Texture.

◆ upload()

void inviwo::Texture2DArray::upload ( const void * data)
virtual

Implements inviwo::Texture.


The documentation for this class was generated from the following file: