Xonotic
image.qc File Reference
#include "image.qh"
+ Include dependency graph for image.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity makeXonoticImage (string theImage, float theAspect)
 
void XonoticImage_configureXonoticImage (entity me, string theImage, float theAspect)
 

Function Documentation

◆ makeXonoticImage()

entity makeXonoticImage ( string  theImage,
float  theAspect 
)

Definition at line 3 of file image.qc.

References entity(), and NEW.

Referenced by XonoticMapInfoDialog_fill(), and XonoticWinnerDialog_fill().

4 {
5  entity me;
6  me = NEW(XonoticImage);
7  me.configureXonoticImage(me, theImage, theAspect);
8  return me;
9 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ XonoticImage_configureXonoticImage()

void XonoticImage_configureXonoticImage ( entity  me,
string  theImage,
float  theAspect 
)

Definition at line 10 of file image.qc.

11 {
12  me.configureImage(me, theImage);
13  me.forcedAspect = theAspect;
14 }