You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
417 B
35 lines
417 B
15 years ago
|
#ifndef RENDERERS_H
|
||
|
#define RENDERERS_H
|
||
|
|
||
|
#include <qstring.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
|
||
|
|