mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
29 lines
650 B
C++
29 lines
650 B
C++
#include <Common/CompatVtable.h>
|
|
#include <DDraw/ScopedThreadLock.h>
|
|
#include <Direct3d/Direct3dViewport.h>
|
|
#include <Direct3d/Visitors/Direct3dViewportVtblVisitor.h>
|
|
|
|
namespace
|
|
{
|
|
template <typename Vtable>
|
|
constexpr void setCompatVtable(Vtable& /*vtable*/)
|
|
{
|
|
}
|
|
}
|
|
|
|
namespace Direct3d
|
|
{
|
|
namespace Direct3dViewport
|
|
{
|
|
template <typename Vtable>
|
|
void hookVtable(const Vtable& vtable)
|
|
{
|
|
CompatVtable<Vtable>::hookVtable<DDraw::ScopedThreadLock>(vtable);
|
|
}
|
|
|
|
template void hookVtable(const IDirect3DViewportVtbl&);
|
|
template void hookVtable(const IDirect3DViewport2Vtbl&);
|
|
template void hookVtable(const IDirect3DViewport3Vtbl&);
|
|
}
|
|
}
|