2002-08-16 19:57:26 +00:00
|
|
|
#ifndef __ruamoko_draw_h
|
|
|
|
#define __ruamoko_draw_h
|
|
|
|
|
2020-03-03 06:24:41 +00:00
|
|
|
#include <Object.h>
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2010-01-13 06:34:32 +00:00
|
|
|
struct _qpic_t {
|
2011-03-25 07:46:32 +00:00
|
|
|
int width;
|
|
|
|
int height;
|
2012-02-06 03:50:44 +00:00
|
|
|
int handle;
|
2002-08-16 19:57:26 +00:00
|
|
|
};
|
2011-02-13 12:25:36 +00:00
|
|
|
typedef struct _qpic_t *qpic_t;
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2022-05-28 09:14:26 +00:00
|
|
|
@extern int Draw_Width (void);
|
|
|
|
@extern int Draw_Height (void);
|
|
|
|
|
2012-02-06 06:18:34 +00:00
|
|
|
@extern void Draw_FreePic (qpic_t pic);
|
2012-02-06 06:49:37 +00:00
|
|
|
@extern qpic_t Draw_MakePic (int width, int heiight, string data);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern qpic_t Draw_CachePic (string name, int alpha);
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern void Draw_Pic (int x, int y, qpic_t pic);
|
2012-02-06 10:32:30 +00:00
|
|
|
@extern void Draw_Picf (float x, float y, qpic_t pic);
|
2011-03-25 07:46:32 +00:00
|
|
|
@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);
|
2002-08-16 19:57:26 +00:00
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
@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);
|
2022-05-28 09:14:26 +00:00
|
|
|
@extern void Draw_Line (int x0, int y0, int x1, int y1, int c);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern void Draw_Crosshair (int ch, int x, int y);
|
|
|
|
@extern void text_box (int x, int y, int width, int lines);
|
2002-08-16 19:57:26 +00:00
|
|
|
|
|
|
|
@interface QPic : Object
|
|
|
|
{
|
|
|
|
string name;
|
2003-07-30 04:11:45 +00:00
|
|
|
struct _qpic_t size;
|
2002-08-16 19:57:26 +00:00
|
|
|
BOOL centered;
|
|
|
|
}
|
|
|
|
-initName:(string)n;
|
|
|
|
-initName:(string)n Centered:(BOOL)c;
|
2011-03-25 07:46:32 +00:00
|
|
|
-draw:(int)x :(int)y;
|
|
|
|
-draw:(int)x :(int)y :(int)srcx :(int)srcy :(int)width :(int)height;
|
|
|
|
-(int)width;
|
|
|
|
-(int)height;
|
2002-08-16 19:57:26 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__ruamoko_draw_h
|