|
| Texture2D (size2_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) |
| Texture2D (size2_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) |
| Texture2D (const Texture2D &other) |
| Texture2D (Texture2D &&other) |
Texture2D & | operator= (const Texture2D &other) |
Texture2D & | operator= (Texture2D &&other) |
Texture2D * | clone () const |
void | initialize (const void *data) |
void | upload (const void *data) |
size_t | getNumberOfValues () const |
const size2_t & | getDimensions () const |
size_t | getWidth () const |
size_t | getHeight () const |
void | setWrapping (const std::array< GLenum, 2 > &wrapping) |
std::array< GLenum, 2 > | getWrapping () const |
void | resize (size2_t dimensions) |
| 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) |
Texture & | operator= (const Texture &other) |
Texture & | operator= (Texture &&other) |
GLenum | getFormat () const |
GLenum | getInternalFormat () const |
GLenum | getDataType () const |
const DataFormatBase * | getDataFormat () 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 *) |
| TextureBase (GLenum target) |
| TextureBase (const TextureBase &other) |
| TextureBase (TextureBase &&other) |
TextureBase & | operator= (const TextureBase &other) |
TextureBase & | operator= (TextureBase &&other) |
GLuint | getID () const |
GLenum | getTarget () const |
void | bind () const |
void | unbind () const |
Observable< TextureObserver > & | operator= (const Observable< TextureObserver > &other) |
void | addObserver (TextureObserver *observer) |
void | removeObserver (TextureObserver *observer) |
virtual void | startBlockingNotifications () override final |
virtual void | stopBlockingNotifications () override final |
|
void | bindFromPBO () const |
void | bindToPBO () const |
void | unbindFromPBO () const |
void | unbindToPBO () const |
void | setupAsyncReadBackPBO () const |
void | setPBOAsInvalid () |
void | forEachObserver (C callback) |
virtual void | addObserver (Observer *observer)=0 |
virtual void | removeObserver (Observer *observer)=0 |
void | addObservationHelper (Observer *observer) |
void | removeObservationHelper (Observer *observer) |
static size_t | targetDims (GLenum target) |
static GLuint | channels (GLenum format) |
static size_t | dataTypeSize (GLenum dataType) |
GLenum | format_ |
GLenum | internalformat_ |
GLenum | dataType_ |
GLint | level_ |
std::mutex | syncMutex |
GLsync | syncObj = 0 |
GLuint | id_ |
GLenum | target_ |
static constexpr std::array< GLenum, 3 > | wrapNames |
static constexpr std::array< std::pair< GLenum, size_t >, 5 > | targetToDim |