all repos — openbox @ 3147ad1a60db250b5b552a406dc33046d250cfea

openbox fork - make it a bit more like ryudo

otk/pseudorendercontrol.hh (raw)

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
35
36
37
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef __pseudorendercontrol_hh
#define __pseudorendercontrol_hh

#include "rendercontrol.hh"

extern "C" {

#ifdef HAVE_STDINT_H
#  include <stdint.h>
#else
#  ifdef HAVE_SYS_TYPES_H
#    include <sys/types.h>
#  endif
#endif

}

#include <vector>

namespace otk {

class PseudoRenderControl : public RenderControl {
private:

public:
  PseudoRenderControl(int screen);
  virtual ~PseudoRenderControl();

  virtual void drawBackground(Surface& sf, const RenderTexture &texture) const;
  virtual void drawImage(Surface &sf, int w, int h,
                         unsigned long *data) const;
};

}

#endif // __pseudorendercontrol_hh