Lines Matching defs:palette
64 * Get a color/entry from the palette.
67 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette,
70 memcpy(pixel, palette + info->size * index, info->size);
79 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette,
92 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
93 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix);
96 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
103 pix += get_palette_entry(info, palette, ind[i], pix);
145 * compressed palette format into a regular GLubyte/RGBA glTexImage2D() call.
151 GLsizei imageSize, const void *palette)
168 /* first image follows the palette */
169 indices = (const GLubyte *) palette + info->palette_size * info->size;
192 if (palette) {
194 paletted_to_color(info, palette, indices, num_texels, image);