-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrender.h
28 lines (23 loc) · 1007 Bytes
/
render.h
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
/*
harris - a strategy game
Copyright (C) 2012-2015 Edward Cree
licensed under GPLv3+ - see top of harris.c for details
render: functions to render to maps
*/
#include <SDL.h>
#include "types.h"
SDL_Surface *render_weather(const w_state *weather);
SDL_Surface *render_england_weather(const w_state *weather);
SDL_Surface *render_sun(double showtime);
SDL_Surface *render_routes(const game *state);
SDL_Surface *render_cities(void);
SDL_Surface *render_targets(date now);
SDL_Surface *render_flak(date now);
SDL_Surface *render_ac(const game *state);
SDL_Surface *render_xhairs(const game *state);
SDL_Surface *render_seltarg(int seltarg);
SDL_Surface *render_current_route(const game *state, int seltarg);
/* Functions for drawing on an SDL_Surface */
int pset(SDL_Surface *s, unsigned int x, unsigned int y, atg_colour c);
int line(SDL_Surface *s, unsigned int x0, unsigned int y0, unsigned int x1, unsigned int y1, atg_colour c);
atg_colour pget(SDL_Surface *s, unsigned int x, unsigned int y);