Mercurial > otakunoraifu
view window/surface.h @ 25:2110e0cf64ac
* clean littles things in configure.ac
* added --with-visarc and --with-nwatowav
author | thib |
---|---|
date | Fri, 27 Feb 2009 19:13:00 +0000 |
parents | 223b71206888 |
children | 5ae5533b3a9a |
line wrap: on
line source
#ifndef __SURFACE_H__ #define __SURFACE_H__ #include<SDL.h> #include"rect.h" struct Surface : public SDL_Surface { char* mem(const Rect& r) { return (char*)(pixels) + r.ty * pitch + r.lx * format->BytesPerPixel; } char* mem_end(const Rect& r) { return (char*)(pixels) + (r.by-1) * pitch + r.rx * format->BytesPerPixel; } }; #endif /* __SURFACE_H__ */