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