Home | History | Annotate | Download | only in gl

Lines Matching refs:format

139 static bool canBeTexture(const SkBitmap& bm, GLenum* format, GLenum* type) {
142 *format = GL_RGBA;
146 *format = GL_RGB;
150 *format = GL_RGBA;
155 *format = GL_PALETTE8_RGBA8_OES;
159 *format = GL_RGBA;
164 *format = GL_ALPHA;
201 /* Fill out buffer with the compressed format GL expects from a colortable
257 GLenum format, type;
258 if (!canBeTexture(*bitmap, &format, &type)) {
290 glCompressedTexImage2D(GL_TEXTURE_2D, 0, format, ow, oh, 0,
296 glTexImage2D(GL_TEXTURE_2D, 0, format, nw, nh, 0,
297 format, type, NULL);
299 format, type, bitmap->getPixels());
302 glTexImage2D(GL_TEXTURE_2D, 0, format, ow, oh, 0,
303 format, type, bitmap->getPixels());