2020-10-13 09:20:52 +02:00
|
|
|
#ifndef IDIRECTDRAWPALETTE_H
|
|
|
|
#define IDIRECTDRAWPALETTE_H
|
|
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
#include "ddraw.h"
|
|
|
|
|
|
|
|
|
|
|
|
struct IDirectDrawPaletteImpl;
|
|
|
|
struct IDirectDrawPaletteImplVtbl;
|
|
|
|
|
|
|
|
typedef struct IDirectDrawPaletteImpl
|
|
|
|
{
|
|
|
|
struct IDirectDrawPaletteImplVtbl* lpVtbl;
|
|
|
|
|
|
|
|
ULONG ref;
|
|
|
|
|
|
|
|
int data_bgr[256];
|
2021-05-22 12:23:25 +02:00
|
|
|
RGBQUAD data_rgb[256];
|
2021-05-13 20:02:35 +02:00
|
|
|
DWORD flags;
|
2020-10-13 09:20:52 +02:00
|
|
|
|
|
|
|
} IDirectDrawPaletteImpl;
|
|
|
|
|
|
|
|
typedef struct IDirectDrawPaletteImplVtbl IDirectDrawPaletteImplVtbl;
|
|
|
|
|
|
|
|
struct IDirectDrawPaletteImplVtbl
|
|
|
|
{
|
|
|
|
/* IUnknown */
|
|
|
|
HRESULT(__stdcall* QueryInterface)(IDirectDrawPaletteImpl*, REFIID, void**);
|
|
|
|
ULONG(__stdcall* AddRef)(IDirectDrawPaletteImpl*);
|
|
|
|
ULONG(__stdcall* Release)(IDirectDrawPaletteImpl*);
|
|
|
|
|
|
|
|
/* IDirectDrawPalette */
|
|
|
|
HRESULT(__stdcall* GetCaps)(IDirectDrawPaletteImpl*, LPDWORD);
|
|
|
|
HRESULT(__stdcall* GetEntries)(IDirectDrawPaletteImpl*, DWORD, DWORD, DWORD, LPPALETTEENTRY);
|
|
|
|
HRESULT(__stdcall* Initialize)(IDirectDrawPaletteImpl*, LPDIRECTDRAW, DWORD, LPPALETTEENTRY);
|
|
|
|
HRESULT(__stdcall* SetEntries)(IDirectDrawPaletteImpl*, DWORD, DWORD, DWORD, LPPALETTEENTRY);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct IDirectDrawPaletteImplVtbl g_ddp_vtbl;
|
|
|
|
|
|
|
|
#endif
|