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)
 
bool operator== (const light_adjust &o) const
 
bool operator!= (const light_adjust &o) const
 

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 123 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 489 of file picture.cpp.

References b, g, and r.

Member Function Documentation

◆ operator!=()

bool image::light_adjust::operator!= ( const light_adjust o) const
inline

Definition at line 137 of file picture.hpp.

References operator==().

◆ operator==()

bool image::light_adjust::operator== ( const light_adjust o) const

Definition at line 502 of file picture.cpp.

References b, g, l, and r.

Referenced by operator!=().

Member Data Documentation

◆ b

int8_t image::light_adjust::b

Definition at line 130 of file picture.hpp.

Referenced by image::hash_value(), light_adjust(), and operator==().

◆ g

int8_t image::light_adjust::g

Definition at line 129 of file picture.hpp.

Referenced by image::hash_value(), light_adjust(), and operator==().

◆ l

int8_t image::light_adjust::l

Definition at line 127 of file picture.hpp.

Referenced by image::hash_value(), and operator==().

◆ r

int8_t image::light_adjust::r

Definition at line 128 of file picture.hpp.

Referenced by image::hash_value(), light_adjust(), and operator==().


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