]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/image.qc
1f25899c142840647bec37c509e399dfd646aec7
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / image.qc
1 #ifndef IMAGE_H
2 #define IMAGE_H
3 #include "../item/image.qc"
4 CLASS(XonoticImage, Image)
5         METHOD(XonoticImage, configureXonoticImage, void(entity, string, float));
6 ENDCLASS(XonoticImage)
7 entity makeXonoticImage(string theImage, float theAspect);
8 #endif
9
10 #ifdef IMPLEMENTATION
11 entity makeXonoticImage(string theImage, float theAspect)
12 {
13         entity me;
14         me = NEW(XonoticImage);
15         me.configureXonoticImage(me, theImage, theAspect);
16         return me;
17 }
18 void XonoticImage_configureXonoticImage(entity me, string theImage, float theAspect)
19 {
20         me.configureImage(me, theImage);
21         me.forcedAspect = theAspect;
22 }
23 #endif