Lines Matching refs:palette
65 * Get a color/entry from the palette.
68 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette,
71 memcpy(pixel, palette + info->size * index, info->size);
80 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette,
93 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
94 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix);
97 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
104 pix += get_palette_entry(info, palette, ind[i], pix);
146 * compressed palette format into a regular GLubyte/RGBA glTexImage2D() call.
152 GLsizei imageSize, const void *palette)
169 /* first image follows the palette */
170 indices = (const GLubyte *) palette + info->palette_size * info->size;
193 if (palette) {
195 paletted_to_color(info, palette, indices, num_texels, image);