2009-12-07 16:57:30 +01:00
|
|
|
|
|
|
|
#ifndef DRAW_H
|
|
|
|
#define DRAW_H
|
|
|
|
|
2009-12-14 00:28:06 +01:00
|
|
|
/* Draw a single pixel on the surface with the given color. This is the basic
|
2009-12-07 16:57:30 +01:00
|
|
|
* function to paint on the screen. We will be use this function for all paint
|
|
|
|
* stuff.
|
|
|
|
*/
|
|
|
|
void drawPixel(int x, int y, int color);
|
|
|
|
|
2009-12-14 00:28:06 +01:00
|
|
|
/* Some basic shapes
|
|
|
|
*/
|
|
|
|
void drawLine(int x1, int y1, int x2, int y2, int color);
|
|
|
|
void drawRect(int x1, int y1, int x2, int y2, int color, bool filled);
|
|
|
|
void drawCircle(int x, int y, int radius, int color, bool filled);
|
|
|
|
|
2009-12-16 15:37:24 +01:00
|
|
|
/* Terrain generator
|
|
|
|
*/
|
2009-12-14 00:28:06 +01:00
|
|
|
int* generateTerrain(float peakheight, float flatness);
|
|
|
|
|
2009-12-07 16:57:30 +01:00
|
|
|
#endif
|
|
|
|
|