#ifndef IMAGE_H
#define IMAGE_H
 
#include "SDL.h"
#include <iostream>
#include <string>
using namespace std;

void init_SDL(void);
void putpixel(SDL_Surface *surface, unsigned x, unsigned y, char r, char g,
              char b);
Uint32 getpixel(SDL_Surface *surface, unsigned x, unsigned y);
SDL_Surface* init_display(SDL_Surface *image, string title);
void update_display(SDL_Surface *image, SDL_Surface *display);
SDL_Surface* create_image(int width, int length);
void save_image(SDL_Surface *image, string filename);
void draw_cell(SDL_Surface *image, int x, int y, int size, bool orientation);
void white_image(SDL_Surface *image);

#endif
