Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Classes | Typedefs | Enumerations
Colors

Colors handling. More...

Classes

struct  gf::ColorBase< T >
 Predefined colors and utilities. More...
 
struct  gf::ColorRampBase< T >
 A color ramp. More...
 
class  gf::Image
 Class for loading, manipulating and saving images. More...
 

Typedefs

using gf::ColorF = ColorBase< float >
 Instantiation of ColoBase for float More...
 
using gf::ColorD = ColorBase< double >
 Instantiation of ColoBase for double More...
 
using gf::Color = ColorF
 Instantiation of ColorBase for float More...
 
using gf::ColorRampF = ColorRampBase< float >
 Instantiation of ColoRampBase for float More...
 
using gf::ColorRampD = ColorRampBase< double >
 Instantiation of ColoRampBase for double More...
 
using gf::ColorRamp = ColorRampF
 Instantiation of ColoRampBase for float More...
 

Enumerations

enum  gf::PixelFormat {
  gf::Rgba32 ,
  gf::Rgb24
}
 Pixel format. More...
 

Detailed Description

Colors handling.

Typedef Documentation

◆ Color

using gf::Color = typedef ColorF

Instantiation of ColorBase for float

This name is used for compatibility with SFML.

◆ ColorD

using gf::ColorD = typedef ColorBase<double>

Instantiation of ColoBase for double

◆ ColorF

using gf::ColorF = typedef ColorBase<float>

Instantiation of ColoBase for float

◆ ColorRamp

using gf::ColorRamp = typedef ColorRampF

Instantiation of ColoRampBase for float

◆ ColorRampD

using gf::ColorRampD = typedef ColorRampBase<double>

Instantiation of ColoRampBase for double

◆ ColorRampF

using gf::ColorRampF = typedef ColorRampBase<float>

Instantiation of ColoRampBase for float

Enumeration Type Documentation

◆ PixelFormat

Pixel format.

Enumerator
Rgba32 

Four 8-bit channels.

Rgb24 

Three 8-bit channels.