mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
26 lines
410 B
C++
26 lines
410 B
C++
#pragma once
|
|
|
|
#define CINTERFACE
|
|
|
|
#include <d3d.h>
|
|
#include <d3dumddi.h>
|
|
|
|
#include "DDrawVtableVisitor.h"
|
|
|
|
struct D3dDdiAdapterFuncsIntf
|
|
{
|
|
D3DDDI_ADAPTERFUNCS* lpVtbl;
|
|
};
|
|
|
|
template <>
|
|
struct DDrawVtableForEach<D3DDDI_ADAPTERFUNCS>
|
|
{
|
|
template <typename Vtable, typename Visitor>
|
|
static void forEach(Visitor& visitor)
|
|
{
|
|
DD_VISIT(pfnGetCaps);
|
|
DD_VISIT(pfnCreateDevice);
|
|
DD_VISIT(pfnCloseAdapter);
|
|
}
|
|
};
|