blob: 5d75eeb8a34bb46888b01a866a8501f66fd80bc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef RENDERERS_H
#define RENDERERS_H
#include <tqstring.h>
class Renderer;
namespace Creators
{
#ifdef RENDERERS_CPP
#define REGISTER(function, cl) \
Renderer *function() \
{ \
return new cl; \
}
#else
#define REGISTER(function, cl) \
Renderer *function();
#endif
REGISTER(fade, Fade)
REGISTER(doubler, Doubler)
REGISTER(waveform, HorizontalPair);
REGISTER(hartley, Hartley);
#undef REGISTER
};
#endif
|