Lines Matching refs:palette
67 * Get a color/entry from the palette.
70 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette,
73 memcpy(pixel, palette + info->size * index, info->size);
82 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette,
95 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
96 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix);
99 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
106 pix += get_palette_entry(info, palette, ind[i], pix);
163 * compressed palette format into a regular GLubyte/RGBA glTexImage2D() call.
169 GLsizei imageSize, const void *palette)
186 /* first image follows the palette */
187 indices = (const GLubyte *) palette + info->palette_size * info->size;
210 if (palette) {
212 paletted_to_color(info, palette, indices, num_texels, image);