]> git.localhorst.tv Git - space.git/blob - src/graphics/primitive.h
simple zoom
[space.git] / src / graphics / primitive.h
1 #ifndef SPACE_PRIMITIVE_H_
2 #define SPACE_PRIMITIVE_H_
3
4 #include "Color.h"
5 #include "../math/Vector.h"
6
7 #include <SDL/SDL.h>
8
9
10 namespace space {
11
12 void Fill(SDL_Surface *, Color);
13 void Fill(SDL_Surface *, Uint32 color);
14
15 void HLine(SDL_Surface *, Vector<int> pos, int len, Color);
16 void HLine(SDL_Surface *, Vector<int> pos, int len, Uint32 color);
17 void VLine(SDL_Surface *, Vector<int> pos, int len, Color);
18 void VLine(SDL_Surface *, Vector<int> pos, int len, Uint32 color);
19
20 void FillRect(SDL_Surface *, Vector<int> pos, Vector<int> size, Color);
21 void FillRect(SDL_Surface *, Vector<int> pos, Vector<int> size, Uint32 color);
22 void OutlineRect(SDL_Surface *, Vector<int> pos, Vector<int> size, Color);
23 void OutlineRect(SDL_Surface *, Vector<int> pos, Vector<int> size, Uint32 color);
24
25 void Cross(
26         SDL_Surface *,
27         Vector<int> pos,
28         int extent,
29         Color);
30
31 void Grid(
32         SDL_Surface *,
33         Vector<int> from,
34         Vector<int> to,
35         Vector<int> size,
36         Color);
37 void Grid(
38         SDL_Surface *,
39         Vector<int> from,
40         Vector<int> to,
41         Vector<float> size,
42         Color);
43
44 }
45
46 #endif