MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getColors

Method getColors

src/Engine/Palette.cpp:88–91  ·  view source on GitHub ↗

* Provides access to colors contained in the palette. * @param offset Offset to a specific color. * @return Pointer to the requested SDL_Color. */

Source from the content-addressed store, hash-verified

86 * @return Pointer to the requested SDL_Color.
87 */
88SDL_Color *Palette::getColors(int offset) const
89{
90 return _colors + offset;
91}
92
93/**
94 * Converts an SDL_Color struct into an hexadecimal RGBA color value.

Callers 3

setPaletteMethod · 0.80
XcomResourcePackMethod · 0.80
createMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected