Debian Codegraph @

src/effect/Outline.h

raw
1 #ifndef HEADER_OUTLINE_H
2 #define HEADER_OUTLINE_H
3
4 #include "SDL.h"
5
6 /**
7 * Outline around picture.
8 * Used to outline rendered text.
9 */
10 class Outline {
11 private:
12 int m_width;
13 SDL_Color m_color;
14 Uint32 m_pixel;
15 private:
16 SDL_Surface *cloneSurface(SDL_Surface *surface);
17 void precomputePixel(SDL_PixelFormat *format);
18 void drawOneLayer(SDL_Surface *surface, Uint32 bgKey);
19 void drawAlongCopy(SDL_Surface *surface, Uint32 bgKey,
20 SDL_Surface *copy);
21 void fillNeighbourhood(SDL_Surface *surface, Uint32 bgKey,
22 int x, int y);
23 public:
24 Outline(const SDL_Color &color, int width);
25 void drawOnColorKey(SDL_Surface *surface);
26 void drawOn(SDL_Surface *surface, Uint32 bgKey);
27 };
28
29 #endif