Esempio n. 1
0
static void
st_CompressedTexImage(struct gl_context *ctx, GLuint dims,
                      struct gl_texture_image *texImage,
                      GLsizei imageSize, const GLvoid *data)
{
   prep_teximage(ctx, texImage, GL_NONE, GL_NONE);
   _mesa_store_compressed_teximage(ctx, dims, texImage, imageSize, data);
}
Esempio n. 2
0
static void
st_TexImage(struct gl_context * ctx, GLuint dims,
            struct gl_texture_image *texImage,
            GLenum format, GLenum type, const void *pixels,
            const struct gl_pixelstore_attrib *unpack)
{
   prep_teximage(ctx, texImage, format, type);
   _mesa_store_teximage(ctx, dims, texImage, format, type, pixels, unpack);
}
Esempio n. 3
0
static void
st_CompressedTexImage2D(struct gl_context *ctx,
                        struct gl_texture_image *texImage,
                        GLint internalFormat,
                        GLint width, GLint height, GLint border,
                        GLsizei imageSize, const GLvoid *data)
{
   prep_teximage(ctx, texImage, internalFormat, width, 1, 1, border,
                 GL_NONE, GL_NONE);
   _mesa_store_compressed_teximage2d(ctx, texImage, internalFormat, width,
                                     height, border, imageSize, data);
}
Esempio n. 4
0
static void
st_TexImage1D(struct gl_context * ctx,
              struct gl_texture_image *texImage,
              GLint internalFormat,
              GLint width, GLint border,
              GLenum format, GLenum type, const void *pixels,
              const struct gl_pixelstore_attrib *unpack)
{
   prep_teximage(ctx, texImage, internalFormat, width, 1, 1, border,
                 format, type);
   _mesa_store_teximage1d(ctx, texImage, internalFormat, width,
                          border, format, type, pixels, unpack);
}