X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fx11.h;h=43013b93032744ef9aa1d06ee7bff044d6399651;hb=dfe0a71a9939e0c55bb54dcc92db1749e8e21747;hp=ca1247c50bc0a2c1459ae6eba6b1186d6e0b96a6;hpb=da14f69fd95c7bd5a0d70cdf4935af06f1f20a04;p=rocksndiamonds.git diff --git a/src/libgame/x11.h b/src/libgame/x11.h index ca1247c5..43013b93 100644 --- a/src/libgame/x11.h +++ b/src/libgame/x11.h @@ -1,15 +1,14 @@ /*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * +* Artsoft Retro-Game Library * *----------------------------------------------------------* -* ©1995 Artsoft Development * -* Holger Schemel * -* 33659 Bielefeld-Senne * -* Telefon: (0521) 493245 * -* eMail: aeglos@valinor.owl.de * -* aeglos@uni-paderborn.de * -* q99492@pbhrzx.uni-paderborn.de * +* (c) 1994-2001 Artsoft Entertainment * +* Holger Schemel * +* Detmolder Strasse 189 * +* 33604 Bielefeld * +* Germany * +* e-mail: info@artsoft.org * *----------------------------------------------------------* -* x11.h * +* x11.h * ***********************************************************/ #ifndef X11_H @@ -40,9 +39,10 @@ /* X11 type definitions */ -typedef Pixmap Bitmap; -typedef Window DrawWindow; -typedef Drawable DrawBuffer; +typedef struct X11DrawableInfo Bitmap; +typedef struct X11DrawableInfo DrawWindow; +typedef struct X11DrawableInfo DrawBuffer; +/* "Pixel" is already defined in X11/Intrinsic.h */ typedef KeySym Key; @@ -55,6 +55,26 @@ typedef XFocusChangeEvent FocusChangeEvent; typedef XClientMessageEvent ClientMessageEvent; +/* structure definitions */ + +struct X11DrawableInfo +{ + char *source_filename; + int width, height; + Drawable drawable; + Drawable clip_mask; + GC gc; /* GC for normal drawing (inheritated from 'window') */ + GC line_gc[2]; /* GC for foreground and background line drawing */ + GC stored_clip_gc; /* GC for masked drawing (used for whole Pixmap) */ + GC clip_gc; /* can be 'stored_clip_gc' or one-tile-only clip GC */ +}; + +struct XY +{ + short x, y; +}; + + /* X11 symbol definitions */ #define EVENT_BUTTONPRESS ButtonPress @@ -268,6 +288,8 @@ typedef XClientMessageEvent ClientMessageEvent; /* X11 function definitions */ -inline void X11InitBufferedDisplay(DrawBuffer *, DrawWindow *); +inline void X11InitVideoDisplay(void); +inline void X11InitVideoBuffer(DrawBuffer **, DrawWindow **); +Bitmap *X11LoadImage(char *); #endif /* X11_H */