KWin
|
#include <eglimagetexture.h>
Public Member Functions | |
EGLImageTexture (EglDisplay *display, EGLImageKHR image, uint textureId, int internalFormat, const QSize &size, uint32_t target) | |
~EGLImageTexture () override | |
![]() | |
GLTexture (GLenum target) | |
bool | create () |
virtual | ~GLTexture () |
bool | isNull () const |
QSize | size () const |
void | setSize (const QSize &size) |
int | width () const |
int | height () const |
void | setContentTransform (OutputTransform transform) |
OutputTransform | contentTransform () const |
void | setSwizzle (GLenum red, GLenum green, GLenum blue, GLenum alpha) |
QMatrix4x4 | matrix (TextureCoordinateType type) const |
void | update (const QImage &image, const QPoint &offset=QPoint(0, 0), const QRect &src=QRect()) |
void | bind () |
void | unbind () |
void | render (const QSizeF &size) |
void | render (const QRegion ®ion, const QSizeF &size, bool hardwareClipping=false) |
void | render (const QRectF &source, const QRegion ®ion, const QSizeF &targetSize, bool hardwareClipping=false) |
GLuint | texture () const |
GLenum | target () const |
GLenum | filter () const |
GLenum | internalFormat () const |
QImage | toImage () |
void | clear () |
Make the texture fully transparent. | |
void | setDirty () |
bool | isDirty () const |
void | setFilter (GLenum filter) |
void | setWrapMode (GLenum mode) |
void | generateMipmaps () |
Static Public Member Functions | |
static std::shared_ptr< EGLImageTexture > | create (EglDisplay *display, EGLImageKHR image, int internalFormat, const QSize &size, bool externalOnly) |
![]() | |
static bool | framebufferObjectSupported () |
static bool | supportsSwizzle () |
static bool | supportsFormatRG () |
static std::unique_ptr< GLTexture > | createNonOwningWrapper (GLuint textureId, GLenum internalFormat, const QSize &size) |
static std::unique_ptr< GLTexture > | allocate (GLenum internalFormat, const QSize &size, int levels=1) |
static std::unique_ptr< GLTexture > | upload (const QImage &image) |
static std::unique_ptr< GLTexture > | upload (const QPixmap &pixmap) |
Public Attributes | |
EGLImageKHR | m_image |
EglDisplay *const | m_display |
Additional Inherited Members | |
![]() | |
GLTexture (GLenum target, GLuint textureId, GLenum internalFormat, const QSize &size, int levels, bool owning, OutputTransform transform) | |
virtual void | onDamage () |
![]() | |
const std::unique_ptr< GLTexturePrivate > | d |
Definition at line 22 of file eglimagetexture.h.
|
explicit |
Definition at line 20 of file eglimagetexture.cpp.
|
override |
Definition at line 27 of file eglimagetexture.cpp.
|
static |
Definition at line 32 of file eglimagetexture.cpp.
EglDisplay* const KWin::EGLImageTexture::m_display |
Definition at line 31 of file eglimagetexture.h.
EGLImageKHR KWin::EGLImageTexture::m_image |
Definition at line 30 of file eglimagetexture.h.