1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
4 # include "../config.h"
5 #endif // HAVE_CONFIG_H
7 #include "rendercontrol.hh"
8 #include "truerendercontrol.hh"
9 #include "rendertexture.hh"
11 #include "screeninfo.hh"
16 #endif // HAVE_STDLIB_H
19 #define _(str) gettext(str)
24 RenderControl *RenderControl::getRenderControl(int screen)
26 const ScreenInfo *info = display->screenInfo(screen);
28 // get the visual on the screen and return the correct type of RenderControl
29 int vclass = info->visual()->c_class;
32 return new TrueRenderControl(info);
35 // return new PseudoRenderControl(info);
38 // return new GrayRenderControl(info);
40 printf(_("RenderControl: Unsupported visual %d specified. Aborting.\n"),
46 RenderControl::RenderControl(const ScreenInfo *screen)
49 printf("Initializing RenderControl\n");
54 RenderControl::~RenderControl()
56 printf("Destroying RenderControl\n");