Advanced Strategic Command
Classes | Functions | Variables
drawing.h File Reference
#include <cmath>
#include <map>
#include "loki/static_check.h"
#include "../libs/sdlmm/src/sdlmm.h"
#include "surface.h"
#include "blitter.h"
#include "../misc.h"
#include "../palette.h"
#include "lighten.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.

Classes

class  PutPixel< pixelsize, ColorMerger >
 
class  PutPixel2< pixelsize, ColorMerger >
 
class  ColorMerger_AlphaLighter< pixelsize >
 
class  ColorMerger_AlphaLighter< 1 >
 
class  ColorMerger_AlphaLighter< 4 >
 

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)
 
template<int pixelsize, class ColorMerger >
void drawLine (Surface &surface, const ColorMerger &cm, const SPoint &pos, const SPoint &pos2)
 

Variables

Uint8 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 175 of file drawing.h.

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

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

Definition at line 103 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 39 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 67 of file drawing.h.

Variable Documentation

Uint8 saturationTranslationTable[256][256]

Definition at line 35 of file drawing.cpp.