MxDirect3D (#114)

* MxDirect3D Constructor

* Implement MxDirect3D::Clear (not yet matching)

* Match MxDirect3D::Clear

* Building out MxDirect3D, link dxguid, add size asserts

* Move a few things around on the Enumerate context obj

* remove dupe mxdirect3d

* Match BuildErrorString and _DoEnumerate

* Fix style

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
Co-authored-by: disinvite <disinvite@users.noreply.github.com>
This commit is contained in:
Joshua Peisach
2023-09-10 08:56:16 -04:00
committed by GitHub
parent 1fa2fd9737
commit dc18b5d9c1
5 changed files with 262 additions and 10 deletions

View File

@@ -1,4 +1,3 @@
#ifndef MXDIRECTDRAW_H
#define MXDIRECTDRAW_H
@@ -7,6 +6,7 @@
extern BOOL g_is_PALETTEINDEXED8;
// VTABLE 0x100db818
// SIZE 0x880
class MxDirectDraw
{
@@ -37,11 +37,12 @@ public:
DDCAPS m_ddcaps;
void* a_178;
DeviceModesInfo();
~DeviceModesInfo();
};
private:
protected:
BOOL m_bOnlySoftRender;
BOOL m_bFlipSurfaces;
IDirectDraw* m_pDirectDraw;
@@ -94,7 +95,7 @@ public:
virtual void DestroyButNotDirectDraw();
virtual const char* ErrorToString(HRESULT error);
private:
protected:
BOOL CacheOriginalPaletteEntries();
HRESULT CreateDDSurface(
LPDDSURFACEDESC a2,