mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 02:11:35 +00:00
40 lines
1.1 KiB
Objective-C
40 lines
1.1 KiB
Objective-C
#ifndef __ruamoko_draw_h
|
|
#define __ruamoko_draw_h
|
|
|
|
#include "Object.h"
|
|
|
|
struct _qpic_t {
|
|
int width;
|
|
int height;
|
|
};
|
|
typedef struct _qpic_t *qpic_t;
|
|
|
|
@extern qpic_t Draw_CachePic (string name, int alpha);
|
|
|
|
@extern void Draw_Pic (int x, int y, qpic_t pic);
|
|
@extern void Draw_SubPic (int x, int y, qpic_t pic, int srcx, int srcy, int width, int height);
|
|
@extern void Draw_CenterPic (int x, int y, qpic_t pic);
|
|
|
|
@extern void Draw_Character (int x, int y, int chr);
|
|
@extern void Draw_String (int x, int y, string text);
|
|
@extern void Draw_nString (int x, int y, string text, int n);
|
|
@extern void Draw_AltString (int x, int y, string text);
|
|
@extern void Draw_Fill (int x, int y, int w, int h, int c);
|
|
@extern void Draw_Crosshair (int ch, int x, int y);
|
|
@extern void text_box (int x, int y, int width, int lines);
|
|
|
|
@interface QPic : Object
|
|
{
|
|
string name;
|
|
struct _qpic_t size;
|
|
BOOL centered;
|
|
}
|
|
-initName:(string)n;
|
|
-initName:(string)n Centered:(BOOL)c;
|
|
-draw:(int)x :(int)y;
|
|
-draw:(int)x :(int)y :(int)srcx :(int)srcy :(int)width :(int)height;
|
|
-(int)width;
|
|
-(int)height;
|
|
@end
|
|
|
|
#endif//__ruamoko_draw_h
|