01147c0d35
* Implement a simple state machine to simulate different game stats * Create a generic menu to display different menus * Update the Makefile for TTF support * Draw a simple diagram to show the stats
23 lines
558 B
C
23 lines
558 B
C
|
|
#ifndef DRAW_H
|
|
#define DRAW_H
|
|
|
|
/* 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);
|
|
|
|
/* 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
|
|
*/
|
|
int* generateTerrain(float peakheight, float flatness);
|
|
|
|
#endif
|
|
|