core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

texcompress.c File Reference

Helper functions for texture compression. More...

#include "glheader.h"
#include "imports.h"
#include "colormac.h"
#include "context.h"
#include "image.h"
#include "texcompress.h"
#include "texformat.h"
#include "texstore.h"

Functions

GLuint _mesa_get_compressed_formats (GLcontext *ctx, GLint *formats)
 Get the list of supported internal compression formats. More...

GLuint _mesa_compressed_texture_size (GLcontext *ctx, GLsizei width, GLsizei height, GLsizei depth, GLenum format)
 Return number of bytes needed to store a texture of the given size using the specified compressed format. More...

GLint _mesa_compressed_row_stride (GLenum format, GLsizei width)
GLubyte * _mesa_compressed_image_address (GLint col, GLint row, GLint img, GLenum format, GLsizei width, const GLubyte *image)


Detailed Description

Helper functions for texture compression.


Function Documentation

GLubyte* _mesa_compressed_image_address GLint    col,
GLint    row,
GLint    img,
GLenum    format,
GLsizei    width,
const GLubyte *    image
 

GLint _mesa_compressed_row_stride GLenum    format,
GLsizei    width
 

GLuint _mesa_compressed_texture_size GLcontext   ctx,
GLsizei    width,
GLsizei    height,
GLsizei    depth,
GLenum    format
 

Return number of bytes needed to store a texture of the given size using the specified compressed format.

This is called via the ctx->Driver.CompressedTextureSize function, unless a device driver overrides it.

Parameters:
width  texture width in texels.
height  texture height in texels.
depth  texture depth in texels.
format  - one of the specific compressed texture formats
Returns:
size in bytes, or zero if bad format

GLuint _mesa_get_compressed_formats GLcontext   ctx,
GLint *    formats
 

Get the list of supported internal compression formats.

Parameters:
ctx  GL context.
formats  the resulting format list (may be NULL).
Returns:
number of formats.


Generated on Sun May 16 15:55:12 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001