SDL Palette: Unterschied zwischen den Versionen

Aus DGL Wiki
Wechseln zu: Navigation, Suche
()
 
K ()
Zeile 7: Zeile 7:
 
<br>
 
<br>
 
== Delphi-Spezifikation ==
 
== Delphi-Spezifikation ==
  type SDL_Palette=record
+
  type SDL_Palette = record
  ''ncolors'': Integer;
+
      ''ncolors''     : Integer;
  ''colors'': PSDL_Color;
+
      ''colors''     : PSDL_Color;
  end;
+
end;
  
 
<br>
 
<br>

Version vom 25. August 2005, 15:36 Uhr

SDL_Palette


Name

SDL_Palette - Farbpalette für 8 Bit Formate


Delphi-Spezifikation

type SDL_Palette = record
     ncolors     : Integer;
     colors      : PSDL_Color;
end;


Parameter

ncolors Anzahl der Farben in der Palette
colors Zeiger auf die SDL_Color Struktur


Beschreibung

Jeder Pixel in einer 8 Bit Surface ist ein Index in ein Farbfeld der SDL_Palette die in SDL_PixelFormat gespeichert ist. Es sollte nie notwendig sein eine SDL_Palette per Hand zu erstellen. Sie wird automatisch erstellet wenn SDL einer Surface das SDL_Pixelformat zuweist. Die Farbwerte einer SDL_Surface Palette können mit SDL_SetColors gesetzt werden.

Siehe auch

SDL_Color, SDL_Surface, SDL_SetColors, SDL_SetPalette