Skip to content

Commit

Permalink
Add some eqgraphics offsets for render debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
brainiac committed Oct 19, 2024
1 parent 7a36c9e commit 6794e1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,8 @@ INITIALIZE_EQGRAPHICS_OFFSET(CRender__RenderBlind);
INITIALIZE_EQGRAPHICS_OFFSET(CRender__UpdateDisplay);
INITIALIZE_EQGRAPHICS_OFFSET(CRender__ResetDevice);
INITIALIZE_EQGRAPHICS_OFFSET(C2DPrimitiveManager__AddCachedText);
INITIALIZE_EQGRAPHICS_OFFSET(C2DPrimitiveManager__Render);
INITIALIZE_EQGRAPHICS_OFFSET(ObjectPreviewView__Render);

INITIALIZE_EQGRAPHICS_OFFSET(__bRenderSceneCalled);
BOOL* g_bRenderSceneCalled = (BOOL*)__bRenderSceneCalled;
Expand All @@ -1493,6 +1495,8 @@ void InitializeEQGraphicsOffsets()
CRender__ResetDevice = FixEQGraphicsOffset(CRender__ResetDevice_x);
g_bRenderSceneCalled = (BOOL*)FixEQGraphicsOffset(__bRenderSceneCalled_x);
C2DPrimitiveManager__AddCachedText = FixEQGraphicsOffset(C2DPrimitiveManager__AddCachedText_x);
C2DPrimitiveManager__Render = FixEQGraphicsOffset(C2DPrimitiveManager__Render_x);
ObjectPreviewView__Render = FixEQGraphicsOffset(ObjectPreviewView__Render_x);
}
}

Expand Down
2 changes: 2 additions & 0 deletions Globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,8 @@ EQLIB_VAR uintptr_t CRender__UpdateDisplay;
EQLIB_VAR uintptr_t CRender__ResetDevice;
EQLIB_VAR BOOL* g_bRenderSceneCalled;
EQLIB_VAR uintptr_t C2DPrimitiveManager__AddCachedText;
EQLIB_VAR uintptr_t C2DPrimitiveManager__Render;
EQLIB_VAR uintptr_t ObjectPreviewView__Render;

//============================================================================
// eqmain.dll Offsets
Expand Down
3 changes: 3 additions & 0 deletions eqgraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#define __bRenderSceneCalled_x 0x1017C99C

#define C2DPrimitiveManager__AddCachedText_x 0x100AD6F0
#define C2DPrimitiveManager__Render_x 0x100AE370

#define ObjectPreviewView__Render_x 0x10017A80

#if __has_include("../private/eqgraphics-private.h")
#include "../private/eqgraphics-private.h"
Expand Down

0 comments on commit 6794e1c

Please sign in to comment.