1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/Direct3d/Direct3dTexture.cpp
2021-03-16 14:13:20 +01:00

28 lines
586 B
C++

#include <Common/CompatVtable.h>
#include <DDraw/ScopedThreadLock.h>
#include <Direct3d/Direct3dTexture.h>
#include <Direct3d/Visitors/Direct3dTextureVtblVisitor.h>
namespace
{
template <typename Vtable>
constexpr void setCompatVtable(Vtable& /*vtable*/)
{
}
}
namespace Direct3d
{
namespace Direct3dTexture
{
template <typename Vtable>
void hookVtable(const Vtable& vtable)
{
CompatVtable<Vtable>::hookVtable<DDraw::ScopedThreadLock>(vtable);
}
template void hookVtable(const IDirect3DTextureVtbl&);
template void hookVtable(const IDirect3DTexture2Vtbl&);
}
}