1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/Direct3d/Visitors/Direct3dTextureVtblVisitor.h
2016-10-31 13:48:19 +01:00

38 lines
689 B
C++

#pragma once
#define CINTERFACE
#include <d3d.h>
#include "Common/VtableVisitor.h"
template <>
struct VtableForEach<IDirect3DTextureVtbl>
{
template <typename Vtable, typename Visitor>
static void forEach(Visitor& visitor)
{
VtableForEach<IUnknownVtbl>::forEach<Vtable>(visitor);
DD_VISIT(Initialize);
DD_VISIT(GetHandle);
DD_VISIT(PaletteChanged);
DD_VISIT(Load);
DD_VISIT(Unload);
}
};
template <>
struct VtableForEach<IDirect3DTexture2Vtbl>
{
template <typename Vtable, typename Visitor>
static void forEach(Visitor& visitor)
{
VtableForEach<IUnknownVtbl>::forEach<Vtable>(visitor);
DD_VISIT(GetHandle);
DD_VISIT(PaletteChanged);
DD_VISIT(Load);
}
};