all repos — openbox @ aceea3c0814778317be7a903f63b8363d2b1b0ef

openbox fork - make it a bit more like ryudo

add skeleton for RenderControl::drawImage
Dana Jansens danakj@orodu.net
commit

aceea3c0814778317be7a903f63b8363d2b1b0ef

parent

2808ab5bad8ff49a1af909c2515288310cc89378

2 files changed, 13 insertions(+), 0 deletions(-)

jump to
M otk/rendercontrol.ccotk/rendercontrol.cc

@@ -214,4 +214,9 @@ XSetClipMask(**display, color.gc(), None);

XSetClipOrigin(**display, color.gc(), 0, 0); } +void RenderControl::drawImage(Surface &sf, int w, int h, + unsigned long *data) const +{ +} + }
M otk/rendercontrol.hhotk/rendercontrol.hh

@@ -82,6 +82,14 @@ */

virtual void drawBackground(Surface &sf, const RenderTexture &texture) const = 0; + //! Draws an image onto the surface + /*! + This function will overwrite the entire surface.<br> + The image must be specified in 32-bit packed ARGB format. The current + background will be used for applying the alpha. + */ + virtual void drawImage(Surface &sf, int w, int h, unsigned long *data) const; + //! Draws a string onto a Surface virtual void drawString(Surface &sf, const Font &font, int x, int y, const RenderColor &color,