Lines Matching refs:Format
230 void Texture::setImage(GLenum format, GLenum type, GLint unpackAlignment, const void *pixels, egl::Image *image)
236 image->loadImageData(0, 0, 0, image->getWidth(), image->getHeight(), 1, format, type, unpackInfo, pixels);
248 void Texture::subImage(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels, egl::Image *image)
265 if(format != image->getFormat())
274 image->loadImageData(xoffset, yoffset, 0, width, height, 1, format, type, unpackInfo, pixels);
278 void Texture::subImageCompressed(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels, egl::Image *image)
290 if(format != image->getFormat())
445 sw::Format Texture2D::getInternalFormat(GLenum target, GLint level) const
464 void Texture2D::setImage(GLint level, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels)
471 image[level] = new egl::Image(this, width, height, format, type);
478 Texture::setImage(format, type, unpackAlignment, pixels, image[level]);
483 GLenum format;
488 format = GL_BGRA_EXT;
491 format = GL_RGBA;
495 format = GL_RGB;
529 void Texture2D::setCompressedImage(GLint level, GLenum format, GLsizei width, GLsizei height, GLsizei imageSize, const void *pixels)
536 image[level] = new egl::Image(this, width, height, format, GL_UNSIGNED_BYTE);
546 void Texture2D::subImage(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels)
548 Texture::subImage(xoffset, yoffset, width, height, format, type, unpackAlignment, pixels, image[level]);
551 void Texture2D::subImageCompressed(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels)
553 Texture::subImageCompressed(xoffset, yoffset, width, height, format, imageSize, pixels, image[level]);
556 void Texture2D::copyImage(GLint level, GLenum format, GLint x, GLint y, GLsizei width, GLsizei height, Framebuffer *source)
571 image[level] = new egl::Image(this, width, height, format, GL_UNSIGNED_BYTE);
583 copy(renderTarget, sourceRect, format, 0, 0, image[level]);
821 egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Format format, int multiSampleDepth, bool discard)
831 switch(format)
851 UNREACHABLE(format);
854 egl::Image *surface = new egl::Image(width, height, format, multiSampleDepth, lockable);