Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

drawing.h File Reference

#include <cmath>
#include <map>
#include "../libs/loki/static_check.h"
#include "../libs/sdlmm/src/sdlmm.h"
#include "surface.h"
#include "blitter.h"
#include "../misc.h"
#include "../palette.h"

Include dependency graph for drawing.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<int BytePerPixel, class ColorMergerUL, class ColorMergerLR>
void rectangle (Surface &surface, const SPoint &pos, int w, int h, const ColorMergerUL &ul, const ColorMergerLR &lr)
template<int BytePerPixel, class ColorMergerUL, class ColorMergerLR>
void rectangle (Surface &surface, const SPoint &pos, int w, int h, const ColorMergerUL &ul, const ColorMergerLR &lr, const SDLmm::SRect &clip)
template<int BytePerPixel, class ColorMerger>
void paintFilledRectangle (Surface &surface, const SPoint &pos, int w, int h, const ColorMerger &ul)
SDLmm::Color lighten_Color (SDLmm::Color color, int factor16)
void lighten_Color (SDLmm::Color *color, int factor16)
SDL_Color lighten_Color (const SDL_Color &color, int factor16)
template<int pixelsize, class ColorMerger>
void drawLine (Surface &surface, const ColorMerger &cm, const SPoint &pos, const SPoint &pos2)

Variables

char saturationTranslationTable [256][256]


Function Documentation

template<int pixelsize, class ColorMerger>
void drawLine Surface surface,
const ColorMerger &  cm,
const SPoint pos,
const SPoint pos2
 

Definition at line 198 of file drawing.h.

References PutPixel2< pixelsize, ColorMerger >::set().

SDL_Color lighten_Color const SDL_Color &  color,
int  factor16
[inline]
 

Definition at line 145 of file drawing.h.

References saturationTranslationTable.

void lighten_Color SDLmm::Color color,
int  factor16
[inline]
 

Definition at line 140 of file drawing.h.

References lighten_Color().

SDLmm::Color lighten_Color SDLmm::Color  color,
int  factor16
[inline]
 

Definition at line 132 of file drawing.h.

References saturationTranslationTable.

Referenced by ColorMerger_AlphaLighter< 4 >::assign(), ColorMerger_Alpha_XLAT_TableShifter< pixelsize >::assign(), OverviewMapImage::lighten(), lighten_Color(), and showAttackAnimation().

template<int BytePerPixel, class ColorMerger>
void paintFilledRectangle Surface surface,
const SPoint pos,
int  w,
int  h,
const ColorMerger &  ul
 

Definition at line 102 of file drawing.h.

template<int BytePerPixel, class ColorMergerUL, class ColorMergerLR>
void rectangle Surface surface,
const SPoint pos,
int  w,
int  h,
const ColorMergerUL &  ul,
const ColorMergerLR &  lr,
const SDLmm::SRect &  clip
 

Definition at line 66 of file drawing.h.

template<int BytePerPixel, class ColorMergerUL, class ColorMergerLR>
void rectangle Surface surface,
const SPoint pos,
int  w,
int  h,
const ColorMergerUL &  ul,
const ColorMergerLR &  lr
 

Definition at line 38 of file drawing.h.


Variable Documentation

char saturationTranslationTable[256][256]
 

Definition at line 35 of file drawing.cpp.

Referenced by lighten_Color(), and TableGenerator::TableGenerator().


Generated on Tue Jun 24 01:39:53 2008 for Advanced Strategic Command by  doxygen 1.4.2