The Battle for Wesnoth  1.19.11+dev
Public Member Functions | Public Attributes | List of all members
image::light_adjust Struct Reference

Type used to store color information of central and adjacent hexes. More...

#include <picture.hpp>

Public Member Functions

 light_adjust (int op, int r, int g, int b)
 

Public Attributes

int8_t l
 
int8_t r
 
int8_t g
 
int8_t b
 

Detailed Description

Type used to store color information of central and adjacent hexes.

The structure is one or several 4-char blocks: [L,R,G,B] The R, G, B values represent the color, and L the lightmap to use:

-1: none 0: full hex 1-6: concave corners 7-12: convex half-corners 1 13-19: convex half-corners 2

Definition at line 124 of file picture.hpp.

Constructor & Destructor Documentation

◆ light_adjust()

image::light_adjust::light_adjust ( int  op,
int  r,
int  g,
int  b 
)

Definition at line 479 of file picture.cpp.

References b, g, and r.

Member Data Documentation

◆ b

int8_t image::light_adjust::b

Definition at line 131 of file picture.hpp.

Referenced by light_adjust().

◆ g

int8_t image::light_adjust::g

Definition at line 130 of file picture.hpp.

Referenced by light_adjust().

◆ l

int8_t image::light_adjust::l

Definition at line 128 of file picture.hpp.

◆ r

int8_t image::light_adjust::r

Definition at line 129 of file picture.hpp.

Referenced by light_adjust().


The documentation for this struct was generated from the following files: