File:  [UNIX Amiga Emulator] / uae / src / od-dos / video / vbe.h
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:44:02 2018 UTC (8 years, 3 months ago) by root
Branches: MAIN, BSchmidt
CVS tags: uae089, uae088, uae087, uae086, uae0829, uae0828, uae0827, uae0826, uae0825, uae0824, uae0823, uae0822, uae0821, uae0820, uae0819, uae0818, uae0817, uae0816, uae0815, uae0814, uae0813, uae0812, uae0811, uae0810, HEAD
uae-0.8.6

 /*
  * UAE - The Un*x Amiga Emulator
  *
  * DOS VESA BIOS / VGA / Mode X graphics interface.
  *
  * (c) 1997 Gustavo Goedert
  */

typedef enum {T16, T256, T32K, T64K, T16M} T_ModeType;

typedef struct {
    T_ModeType ModeType;
    int ModeWidth, ModeHeight;
    int BitsPerPixel, BitsPerColor;
    int RedSize, RedPosition;
    int GreenSize, GreenPosition;
    int BlueSize, BluePosition;
    int LineLength, LogicalLineLength;
    int HasWindow;
    unsigned int WindowSize, WindowMappingSize, WindowAddress;
    int HasLinear;
    unsigned int LinearSize, LinearMappingSize, LinearAddress;
    char *MappedAddress;
    void (*ChangeBank)(int BankNumber);
    void (*PutLine)(char *Address, int y);
} T_ModeInfo;

extern int NumberOfModes;
extern T_ModeInfo *ModeList;
extern T_ModeInfo CurrentMode;
extern int CanMapBuffer;
extern int CurrentBankNumber;

void SetPalette(int Color, int Red, int Green, int Blue);
void DelayedSetPalette(int Color, int Red, int Green, int Blue);
void ViewPalette(int Color, int *Red, int *Green, int *Blue);
void LoadPalette(void);
int InitGfxLib(void);
void CloseGfxLib(void);
int SetMode(int ModeNumber, int Linear, int Debug);
void SaveMode(void);
void RestoreMode(void);

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.