mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
cdc1f0c5e7
Now that qfcc actually supports them properly.
34 lines
432 B
R
34 lines
432 B
R
#include <draw.h>
|
|
#include <string.h>
|
|
#include <gui/Pic.h>
|
|
|
|
@implementation Pic
|
|
-(id)init
|
|
{
|
|
pic_name = str_new ();
|
|
return self;
|
|
}
|
|
|
|
-(void)dealloc
|
|
{
|
|
str_free (pic_name);
|
|
[super dealloc];
|
|
}
|
|
|
|
-(void)setPic:(string)pic
|
|
{
|
|
str_copy (pic_name, pic);
|
|
}
|
|
|
|
-(void)draw
|
|
{
|
|
Draw_Pic (xabs, yabs, Draw_CachePic (pic_name, 1));
|
|
}
|
|
@end
|
|
|
|
@implementation CenterPic
|
|
-(void)draw
|
|
{
|
|
Draw_CenterPic (xabs, yabs, Draw_CachePic (pic_name, 1));
|
|
}
|
|
@end
|