]> icculus.org git repositories - dana/openbox.git/blob - render2/texture.h
add a close button
[dana/openbox.git] / render2 / texture.h
1 #ifndef __render_texture_h
2 #define __render_texture_h
3
4 #include "render.h"
5
6 enum RrTextureType {
7     RR_TEXTURE_NONE,
8     RR_TEXTURE_TEXT,
9     RR_TEXTURE_RGBA
10 };
11
12 struct RrTextureText {
13     struct RrFont *font;
14     enum RrLayout layout;
15     char *string;
16 };
17
18 struct RrTextureRGBA {
19     RrData32 *data;
20     int x;
21     int y;
22     int w;
23     int h;
24 };
25
26 union RrTextureData {
27     struct RrTextureText text;
28     struct RrTextureRGBA rgba;
29 };
30
31 struct RrTexture {
32     enum RrTextureType type;
33     union RrTextureData data;
34 };
35
36 #endif