src/video/Xext/extensions/xf86dga1.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 29 May 2006 04:04:35 +0000
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
permissions -rw-r--r--
more tweaking indent options
     1 /* $XFree86: xc/include/extensions/xf86dga1.h,v 1.2 1999/04/17 07:05:41 dawes Exp $ */
     2 /*
     3 
     4 Copyright (c) 1995  Jon Tombs
     5 Copyright (c) 1995  XFree86 Inc
     6 
     7 */
     8 
     9 /************************************************************************
    10 
    11    THIS IS THE OLD DGA API AND IS OBSOLETE.  PLEASE DO NOT USE IT ANYMORE
    12 
    13 ************************************************************************/
    14 
    15 #ifndef _XF86DGA1_H_
    16 #define _XF86DGA1_H_
    17 
    18 #include <X11/Xfuncproto.h>
    19 #include "SDL_name.h"
    20 
    21 #define X_XF86DGAQueryVersion		0
    22 #define X_XF86DGAGetVideoLL		1
    23 #define X_XF86DGADirectVideo		2
    24 #define X_XF86DGAGetViewPortSize	3
    25 #define X_XF86DGASetViewPort		4
    26 #define X_XF86DGAGetVidPage		5
    27 #define X_XF86DGASetVidPage		6
    28 #define X_XF86DGAInstallColormap	7
    29 #define X_XF86DGAQueryDirectVideo	8
    30 #define X_XF86DGAViewPortChanged	9
    31 
    32 #define XF86DGADirectPresent		0x0001
    33 #define XF86DGADirectGraphics		0x0002
    34 #define XF86DGADirectMouse		0x0004
    35 #define XF86DGADirectKeyb		0x0008
    36 #define XF86DGAHasColormap		0x0100
    37 #define XF86DGADirectColormap		0x0200
    38 
    39 
    40 
    41 
    42 #ifndef _XF86DGA_SERVER_
    43 
    44 _XFUNCPROTOBEGIN Bool SDL_NAME(XF86DGAQueryVersion) (
    45 #if NeedFunctionPrototypes
    46                                                         Display * /* dpy */ ,
    47                                                         int *
    48                                                         /* majorVersion */ ,
    49                                                         int *   /* minorVersion */
    50 #endif
    51     );
    52 
    53 Bool SDL_NAME(XF86DGAQueryExtension) (
    54 #if NeedFunctionPrototypes
    55                                          Display * /* dpy */ ,
    56                                          int * /* event_base */ ,
    57                                          int *  /* error_base */
    58 #endif
    59     );
    60 
    61 Status SDL_NAME(XF86DGAGetVideoLL) (
    62 #if NeedFunctionPrototypes
    63                                        Display * /* dpy */ ,
    64                                        int /* screen */ ,
    65                                        int * /* base addr */ ,
    66                                        int * /* width */ ,
    67                                        int * /* bank_size */ ,
    68                                        int *    /* ram_size */
    69 #endif
    70     );
    71 
    72 Status SDL_NAME(XF86DGAGetVideo) (
    73 #if NeedFunctionPrototypes
    74                                      Display * /* dpy */ ,
    75                                      int /* screen */ ,
    76                                      char ** /* base addr */ ,
    77                                      int * /* width */ ,
    78                                      int * /* bank_size */ ,
    79                                      int *      /* ram_size */
    80 #endif
    81     );
    82 
    83 Status SDL_NAME(XF86DGADirectVideo) (
    84 #if NeedFunctionPrototypes
    85                                         Display * /* dpy */ ,
    86                                         int /* screen */ ,
    87                                         int     /* enable */
    88 #endif
    89     );
    90 
    91 Status SDL_NAME(XF86DGADirectVideoLL) (
    92 #if NeedFunctionPrototypes
    93                                           Display * /* dpy */ ,
    94                                           int /* screen */ ,
    95                                           int   /* enable */
    96 #endif
    97     );
    98 
    99 Status SDL_NAME(XF86DGAGetViewPortSize) (
   100 #if NeedFunctionPrototypes
   101                                             Display * /* dpy */ ,
   102                                             int /* screen */ ,
   103                                             int * /* width */ ,
   104                                             int *       /* height */
   105 #endif
   106     );
   107 
   108 Status SDL_NAME(XF86DGASetViewPort) (
   109 #if NeedFunctionPrototypes
   110                                         Display * /* dpy */ ,
   111                                         int /* screen */ ,
   112                                         int x /* X */ ,
   113                                         int y   /* Y */
   114 #endif
   115     );
   116 
   117 Status SDL_NAME(XF86DGAGetVidPage) (
   118 #if NeedFunctionPrototypes
   119                                        Display * /* dpy */ ,
   120                                        int /* screen */ ,
   121                                        int *    /* vid page */
   122 #endif
   123     );
   124 
   125 Status SDL_NAME(XF86DGASetVidPage) (
   126 #if NeedFunctionPrototypes
   127                                        Display * /* dpy */ ,
   128                                        int /* screen */ ,
   129                                        int      /* vid page */
   130 #endif
   131     );
   132 
   133 Status SDL_NAME(XF86DGAInstallColormap) (
   134 #if NeedFunctionPrototypes
   135                                             Display * /* dpy */ ,
   136                                             int /* screen */ ,
   137                                             Colormap    /*Colormap */
   138 #endif
   139     );
   140 
   141 int SDL_NAME(XF86DGAForkApp) (
   142 #if NeedFunctionPrototypes
   143                                  int screen
   144 #endif
   145     );
   146 
   147 Status SDL_NAME(XF86DGAQueryDirectVideo) (
   148 #if NeedFunctionPrototypes
   149                                              Display * /* dpy */ ,
   150                                              int /* screen */ ,
   151                                              int *      /* flags */
   152 #endif
   153     );
   154 
   155 Bool SDL_NAME(XF86DGAViewPortChanged) (
   156 #if NeedFunctionPrototypes
   157                                           Display * /* dpy */ ,
   158                                           int /* screen */ ,
   159                                           int   /* n */
   160 #endif
   161     );
   162 
   163 
   164 _XFUNCPROTOEND
   165 #endif /* _XF86DGA_SERVER_ */
   166 #endif /* _XF86DGA1_H_ */
   167 /* vi: set ts=4 sw=4 expandtab: */