2008-02-09 13:43:23 +01:00
|
|
|
#ifndef __SDLFUNCS_H
|
|
|
|
#define __SDLFUNCS_H
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <SDL.h>
|
|
|
|
|
2008-08-10 17:14:54 +02:00
|
|
|
namespace segl {
|
|
|
|
|
2008-02-09 13:43:23 +01:00
|
|
|
Uint32 getPixel(SDL_Surface *surface, int x, int y);
|
|
|
|
void setPixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
|
|
|
|
void swapPixel(SDL_Surface *surface, int x1, int y1, int x2, int y2);
|
|
|
|
void mirrorSurfaceMiddleX(SDL_Surface *surface);
|
|
|
|
|
2008-08-10 17:14:54 +02:00
|
|
|
} // namespace segl
|
|
|
|
|
2008-02-09 13:43:23 +01:00
|
|
|
#endif
|