annotate 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 |
rev |
line source |
0
|
1 #ifndef __SURFACE_H__
|
|
2 #define __SURFACE_H__
|
|
3
|
|
4 #include<SDL.h>
|
|
5 #include"rect.h"
|
|
6
|
|
7 struct Surface : public SDL_Surface {
|
|
8 char* mem(const Rect& r) {
|
|
9 return (char*)(pixels) + r.ty * pitch + r.lx * format->BytesPerPixel;
|
|
10 }
|
|
11 char* mem_end(const Rect& r) {
|
|
12 return (char*)(pixels) + (r.by-1) * pitch + r.rx * format->BytesPerPixel;
|
|
13 }
|
|
14 };
|
|
15
|
|
16 #endif /* __SURFACE_H__ */
|