25 lines
374 B
Objective-C
25 lines
374 B
Objective-C
|
|
#import <appkit/appkit.h>
|
|
|
|
#import "DoomDef.h"
|
|
|
|
// a few globals
|
|
extern byte *bytebuffer;
|
|
|
|
|
|
@interface VGAView:View
|
|
{
|
|
id game;
|
|
int nextpalette[256]; // color lookup table
|
|
int *nextimage; // palette expanded and scaled
|
|
unsigned scale;
|
|
NXWindowDepth depth;
|
|
}
|
|
|
|
- updateView;
|
|
- (unsigned)scale;
|
|
- setPalette:(byte *)pal;
|
|
- setScale:(int)newscale;
|
|
|
|
@end
|