Logo
GameViewDrawHook.h
1#pragma once
2
3#include "Types.h"
4#include "gfx/GameView.h"
5#include "gfx/GameView/Helper/GameViewDrawHook.h"
6
7namespace XXSharpKmyGfx
8{
9 class NativeGameViewDrawHook : public kmyGfx::GameViewDrawHook
10 {
11 public:
12 void* owner = nullptr;
13 void gameviewHookDraw(kmyGfx::GameViewDrawCommandBuffer &icb, kmyGfx::GameViewDrawHookPoint point)override;
14 };
15
16 private ref class GameViewDrawHook
17 {
18 public:
19 NativeGameViewDrawHook* native = nullptr;
20
21 GameViewDrawHook();
22 ~GameViewDrawHook();
23 virtual void gameviewHookDraw(InternalCommandBuffer ^icb, GameViewDrawHookPoint point) {}
24 static void call(void* obj, kmyGfx::GameViewDrawCommandBuffer* icb, kmyGfx::GameViewDrawHookPoint point);
25 };
26}