Freeciv-3.2
Loading...
Searching...
No Matches
Data Structures | Functions
colors.h File Reference
#include <SDL2/SDL.h>
#include "themecolors.h"
#include "colors_g.h"

Go to the source code of this file.

Data Structures

struct  color
 

Functions

struct colorcolor_alloc_rgba (int r, int g, int b, int a)
 
SDL_Colorget_theme_color (enum theme_color themecolor)
 
SDL_Colorget_game_color (enum color_std stdcolor)
 

Function Documentation

◆ color_alloc_rgba()

struct color * color_alloc_rgba ( int  r,
int  g,
int  b,
int  a 
)

Allocate a color with alpha channel and return a pointer to it. Alpha channel is not really used yet.

Definition at line 64 of file colors.c.

◆ get_game_color()

SDL_Color * get_game_color ( enum color_std  stdcolor)

Get color for some game object instance.

Definition at line 55 of file colors.c.

◆ get_theme_color()

SDL_Color * get_theme_color ( enum theme_color  themecolor)

Get color from theme.

Definition at line 47 of file colors.c.