]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/menu-div0test/item/image.c
adding qcsrc/menu-div0test with a test menu.dat source... may or may not replace...
[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         ATTRIB(Image, src, string, "")
6 ENDCLASS(Image)
7 #endif
8
9 #ifdef IMPLEMENTATION
10 void configureImageImage(entity me, string path)
11 {
12         me.src = path;
13 }
14 void drawImage(entity me)
15 {
16         draw_Picture('0 0 0', me.src, '1 1 0', '1 1 1', 1);
17 };
18 #endif