/* esdb.h 1.1 */ /* Copyright 1992, 1993 O'Reilly and Associates, Inc. Permission to use, copy, and modify this program is hereby granted, as long as this copyright notice appears in each copy of the program source code. */ /* Escape to request double buffering. */ #define ES_ESCAPE_ET_DBLBUFFER 0x8401 #define ES_ESCAPE_DBLBUFFER 0x80040001 #define ES_RENDERER_SINGLEBUFFER 0 #define ES_RENDERER_DBLBUFFER 1 typedef struct { Drawable drawable; unsigned long bufferMode; } esEscapeDblBuffer; /* Escape to swap buffers. */ #define ES_ESCAPE_ET_SWAPBUFFER 0x8402 #define ES_ESCAPE_SWAPBUFFER 0x80040002 typedef struct { Drawable drawable; } esEscapeSwapBuffer; /* Escape to inquire the update action at swap. */ #define ES_ESCAPE_ET_SWAPBUFFERCONTENT 0x8403 #define ES_ESCAPE_SWAPBUFFERCONTENT 0x80040003 #define ES_DB_SWAP_CONTENT_UNDEFINED 0 #define ES_DB_SWAP_CONTENT_CLEAR_TO_BACKGROUND 1 #define ES_DB_SWAP_CONTENT_UNCHANGED 2 #define ES_DB_SWAP_CONTENT_FRONTBUFFER 3 typedef struct { Drawable drawable; } esEscapeSwapBufferContent; typedef struct { unsigned char type; unsigned char unused; unsigned short sequenceNum; unsigned long length; unsigned long escapeId; unsigned long content; } esEscapeSwapBufferContentReply; /* The HP "draw to front buffer" escape. */ #define HP_ESCAPE_ET_DFRONT 0x8701 #define HP_ESCAPE_DFRONT 0x80070001 #define HP_RENDER_TO_BACK_BUFFER 0 #define HP_RENDER_TO_FRONT_BUFFER 1 typedef struct { Drawable drawable; int render_to_front_buffer; } hpEscapeSetRenderingBuffer;