File: draw.h

package info (click to toggle)
openssn 1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 7,340 kB
  • sloc: cpp: 10,973; makefile: 80
file content (34 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef DRAW_HEADER_FILE__
#define DRAW_HEADER_FILE__

#include <SDL.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
// #include "SDL/SDL_image.h"
#include <SDL/SDL_thread.h>

#define SCREEN_NAV 2
#define SCREEN_HELM 4


void DrawPixel(SDL_Surface *screen, int x, int y, Uint32 color);

void DrawLine(SDL_Surface *screen, int X1, int Y1, int X2, int Y2, Uint32 Color);

void DrawArc(SDL_Surface *screen, int X1, int Y1, int Radius, int Theta1, int Theta2, Uint32 Color);

void DrawCircle(SDL_Surface *screen, int X1, int Y1, int Radius, Uint32 Color);

void FillCircle(SDL_Surface *screen, int X1, int Y1, int Radius, Uint32 Color);

void DrawDiamond(SDL_Surface *screen, int X1, int Y1, int Size, char Direction, Uint32 Color);

void DrawBox(SDL_Surface *screen, int X1, int Y1, int Size, char Direction, Uint32 Color);

void DrawRectangle(SDL_Surface *screen, int x1, int y1, int x2, int y2, Uint32 color);

void FillRectangle(SDL_Surface *screen, int x1, int y1, int x2, int y2, Uint32 color);

void DrawCross(SDL_Surface *screen, int X1, int Y1, int Size, char Direction, Uint32 Color);

#endif