]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/menu-div0test/item/image.c
add (shift|ctrl|alt)-backspace for deleting all too
[divverent/nexuiz.git] / data / qcsrc / menu-div0test / item / image.c
1 #ifdef INTERFACE
2 CLASS(Image) EXTENDS(Item)
3         METHOD(Image, configureImage, void(entity, string))
4         METHOD(Image, draw, void(entity))
5         METHOD(Image, toString, string(entity))
6         ATTRIB(Image, src, string, string_null)
7 ENDCLASS(Image)
8 #endif
9
10 #ifdef IMPLEMENTATION
11 string toStringImage(entity me)
12 {
13         return me.src;
14 }
15 void configureImageImage(entity me, string path)
16 {
17         me.src = path;
18 }
19 void drawImage(entity me)
20 {
21         draw_Picture('0 0 0', me.src, '1 1 0', '1 1 1', 1);
22 };
23 #endif