ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

texformat.c File Reference
#include "colormac.h"
#include "context.h"
#include "texformat.h"
#include "texstore.h"
#include "texformat_tmp.h"

Go to the source code of this file.

Defines

#define DIM   1
#define DIM   2
#define DIM   3

Functions

static void fetch_null_texel (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLchan *texel)
static void fetch_null_texelf (const struct gl_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel)
static void store_null_texel (struct gl_texture_image *texImage, GLint i, GLint j, GLint k, const void *texel)
struct gl_texture_format_mesa_choose_tex_format (GLcontext *ctx, GLint internalFormat, GLenum format, GLenum type)
void _mesa_format_to_type_and_comps (const struct gl_texture_format *format, GLenum *datatype, GLuint *comps)

Variables

Default GLchan-based formats

Notes about the predefined gl_texture_formats:

1. There are 1D, 2D and 3D functions for fetching texels from texture images, returning both GLchan values and GLfloat values. (six functions in total) You don't have to provide both the GLchan and GLfloat functions; just one or the other is OK. Mesa will use an "adaptor" to convert between GLchan/GLfloat when needed. Since the adaptors have small performance penalty, we provide both GLchan and GLfloat functions for some common formats like RGB, RGBA.

struct gl_texture_format _mesa_texformat_rgba
struct gl_texture_format _mesa_texformat_rgb
struct gl_texture_format _mesa_texformat_alpha
struct gl_texture_format _mesa_texformat_luminance
struct gl_texture_format _mesa_texformat_luminance_alpha
struct gl_texture_format _mesa_texformat_intensity
struct gl_texture_format _mesa_texformat_rgba_float32
struct gl_texture_format _mesa_texformat_rgba_float16
struct gl_texture_format _mesa_texformat_rgb_float32
struct gl_texture_format _mesa_texformat_rgb_float16
struct gl_texture_format _mesa_texformat_alpha_float32
struct gl_texture_format _mesa_texformat_alpha_float16
struct gl_texture_format _mesa_texformat_luminance_float32
struct gl_texture_format _mesa_texformat_luminance_float16
struct gl_texture_format _mesa_texformat_luminance_alpha_float32
struct gl_texture_format _mesa_texformat_luminance_alpha_float16
struct gl_texture_format _mesa_texformat_intensity_float32
struct gl_texture_format _mesa_texformat_intensity_float16
Hardware formats
struct gl_texture_format _mesa_texformat_rgba8888
struct gl_texture_format _mesa_texformat_rgba8888_rev
struct gl_texture_format _mesa_texformat_argb8888
struct gl_texture_format _mesa_texformat_argb8888_rev
struct gl_texture_format _mesa_texformat_rgb888
struct gl_texture_format _mesa_texformat_bgr888
struct gl_texture_format _mesa_texformat_rgb565
struct gl_texture_format _mesa_texformat_rgb565_rev
struct gl_texture_format _mesa_texformat_rgba4444
struct gl_texture_format _mesa_texformat_argb4444
struct gl_texture_format _mesa_texformat_argb4444_rev
struct gl_texture_format _mesa_texformat_rgba5551
struct gl_texture_format _mesa_texformat_argb1555
struct gl_texture_format _mesa_texformat_argb1555_rev
struct gl_texture_format _mesa_texformat_al88
struct gl_texture_format _mesa_texformat_al88_rev
struct gl_texture_format _mesa_texformat_rgb332
struct gl_texture_format _mesa_texformat_a8
struct gl_texture_format _mesa_texformat_l8
struct gl_texture_format _mesa_texformat_i8
struct gl_texture_format _mesa_texformat_ci8
struct gl_texture_format _mesa_texformat_ycbcr
struct gl_texture_format _mesa_texformat_ycbcr_rev
struct gl_texture_format _mesa_texformat_z24_s8
struct gl_texture_format _mesa_texformat_s8_z24
struct gl_texture_format _mesa_texformat_z16
struct gl_texture_format _mesa_texformat_z32
Null format (useful for proxy textures)
struct gl_texture_format _mesa_null_texformat

Detailed Description

Texture formats.

Author:
Gareth Hughes

Definition in file texformat.c.


Generated on Fri May 25 2012 04:57:08 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.