Error (namespace DD7)


DirectDRAW
DirectDRAW()
IDirectDraw7* GetIDirectDraw()
bool Create(HWND hWnd, bool isFullScreen, int width, int height)
int GetHeight(HWND hWnd)
int GetWidth(HWND hWnd)
static HRESULT FAR PASCAL EnumCallback(DDSURFACEDESC2* surfaceDesc, LPVOID context)
void GetClientRect(HWND hWnd, RECT& out_rect)
~ DirectDRAW()

FileBitmap: It loads a bitmap from a BMP file
FileBitmap()
bool Load(HWND hWnd, DD7::DirectDRAW& directDraw, const wchar_t* filename)
It loads a bitmap from a file You can call SetSourceColorKey to set the transparency color surface.SetSourceColorKey(0); Black
bool Recreate()
~ FileBitmap()

Font
Font()
IDirectDrawSurface7* GetIDirectDrawSurface()
bool Create(HWND hWnd, DD7::DirectDRAW& directDraw, const wchar_t* fontname, int fontsize, COLORREF backColor, COLORREF textColor)
bool IsLost()
bool Recreate()
bool SetDestinationColorKey(DWORD color)
This color will NOT be copy during a bit block transfer (BitBlt) operation
bool SetSourceColorKey(DWORD color)
This color will NOT be copy during a bit block transfer (BitBlt) operation
const wchar_t* GetFontName()
int ConvertWcharToIndex(wchar_t c)
It returns an index representing the input character, skipping non-printable characters It returns -1, if the character is not supported ' ' returns 0, ! returns 1, " returns 2,  Google Microsoft
int GetBitmapSize()
int GetFontSize()
int GetTextMetricsAvgWidth()
int GetTextMetricsHeight()
int GetTextMetricsMaxWidth()
int GetTextWidth(const wchar_t* text)
~ Font()

ResourceBitmap: It loads a bitmap from a BITMAP resource
ResourceBitmap()
bool Load(HWND hWnd, DD7::DirectDRAW& directDraw, HINSTANCE hInstance, int bitmap_id)
It loads a bitmap from a resource You can call SetSourceColorKey to set the transparency color surface.SetSourceColorKey(0); Black
bool Recreate()
~ ResourceBitmap()

Surface
DDSURFACEDESC2& GetDescription()
DWORD GetAdapterColor(BYTE red, BYTE green, BYTE blue)
DWORD GetPixel(int x, int y, bool lockedUnlocked)
HDC GetHDC()
IDirectDrawSurface7* GetIDirectDrawSurface()
Surface()
bool BitBlt(RECT& destination, RECT& source, DD7::Surface& surfaceSource, DWORD flags)
It makes a Bit Block Transfer flags: DDBLT_COLORFILL, DDBLT_DDFX, DDBLT_DDROPS, DDBLT_DEPTHFILL, DDBLT_KEYDESTOVERRIDE, DDBLT_KEYSRCOVERRIDE, DDBLT_KEYSRCOVERRIDE, DDBLT_ROP DDBLT_KEYDEST, DDBLT_KEYSRC DDBLT_ASYNC, DDBLT_DONOTWAIT, DDBLT_WAIT
bool BitBlt(int x, int y, int width, int height, DD7::Surface& surfaceSource, DWORD flags)
It makes a Bit Block Transfer flags: DDBLT_COLORFILL, DDBLT_DDFX, DDBLT_DDROPS, DDBLT_DEPTHFILL, DDBLT_KEYDESTOVERRIDE, DDBLT_KEYSRCOVERRIDE, DDBLT_KEYSRCOVERRIDE, DDBLT_ROP DDBLT_KEYDEST, DDBLT_KEYSRC DDBLT_ASYNC, DDBLT_DONOTWAIT, DDBLT_WAIT
bool BltFast(int x, int y, DD7::Surface& surfaceSource, DWORD flags)
It makes a Bit Block Transfer. It cannot strech, mirror or clip (a clipper cannot be attached) The surfaceSource MUST FIT inside the destination surface flags: DDBLT_KEYDEST, DDBLT_KEYSRC, DDBLT_ASYNC, DDBLT_DONOTWAIT, DDBLT_WAIT
bool BltFast(int x, int y, RECT& source, DD7::Surface& surfaceSource, DWORD flags)
It makes a Bit Block Transfer. It cannot strech, mirror or clip (a clipper cannot be attached) The surfaceSource MUST FIT inside the destination surface flags: DDBLT_KEYDEST, DDBLT_KEYSRC, DDBLT_ASYNC, DDBLT_DONOTWAIT, DDBLT_WAIT
bool CreateOffScreen(HWND hWnd, DD7::DirectDRAW& directDraw, int width, int height)
bool CreatePrimary(HWND hWnd, DD7::DirectDRAW& directDraw, int bufferCount)
bool DrawBitmap(CG::DIBitmap& dibitmap, int x, int y)
bool DrawBitmap(CG::DIBitmap& dibitmap, int x, int y, int width, int height, bool isColor)
bool DrawFontBitmap(DD7::Font& font, int x, int y)
bool Flip()
bool GetBackBuffer(HWND hWnd, DD7::Surface& out_backBuffer)
bool IsLost()
bool Line(int x0, int y0, int x1, int y1, DWORD adapterColor, bool lockedUnlocked)
bool Rectangle(const RECT& rect, DWORD adapterColor)
bool Rectangle(int left, int top, int right, int bottom, DWORD adapterColor)
bool ReleaseHDC()
bool Restore()
bool SetClipper(HWND hWnd, DD7::DirectDRAW& directDraw)
bool SetDestinationColorKey(DWORD color)
This color will NOT be copy during a bit block transfer (BitBlt) operation
bool SetPixel(int x, int y, DWORD color, bool lockedUnlocked)
bool SetSourceColorKey(DWORD color)
This color will NOT be copy during a bit block transfer (BitBlt) operation
bool Unlock()
bool Unlock(RECT& rect)
int Draw_Text(DD7::Font& font, int x, int y, const wchar_t* text, DWORD flags)
It returns the final value of x after drawing the text flags: 0, DDBLT_KEYDEST, DDBLT_KEYSRC, ....
int Draw_Text(DD7::Font& font, int x, int y, const wchar_t* text, DWORD flags, DDBLTFX* ddbltfx)
It returns the final value of x after drawing the text flags: 0, DDBLT_KEYDEST, DDBLT_KEYSRC, ....
int GetHeight()
int GetWidth()
unsigned char* Lock()
unsigned char* Lock(RECT& rect)
virtual bool Recreate()
void Begin(HWND hWnd)
~ Surface()
© Copyright 2000-2019 selo. All Rights Reserved. Sep 05 2019.