Inviwo  0.9.10.1
Inviwo documentation
inviwo::Texture2D Class Reference
+ Inheritance diagram for inviwo::Texture2D:

Public Member Functions

 Texture2D (size2_t dimensions, GLFormats::GLFormat glFormat, GLenum filtering, GLint level=0)
 
 Texture2D (size2_t dimensions, GLint format, GLint internalformat, GLenum dataType, GLenum filtering, GLint level=0)
 
 Texture2D (const Texture2D &other)
 
 Texture2D (Texture2D &&other)
 
Texture2Doperator= (const Texture2D &other)
 
Texture2Doperator= (Texture2D &&other)
 
Texture2Dclone () const
 
void initialize (const void *data)
 
size_t getNumberOfValues () const
 
void upload (const void *data)
 
const size2_t & getDimensions () const
 
size_t getWidth () const
 
size_t getHeight () const
 
void resize (size2_t dimensions)
 
- Public Member Functions inherited from inviwo::Texture
 Texture (GLenum, GLFormats::GLFormat glFormat, GLenum filtering, GLint level=0)
 
 Texture (GLenum, GLint format, GLint internalformat, GLenum dataType, GLenum filtering, GLint level=0)
 
 Texture (const Texture &other)
 
 Texture (Texture &&other)
 
Textureoperator= (const Texture &other)
 
Textureoperator= (Texture &&other)
 
GLuint getID () const
 
GLenum getTarget () const
 
GLenum getFormat () const
 
GLenum getInternalFormat () const
 
GLenum getDataType () const
 
GLenum getFiltering () const
 
GLint getLevel () const
 
GLuint getNChannels () const
 
GLuint getSizeInBytes () const
 
void setTextureParameters (std::function< void(Texture *)> fun)
 
void bind () const
 
void unbind () const
 
void setSwizzleMask (SwizzleMask mask)
 
SwizzleMask getSwizzleMask () const
 
void download (void *data) const
 
void downloadToPBO () const
 
void loadFromPBO (const Texture *)
 
- Public Member Functions inherited from inviwo::Observable< TextureObserver >
 Observable (const Observable< TextureObserver > &other)
 
 Observable (Observable< TextureObserver > &&other)
 
Observable< TextureObserver > & operator= (const Observable< TextureObserver > &other)
 
Observable< TextureObserver > & operator= (Observable< TextureObserver > &&other)
 
void addObserver (TextureObserver *observer)
 
void removeObserver (TextureObserver *observer)
 
virtual void startBlockingNotifications () override final
 
virtual void stopBlockingNotifications () override final
 

Static Protected Member Functions

static void default2DTextureParameterFunction (Texture *)
 

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 ()
 
void setNChannels ()
 
void setSizeInBytes ()
 
- 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)
 
- Protected Attributes inherited from inviwo::Texture
GLenum target_
 
GLenum format_
 
GLenum internalformat_
 
GLenum dataType_
 
GLenum filtering_
 
GLint level_
 

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