2
#ifndef %{APPNAMEUC}_IMPL_H
3
#define %{APPNAMEUC}_IMPL_H
8
* @short This class is used for painting and supports some effects.
9
* Note: This is used in Blurscope. Feel free to remove this and
10
* implement your own drawing routines!
12
template<class Pixel> class Bitmap
15
int width, height, extra;
18
Bitmap(int e=0) : extra(e), data(0) { }
19
~Bitmap() { delete[] data; }
21
inline void addPixel(int x, int y, int bright1, int bright2);
22
void addVertLine(int x, int y, int y2, int br1, int br2);
26
void size(int w,int h)
31
data = new Pixel[w*h+extra];
37
memset(data,0,sizeof(Pixel)*(width*height+extra));
42
* @short This class does:
49
%{APPNAME}View(int in);
53
/** Screen initialization with SDL. Note, that you can initialize OpenGL with SDL! */
55
/** SDL event queue */
57
/** Used in Blurscope. Feel free to implement your own drawing routines! */
58
void setupPalette(double dummy=0.0);
60
/** Draw everything. */
64
/** used for pipelining */
67
/** SDL screen surface */
69
Bitmap<unsigned short> outputBmp;
76
#endif // %{APPNAMEUC}_IMPL_H