#ifndef IMAGE_H
#define IMAGE_H
 
#include "SDL.h"
#include <iostream>
#include <string>

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, std::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, std::string filename);
void white_image(SDL_Surface *image);
void draw_line(SDL_Surface* image, float x1, float y1, float x2, float y2);

#endif
