libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
GfxDebugger.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
5
6namespace Fast {
7union F3DGfx;
8
24 public:
27
30
32 bool IsDebugging() const;
33
36
42
44 void ResumeGame();
45
50 const F3DGfx* GetDisplayList() const;
51
56 const std::vector<const F3DGfx*>& GetBreakPoint() const;
57
63 bool HasBreakPoint(const std::vector<const F3DGfx*>& path) const;
64
69 void SetBreakPoint(const std::vector<const F3DGfx*>& bp);
70
71 private:
72 bool mIsDebugging = false;
73 bool mIsDebuggingRequested = false;
74 F3DGfx* mDlist = nullptr;
75 std::vector<const F3DGfx*> mBreakPoint = {};
76};
77
78} // namespace Fast
Graphics display-list debugger for the Fast3D renderer.
Definition GfxDebugger.h:23
void ResumeGame()
Resumes game execution after a debugging pause.
bool HasBreakPoint(const std::vector< const F3DGfx * > &path) const
Checks whether a breakpoint is set at the given command path.
void RequestDebugging()
Requests that the renderer pause after the next display list.
const std::vector< const F3DGfx * > & GetBreakPoint() const
Returns the current breakpoint path.
void DebugDisplayList(F3DGfx *cmds)
Captures a display list for debugging inspection.
const F3DGfx * GetDisplayList() const
Returns the currently captured display list.
GfxDebugger()
Constructs the GfxDebugger component.
bool IsDebuggingRequested() const
Returns true if a debugging pause has been requested but not yet honoured.
bool IsDebugging() const
Returns true if the debugger is currently paused on a display list.
void SetBreakPoint(const std::vector< const F3DGfx * > &bp)
Sets a breakpoint at the given display-list command path.
A named Part with a parent/child hierarchy and optional thread safety.
Definition Component.h:34
Definition gfx_direct3d_common.h:19
union Fast::F3DGfx F3DGfx
Definition lus_gbi.h:1171