adventskalender-2009/src/draw.h

23 lines
558 B
C
Raw Normal View History

#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
* 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);
/* Terrain generator
*/
2009-12-14 00:28:06 +01:00
int* generateTerrain(float peakheight, float flatness);
#endif