coastline 0.0.4
Loading...
Searching...
No Matches
ddutil.h
Go to the documentation of this file.
1#pragma once
2
8
9#include <windows.h>
10// The headers below need the types of windows.h.
11#include <ddraw.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
30 IDirectDraw2 *pDirectDraw, LPCSTR pszBitmap, int nWidth, int nHeight, DDSURFACEDESC *pDesc);
31
41
55DDCopyBitmap(IDirectDrawSurface *pSurface, HBITMAP hBitmap, int x, int y, int nWidth, int nHeight);
56
67
77
78#ifdef __cplusplus
79}
80#endif
HRESULT DDCopyBitmap(IDirectDrawSurface *pSurface, HBITMAP hBitmap, int x, int y, int nWidth, int nHeight)
Restore a surface and stretch a part of a bitmap over all of it.
IDirectDrawSurface * DDLoadBitmap(IDirectDraw2 *pDirectDraw, LPCSTR pszBitmap, int nWidth, int nHeight, DDSURFACEDESC *pDesc)
Create an off-screen surface and copy a bitmap into it.
HRESULT DDReLoadBitmap(IDirectDrawSurface *pSurface, LPCSTR pszBitmap)
Copy a bitmap into a surface again, as after the surface is restored.
HRESULT DDSetColorKey(IDirectDrawSurface *pSurface, COLORREF color)
Make a colour the source colour key of a surface.
DWORD DDColorMatch(IDirectDrawSurface *pSurface, COLORREF color)
Find the pixel value of a surface for a colour, by drawing the colour at the top left of the surface ...
typedef COLORREF
typedef DWORD
typedef HBITMAP
typedef HRESULT
typedef LPCSTR