The Allegro Wiki is migrating to github at https://github.com/liballeg/allegro_wiki/wiki

AL DISPLAY

From Allegro Wiki
Jump to: navigation, search

Name

AL_DISPLAY

Structure Data

This is an opaque data structure.

Description

AL_DISPLAY is a data structure which represents a screen device driver. It is used to instantiate a particular implementation of the drawing system interface.

Declaration

<highlightSyntax language="c">typedef struct AL_DISPLAY { /* Allegro display struct */

  AL_ZSTRING *name;           /* Name of driver */ 
  AL_DEVICECAPS *devicecaps;  /* Device capabilities */
  AL_VTABLE_LIST *vtablelist; /* A vtable of a list of list of providers */
  void **impldata;            /* Implementation specific name */

} AL_DISPLAY;

//XXX CHANGEME //VTable list may of the form: typedef struct AL_VTABLE_LIST { /* Allegro Vtable struct */ AL_CREATE_BITMAP_LIST *createlist; AL_BLIT_BITMAP_LIST *blitlist; AL_DESTROY_BITMAP_LIST *destroylist; };

//XXX CHANGEME //Create list may of the form: AL_CREATE_BITMAP_LIST DIRECTX_CREATE_BITMAP_LIST[]= { /* Allegro Vtable struct */ {AL_FORMAT_X8R8G8B8,AL_BT_VIDEO,create_DDraw7_X8R8G8B8_Primary}, {AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,create_DDraw7_X8R8G8B8_None}, {AL_FORMAT_X8R8G8B8,AL_BT_ALL,create_null} };


//XXX CHANGEME //Blit list may of the form: AL_BLIT_BITMAP_LIST DIRECTX_BLIT_BITMAP_LIST[]= { /* Allegro Vtable struct */ {AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,AL_FORMAT_X8R8G8B8,AL_BT_VIDEO,DDraw7_blit_x8r8g8b8}, {AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,blit_mem_x8r8g8b8_to_mem_x8r8g8b8_sse2}, {AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,blit_mem_x8r8g8b8_to_mem_x8r8g8b8_mmx}, {AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,blit_none} //Fallback {AL_FORMAT_X8R8G8B8,AL_BT_VIDEO,AL_FORMAT_X8R8G8B8,AL_BT_MEMORY,blit_none} //Disabled };

</highlightSyntax>

See Also