SaturnRingLibrary 0.6
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Bitmap::Palette Struct Reference

Detailed Description

Color palette loaded from bitmap.

#include <srl_bitmap.hpp>

Public Member Functions

 Palette (size_t count)
 Construct a new Palette object.
 
 Palette (SRL::Types::HighColor *colors, size_t count)
 Construct a new Palette object.
 
 ~Palette ()
 Destroy the Palette object.
 

Public Attributes

SRL::Types::HighColorColors
 Palette colors.
 
size_t Count
 Number of colors in the palette.
 

Constructor & Destructor Documentation

◆ Palette() [1/2]

SRL::Bitmap::Palette::Palette ( size_t count)
inline

Construct a new Palette object.

Parameters
countNumber of colors in the palette

◆ Palette() [2/2]

SRL::Bitmap::Palette::Palette ( SRL::Types::HighColor * colors,
size_t count )
inline

Construct a new Palette object.

Parameters
colorsPalette colors
countNumber of colors in the palette