source: trunk/src/ddraw/OS2CLIPPER.H@ 2174

Last change on this file since 2174 was 2174, checked in by hugh, 26 years ago

Added ODIn lic header with ID to all files where missing

Cleaned up Surface handling by movefing colorfill and
colorconversion into own files and use functionpointers
setup during creation.

updated makefile to add files

removed inhertiance from IBASE in DDrectangle class

File size: 2.2 KB
Line 
1/* $Id: OS2CLIPPER.H,v 1.6 1999-12-21 01:28:19 hugh Exp $ */
2
3/*
4 * DX clipper class definition
5 *
6 * Copyright 1998 Sander va Leeuwen
7 *
8 * Project Odin Software License can be found in LICENSE.TXT
9 *
10 */
11#ifndef __OS2CLIPPER_H__
12#define __OS2CLIPPER_H__
13
14#include "divewrap.h"
15#define FAR
16#undef THIS
17#define THIS IDirectDrawClipper*
18class OS2IDirectDrawClipper
19{
20 public:
21 //this one has to go first!
22 IDirectDrawClipperVtbl *lpVtbl;
23 IDirectDrawClipperVtbl Vtbl;
24
25 OS2IDirectDrawClipper(OS2IDirectDraw *lpDirectDraw);
26 ~OS2IDirectDrawClipper();
27
28 int Referenced;
29 inline HRESULT GetLastError() { return lastError; };
30 private:
31
32 protected:
33 HRESULT lastError;
34 OS2IDirectDraw *lpDraw;
35 HDIVE hDive;
36 HWND clipWindow;
37
38 // Linked list management
39 OS2IDirectDrawClipper* next; // Next OS2IDirectDraw
40 static OS2IDirectDrawClipper* ddraw; // List of OS2IDirectDraw
41
42 friend HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
43 friend ULONG __stdcall ClipAddRef(THIS);
44 friend ULONG __stdcall ClipRelease(THIS);
45 friend HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
46 friend HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
47 friend HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
48 friend HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
49 friend HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
50 friend HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
51};
52
53HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
54ULONG __stdcall ClipAddRef(THIS);
55ULONG __stdcall ClipRelease(THIS);
56HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
57HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
58HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
59HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
60HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
61HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
62
63#endif
Note: See TracBrowser for help on using the repository browser.