Ignore:
Timestamp:
Jun 26, 1999, 1:36:08 PM (26 years ago)
Author:
hugh
Message:

Include for DX6 verion of ddraw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ddraw/OS2CLIPPER.H

    r97 r211  
    1 /* $Id: OS2CLIPPER.H,v 1.3 1999-06-10 17:10:56 phaller Exp $ */
    2 
    3 /*
    4  * DirectDraw Clipper Class
    5  *
    6  * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
    7  *
    8  * Project Odin Software License can be found in LICENSE.TXT
    9  *
    10  */
    111#ifndef __OS2CLIPPER_H__
    122#define __OS2CLIPPER_H__
    133
    14 /* KSO Apr 19 1999: Set correct interface.           *
    15  * (INTERFACE is used in the THIS and THIS_ macros)  */
    16 #undef  INTERFACE
    17 #define INTERFACE   IDirectDrawClipper
    18 
     4#include <dive.h>
     5#define FAR
     6#undef THIS
     7#define THIS IDirectDrawClipper*
    198class OS2IDirectDrawClipper
    209{
    2110 public:
    22     //this one has to go first!
    23     IDirectDrawClipperVtbl *lpVtbl;
    24     IDirectDrawClipperVtbl  Vtbl;
     11  //this one has to go first!
     12  IDirectDrawClipperVtbl *lpVtbl;
     13  IDirectDrawClipperVtbl  Vtbl;
    2514
    26     OS2IDirectDrawClipper(OS2IDirectDraw *lpDirectDraw);
     15  OS2IDirectDrawClipper(OS2IDirectDraw *lpDirectDraw);
    2716       ~OS2IDirectDrawClipper();
    2817
    29           int             Referenced;
     18        int             Referenced;
    3019        inline  HRESULT       GetLastError() { return lastError; };
    3120 private:
    3221
    3322 protected:
    34           HRESULT                lastError;
    35           OS2IDirectDraw        *lpDraw;
    36           HDIVE                  hDive;
    37           W32_HWND               clipWindow;
     23              HRESULT                lastError;
     24        OS2IDirectDraw        *lpDraw;
     25        HDIVE                  hDive;
     26        HWND         clipWindow;
    3827
    3928                              // Linked list management
     
    4130    static    OS2IDirectDrawClipper* ddraw;                  // List of OS2IDirectDraw
    4231
    43     friend    HRESULT __stdcall ClipQueryInterface(THIS_ REFIID riid, LPVOID FAR * ppvObj);
     32    friend    HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
    4433    friend    ULONG   __stdcall ClipAddRef(THIS);
    4534    friend    ULONG   __stdcall ClipRelease(THIS);
    46     friend    HRESULT __stdcall ClipGetClipList(THIS_ W32_LPRECT, W32_LPRGNDATA, LPDWORD);
    47     friend    HRESULT __stdcall ClipGetHWnd(THIS_ W32_HWND FAR *);
    48     friend    HRESULT __stdcall ClipInitialize(THIS_ LPDIRECTDRAW, DWORD);
    49     friend    HRESULT __stdcall ClipIsClipListChanged(THIS_ BOOL FAR *);
    50     friend    HRESULT __stdcall ClipSetClipList(THIS_ W32_LPRGNDATA,DWORD);
    51     friend    HRESULT __stdcall ClipSetHWnd(THIS_ DWORD, W32_HWND );
     35    friend    HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
     36    friend    HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
     37    friend    HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
     38    friend    HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
     39    friend    HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
     40    friend    HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
    5241};
    5342
    54 HRESULT __stdcall ClipQueryInterface(THIS_ REFIID riid, LPVOID FAR * ppvObj);
     43HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
    5544ULONG   __stdcall ClipAddRef(THIS);
    5645ULONG   __stdcall ClipRelease(THIS);
    57 HRESULT __stdcall ClipGetClipList(THIS_ W32_LPRECT, W32_LPRGNDATA, LPDWORD);
    58 HRESULT __stdcall ClipGetHWnd(THIS_ W32_HWND FAR *);
    59 HRESULT __stdcall ClipInitialize(THIS_ LPDIRECTDRAW, DWORD);
    60 HRESULT __stdcall ClipIsClipListChanged(THIS_ BOOL FAR *);
    61 HRESULT __stdcall ClipSetClipList(THIS_ W32_LPRGNDATA,DWORD);
    62 HRESULT __stdcall ClipSetHWnd(THIS_ DWORD, W32_HWND );
     46HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
     47HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
     48HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
     49HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
     50HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
     51HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
    6352
    6453#endif
Note: See TracChangeset for help on using the changeset viewer.