Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwingltexture.cpp
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | 105 | } static const table[] = { | |||
---|---|---|---|---|---|
120 | { GL_RGBA4, GL_BGRA, GL_UNSIGNED_SHORT_4_4_4_4_REV }, // QImage::Format_ARGB4444_Premultiplied | 120 | { GL_RGBA4, GL_BGRA, GL_UNSIGNED_SHORT_4_4_4_4_REV }, // QImage::Format_ARGB4444_Premultiplied | ||
121 | { GL_RGB8, GL_RGBA, GL_UNSIGNED_BYTE }, // QImage::Format_RGBX8888 | 121 | { GL_RGB8, GL_RGBA, GL_UNSIGNED_BYTE }, // QImage::Format_RGBX8888 | ||
122 | { 0, 0, 0 }, // QImage::Format_RGBA8888 | 122 | { 0, 0, 0 }, // QImage::Format_RGBA8888 | ||
123 | { GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE }, // QImage::Format_RGBA8888_Premultiplied | 123 | { GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE }, // QImage::Format_RGBA8888_Premultiplied | ||
124 | { GL_RGB10, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_BGR30 | 124 | { GL_RGB10, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_BGR30 | ||
125 | { GL_RGB10_A2, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_A2BGR30_Premultiplied | 125 | { GL_RGB10_A2, GL_RGBA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_A2BGR30_Premultiplied | ||
126 | { GL_RGB10, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_RGB30 | 126 | { GL_RGB10, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_RGB30 | ||
127 | { GL_RGB10_A2, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_A2RGB30_Premultiplied | 127 | { GL_RGB10_A2, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV }, // QImage::Format_A2RGB30_Premultiplied | ||
128 | { GL_R8, GL_RED, GL_UNSIGNED_BYTE }, // QImage::Format_Alpha8 | ||||
fredrik: Please make these values identical to Grayscale8. | |||||
129 | { GL_R8, GL_RED, GL_UNSIGNED_BYTE }, // QImage::Format_Grayscale8 | ||||
128 | }; | 130 | }; | ||
129 | 131 | | |||
130 | QImage im; | 132 | QImage im; | ||
131 | GLenum internalFormat; | 133 | GLenum internalFormat; | ||
132 | GLenum format; | 134 | GLenum format; | ||
133 | GLenum type; | 135 | GLenum type; | ||
134 | 136 | | |||
135 | const QImage::Format index = image.format(); | 137 | const QImage::Format index = image.format(); | ||
▲ Show 20 Lines • Show All 521 Lines • Show Last 20 Lines |
Please make these values identical to Grayscale8.