Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwingltexture.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | public: | 54 | public: | ||
55 | GLTexture(); | 55 | GLTexture(); | ||
56 | GLTexture(const GLTexture& tex); | 56 | GLTexture(const GLTexture& tex); | ||
57 | explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D); | 57 | explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D); | ||
58 | explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D); | 58 | explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D); | ||
59 | explicit GLTexture(const QString& fileName); | 59 | explicit GLTexture(const QString& fileName); | ||
60 | GLTexture(GLenum internalFormat, int width, int height, int levels = 1); | 60 | GLTexture(GLenum internalFormat, int width, int height, int levels = 1); | ||
61 | explicit GLTexture(GLenum internalFormat, const QSize &size, int levels = 1); | 61 | explicit GLTexture(GLenum internalFormat, const QSize &size, int levels = 1); | ||
62 | | ||||
63 | /** | ||||
64 | * Create a GLTexture wrapper around an existing texture. | ||||
65 | * Management of the underlying texture remains the responsibility of the caller. | ||||
zzag: Wrong indentation in the comment and the brief summary has to be on the next line. | |||||
66 | * @since 5.18 | ||||
67 | */ | ||||
68 | explicit GLTexture(GLuint textureId, GLenum internalFormat, const QSize &size, int levels = 1); | ||||
62 | virtual ~GLTexture(); | 69 | virtual ~GLTexture(); | ||
63 | 70 | | |||
64 | GLTexture & operator = (const GLTexture& tex); | 71 | GLTexture & operator = (const GLTexture& tex); | ||
65 | 72 | | |||
66 | bool isNull() const; | 73 | bool isNull() const; | ||
67 | QSize size() const; | 74 | QSize size() const; | ||
68 | int width() const; | 75 | int width() const; | ||
69 | int height() const; | 76 | int height() const; | ||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |
Wrong indentation in the comment and the brief summary has to be on the next line.