mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
26 lines
606 B
Objective-C
26 lines
606 B
Objective-C
#ifndef __qwaq_draw_h
|
|
#define __qwaq_draw_h
|
|
|
|
#include <Object.h>
|
|
|
|
#include "qwaq-rect.h"
|
|
|
|
@interface DrawBuffer : Object
|
|
{
|
|
int *buffer;
|
|
Extent size;
|
|
Point cursor;
|
|
}
|
|
+ (DrawBuffer *) buffer: (Extent) size;
|
|
- initWithSize: (Extent) size;
|
|
- blitFromBuffer: (DrawBuffer *) srcBuffer to: (Point) pos from: (Rect) rect;
|
|
|
|
- (void) printf: (string) fmt, ...;
|
|
- (void) vprintf: (string) fmt, @va_list args;
|
|
- (void) addch: (int) ch;
|
|
- (void) mvprintf: (Point) pos, string fmt, ...;
|
|
- (void) mvvprintf: (Point) pos, string fmt, @va_list args;
|
|
- (void) mvaddch: (Point) pos, int ch;
|
|
@end
|
|
|
|
#endif
|