SDL_Palette



SDL_Palette

NAME
STRUCTURE DEFINITION
STRUCTURE DATA
DESCRIPTION
SEE ALSO

NAME

SDL_Palette − Color palette for 8-bit pixel formats

STRUCTURE DEFINITION

typedef struct{
  int ncolors;
  SDL_Color *colors;
} SDL_Palette;

STRUCTURE DATA

ncolors

Number of colors used in this palette

colors

Pointer to SDL_Color structures that make up the palette.

DESCRIPTION

Each pixel in an 8-bit surface is an index into the colors field of the SDL_Palette structure store in SDL_PixelFormat. A SDL_Palette should never need to be created manually. It is automatically created when SDL allocates a SDL_PixelFormat for a surface. The colors values of a SDL_Surfaces palette can be set with the SDL_SetColors.

SEE ALSO

SDL_Color, SDL_Surface, SDL_SetColors SDL_SetPalette



More Linux Commands

manpages/Config.3pm.html
Config(3pm) - access Perl configuration information.........
The Config module contains all the information that was available to the Configure program at Perl build time (over 900 values). Shell variables from the config

manpages/pcre32_free_substring_list.3.html
pcre32_free_substring_list(3) Perl-compatible regular expres
This is a convenience function for freeing the store obtained by a previous call to pcre[16|32]_get_substring_list(). Its only argument is a pointer to the list

manpages/groff_char.7.html
groff_char(7) - groff glyph names - Linux manual page.......
This manual page lists the standard groff glyph names and the default input mapping, latin1. The glyphs in this document look different depending on which outpu

manpages/Xft.3.html
Xft(3) - X FreeType interface library - Linux manual page...
Xft is a simple library designed to interface the FreeType rasterizer with the X Rendering Extension. This manual page barely scratches the surface of this libr

manpages/sane-niash.5.html
sane-niash(5) - SANE backend for scanners based on the NIASH
The sane-niash implements a SANE (Scanner Access Now Easy) backend that provides access to NIASH chipset based scanners. This backend will try to support the fo

manpages/Tcl_WinUtfToTChar.3.html
Tcl_WinUtfToTChar(3) - procedures for creating and using enc
Tcl_GetEncoding finds an encoding given its name. The name may refer to a built-in Tcl encoding, a user-defined encoding registered by calling Tcl_CreateEncodin

manpages/Tcl_WriteObj.3.html
Tcl_WriteObj(3) - buffered I/O facilities using channels....
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

manpages/iruserok.3.html
iruserok(3) - routines for returning a stream to a remote co
The rcmd() function is used by the superuser to execute a command on a remote machine using an authentication scheme based on privileged port numbers. The rresv

manpages/TIFFReadRGBAStrip.3tiff.html
TIFFReadRGBAStrip(3tiff) - read and decode an image strip in
TIFFReadRGBAStrip reads a single strip of a strip-based image into memory, storing the result in the user supplied RGBA raster. The raster is assumed to be an a

manpages/Bootloader::MBRTools.3pm.html
Bootloader::MBRTools(3pm) - set of low-level functions for m
POD ERRORS Hey! The above document had some coding errors, which are explained below: Around line 26: =over is the last thing in the document?! Bootloader::MBRT

manpages/XCompose.3.html
XCompose(3) - X client mappings for multi-key input sequence
The X library, libX11, provides a simple input method for characters beyond those represented on typical keyboards using sequences of key strokes that are combi

manpages/gnutls_openpgp_crt_get_pk_dsa_raw.3.html
gnutls_openpgp_crt_get_pk_dsa_raw(3) - API function.........
gnutls_openpgp_crt_get_pk_dsa_raw.3 - This function will export the DSA public keys parameters found in the given certificate. The new parameters will be alloca





We can't live, work or learn in freedom unless the software we use is free.